spree_cmd 1.1.0.rc1 → 1.1.0.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/spree_cmd/extension.rb +1 -1
- data/lib/spree_cmd/installer.rb +6 -4
- metadata +5 -5
data/lib/spree_cmd/extension.rb
CHANGED
|
@@ -36,7 +36,7 @@ module SpreeCmd
|
|
|
36
36
|
|
|
37
37
|
Your extension has been generated with a gemspec dependency on Spree #{spree_version}.
|
|
38
38
|
|
|
39
|
-
Please update the Versionfile to designate
|
|
39
|
+
Please update the Versionfile to designate compatibility with different versions of Spree.
|
|
40
40
|
See http://spreecommerce.com/documentation/extensions.html#versionfile
|
|
41
41
|
|
|
42
42
|
Consider listing your extension in the official extension registry http://spreecommerce.com/extensions"
|
data/lib/spree_cmd/installer.rb
CHANGED
|
@@ -12,8 +12,7 @@ module SpreeCmd
|
|
|
12
12
|
class_option :skip_install_data, :type => :boolean, :default => false,
|
|
13
13
|
:desc => 'Skip running migrations and loading seed and sample data'
|
|
14
14
|
|
|
15
|
-
class_option :version, :type => :string, :
|
|
16
|
-
:desc => 'Spree Version to use (current, edge, local)'
|
|
15
|
+
class_option :version, :type => :string, :desc => 'Spree Version to use'
|
|
17
16
|
|
|
18
17
|
class_option :edge, :type => :boolean
|
|
19
18
|
|
|
@@ -42,6 +41,8 @@ module SpreeCmd
|
|
|
42
41
|
@spree_gem_options[:ref] = options[:ref] if options[:ref]
|
|
43
42
|
@spree_gem_options[:branch] = options[:branch] if options[:branch]
|
|
44
43
|
@spree_gem_options[:tag] = options[:tag] if options[:tag]
|
|
44
|
+
elsif options[:version]
|
|
45
|
+
@spree_gem_options[:version] = options[:version]
|
|
45
46
|
end
|
|
46
47
|
end
|
|
47
48
|
|
|
@@ -106,10 +107,11 @@ module SpreeCmd
|
|
|
106
107
|
|
|
107
108
|
private
|
|
108
109
|
|
|
109
|
-
def gem(name,
|
|
110
|
+
def gem(name, gem_options={})
|
|
110
111
|
say_status :gemfile, name
|
|
111
112
|
parts = ["'#{name}'"]
|
|
112
|
-
|
|
113
|
+
parts << ["'#{gem_options.delete(:version)}'"] if gem_options[:version]
|
|
114
|
+
gem_options.each { |key, value| parts << ":#{key} => '#{value}'" }
|
|
113
115
|
append_file 'Gemfile', "gem #{parts.join(', ')}\n", :verbose => false
|
|
114
116
|
end
|
|
115
117
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spree_cmd
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.0.
|
|
4
|
+
version: 1.1.0.rc2
|
|
5
5
|
prerelease: 6
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,11 +9,11 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-04-
|
|
12
|
+
date: 2012-04-20 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rspec
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &70132938968540 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ! '>='
|
|
@@ -21,7 +21,7 @@ dependencies:
|
|
|
21
21
|
version: '0'
|
|
22
22
|
type: :development
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements: *
|
|
24
|
+
version_requirements: *70132938968540
|
|
25
25
|
description: tools to create new Spree stores and extensions
|
|
26
26
|
email:
|
|
27
27
|
- chris@spreecommerce.com
|
|
@@ -75,7 +75,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
75
75
|
version: '0'
|
|
76
76
|
segments:
|
|
77
77
|
- 0
|
|
78
|
-
hash:
|
|
78
|
+
hash: 1303814976554515432
|
|
79
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
none: false
|
|
81
81
|
requirements:
|