solidus_dev_support 1.1.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +7 -16
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -1
- data/.github_changelog_generator +4 -0
- data/.mergify.yml +39 -0
- data/.rubocop.yml +42 -0
- data/CHANGELOG.md +74 -5
- data/Gemfile +1 -1
- data/OLD_CHANGELOG.md +200 -0
- data/README.md +13 -6
- data/Rakefile +11 -1
- data/lib/solidus_dev_support/extension.rb +1 -1
- data/lib/solidus_dev_support/rake_tasks.rb +12 -0
- data/lib/solidus_dev_support/rspec/feature_helper.rb +18 -9
- data/lib/solidus_dev_support/rspec/rails_helper.rb +28 -0
- data/lib/solidus_dev_support/rubocop/config.yml +82 -202
- data/lib/solidus_dev_support/solidus_command.rb +0 -1
- data/lib/solidus_dev_support/templates/extension/.circleci/config.yml +6 -0
- data/lib/solidus_dev_support/templates/extension/README.md +43 -22
- data/lib/solidus_dev_support/templates/extension/bin/rails +7 -0
- data/lib/solidus_dev_support/templates/extension/bin/{r.tt → rails-engine.tt} +0 -0
- data/lib/solidus_dev_support/templates/extension/bin/{sandbox_rails → rails-sandbox} +1 -3
- data/lib/solidus_dev_support/templates/extension/bin/sandbox.tt +3 -0
- data/lib/solidus_dev_support/templates/extension/extension.gemspec.tt +2 -2
- data/lib/solidus_dev_support/templates/extension/gitignore +3 -0
- data/lib/solidus_dev_support/templates/extension/lib/%file_name%/engine.rb.tt +1 -1
- data/lib/solidus_dev_support/templates/extension/lib/generators/%file_name%/install/install_generator.rb.tt +5 -5
- data/lib/solidus_dev_support/templates/extension/rubocop.yml +0 -5
- data/lib/solidus_dev_support/templates/extension/spec/spec_helper.rb.tt +9 -2
- data/lib/solidus_dev_support/version.rb +1 -1
- data/solidus_dev_support.gemspec +14 -12
- data/spec/features/create_extension_spec.rb +166 -0
- data/spec/lib/extension_spec.rb +33 -0
- data/spec/spec_helper.rb +16 -0
- metadata +37 -27
- data/.github/stale.yml +0 -17
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'solidus_dev_support/extension'
|
2
|
+
|
3
|
+
RSpec.describe SolidusDevSupport::Extension do
|
4
|
+
describe '#default_homepage' do
|
5
|
+
before do
|
6
|
+
expect(subject).to receive(:git).with('remote get-url origin', any_args).and_return(remote)
|
7
|
+
expect(subject).to receive(:github_user).and_return('[USERNAME]')
|
8
|
+
expect(subject).to receive(:file_name).and_return('solidus_foo_bar')
|
9
|
+
end
|
10
|
+
|
11
|
+
context 'with a git ssh-style remote' do
|
12
|
+
let(:remote) { 'git@github.com:solidusio-contrib/solidus_extension_dev_tools.git' }
|
13
|
+
|
14
|
+
it 'generates a github home page value' do
|
15
|
+
expect(subject.default_homepage).to eq('https://github.com/solidusio-contrib/solidus_extension_dev_tools')
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
context 'with a git https remote' do
|
20
|
+
let(:remote) { 'https://github.com/solidusio-contrib/solidus_extension_dev_tools.git' }
|
21
|
+
|
22
|
+
it 'generates a github home page value' do
|
23
|
+
expect(subject.default_homepage).to eq('https://github.com/solidusio-contrib/solidus_extension_dev_tools')
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe '#default_gemspec' do
|
29
|
+
it 'has a changelog_uri' do
|
30
|
+
expect(subject.default_gemspec.metadata['changelog_uri']).to end_with('/releases')
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "solidus_dev_support"
|
5
|
+
|
6
|
+
RSpec.configure do |config|
|
7
|
+
# Enable flags like --only-failures and --next-failure
|
8
|
+
config.example_status_persistence_file_path = ".rspec_status"
|
9
|
+
|
10
|
+
# Disable RSpec exposing methods globally on `Module` and `main`
|
11
|
+
config.disable_monkey_patching!
|
12
|
+
|
13
|
+
config.expect_with :rspec do |c|
|
14
|
+
c.syntax = :expect
|
15
|
+
end
|
16
|
+
end
|
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: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Desantis
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apparition
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: '0.2'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: '0.2'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: database_cleaner
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,47 +151,47 @@ dependencies:
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '4.3'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: rspec_junit_formatter
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - "
|
157
|
+
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: '0'
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- - "
|
164
|
+
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
166
|
+
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
168
|
+
name: rspec-rails
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- - "
|
171
|
+
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
173
|
+
version: 4.0.0.beta3
|
174
174
|
type: :runtime
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- - "
|
178
|
+
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
180
|
+
version: 4.0.0.beta3
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: rubocop
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: 0.
|
187
|
+
version: 0.87.1
|
188
188
|
type: :runtime
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: 0.
|
194
|
+
version: 0.87.1
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: rubocop-performance
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -282,7 +282,7 @@ dependencies:
|
|
282
282
|
- - ">="
|
283
283
|
- !ruby/object:Gem::Version
|
284
284
|
version: '0'
|
285
|
-
description:
|
285
|
+
description:
|
286
286
|
email:
|
287
287
|
- alessandrodesantis@nebulab.it
|
288
288
|
executables:
|
@@ -293,14 +293,16 @@ files:
|
|
293
293
|
- ".circleci/config.yml"
|
294
294
|
- ".gem_release.yml"
|
295
295
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
296
|
-
- ".
|
296
|
+
- ".github_changelog_generator"
|
297
297
|
- ".gitignore"
|
298
|
+
- ".mergify.yml"
|
298
299
|
- ".rspec"
|
299
300
|
- ".rubocop-https---relaxed-ruby-style-rubocop-yml"
|
300
301
|
- ".rubocop.yml"
|
301
302
|
- CHANGELOG.md
|
302
303
|
- Gemfile
|
303
304
|
- LICENSE.txt
|
305
|
+
- OLD_CHANGELOG.md
|
304
306
|
- README.md
|
305
307
|
- Rakefile
|
306
308
|
- bin/console
|
@@ -330,10 +332,11 @@ files:
|
|
330
332
|
- lib/solidus_dev_support/templates/extension/app/assets/stylesheets/spree/backend/%file_name%.css
|
331
333
|
- lib/solidus_dev_support/templates/extension/app/assets/stylesheets/spree/frontend/%file_name%.css
|
332
334
|
- lib/solidus_dev_support/templates/extension/bin/console.tt
|
333
|
-
- lib/solidus_dev_support/templates/extension/bin/
|
335
|
+
- lib/solidus_dev_support/templates/extension/bin/rails
|
336
|
+
- lib/solidus_dev_support/templates/extension/bin/rails-engine.tt
|
337
|
+
- lib/solidus_dev_support/templates/extension/bin/rails-sandbox
|
334
338
|
- lib/solidus_dev_support/templates/extension/bin/rake
|
335
339
|
- lib/solidus_dev_support/templates/extension/bin/sandbox.tt
|
336
|
-
- lib/solidus_dev_support/templates/extension/bin/sandbox_rails
|
337
340
|
- lib/solidus_dev_support/templates/extension/bin/setup
|
338
341
|
- lib/solidus_dev_support/templates/extension/config/locales/en.yml
|
339
342
|
- lib/solidus_dev_support/templates/extension/config/routes.rb
|
@@ -351,29 +354,36 @@ files:
|
|
351
354
|
- lib/solidus_dev_support/testing_support/preferences.rb
|
352
355
|
- lib/solidus_dev_support/version.rb
|
353
356
|
- solidus_dev_support.gemspec
|
357
|
+
- spec/features/create_extension_spec.rb
|
358
|
+
- spec/lib/extension_spec.rb
|
359
|
+
- spec/spec_helper.rb
|
354
360
|
homepage: https://github.com/solidusio/solidus_dev_support
|
355
361
|
licenses:
|
356
362
|
- MIT
|
357
363
|
metadata:
|
358
364
|
homepage_uri: https://github.com/solidusio/solidus_dev_support
|
359
365
|
source_code_uri: https://github.com/solidusio/solidus_dev_support
|
360
|
-
|
366
|
+
changelog_uri: https://github.com/solidusio/solidus_dev_support/blob/master/CHANGELOG.md
|
367
|
+
post_install_message:
|
361
368
|
rdoc_options: []
|
362
369
|
require_paths:
|
363
370
|
- lib
|
364
371
|
required_ruby_version: !ruby/object:Gem::Requirement
|
365
372
|
requirements:
|
366
|
-
- - "
|
373
|
+
- - "~>"
|
367
374
|
- !ruby/object:Gem::Version
|
368
|
-
version: '
|
375
|
+
version: '2.5'
|
369
376
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
370
377
|
requirements:
|
371
378
|
- - ">="
|
372
379
|
- !ruby/object:Gem::Version
|
373
380
|
version: '0'
|
374
381
|
requirements: []
|
375
|
-
rubygems_version: 3.
|
376
|
-
signing_key:
|
382
|
+
rubygems_version: 3.1.4
|
383
|
+
signing_key:
|
377
384
|
specification_version: 4
|
378
385
|
summary: Development tools for Solidus extensions.
|
379
|
-
test_files:
|
386
|
+
test_files:
|
387
|
+
- spec/features/create_extension_spec.rb
|
388
|
+
- spec/lib/extension_spec.rb
|
389
|
+
- spec/spec_helper.rb
|
data/.github/stale.yml
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# Number of days of inactivity before an issue becomes stale
|
2
|
-
daysUntilStale: 60
|
3
|
-
# Number of days of inactivity before a stale issue is closed
|
4
|
-
daysUntilClose: 7
|
5
|
-
# Issues with these labels will never be considered stale
|
6
|
-
exemptLabels:
|
7
|
-
- pinned
|
8
|
-
- security
|
9
|
-
# Label to use when marking an issue as stale
|
10
|
-
staleLabel: wontfix
|
11
|
-
# Comment to post when marking an issue as stale. Set to `false` to disable
|
12
|
-
markComment: >
|
13
|
-
This issue has been automatically marked as stale because it has not had
|
14
|
-
recent activity. It will be closed if no further activity occurs. Thank you
|
15
|
-
for your contributions.
|
16
|
-
# Comment to post when closing a stale issue. Set to `false` to disable
|
17
|
-
closeComment: false
|