diff --git a/admin/Rakefile b/admin/Rakefile index cac4241b2d0..ccb6eea4435 100644 --- a/admin/Rakefile +++ b/admin/Rakefile @@ -5,6 +5,7 @@ require 'rake' require 'rake/testtask' require 'rspec/core/rake_task' require 'spree/testing_support/dummy_app/rake_tasks' +require 'bundler/gem_tasks' RSpec::Core::RakeTask.new task default: :spec diff --git a/admin/lib/solidus_admin/version.rb b/admin/lib/solidus_admin/version.rb index e0ab196d4b3..db126dad578 100644 --- a/admin/lib/solidus_admin/version.rb +++ b/admin/lib/solidus_admin/version.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'spree/core/version' - module SolidusAdmin - VERSION = Spree.solidus_version + VERSION = "0.0.1" end diff --git a/admin/solidus_admin.gemspec b/admin/solidus_admin.gemspec index 7aaa594d0d8..de86fc2bd0e 100644 --- a/admin/solidus_admin.gemspec +++ b/admin/solidus_admin.gemspec @@ -1,11 +1,12 @@ # frozen_string_literal: true require_relative '../core/lib/spree/core/version' +require_relative './lib/solidus_admin/version' Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY s.name = 'solidus_admin' - s.version = Spree.solidus_version + s.version = SolidusAdmin::VERSION s.summary = 'Admin interface for the Solidus e-commerce framework.' s.description = s.summary @@ -25,8 +26,8 @@ Gem::Specification.new do |s| s.add_dependency 'geared_pagination', '~> 1.1' s.add_dependency 'importmap-rails', '~> 1.2', '>= 1.2.1' - s.add_dependency 'solidus_backend', s.version - s.add_dependency 'solidus_core', s.version + s.add_dependency 'solidus_backend', Spree.solidus_version + s.add_dependency 'solidus_core', Spree.solidus_version s.add_dependency 'stimulus-rails', '~> 1.2' s.add_dependency 'tailwindcss-rails', '~> 2.0' s.add_dependency 'turbo-rails', '~> 1.4' diff --git a/solidus.gemspec b/solidus.gemspec index f46b96100a3..0ae3a3455b8 100644 --- a/solidus.gemspec +++ b/solidus.gemspec @@ -21,7 +21,7 @@ Gem::Specification.new do |s| s.required_ruby_version = '>= 3.0.0' s.required_rubygems_version = '>= 1.8.23' - s.add_dependency 'solidus_admin', s.version + s.add_dependency 'solidus_admin' s.add_dependency 'solidus_api', s.version s.add_dependency 'solidus_backend', s.version s.add_dependency 'solidus_core', s.version