spree_cmd 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/spree_cmd/extension.rb +1 -1
- data/lib/spree_cmd/installer.rb +7 -14
- metadata +8 -8
data/lib/spree_cmd/extension.rb
CHANGED
data/lib/spree_cmd/installer.rb
CHANGED
@@ -24,9 +24,6 @@ module SpreeCmd
|
|
24
24
|
class_option :branch, :type => :string, :desc => 'Spree gem git branch'
|
25
25
|
class_option :tag, :type => :string, :desc => 'Spree gem git tag'
|
26
26
|
|
27
|
-
class_option :precompile_assets, :type => :boolean, :default => true,
|
28
|
-
:desc => 'Precompile spree assets to public/assets'
|
29
|
-
|
30
27
|
def verify_rails
|
31
28
|
unless rails_project?
|
32
29
|
say "#{@app_path} is not a rails project."
|
@@ -83,7 +80,6 @@ module SpreeCmd
|
|
83
80
|
@admin_email = ask_string('Admin Email', 'spree@example.com', /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i)
|
84
81
|
@admin_password = ask_string('Admin Password', 'spree123', /^\S{5,32}$/)
|
85
82
|
end
|
86
|
-
@precompile_assets = options[:precompile_assets] && ask_with_default('Would you like to precompile assets?')
|
87
83
|
end
|
88
84
|
|
89
85
|
def add_gems
|
@@ -114,15 +110,6 @@ module SpreeCmd
|
|
114
110
|
end
|
115
111
|
end
|
116
112
|
|
117
|
-
def precompile_assets
|
118
|
-
if @precompile_assets
|
119
|
-
say_status :precompiling, 'assets'
|
120
|
-
inside @app_path do
|
121
|
-
run 'bundle exec rake assets:precompile', :verbose => false
|
122
|
-
end
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
113
|
private
|
127
114
|
|
128
115
|
def gem(name, gem_options={})
|
@@ -182,10 +169,16 @@ module SpreeCmd
|
|
182
169
|
end
|
183
170
|
|
184
171
|
def image_magick_installed?
|
172
|
+
cmd = 'identify -version'
|
173
|
+
if RUBY_PLATFORM =~ /mswin/ #windows
|
174
|
+
cmd += " >nul"
|
175
|
+
else
|
176
|
+
cmd += " >/dev/null"
|
177
|
+
end
|
185
178
|
# true if command executed succesfully
|
186
179
|
# false for non zero exit status
|
187
180
|
# nil if command execution fails
|
188
|
-
system(
|
181
|
+
system(cmd)
|
189
182
|
end
|
190
183
|
end
|
191
184
|
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.
|
4
|
+
version: 1.1.4
|
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-
|
12
|
+
date: 2012-11-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70103029858780 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70103029858780
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: thor
|
27
|
-
requirement: &
|
27
|
+
requirement: &70103029857980 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 0.14.6
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70103029857980
|
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: 155027379088345003
|
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: 155027379088345003
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project: spree_cmd
|
101
101
|
rubygems_version: 1.8.10
|