spree_cmd 4.2.0.rc5 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spree_cmd/templates/extension/Appraisals +1 -6
- data/lib/spree_cmd/templates/extension/README.md +10 -1
- data/lib/spree_cmd/templates/extension/extension.gemspec +2 -2
- data/lib/spree_cmd/templates/extension/gemfiles/spree_4_2.gemfile +1 -1
- data/lib/spree_cmd/templates/extension/gitignore +1 -0
- data/lib/spree_cmd/templates/extension/lib/%file_name%/version.rb.tt +3 -10
- data/lib/spree_cmd/templates/extension/lib/generators/%file_name%/install/install_generator.rb.tt +2 -2
- data/lib/spree_cmd/templates/extension/travis.yml +0 -4
- data/spree_cmd.gemspec +0 -1
- metadata +6 -21
- data/lib/spree_cmd/templates/extension/gemfiles/spree_4_1.gemfile +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad1688a7d098b63df9459015b68e6832f38171315bdc7533f189358d76107ded
|
4
|
+
data.tar.gz: 3201dc83e76114fc96bc2399af5619991d6e16b139cf116c80e77d010a2aa26d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d0e1823f584aca92eea6283f7ac35a786c071e88bc699942edd401413dbbd4b7ce64db7279d22bd475a94f02f94623cc6050f2a1f56032fa73c7b9d65c6aa67
|
7
|
+
data.tar.gz: 4e28c09af859c328a40d4b40fbe40e27e4da7dc49c27293c1f0f712a2cfdabd6992fb0af5a2e1f61e64caa840be0e59432387dcedebc824ce2689fa67fcdada9
|
@@ -7,7 +7,7 @@ Introduction goes here.
|
|
7
7
|
1. Add this extension to your Gemfile with this line:
|
8
8
|
|
9
9
|
```ruby
|
10
|
-
gem '<%= file_name %>'
|
10
|
+
gem '<%= file_name %>'
|
11
11
|
```
|
12
12
|
|
13
13
|
2. Install the gem using Bundler
|
@@ -42,6 +42,15 @@ Simply add this require statement to your spec_helper:
|
|
42
42
|
require '<%= file_name %>/factories'
|
43
43
|
```
|
44
44
|
|
45
|
+
## Releasing
|
46
|
+
|
47
|
+
```shell
|
48
|
+
bundle exec gem bump -p -t
|
49
|
+
bundle exec gem release
|
50
|
+
```
|
51
|
+
|
52
|
+
For more options please see [gem-release REAMDE](https://github.com/svenfuchs/gem-release)
|
53
|
+
|
45
54
|
## Contributing
|
46
55
|
|
47
56
|
If you'd like to contribute, please take a look at the
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.version = <%= class_name %>.version
|
11
11
|
s.summary = 'Add extension summary here'
|
12
12
|
s.description = 'Add (optional) extension description here'
|
13
|
-
s.required_ruby_version = '>= 2.
|
13
|
+
s.required_ruby_version = '>= 2.5.0'
|
14
14
|
|
15
15
|
s.author = 'You'
|
16
16
|
s.email = 'you@example.com'
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.require_path = 'lib'
|
22
22
|
s.requirements << 'none'
|
23
23
|
|
24
|
-
spree_version = '>=
|
24
|
+
spree_version = '>= 4.2.0', '< 6.0'
|
25
25
|
s.add_dependency 'spree_core', spree_version
|
26
26
|
s.add_dependency 'spree_api', spree_version
|
27
27
|
s.add_dependency 'spree_backend', spree_version
|
@@ -1,18 +1,11 @@
|
|
1
1
|
module <%= class_name %>
|
2
|
+
VERSION = '0.0.1'.freeze
|
3
|
+
|
2
4
|
module_function
|
3
5
|
|
4
6
|
# Returns the version of the currently loaded <%= class_name %> as a
|
5
7
|
# <tt>Gem::Version</tt>.
|
6
8
|
def version
|
7
|
-
Gem::Version.new VERSION
|
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('.')
|
9
|
+
Gem::Version.new VERSION
|
17
10
|
end
|
18
11
|
end
|
data/lib/spree_cmd/templates/extension/lib/generators/%file_name%/install/install_generator.rb.tt
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
module <%= class_name %>
|
2
2
|
module Generators
|
3
3
|
class InstallGenerator < Rails::Generators::Base
|
4
|
-
class_option :
|
4
|
+
class_option :migrate, type: :boolean, default: true
|
5
5
|
|
6
6
|
def add_migrations
|
7
7
|
run 'bundle exec rake railties:install:migrations FROM=<%= file_name %>'
|
8
8
|
end
|
9
9
|
|
10
10
|
def run_migrations
|
11
|
-
run_migrations = options[:
|
11
|
+
run_migrations = options[:migrate] || ['', 'y', 'Y'].include?(ask('Would you like to run the migrations now? [Y/n]'))
|
12
12
|
if run_migrations
|
13
13
|
run 'bundle exec rails db:migrate'
|
14
14
|
else
|
@@ -23,16 +23,12 @@ env:
|
|
23
23
|
- DB=postgres
|
24
24
|
|
25
25
|
gemfile:
|
26
|
-
- gemfiles/spree_4_1.gemfile
|
27
26
|
- gemfiles/spree_4_2.gemfile
|
28
27
|
- gemfiles/spree_master.gemfile
|
29
28
|
|
30
29
|
jobs:
|
31
30
|
allow_failures:
|
32
31
|
- gemfile: gemfiles/spree_master.gemfile
|
33
|
-
exclude:
|
34
|
-
- rvm: 3.0
|
35
|
-
gemfile: gemfiles/spree_4_1.gemfile
|
36
32
|
|
37
33
|
before_install:
|
38
34
|
- mysql -u root -e "GRANT ALL ON *.* TO 'travis'@'%';"
|
data/spree_cmd.gemspec
CHANGED
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_cmd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.0
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Mar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: rspec
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: thor
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -71,7 +57,6 @@ files:
|
|
71
57
|
- lib/spree_cmd/templates/extension/config/locales/en.yml
|
72
58
|
- lib/spree_cmd/templates/extension/config/routes.rb
|
73
59
|
- lib/spree_cmd/templates/extension/extension.gemspec
|
74
|
-
- lib/spree_cmd/templates/extension/gemfiles/spree_4_1.gemfile
|
75
60
|
- lib/spree_cmd/templates/extension/gemfiles/spree_4_2.gemfile
|
76
61
|
- lib/spree_cmd/templates/extension/gemfiles/spree_master.gemfile
|
77
62
|
- lib/spree_cmd/templates/extension/gitignore
|
@@ -90,9 +75,9 @@ licenses:
|
|
90
75
|
- BSD-3-Clause
|
91
76
|
metadata:
|
92
77
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
93
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v4.2.0
|
78
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v4.2.0
|
94
79
|
documentation_uri: https://guides.spreecommerce.org/
|
95
|
-
source_code_uri: https://github.com/spree/spree/tree/v4.2.0
|
80
|
+
source_code_uri: https://github.com/spree/spree/tree/v4.2.0
|
96
81
|
post_install_message:
|
97
82
|
rdoc_options: []
|
98
83
|
require_paths:
|
@@ -104,9 +89,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
104
89
|
version: '0'
|
105
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
91
|
requirements:
|
107
|
-
- - "
|
92
|
+
- - ">="
|
108
93
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
94
|
+
version: '0'
|
110
95
|
requirements: []
|
111
96
|
rubygems_version: 3.1.4
|
112
97
|
signing_key:
|