spree_cmd 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/spree +1 -4
- data/bin/spree_cmd +1 -4
- data/lib/spree_cmd.rb +12 -22
- data/lib/spree_cmd/extension.rb +1 -1
- data/lib/spree_cmd/installer.rb +3 -0
- data/lib/spree_cmd/templates/extension/Gemfile +1 -1
- data/spree_cmd.gemspec +1 -1
- metadata +9 -9
data/bin/spree
CHANGED
data/bin/spree_cmd
CHANGED
data/lib/spree_cmd.rb
CHANGED
@@ -1,29 +1,19 @@
|
|
1
1
|
require 'thor'
|
2
2
|
require 'thor/group'
|
3
3
|
|
4
|
-
require 'spree_cmd/installer'
|
5
|
-
require 'spree_cmd/extension'
|
6
|
-
require 'spree_cmd/version'
|
7
|
-
|
8
4
|
module SpreeCmd
|
9
|
-
class Command
|
10
|
-
|
11
|
-
desc 'install', 'adds spree to an existing rails app'
|
12
|
-
method_option :app_path, :type => :string, :desc => 'path to rails application'
|
13
|
-
def install(app_path = '.')
|
14
|
-
invoke Installer
|
15
|
-
end
|
5
|
+
class Command
|
16
6
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
7
|
+
if ARGV.first == 'version'
|
8
|
+
puts Gem.loaded_specs['spree_cmd'].version
|
9
|
+
elsif ARGV.first == 'extension'
|
10
|
+
ARGV.shift
|
11
|
+
require 'spree_cmd/extension'
|
12
|
+
SpreeCmd::Extension.start
|
13
|
+
else
|
14
|
+
ARGV.shift
|
15
|
+
require 'spree_cmd/installer'
|
16
|
+
SpreeCmd::Installer.start
|
21
17
|
end
|
22
|
-
|
23
|
-
desc 'version', 'display spree_cmd version'
|
24
|
-
def version
|
25
|
-
invoke Version
|
26
|
-
end
|
27
|
-
|
28
18
|
end
|
29
|
-
end
|
19
|
+
end
|
data/lib/spree_cmd/extension.rb
CHANGED
data/lib/spree_cmd/installer.rb
CHANGED
@@ -55,6 +55,9 @@ module SpreeCmd
|
|
55
55
|
@spree_gem_options[:tag] = options[:tag] if options[:tag]
|
56
56
|
elsif options[:version]
|
57
57
|
@spree_gem_options[:version] = options[:version]
|
58
|
+
else
|
59
|
+
require 'spree/core/version'
|
60
|
+
@spree_gem_options[:version] = Spree.version
|
58
61
|
end
|
59
62
|
end
|
60
63
|
|
data/spree_cmd.gemspec
CHANGED
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.
|
4
|
+
version: 1.1.3
|
5
5
|
prerelease:
|
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-07-
|
12
|
+
date: 2012-07-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70350361395960 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,18 +21,18 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70350361395960
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: thor
|
27
|
-
requirement: &
|
27
|
+
requirement: &70350361395180 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
|
-
- -
|
30
|
+
- - ! '>='
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 0.14.6
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70350361395180
|
36
36
|
description: tools to create new Spree stores and extensions
|
37
37
|
email:
|
38
38
|
- chris@spreecommerce.com
|
@@ -86,7 +86,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
86
86
|
version: '0'
|
87
87
|
segments:
|
88
88
|
- 0
|
89
|
-
hash:
|
89
|
+
hash: -4350616166302982414
|
90
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
91
|
none: false
|
92
92
|
requirements:
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
segments:
|
97
97
|
- 0
|
98
|
-
hash:
|
98
|
+
hash: -4350616166302982414
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project: spree_cmd
|
101
101
|
rubygems_version: 1.8.10
|