spree_cmd 1.1.0 → 1.1.1
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
CHANGED
data/lib/spree_cmd/installer.rb
CHANGED
@@ -22,6 +22,9 @@ module SpreeCmd
|
|
22
22
|
class_option :branch, :type => :string, :desc => 'Spree gem git branch'
|
23
23
|
class_option :tag, :type => :string, :desc => 'Spree gem git tag'
|
24
24
|
|
25
|
+
class_option :precompile_assets, :type => :boolean, :default => true,
|
26
|
+
:desc => 'Precompile spree assets to public/assets'
|
27
|
+
|
25
28
|
def verify_rails
|
26
29
|
unless is_rails_project?
|
27
30
|
say "#{@app_path} is not a rails project."
|
@@ -68,6 +71,7 @@ module SpreeCmd
|
|
68
71
|
@admin_email = ask_string('Admin Email', 'spree@example.com', /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i)
|
69
72
|
@admin_password = ask_string('Admin Password', 'spree123', /^\S{5,32}$/)
|
70
73
|
end
|
74
|
+
@precompile_assets = options[:precompile_assets] ? ask_with_default('Would you like to precompile assets?') : false
|
71
75
|
end
|
72
76
|
|
73
77
|
def add_gems
|
@@ -99,9 +103,11 @@ module SpreeCmd
|
|
99
103
|
end
|
100
104
|
|
101
105
|
def precompile_assets
|
102
|
-
|
103
|
-
|
104
|
-
|
106
|
+
if @precompile_assets
|
107
|
+
say_status :precompiling, 'assets'
|
108
|
+
inside @app_path do
|
109
|
+
run 'bundle exec rake assets:precompile', :verbose => false
|
110
|
+
end
|
105
111
|
end
|
106
112
|
end
|
107
113
|
|
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.1
|
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-05-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70184006757120 !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: *70184006757120
|
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: 1521068613993842786
|
79
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
80
|
none: false
|
81
81
|
requirements:
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
version: '0'
|
85
85
|
segments:
|
86
86
|
- 0
|
87
|
-
hash:
|
87
|
+
hash: 1521068613993842786
|
88
88
|
requirements: []
|
89
89
|
rubyforge_project: spree_cmd
|
90
90
|
rubygems_version: 1.8.10
|