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 CHANGED
@@ -1,5 +1,2 @@
1
1
  #!/usr/bin/env ruby
2
-
3
- require 'spree_cmd'
4
-
5
- SpreeCmd::Command.start
2
+ require 'spree_cmd'
data/bin/spree_cmd CHANGED
@@ -1,6 +1,3 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'spree_cmd'
4
-
5
- SpreeCmd::Command.start
6
-
3
+ require 'spree_cmd'
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 < Thor
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
- desc 'extension', 'builds a spree extension'
18
- method_option :app_path, :type => :string, :desc => 'path to new extension'
19
- def extension(app_path)
20
- invoke Extension
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
@@ -51,7 +51,7 @@ module SpreeCmd
51
51
  end
52
52
 
53
53
  def spree_version
54
- '1.1.2'
54
+ '1.1.3'
55
55
  end
56
56
 
57
57
  def use_prefix(prefix)
@@ -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
 
@@ -3,7 +3,7 @@ source 'http://rubygems.org'
3
3
  if RUBY_VERSION < '1.9'
4
4
  gem 'ruby-debug'
5
5
  else
6
- gem 'ruby-debug19'
6
+ gem 'debugger'
7
7
  end
8
8
 
9
9
  gemspec
data/spree_cmd.gemspec CHANGED
@@ -21,5 +21,5 @@ Gem::Specification.new do |s|
21
21
 
22
22
  s.add_development_dependency 'rspec'
23
23
  # Temporary hack until https://github.com/wycats/thor/issues/234 is fixed
24
- s.add_dependency 'thor', '0.14.6'
24
+ s.add_dependency 'thor', '>= 0.14.6'
25
25
  end
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.2
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-05 00:00:00.000000000 Z
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: &70236892425980 !ruby/object:Gem::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: *70236892425980
24
+ version_requirements: *70350361395960
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: thor
27
- requirement: &70236892422040 !ruby/object:Gem::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: *70236892422040
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: 3221441784387142010
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: 3221441784387142010
98
+ hash: -4350616166302982414
99
99
  requirements: []
100
100
  rubyforge_project: spree_cmd
101
101
  rubygems_version: 1.8.10