lib/spree_cmd/installer.rb in spree_cmd-1.1.2 vs lib/spree_cmd/installer.rb in spree_cmd-1.1.3
- old
+ new
@@ -53,9 +53,12 @@
@spree_gem_options[:ref] = options[:ref] if options[:ref]
@spree_gem_options[:branch] = options[:branch] if options[:branch]
@spree_gem_options[:tag] = options[:tag] if options[:tag]
elsif options[:version]
@spree_gem_options[:version] = options[:version]
+ else
+ require 'spree/core/version'
+ @spree_gem_options[:version] = Spree.version
end
end
def ask_questions
@install_default_gateways = ask_with_default('Would you like to install the default gateways?')