Module: SolidusDevSupport

Defined in:
lib/solidus_dev_support.rb,
lib/solidus_dev_support/rubocop.rb,
lib/solidus_dev_support/version.rb,
lib/solidus_dev_support/extension.rb,
lib/solidus_dev_support/rake_tasks.rb,
lib/solidus_dev_support/solidus_command.rb,
lib/solidus_dev_support/testing_support/factories.rb,
lib/solidus_dev_support/testing_support/preferences.rb

Defined Under Namespace

Modules: RuboCop, TestingSupport Classes: Error, Extension, RakeTasks, SolidusCommand

Constant Summary collapse

VERSION =
"2.10.0"

Class Method Summary collapse

Class Method Details

.gem_versionObject



6
7
8
# File 'lib/solidus_dev_support/version.rb', line 6

def self.gem_version
  Gem::Version.new(VERSION)
end

.reset_spree_preferences_deprecated?Boolean

Returns:

  • (Boolean)


9
10
11
12
# File 'lib/solidus_dev_support.rb', line 9

def reset_spree_preferences_deprecated?
  first_version_without_reset = Gem::Requirement.new('>= 2.9')
  first_version_without_reset.satisfied_by?(Spree.solidus_gem_version)
end