solidus_dev_support 2.0.1 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f563ba4feb118d4ebf1fb62c703791bee85240115572777fc8930173b0403ba4
4
- data.tar.gz: f87ace52df811c662227742633da61d7a0f2403c29cdd1816f9ec95bbc4ba20b
3
+ metadata.gz: 775cf185474367ed130d07d17702a80fe73b1f30c16c904d3f0ec2a6ae6d030b
4
+ data.tar.gz: 3cb289f1aa0ac28cae5d1df0f2508acf87c705f07cd706ee4c05f014517d7357
5
5
  SHA512:
6
- metadata.gz: 950ce1c6381e803b87a52a95413cbd8e90a3759f1ca7fc6e9643ec4f0c0adc474ebdbd5c89eb9090f2b90046638a1d7e529f02e732fdcf54563e5310522cb14d
7
- data.tar.gz: 34e28ce0af127d088dc4fea56b5110b494065b044d99ed129d4d5dc4f8c7fa18aac43a504d0d87d1d6eaf696fd5e15a07a847729438fafbf954fc42fa99622d5
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/**/*"], NewCops: enable}
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"}
@@ -0,0 +1,2 @@
1
+ issues=false
2
+ exclude-labels=infrastructure
@@ -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
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module <%= class_name %>
4
+ class Configuration
5
+ # TODO: Remember to change this with your extension's actual preferences!
6
+ # attr_accessor :sample_preference
7
+ end
8
+ end
@@ -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"
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ <%= class_name %>.configure do |config|
4
+ # TODO: Remember to change this with the actual preferences you have implemented!
5
+ # config.sample_preference = 'sample_value'
6
+ end
@@ -1,2 +1,5 @@
1
1
  require:
2
2
  - solidus_dev_support/rubocop
3
+
4
+ AllCops:
5
+ NewCops: Enable
@@ -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!
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusDevSupport
4
- VERSION = "2.0.1"
4
+ VERSION = "2.1.0"
5
5
 
6
6
  def self.gem_version
7
7
  Gem::Version.new(VERSION)
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.1
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-09-22 00:00:00.000000000 Z
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