spree_cmd 3.2.0.rc1 → 3.2.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49eb51684f60ae501ed44480e32570cfab1398a1
4
- data.tar.gz: 29a3a5a0f2f68099e2322cd20f3cdab3fe91631a
3
+ metadata.gz: 2c9f1fdf3c81da892e2ef530cba7cb2fab6fdbfd
4
+ data.tar.gz: b76f62a611821a8a9f4bd23a4985a22d9441beb1
5
5
  SHA512:
6
- metadata.gz: 31b2513e8d8a315227273489eac7a43655e9338fa9814ae1e4383c1f955229ac4ed275aa62069467a9f4be3682b6eb2319a4275d4e9de24c564091ff07dad065
7
- data.tar.gz: 983d9ee09137bd9fbe89628ec874cafb4f9cd025b7b29fbdf4699b22c2e21a14c81e62aea7fee7c746be947568e28df3fc31bcbaf17fce43853a9b73c48062cb
6
+ metadata.gz: d081f49d9e254904f9a380e9c1e4b658aef5b2479b5e6298a83030cd98f2ab09ca47538e0269549ab5b3f002093bf3339de37486b4828e0073993d723fe5f048
7
+ data.tar.gz: 6eccf33945d5c87941c4a248209ab938a781f0215b87ae4bc3b457a2e0136c3908f2a1cfd6e83c8f117eff2ba99d01b02d05aa351a060c8b40ad583c2dcffab1
@@ -15,6 +15,7 @@ module SpreeCmd
15
15
  directory 'app', "#{file_name}/app"
16
16
  directory 'lib', "#{file_name}/lib"
17
17
  directory 'bin', "#{file_name}/bin"
18
+ directory 'gemfiles', "#{file_name}/gemfiles"
18
19
 
19
20
  template 'extension.gemspec', "#{file_name}/#{file_name}.gemspec"
20
21
  template 'Gemfile', "#{file_name}/Gemfile"
@@ -26,6 +27,8 @@ module SpreeCmd
26
27
  template 'config/locales/en.yml', "#{file_name}/config/locales/en.yml"
27
28
  template 'rspec', "#{file_name}/.rspec"
28
29
  template 'spec/spec_helper.rb.tt', "#{file_name}/spec/spec_helper.rb"
30
+ template 'travis.yml', "#{file_name}/.travis.yml"
31
+ template 'Appraisals', "#{file_name}/Appraisals"
29
32
  end
30
33
 
31
34
  def final_banner
@@ -0,0 +1,16 @@
1
+ appraise 'spree-3-1' do
2
+ gem 'spree', '~> 3.1.0'
3
+ gem 'spree_auth_devise', '~> 3.1.0'
4
+ end
5
+
6
+ appraise 'spree-3-2' do
7
+ gem 'spree', '~> 3.2.0.rc1'
8
+ gem 'spree_auth_devise', '~> 3.2.0.beta'
9
+ gem 'rails-controller-testing'
10
+ end
11
+
12
+ appraise 'spree-master' do
13
+ gem 'spree', github: 'spree/spree', branch: 'master'
14
+ gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: 'master'
15
+ gem 'rails-controller-testing'
16
+ end
@@ -7,12 +7,9 @@ Introduction goes here.
7
7
 
8
8
  1. Add this extension to your Gemfile with this line:
9
9
  ```ruby
10
- gem '<%= file_name %>', github: '[your-github-handle]/<%= file_name %>', branch: 'X-X-stable'
10
+ gem '<%= file_name %>', github: '[your-github-handle]/<%= file_name %>'
11
11
  ```
12
12
 
13
- The `branch` option is important: it must match the version of Spree you're using.
14
- For example, use `3-1-stable` if you're using Spree `3-1-stable` or any `3.1.x` version.
15
-
16
13
  2. Install the gem using Bundler:
17
14
  ```ruby
18
15
  bundle install
@@ -1,10 +1,15 @@
1
1
  # encoding: UTF-8
2
+ lib = File.expand_path('../lib/', __FILE__)
3
+ $LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
4
+
5
+ require '<%=file_name%>/version'
6
+
2
7
  Gem::Specification.new do |s|
3
8
  s.platform = Gem::Platform::RUBY
4
9
  s.name = '<%= file_name %>'
5
- s.version = '<%= spree_version %>'
6
10
  s.summary = 'TODO: Add gem summary here'
7
11
  s.description = 'TODO: Add (optional) gem description here'
12
+ s.version = <%= class_name %>.version
8
13
  s.required_ruby_version = '>= 2.2.2'
9
14
 
10
15
  # s.author = 'You'
@@ -17,9 +22,10 @@ Gem::Specification.new do |s|
17
22
  s.require_path = 'lib'
18
23
  s.requirements << 'none'
19
24
 
20
- s.add_dependency 'spree_core', '~> <%= spree_version %>'
25
+ s.add_dependency 'spree_core', '>= 3.1.0', '< 4.0'
21
26
 
22
27
  s.add_development_dependency 'capybara'
28
+ s.add_development_dependency 'capybara-screenshot'
23
29
  s.add_development_dependency 'coffee-rails'
24
30
  s.add_development_dependency 'database_cleaner'
25
31
  s.add_development_dependency 'factory_girl'
@@ -28,5 +34,7 @@ Gem::Specification.new do |s|
28
34
  s.add_development_dependency 'sass-rails'
29
35
  s.add_development_dependency 'selenium-webdriver'
30
36
  s.add_development_dependency 'simplecov'
31
- s.add_development_dependency 'sqlite3'
37
+ s.add_development_dependency 'pg'
38
+ s.add_development_dependency 'mysql2'
39
+ s.add_development_dependency 'appraisal'
32
40
  end
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "spree", "~> 3.1.0"
6
+ gem "spree_auth_devise", "~> 3.1.0"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "spree", "~> 3.2.0.rc1"
6
+ gem "spree_auth_devise", "~> 3.2.0.beta"
7
+ gem "rails-controller-testing"
8
+
9
+ gemspec :path => "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "spree", :github => "spree/spree", :branch => "master"
6
+ gem "spree_auth_devise", :github => "spree/spree_auth_devise", :branch => "master"
7
+ gem "rails-controller-testing"
8
+
9
+ gemspec :path => "../"
@@ -3,16 +3,19 @@
3
3
  .#*
4
4
  .DS_Store
5
5
  .idea
6
+ .localeapp/locales
6
7
  .project
7
- .sass-cache
8
8
  coverage
9
+ default
9
10
  Gemfile.lock
10
11
  tmp
11
12
  nbproject
12
13
  pkg
13
- *.swp
14
+ *.sw?
14
15
  spec/dummy
15
- .bundle
16
16
  .rvmrc
17
+ .sass-cache
18
+ public/spree
17
19
  .ruby-version
18
20
  .ruby-gemset
21
+ gemfiles/*.gemfile.lock
@@ -1,2 +1,3 @@
1
1
  require 'spree_core'
2
2
  require '<%=file_name%>/engine'
3
+ require '<%=file_name%>/version'
@@ -0,0 +1,18 @@
1
+ module <%= class_name %>
2
+ module_function
3
+
4
+ # Returns the version of the currently loaded <%= class_name %> as a
5
+ # <tt>Gem::Version</tt>.
6
+ def version
7
+ Gem::Version.new VERSION::STRING
8
+ end
9
+
10
+ module VERSION
11
+ MAJOR = 0
12
+ MINOR = 0
13
+ TINY = 1
14
+ PRE = 'alpha'.freeze
15
+
16
+ STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
17
+ end
18
+ end
@@ -1 +1,3 @@
1
- --color
1
+ --color
2
+ -r spec_helper
3
+ -f documentation
@@ -0,0 +1,28 @@
1
+ sudo: required
2
+ dist: trusty
3
+
4
+ language: ruby
5
+
6
+ env:
7
+ - DB=postgres
8
+ - DB=mysql
9
+
10
+ gemfile:
11
+ - gemfiles/spree_3_1.gemfile
12
+ - gemfiles/spree_3_2.gemfile
13
+ - gemfiles/spree_master.gemfile
14
+
15
+ script:
16
+ - bundle exec rake test_app
17
+ - bundle exec rake spec
18
+
19
+ rvm:
20
+ - 2.3.1
21
+ - 2.2.5
22
+
23
+ addons:
24
+ apt:
25
+ packages:
26
+ - mysql-server-5.6
27
+ - mysql-client-core-5.6
28
+ - mysql-client-5.6
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: 3.2.0.rc1
4
+ version: 3.2.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Mar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-07 00:00:00.000000000 Z
11
+ date: 2016-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -54,6 +54,7 @@ files:
54
54
  - bin/spree_cmd
55
55
  - lib/spree_cmd.rb
56
56
  - lib/spree_cmd/extension.rb
57
+ - lib/spree_cmd/templates/extension/Appraisals
57
58
  - lib/spree_cmd/templates/extension/CONTRIBUTING.md
58
59
  - lib/spree_cmd/templates/extension/Gemfile
59
60
  - lib/spree_cmd/templates/extension/LICENSE
@@ -67,13 +68,18 @@ files:
67
68
  - lib/spree_cmd/templates/extension/config/locales/en.yml
68
69
  - lib/spree_cmd/templates/extension/config/routes.rb
69
70
  - lib/spree_cmd/templates/extension/extension.gemspec
71
+ - lib/spree_cmd/templates/extension/gemfiles/spree_3_1.gemfile
72
+ - lib/spree_cmd/templates/extension/gemfiles/spree_3_2.gemfile
73
+ - lib/spree_cmd/templates/extension/gemfiles/spree_master.gemfile
70
74
  - lib/spree_cmd/templates/extension/gitignore
71
75
  - lib/spree_cmd/templates/extension/lib/%file_name%.rb.tt
72
76
  - lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
73
77
  - lib/spree_cmd/templates/extension/lib/%file_name%/factories.rb.tt
78
+ - lib/spree_cmd/templates/extension/lib/%file_name%/version.rb.tt
74
79
  - lib/spree_cmd/templates/extension/lib/generators/%file_name%/install/install_generator.rb.tt
75
80
  - lib/spree_cmd/templates/extension/rspec
76
81
  - lib/spree_cmd/templates/extension/spec/spec_helper.rb.tt
82
+ - lib/spree_cmd/templates/extension/travis.yml
77
83
  - lib/spree_cmd/version.rb
78
84
  - spree_cmd.gemspec
79
85
  homepage: http://spreecommerce.com