spree_cmd 2.3.13 → 2.4.0.rc1
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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/bin/spree +1 -1
- data/bin/spree_cmd +1 -2
- data/lib/spree_cmd/extension.rb +2 -2
- data/lib/spree_cmd/installer.rb +14 -9
- data/lib/spree_cmd/templates/extension/Gemfile +2 -2
- data/lib/spree_cmd/templates/extension/extension.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7deb01d0ca4f249d9f0ac949daea3a2f8d6e9443
|
4
|
+
data.tar.gz: a7e58de892517c02ea24bd23d975d3846b31b770
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a4ee37f1d1a2a8197c53a8d7353103530340360fdb8176f4eb4808cfb27f490304e1e16523e6fb3053227dba90d2dc383da867e55402c05b3268273a2155536
|
7
|
+
data.tar.gz: 38f41a8d47df10b933f92091eab6b14b2d3374bcd0cbbecc2c50cddcf060b43d80322173f89ead9089697c34626bc26d4f2eb8c7f8de18994671e34e255a1bbe
|
data/README.md
CHANGED
@@ -48,8 +48,8 @@ Options
|
|
48
48
|
* `--auto_accept` to answer yes to all questions
|
49
49
|
* `--edge` to use the edge version of Spree
|
50
50
|
* `--path=../spree` to use a local version of spree
|
51
|
+
* `--branch=n-n-stable` to use git branch
|
51
52
|
* `--git=git@github.com:cmar/spree.git` to use git version of spree
|
52
|
-
* `--branch=my_changes` to use git branch
|
53
53
|
* `--ref=23423423423423` to use git reference
|
54
54
|
* `--tag=my_tag` to use git tag
|
55
55
|
|
data/bin/spree
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
require 'spree_cmd'
|
2
|
+
require 'spree_cmd'
|
data/bin/spree_cmd
CHANGED
data/lib/spree_cmd/extension.rb
CHANGED
@@ -38,7 +38,7 @@ module SpreeCmd
|
|
38
38
|
Please update the Versionfile to designate compatibility with different versions of Spree.
|
39
39
|
See http://spreecommerce.com/documentation/extensions.html#versionfile
|
40
40
|
|
41
|
-
Consider listing your extension in the official extension registry http://spreecommerce.com/extensions
|
41
|
+
Consider listing your extension in the official extension registry http://spreecommerce.com/extensions
|
42
42
|
|
43
43
|
#{'*' * 80}
|
44
44
|
}
|
@@ -50,7 +50,7 @@ module SpreeCmd
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def spree_version
|
53
|
-
'2.
|
53
|
+
'2.4.0.rc1'
|
54
54
|
end
|
55
55
|
|
56
56
|
def use_prefix(prefix)
|
data/lib/spree_cmd/installer.rb
CHANGED
@@ -42,14 +42,13 @@ module SpreeCmd
|
|
42
42
|
def prepare_options
|
43
43
|
@spree_gem_options = {}
|
44
44
|
|
45
|
-
if options[:edge]
|
45
|
+
if options[:edge] || options[:branch]
|
46
46
|
@spree_gem_options[:git] = 'https://github.com/spree/spree.git'
|
47
47
|
elsif options[:path]
|
48
48
|
@spree_gem_options[:path] = options[:path]
|
49
49
|
elsif options[:git]
|
50
50
|
@spree_gem_options[:git] = options[:git]
|
51
51
|
@spree_gem_options[:ref] = options[:ref] if options[:ref]
|
52
|
-
@spree_gem_options[:branch] = options[:branch] if options[:branch]
|
53
52
|
@spree_gem_options[:tag] = options[:tag] if options[:tag]
|
54
53
|
elsif options[:version]
|
55
54
|
@spree_gem_options[:version] = options[:version]
|
@@ -57,12 +56,14 @@ module SpreeCmd
|
|
57
56
|
version = Gem.loaded_specs['spree_cmd'].version
|
58
57
|
@spree_gem_options[:version] = version.to_s
|
59
58
|
end
|
59
|
+
|
60
|
+
@spree_gem_options[:branch] = options[:branch] if options[:branch]
|
60
61
|
end
|
61
62
|
|
62
63
|
def ask_questions
|
63
64
|
@install_default_gateways = ask_with_default('Would you like to install the default gateways? (Recommended)')
|
64
65
|
@install_default_auth = ask_with_default('Would you like to install the default authentication system?')
|
65
|
-
|
66
|
+
|
66
67
|
if @install_default_auth
|
67
68
|
@user_class = "Spree::User"
|
68
69
|
else
|
@@ -70,7 +71,7 @@ module SpreeCmd
|
|
70
71
|
if @user_class.blank?
|
71
72
|
@user_class = "User"
|
72
73
|
end
|
73
|
-
end
|
74
|
+
end
|
74
75
|
|
75
76
|
if options[:skip_install_data]
|
76
77
|
@run_migrations = false
|
@@ -93,12 +94,16 @@ module SpreeCmd
|
|
93
94
|
|
94
95
|
gem :spree, @spree_gem_options
|
95
96
|
|
96
|
-
if @install_default_gateways
|
97
|
-
gem :spree_gateway, :
|
97
|
+
if @install_default_gateways && @spree_gem_options[:branch]
|
98
|
+
gem :spree_gateway, github: 'spree/spree_gateway', branch: @spree_gem_options[:branch]
|
99
|
+
elsif @install_default_gateways
|
100
|
+
gem :spree_gateway, github: 'spree/spree_gateway'
|
98
101
|
end
|
99
102
|
|
100
|
-
if @install_default_auth
|
101
|
-
gem :spree_auth_devise, :
|
103
|
+
if @install_default_auth && @spree_gem_options[:branch]
|
104
|
+
gem :spree_auth_devise, github: 'spree/spree_auth_devise', branch: @spree_gem_options[:branch]
|
105
|
+
elsif @install_default_auth
|
106
|
+
gem :spree_auth_devise, github: 'spree/spree_auth_devise'
|
102
107
|
end
|
103
108
|
|
104
109
|
run 'bundle install', :capture => true
|
@@ -124,7 +129,7 @@ module SpreeCmd
|
|
124
129
|
say_status :gemfile, name
|
125
130
|
parts = ["'#{name}'"]
|
126
131
|
parts << ["'#{gem_options.delete(:version)}'"] if gem_options[:version]
|
127
|
-
gem_options.each { |key, value| parts << "
|
132
|
+
gem_options.each { |key, value| parts << "#{key}: '#{value}'" }
|
128
133
|
append_file 'Gemfile', "\ngem #{parts.join(', ')}", :verbose => false
|
129
134
|
end
|
130
135
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem 'spree', github: 'spree/spree', branch: '
|
3
|
+
gem 'spree', github: 'spree/spree', branch: 'master'
|
4
4
|
# Provides basic authentication functionality for testing parts of your engine
|
5
|
-
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '
|
5
|
+
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: 'master'
|
6
6
|
|
7
7
|
gemspec
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_development_dependency 'capybara', '~> 2.4'
|
22
22
|
s.add_development_dependency 'coffee-rails'
|
23
23
|
s.add_development_dependency 'database_cleaner'
|
24
|
-
s.add_development_dependency 'factory_girl', '~> 4.
|
24
|
+
s.add_development_dependency 'factory_girl', '~> 4.4'
|
25
25
|
s.add_development_dependency 'ffaker'
|
26
26
|
s.add_development_dependency 'rspec-rails', '~> 3.1'
|
27
27
|
s.add_development_dependency 'sass-rails', '~> 4.0.2'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_cmd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Mar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -93,12 +93,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
93
93
|
version: '0'
|
94
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
|
-
- - "
|
96
|
+
- - ">"
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
98
|
+
version: 1.3.1
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project: spree_cmd
|
101
|
-
rubygems_version: 2.
|
101
|
+
rubygems_version: 2.2.2
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: Spree Commerce command line utility
|