solidus_dev_support 1.2.0 → 2.0.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 +10 -17
- 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 +85 -7
- 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/capybara.rb +18 -0
- data/lib/solidus_dev_support/rspec/feature_helper.rb +17 -18
- 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/.github/stale.yml +4 -4
- data/lib/solidus_dev_support/templates/extension/README.md +47 -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 +2 -0
- data/lib/solidus_dev_support/templates/extension/extension.gemspec.tt +3 -3
- data/lib/solidus_dev_support/templates/extension/gitignore +3 -0
- 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 +5 -1
- data/solidus_dev_support.gemspec +16 -14
- data/spec/features/create_extension_spec.rb +171 -0
- data/spec/lib/extension_spec.rb +33 -0
- data/spec/spec_helper.rb +16 -0
- metadata +52 -41
- 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,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_dev_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.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-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: apparition
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0.4'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0.4'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: capybara
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +44,14 @@ dependencies:
|
|
58
44
|
requirements:
|
59
45
|
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
47
|
+
version: '0.2'
|
62
48
|
type: :runtime
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
52
|
- - "~>"
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
54
|
+
version: '0.2'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: database_cleaner
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,47 +137,47 @@ dependencies:
|
|
151
137
|
- !ruby/object:Gem::Version
|
152
138
|
version: '4.3'
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
140
|
+
name: rspec_junit_formatter
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
156
142
|
requirements:
|
157
|
-
- - "
|
143
|
+
- - ">="
|
158
144
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
145
|
+
version: '0'
|
160
146
|
type: :runtime
|
161
147
|
prerelease: false
|
162
148
|
version_requirements: !ruby/object:Gem::Requirement
|
163
149
|
requirements:
|
164
|
-
- - "
|
150
|
+
- - ">="
|
165
151
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
152
|
+
version: '0'
|
167
153
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
154
|
+
name: rspec-rails
|
169
155
|
requirement: !ruby/object:Gem::Requirement
|
170
156
|
requirements:
|
171
|
-
- - "
|
157
|
+
- - "~>"
|
172
158
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
159
|
+
version: 4.0.0.beta3
|
174
160
|
type: :runtime
|
175
161
|
prerelease: false
|
176
162
|
version_requirements: !ruby/object:Gem::Requirement
|
177
163
|
requirements:
|
178
|
-
- - "
|
164
|
+
- - "~>"
|
179
165
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
166
|
+
version: 4.0.0.beta3
|
181
167
|
- !ruby/object:Gem::Dependency
|
182
168
|
name: rubocop
|
183
169
|
requirement: !ruby/object:Gem::Requirement
|
184
170
|
requirements:
|
185
171
|
- - "~>"
|
186
172
|
- !ruby/object:Gem::Version
|
187
|
-
version: 0.
|
173
|
+
version: '0.90'
|
188
174
|
type: :runtime
|
189
175
|
prerelease: false
|
190
176
|
version_requirements: !ruby/object:Gem::Requirement
|
191
177
|
requirements:
|
192
178
|
- - "~>"
|
193
179
|
- !ruby/object:Gem::Version
|
194
|
-
version: 0.
|
180
|
+
version: '0.90'
|
195
181
|
- !ruby/object:Gem::Dependency
|
196
182
|
name: rubocop-performance
|
197
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -254,6 +240,20 @@ dependencies:
|
|
254
240
|
- - "<"
|
255
241
|
- !ruby/object:Gem::Version
|
256
242
|
version: '3'
|
243
|
+
- !ruby/object:Gem::Dependency
|
244
|
+
name: webdrivers
|
245
|
+
requirement: !ruby/object:Gem::Requirement
|
246
|
+
requirements:
|
247
|
+
- - "~>"
|
248
|
+
- !ruby/object:Gem::Version
|
249
|
+
version: '4.4'
|
250
|
+
type: :runtime
|
251
|
+
prerelease: false
|
252
|
+
version_requirements: !ruby/object:Gem::Requirement
|
253
|
+
requirements:
|
254
|
+
- - "~>"
|
255
|
+
- !ruby/object:Gem::Version
|
256
|
+
version: '4.4'
|
257
257
|
- !ruby/object:Gem::Dependency
|
258
258
|
name: bundler
|
259
259
|
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
|
@@ -311,6 +313,7 @@ files:
|
|
311
313
|
- lib/solidus_dev_support.rb
|
312
314
|
- lib/solidus_dev_support/extension.rb
|
313
315
|
- lib/solidus_dev_support/rake_tasks.rb
|
316
|
+
- lib/solidus_dev_support/rspec/capybara.rb
|
314
317
|
- lib/solidus_dev_support/rspec/coverage.rb
|
315
318
|
- lib/solidus_dev_support/rspec/feature_helper.rb
|
316
319
|
- lib/solidus_dev_support/rspec/rails_helper.rb
|
@@ -330,10 +333,11 @@ files:
|
|
330
333
|
- lib/solidus_dev_support/templates/extension/app/assets/stylesheets/spree/backend/%file_name%.css
|
331
334
|
- lib/solidus_dev_support/templates/extension/app/assets/stylesheets/spree/frontend/%file_name%.css
|
332
335
|
- lib/solidus_dev_support/templates/extension/bin/console.tt
|
333
|
-
- lib/solidus_dev_support/templates/extension/bin/
|
336
|
+
- lib/solidus_dev_support/templates/extension/bin/rails
|
337
|
+
- lib/solidus_dev_support/templates/extension/bin/rails-engine.tt
|
338
|
+
- lib/solidus_dev_support/templates/extension/bin/rails-sandbox
|
334
339
|
- lib/solidus_dev_support/templates/extension/bin/rake
|
335
340
|
- lib/solidus_dev_support/templates/extension/bin/sandbox.tt
|
336
|
-
- lib/solidus_dev_support/templates/extension/bin/sandbox_rails
|
337
341
|
- lib/solidus_dev_support/templates/extension/bin/setup
|
338
342
|
- lib/solidus_dev_support/templates/extension/config/locales/en.yml
|
339
343
|
- lib/solidus_dev_support/templates/extension/config/routes.rb
|
@@ -351,29 +355,36 @@ files:
|
|
351
355
|
- lib/solidus_dev_support/testing_support/preferences.rb
|
352
356
|
- lib/solidus_dev_support/version.rb
|
353
357
|
- solidus_dev_support.gemspec
|
358
|
+
- spec/features/create_extension_spec.rb
|
359
|
+
- spec/lib/extension_spec.rb
|
360
|
+
- spec/spec_helper.rb
|
354
361
|
homepage: https://github.com/solidusio/solidus_dev_support
|
355
362
|
licenses:
|
356
363
|
- MIT
|
357
364
|
metadata:
|
358
365
|
homepage_uri: https://github.com/solidusio/solidus_dev_support
|
359
366
|
source_code_uri: https://github.com/solidusio/solidus_dev_support
|
360
|
-
|
367
|
+
changelog_uri: https://github.com/solidusio/solidus_dev_support/blob/master/CHANGELOG.md
|
368
|
+
post_install_message:
|
361
369
|
rdoc_options: []
|
362
370
|
require_paths:
|
363
371
|
- lib
|
364
372
|
required_ruby_version: !ruby/object:Gem::Requirement
|
365
373
|
requirements:
|
366
|
-
- - "
|
374
|
+
- - "~>"
|
367
375
|
- !ruby/object:Gem::Version
|
368
|
-
version: '
|
376
|
+
version: '2.5'
|
369
377
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
370
378
|
requirements:
|
371
379
|
- - ">="
|
372
380
|
- !ruby/object:Gem::Version
|
373
381
|
version: '0'
|
374
382
|
requirements: []
|
375
|
-
rubygems_version: 3.
|
376
|
-
signing_key:
|
383
|
+
rubygems_version: 3.1.2
|
384
|
+
signing_key:
|
377
385
|
specification_version: 4
|
378
386
|
summary: Development tools for Solidus extensions.
|
379
|
-
test_files:
|
387
|
+
test_files:
|
388
|
+
- spec/features/create_extension_spec.rb
|
389
|
+
- spec/lib/extension_spec.rb
|
390
|
+
- 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
|