solidus_dev_support 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/CHANGELOG.md +18 -1
- data/Gemfile +4 -0
- data/README.md +24 -6
- data/lib/solidus_dev_support/rake_tasks.rb +6 -0
- data/lib/solidus_dev_support/templates/extension/Gemfile +4 -0
- data/lib/solidus_dev_support/templates/extension/Rakefile +1 -1
- data/lib/solidus_dev_support/templates/extension/bin/setup +1 -1
- data/lib/solidus_dev_support/templates/extension/lib/%file_name%/engine.rb.tt +1 -1
- data/lib/solidus_dev_support/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fe993c357db63da319ab7b482eabd1ab7ceedf0a1f83d1f851f4eda2a195b4a
|
4
|
+
data.tar.gz: 0b63c3d1e43bd550057bfa6e713dd995626f97f69ed319dd8b331f3391e08557
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a021a1a433d58aafba6b5e795e190a6d16cbe58f10a11906a4a0039faa6bf80e3cab2819091e85df725e53c623689e7e5ef5e4e8af82c5865cb7fcd1f8153b2c
|
7
|
+
data.tar.gz: 5bc26377586f11f2ac750251adf044aa62c11be97b9edb2037ae4463cbd3be080bcb8418571ae9c0b5321f3273739310ab3678a10c9f48349db6880e84e8929a
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,22 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [0.6.0] - 2020-01-20
|
11
|
+
|
12
|
+
### Added
|
13
|
+
|
14
|
+
- Added support for a local Gemfile for local development dependencies (e.g. 'pry-debug')
|
15
|
+
|
16
|
+
### Changed
|
17
|
+
|
18
|
+
- The default rake task no longer re-generates the `test_app` each time it runs.
|
19
|
+
In order to get that behavior back simply call clobber before launching it:
|
20
|
+
`bin/rake clobber default`
|
21
|
+
|
22
|
+
### Fixed
|
23
|
+
|
24
|
+
- Fixed generated extensions isolating the wrong namespace
|
25
|
+
|
10
26
|
## [0.5.0] - 2020-01-16
|
11
27
|
|
12
28
|
### Added
|
@@ -104,7 +120,8 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
104
120
|
|
105
121
|
Initial release.
|
106
122
|
|
107
|
-
[Unreleased]: https://github.com/solidusio/solidus_dev_support/compare/v0.
|
123
|
+
[Unreleased]: https://github.com/solidusio/solidus_dev_support/compare/v0.6.0...HEAD
|
124
|
+
[0.6.0]: https://github.com/solidusio/solidus_dev_support/compare/v0.5.0...v0.6.0
|
108
125
|
[0.5.0]: https://github.com/solidusio/solidus_dev_support/compare/v0.4.1...v0.5.0
|
109
126
|
[0.4.1]: https://github.com/solidusio/solidus_dev_support/compare/v0.4.0...v0.4.1
|
110
127
|
[0.4.0]: https://github.com/solidusio/solidus_dev_support/compare/v0.3.0...v0.4.0
|
data/Gemfile
CHANGED
@@ -21,3 +21,7 @@ group :test do
|
|
21
21
|
gem 'pg'
|
22
22
|
gem 'sqlite3'
|
23
23
|
end
|
24
|
+
|
25
|
+
# Use a local Gemfile to include development dependencies that might not be
|
26
|
+
# relevant for the project or for other contributors, e.g.: `gem 'pry-debug'`.
|
27
|
+
eval_gemfile 'Gemfile-local' if File.exist? 'Gemfile-local'
|
data/README.md
CHANGED
@@ -34,6 +34,19 @@ $ solidus extension my_awesome_extension
|
|
34
34
|
This will generate the basic extension structure, already configured to use all the shiny helpers
|
35
35
|
in solidus_dev_support.
|
36
36
|
|
37
|
+
#### Updating existing extensions
|
38
|
+
|
39
|
+
If you have an existing extension and want to update it to use the latest standards from this gem,
|
40
|
+
you can run the following in the extension's directory:
|
41
|
+
|
42
|
+
```console
|
43
|
+
$ solidus extension .
|
44
|
+
```
|
45
|
+
|
46
|
+
In case of conflicting files, you will be prompted for an action. You can overwrite the files with
|
47
|
+
the new version, keep the current version or view the diff and only apply the adjustments that make
|
48
|
+
sense to you.
|
49
|
+
|
37
50
|
### RSpec helpers
|
38
51
|
|
39
52
|
This gem provides some useful helpers for RSpec to setup an extension's test environment easily.
|
@@ -123,15 +136,16 @@ releases for your gem.
|
|
123
136
|
For instance, you can run the following to release a new minor version:
|
124
137
|
|
125
138
|
```console
|
126
|
-
$ gem bump
|
139
|
+
$ gem bump -v minor -r
|
127
140
|
```
|
128
141
|
|
129
142
|
The above command will:
|
130
143
|
|
131
|
-
* bump the gem version to the next minor
|
132
|
-
|
144
|
+
* bump the gem version to the next minor (you can also use `patch`, `major` or a specific version
|
145
|
+
number);
|
146
|
+
* commit the change and push it to `origin/master`;
|
133
147
|
* create a Git tag;
|
134
|
-
* push the tag to the `
|
148
|
+
* push the tag to the `origin` remote;
|
135
149
|
* release the new version on RubyGems.
|
136
150
|
|
137
151
|
You can refer to
|
@@ -146,7 +160,7 @@ To install extension-related Rake tasks, add this to your `Rakefile`:
|
|
146
160
|
require 'solidus_dev_support/rake_tasks'
|
147
161
|
SolidusDevSupport::RakeTasks.install
|
148
162
|
|
149
|
-
task default:
|
163
|
+
task default: 'extension:specs'
|
150
164
|
```
|
151
165
|
|
152
166
|
(If your extension used the legacy extension Rakefile, then you should completely replace its
|
@@ -157,7 +171,11 @@ This will provide the following tasks:
|
|
157
171
|
- `extension:test_app`, which generates a dummy app for your extension
|
158
172
|
- `extension:specs` (default), which runs the specs for your extension
|
159
173
|
|
160
|
-
|
174
|
+
If your extension requires the `test_app` to be always recreated you can do so by running:
|
175
|
+
|
176
|
+
```rb
|
177
|
+
bundle exec rake extension:test_app extension:specs
|
178
|
+
```
|
161
179
|
|
162
180
|
## Development
|
163
181
|
|
@@ -34,10 +34,16 @@ module SolidusDevSupport
|
|
34
34
|
::CLOBBER.include test_app_path
|
35
35
|
|
36
36
|
namespace :extension do
|
37
|
+
# We need to go back to the gem root since the upstream
|
38
|
+
# extension:test_app changes the working directory to be the dummy app.
|
37
39
|
task :test_app do
|
38
40
|
Rake::Task['extension:test_app'].invoke
|
39
41
|
cd root
|
40
42
|
end
|
43
|
+
|
44
|
+
directory ENV['DUMMY_PATH'] do
|
45
|
+
Rake::Task['extension:test_app'].invoke
|
46
|
+
end
|
41
47
|
end
|
42
48
|
end
|
43
49
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_dev_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Desantis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apparition
|