lib/spree_cmd/installer.rb in spree_cmd-3.0.5 vs lib/spree_cmd/installer.rb in spree_cmd-3.0.6
- old
+ new
@@ -95,17 +95,17 @@
gem :spree, @spree_gem_options
if @install_default_gateways && @spree_gem_options[:branch]
gem :spree_gateway, github: 'spree/spree_gateway', branch: @spree_gem_options[:branch]
elsif @install_default_gateways
- gem :spree_gateway, github: 'spree/spree_gateway', branch: '3-0-stable'
+ gem :spree_gateway, '~> 3.0.0'
end
if @install_default_auth && @spree_gem_options[:branch]
gem :spree_auth_devise, github: 'spree/spree_auth_devise', branch: @spree_gem_options[:branch]
elsif @install_default_auth
- gem :spree_auth_devise, github: 'spree/spree_auth_devise', branch: '3-0-stable'
+ gem :spree_auth_devise, '~> 3.0.0'
end
run 'bundle install', :capture => true
end
end
@@ -126,10 +126,10 @@
private
def gem(name, gem_options={})
say_status :gemfile, name
parts = ["'#{name}'"]
- parts << ["'#{gem_options.delete(:version)}'"] if gem_options[:version]
+ parts << ["'~> #{gem_options.delete(:version)}'"] if gem_options[:version]
gem_options.each { |key, value| parts << "#{key}: '#{value}'" }
append_file 'Gemfile', "\ngem #{parts.join(', ')}", :verbose => false
end
def ask_with_default(message, default = 'yes')