spree_cmd 1.2.0.rc2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/spree_cmd.rb CHANGED
@@ -1,20 +1,15 @@
1
1
  require 'thor'
2
2
  require 'thor/group'
3
3
 
4
- module SpreeCmd
5
- class Command
6
-
7
- case ARGV.first
8
- when 'version' || '-v' || '--version'
9
- puts Gem.loaded_specs['spree_cmd'].version
10
- when 'extension'
11
- ARGV.shift
12
- require 'spree_cmd/extension'
13
- SpreeCmd::Extension.start
14
- else
15
- ARGV.shift
16
- require 'spree_cmd/installer'
17
- SpreeCmd::Installer.start
18
- end
19
- end
4
+ case ARGV.first
5
+ when 'version', '-v', '--version'
6
+ puts Gem.loaded_specs['spree_cmd'].version
7
+ when 'extension'
8
+ ARGV.shift
9
+ require 'spree_cmd/extension'
10
+ SpreeCmd::Extension.start
11
+ else
12
+ ARGV.shift
13
+ require 'spree_cmd/installer'
14
+ SpreeCmd::Installer.start
20
15
  end
@@ -51,7 +51,7 @@ module SpreeCmd
51
51
  end
52
52
 
53
53
  def spree_version
54
- '1.2.0.rc2'
54
+ '1.2.0'
55
55
  end
56
56
 
57
57
  def use_prefix(prefix)
@@ -25,9 +25,6 @@ module SpreeCmd
25
25
  class_option :branch, :type => :string, :desc => 'Spree gem git branch'
26
26
  class_option :tag, :type => :string, :desc => 'Spree gem git tag'
27
27
 
28
- class_option :precompile_assets, :type => :boolean, :default => true,
29
- :desc => 'Precompile spree assets to public/assets'
30
-
31
28
  def verify_rails
32
29
  unless rails_project?
33
30
  say "#{@app_path} is not a rails project."
@@ -57,8 +54,8 @@ module SpreeCmd
57
54
  elsif options[:version]
58
55
  @spree_gem_options[:version] = options[:version]
59
56
  else
60
- require 'spree/core/version'
61
- @spree_gem_options[:version] = Spree.version
57
+ version = Gem.loaded_specs['spree_cmd'].version
58
+ @spree_gem_options[:version] = version.to_s
62
59
  end
63
60
  end
64
61
 
@@ -70,6 +67,8 @@ module SpreeCmd
70
67
  if @user_class.blank?
71
68
  @user_class = "User"
72
69
  end
70
+ else
71
+ @user_class = "Spree::User"
73
72
  end
74
73
 
75
74
  if options[:skip_install_data]
@@ -86,8 +85,6 @@ module SpreeCmd
86
85
  @load_sample_data = false
87
86
  end
88
87
  end
89
-
90
- @precompile_assets = options[:precompile_assets] && ask_with_default('Would you like to precompile assets?')
91
88
  end
92
89
 
93
90
  def add_gems
@@ -121,15 +118,6 @@ module SpreeCmd
121
118
  end
122
119
  end
123
120
 
124
- def precompile_assets
125
- if @precompile_assets
126
- say_status :precompiling, 'assets'
127
- inside @app_path do
128
- run 'bundle exec rake assets:precompile', :verbose => false
129
- end
130
- end
131
- end
132
-
133
121
  private
134
122
 
135
123
  def gem(name, gem_options={})
metadata CHANGED
@@ -1,19 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_cmd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.rc2
5
- prerelease: 6
4
+ version: 1.2.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Chris Mar
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-14 00:00:00.000000000 Z
12
+ date: 2012-08-30 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &70237091422040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,15 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
24
+ version_requirements: *70237091422040
30
25
  - !ruby/object:Gem::Dependency
31
26
  name: thor
32
- requirement: !ruby/object:Gem::Requirement
27
+ requirement: &70237091419380 !ruby/object:Gem::Requirement
33
28
  none: false
34
29
  requirements:
35
30
  - - ! '>='
@@ -37,12 +32,7 @@ dependencies:
37
32
  version: 0.14.6
38
33
  type: :runtime
39
34
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: 0.14.6
35
+ version_requirements: *70237091419380
46
36
  description: tools to create new Spree stores and extensions
47
37
  email:
48
38
  - chris@spreecommerce.com
@@ -96,16 +86,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
86
  version: '0'
97
87
  segments:
98
88
  - 0
99
- hash: 3532538520875852145
89
+ hash: 276278939949197311
100
90
  required_rubygems_version: !ruby/object:Gem::Requirement
101
91
  none: false
102
92
  requirements:
103
- - - ! '>'
93
+ - - ! '>='
104
94
  - !ruby/object:Gem::Version
105
- version: 1.3.1
95
+ version: '0'
96
+ segments:
97
+ - 0
98
+ hash: 276278939949197311
106
99
  requirements: []
107
100
  rubyforge_project: spree_cmd
108
- rubygems_version: 1.8.23
101
+ rubygems_version: 1.8.10
109
102
  signing_key:
110
103
  specification_version: 3
111
104
  summary: Spree Commerce command line utility