solidus_dev_support 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/solidus_dev_support/extension.rb +1 -0
- data/lib/solidus_dev_support/rubocop/config.yml +1 -1
- data/lib/solidus_dev_support/templates/extension/github_changelog_generator +2 -0
- data/lib/solidus_dev_support/templates/extension/lib/%file_name%.rb.tt +13 -0
- data/lib/solidus_dev_support/templates/extension/lib/%file_name%/configuration.rb.tt +8 -0
- data/lib/solidus_dev_support/templates/extension/lib/%file_name%/{factories.rb.tt → testing_support/factories.rb.tt} +0 -0
- data/lib/solidus_dev_support/templates/extension/lib/generators/%file_name%/install/install_generator.rb.tt +5 -0
- data/lib/solidus_dev_support/templates/extension/lib/generators/%file_name%/install/templates/initializer.rb.tt +6 -0
- data/lib/solidus_dev_support/templates/extension/rubocop.yml +3 -0
- data/lib/solidus_dev_support/templates/extension/spec/spec_helper.rb.tt +2 -2
- data/lib/solidus_dev_support/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 775cf185474367ed130d07d17702a80fe73b1f30c16c904d3f0ec2a6ae6d030b
|
4
|
+
data.tar.gz: 3cb289f1aa0ac28cae5d1df0f2508acf87c705f07cd706ee4c05f014517d7357
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8051cde4fdfb198b4e034fd67204e8f04f0e91eda4d8c92bf1f7a88b62bfd4a3ebb5d3c9e6e253bf52f3d6589efc9c9c866ccf06124cd77adbff0f06bed23f00
|
7
|
+
data.tar.gz: d06396c50c33c207ecbbbc9181a92aa1eeda7daab6f79268128d72b8419d7f755ef923aea33b25505e6faaad187d7bce6428a84b6f2436c5d8ce20702e9aec47
|
@@ -40,6 +40,7 @@ module SolidusDevSupport
|
|
40
40
|
template 'rspec', "#{path}/.rspec"
|
41
41
|
template 'spec/spec_helper.rb.tt', "#{path}/spec/spec_helper.rb"
|
42
42
|
template 'rubocop.yml', "#{path}/.rubocop.yml"
|
43
|
+
template 'github_changelog_generator', "#{path}/.github_changelog_generator"
|
43
44
|
end
|
44
45
|
|
45
46
|
no_tasks do
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require: ["rubocop-rspec", "rubocop-rails", "rubocop-performance"]
|
2
2
|
|
3
|
-
AllCops: {TargetRubyVersion: 2.5, Exclude: ["spec/dummy/**/*", "sandbox/**/*", "vendor/**/*"]
|
3
|
+
AllCops: {TargetRubyVersion: 2.5, Exclude: ["spec/dummy/**/*", "sandbox/**/*", "vendor/**/*"]}
|
4
4
|
|
5
5
|
Layout/ArgumentAlignment: {EnforcedStyle: with_fixed_indentation}
|
6
6
|
Layout/DotPosition: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#layoutdotposition"}
|
@@ -3,5 +3,18 @@
|
|
3
3
|
require 'solidus_core'
|
4
4
|
require 'solidus_support'
|
5
5
|
|
6
|
+
require '<%=file_name%>/configuration'
|
6
7
|
require '<%=file_name%>/version'
|
7
8
|
require '<%=file_name%>/engine'
|
9
|
+
|
10
|
+
module <%= class_name %>
|
11
|
+
class << self
|
12
|
+
def configuration
|
13
|
+
@configuration ||= Configuration.new
|
14
|
+
end
|
15
|
+
|
16
|
+
def configure
|
17
|
+
yield configuration
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
File without changes
|
@@ -4,6 +4,11 @@ module <%= class_name %>
|
|
4
4
|
module Generators
|
5
5
|
class InstallGenerator < Rails::Generators::Base
|
6
6
|
class_option :auto_run_migrations, type: :boolean, default: false
|
7
|
+
source_root File.expand_path('templates', __dir__)
|
8
|
+
|
9
|
+
def copy_initializer
|
10
|
+
template 'initializer.rb', 'config/initializers/<%= file_name %>.rb'
|
11
|
+
end
|
7
12
|
|
8
13
|
def add_javascripts
|
9
14
|
append_file 'vendor/assets/javascripts/spree/frontend/all.js', "//= require spree/frontend/<%= file_name %>\n"
|
@@ -18,8 +18,8 @@ require 'solidus_dev_support/rspec/feature_helper'
|
|
18
18
|
# in spec/support/ and its subdirectories.
|
19
19
|
Dir["#{__dir__}/support/**/*.rb"].sort.each { |f| require f }
|
20
20
|
|
21
|
-
# Requires factories defined in lib/<%= file_name %>/factories.rb
|
22
|
-
require '<%= file_name %>/factories'
|
21
|
+
# Requires factories defined in lib/<%= file_name %>/testing_support/factories.rb
|
22
|
+
require '<%= file_name %>/testing_support/factories'
|
23
23
|
|
24
24
|
RSpec.configure do |config|
|
25
25
|
config.infer_spec_type_from_file_location!
|
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: 2.0
|
4
|
+
version: 2.1.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-
|
11
|
+
date: 2020-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -343,12 +343,15 @@ files:
|
|
343
343
|
- lib/solidus_dev_support/templates/extension/config/routes.rb
|
344
344
|
- lib/solidus_dev_support/templates/extension/extension.gemspec.tt
|
345
345
|
- lib/solidus_dev_support/templates/extension/gem_release.yml.tt
|
346
|
+
- lib/solidus_dev_support/templates/extension/github_changelog_generator
|
346
347
|
- lib/solidus_dev_support/templates/extension/gitignore
|
347
348
|
- lib/solidus_dev_support/templates/extension/lib/%file_name%.rb.tt
|
349
|
+
- lib/solidus_dev_support/templates/extension/lib/%file_name%/configuration.rb.tt
|
348
350
|
- lib/solidus_dev_support/templates/extension/lib/%file_name%/engine.rb.tt
|
349
|
-
- lib/solidus_dev_support/templates/extension/lib/%file_name%/factories.rb.tt
|
351
|
+
- lib/solidus_dev_support/templates/extension/lib/%file_name%/testing_support/factories.rb.tt
|
350
352
|
- lib/solidus_dev_support/templates/extension/lib/%file_name%/version.rb.tt
|
351
353
|
- lib/solidus_dev_support/templates/extension/lib/generators/%file_name%/install/install_generator.rb.tt
|
354
|
+
- lib/solidus_dev_support/templates/extension/lib/generators/%file_name%/install/templates/initializer.rb.tt
|
352
355
|
- lib/solidus_dev_support/templates/extension/rspec
|
353
356
|
- lib/solidus_dev_support/templates/extension/rubocop.yml
|
354
357
|
- lib/solidus_dev_support/templates/extension/spec/spec_helper.rb.tt
|