eac_rails_base0 0.73.0 → 0.74.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.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +0 -4
  3. data/config/after_initializers/patches.rb +9 -0
  4. data/config/initializers/patches.rb +0 -1
  5. data/lib/eac_rails_base0/app_base/application/all.rb +1 -1
  6. data/lib/eac_rails_base0/engine.rb +0 -1
  7. data/lib/eac_rails_base0/patches/{eac_rails_utils_links_helper_patch.rb → eac_rails_utils_links_helper.rb} +0 -5
  8. data/lib/eac_rails_base0/patches/{url_for_patch.rb → url_for.rb} +1 -5
  9. data/lib/eac_rails_base0/version.rb +1 -1
  10. metadata +14 -39
  11. data/exe/eac_rails_base0_app +0 -21
  12. data/lib/eac_rails_base0/app_generator/builder.rb +0 -61
  13. data/lib/eac_rails_base0/app_generator/generator.rb +0 -23
  14. data/lib/eac_rails_base0/app_generator/templates/Gemfile +0 -18
  15. data/lib/eac_rails_base0/app_generator/templates/app/assets/javascripts/application.js +0 -1
  16. data/lib/eac_rails_base0/app_generator/templates/app/assets/stylesheets/application.scss +0 -1
  17. data/lib/eac_rails_base0/app_generator/templates/app/controllers/application_controller.rb +0 -4
  18. data/lib/eac_rails_base0/app_generator/templates/app/controllers/welcome_controller.rb +0 -5
  19. data/lib/eac_rails_base0/app_generator/templates/app/views/welcome/index.html.erb +0 -1
  20. data/lib/eac_rails_base0/app_generator/templates/bin/bundle +0 -5
  21. data/lib/eac_rails_base0/app_generator/templates/bin/rails +0 -6
  22. data/lib/eac_rails_base0/app_generator/templates/bin/rake +0 -6
  23. data/lib/eac_rails_base0/app_generator/templates/bin/setup +0 -31
  24. data/lib/eac_rails_base0/app_generator/templates/config/application.rb +0 -5
  25. data/lib/eac_rails_base0/app_generator/templates/config/boot.rb +0 -5
  26. data/lib/eac_rails_base0/app_generator/templates/config/database.yml +0 -19
  27. data/lib/eac_rails_base0/app_generator/templates/config/environment.rb +0 -7
  28. data/lib/eac_rails_base0/app_generator/templates/config/routes.rb +0 -5
  29. data/lib/eac_rails_base0/app_generator/templates/config.ru +0 -6
  30. data/lib/eac_rails_base0/app_generator/templates/gitignore +0 -24
  31. data/lib/generators/eac_rails_base0/abilities/abilities_generator.rb +0 -13
  32. data/lib/generators/eac_rails_base0/abilities/templates/ability.rb +0 -8
  33. data/lib/generators/eac_rails_base0/abilities/templates/ability_mapping.rb +0 -8
  34. data/lib/generators/eac_rails_base0/rubocop/rubocop_generator.rb +0 -16
  35. data/lib/generators/eac_rails_base0/rubocop/templates/rubocop.rb +0 -7
  36. data/lib/generators/eac_rails_base0/testers/templates/Rakefile +0 -9
  37. data/lib/generators/eac_rails_base0/testers/templates/bin_rspec.rb +0 -5
  38. data/lib/generators/eac_rails_base0/testers/templates/rspec.rc +0 -1
  39. data/lib/generators/eac_rails_base0/testers/templates/spec_rails_helper.rb +0 -7
  40. data/lib/generators/eac_rails_base0/testers/testers_generator.rb +0 -14
  41. data/lib/generators/eac_rails_base0_generator.rb +0 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02472e79e4b04b668c5a3dde7c1543f75632482eefdf46ccdf229994b41b2c2e
4
- data.tar.gz: 667e9f69479db06975c3ee7615baf894d0d00fa4a496abf8d66f0fefc33f2699
3
+ metadata.gz: 5e81a5888172adfb35998ea7d65b3cd9eaa93451726732f257cbb32f6218c248
4
+ data.tar.gz: d0c3e191c5313624d3a85c4830fff4e8af34f587515832c15b00bd751d5e034b
5
5
  SHA512:
6
- metadata.gz: 4f0338537c93d8aa9a3aad12f61c5ab026840dca5bfd6778598263ee8f043540dac7bf35e31c5eb8b5602b520a930a7181b7f37411f6ff8491a76e69dbc673c0
7
- data.tar.gz: f76301b32b792d9e325a57d5ec652a982a043e09b932dbc19e12671157041c76885f8db4164c9566a1df0b203ef88efebf3e8d80980c5b9376ea05599d1d1460
6
+ metadata.gz: 93dc83c1af2289f85123076d6d3e0d015f13dae9a7b32eef0a08efb995d64fa22e23c4f9503f0e2d623b40db48eb83e67042bae47079e2c22a5c860e58390345
7
+ data.tar.gz: 557de60b5995d60b2dfed51ac5aabf90b6e8c8618f4843424d12708a58552483c0613565c75b1a11205bd01e35353eb5401219fb8580530c27e30134fe9645de
data/README.rdoc CHANGED
@@ -22,7 +22,3 @@ Add this to your Gemfile:
22
22
  Run:
23
23
 
24
24
  bundle install
25
-
26
- And:
27
-
28
- rails generator eac_rails_base0
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ patch = EacRailsBase0::Patches::EacRailsUtilsLinksHelper
4
+ target = EacRailsUtils::LinksHelper
5
+ target.prepend(patch) unless target.include?(patch)
6
+
7
+ patch = EacRailsBase0::Patches::UrlFor
8
+ target = ActionDispatch::Routing::UrlFor
9
+ target.prepend(patch) unless target.include?(patch)
@@ -1,4 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_rails_utils/patches'
4
- require 'eac_rails_base0/patches/eac_rails_utils_links_helper_patch'
@@ -55,7 +55,7 @@ module EacRailsBase0
55
55
  end
56
56
 
57
57
  def setup_defaults
58
- config.load_defaults 6.1
58
+ config.load_defaults 7.0
59
59
  end
60
60
 
61
61
  def setup_dependencies
@@ -25,7 +25,6 @@ require 'turbolinks'
25
25
 
26
26
  require_dependency 'eac_rails_base0/app_base/ability_mapping'
27
27
  require_dependency 'eac_rails_base0/app_base/ability'
28
- require_dependency 'eac_rails_base0/patches/url_for_patch'
29
28
  require_dependency 'eac_rails_base0/x_engine'
30
29
 
31
30
  module EacRailsBase0
@@ -25,8 +25,3 @@ module EacRailsBase0
25
25
  end
26
26
  end
27
27
  end
28
-
29
- require 'eac_rails_utils/links_helper'
30
- patch = EacRailsBase0::Patches::EacRailsUtilsLinksHelper
31
- target = EacRailsUtils::LinksHelper
32
- target.prepend(patch) unless target.include?(patch)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module EacRailsBase0
4
4
  module Patches
5
- module UrlForPatch
5
+ module UrlFor
6
6
  class << self
7
7
  def included(base)
8
8
  base.prepend(InstanceMethods)
@@ -35,7 +35,3 @@ module EacRailsBase0
35
35
  end
36
36
  end
37
37
  end
38
-
39
- patch = EacRailsBase0::Patches::UrlForPatch
40
- target = ActionDispatch::Routing::UrlFor
41
- target.prepend(patch) unless target.include?(patch)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRailsBase0
4
- VERSION = '0.73.0'
4
+ VERSION = '0.74.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_rails_base0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.73.0
4
+ version: 0.74.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-07-24 00:00:00.000000000 Z
11
+ date: 2026-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers
@@ -352,14 +352,20 @@ dependencies:
352
352
  requirements:
353
353
  - - "~>"
354
354
  - !ruby/object:Gem::Version
355
- version: '2.13'
355
+ version: '2.15'
356
+ - - ">="
357
+ - !ruby/object:Gem::Version
358
+ version: 2.15.1
356
359
  type: :runtime
357
360
  prerelease: false
358
361
  version_requirements: !ruby/object:Gem::Requirement
359
362
  requirements:
360
363
  - - "~>"
361
364
  - !ruby/object:Gem::Version
362
- version: '2.13'
365
+ version: '2.15'
366
+ - - ">="
367
+ - !ruby/object:Gem::Version
368
+ version: 2.15.1
363
369
  - !ruby/object:Gem::Dependency
364
370
  name: jquery-rails
365
371
  requirement: !ruby/object:Gem::Requirement
@@ -646,8 +652,7 @@ dependencies:
646
652
  version: 4.2.1
647
653
  description:
648
654
  email:
649
- executables:
650
- - eac_rails_base0_app
655
+ executables: []
651
656
  extensions: []
652
657
  extra_rdoc_files: []
653
658
  files:
@@ -691,6 +696,7 @@ files:
691
696
  - app/views/layouts/eac_rails_base0/_version.erb
692
697
  - app/views/layouts/eac_rails_base0/application.html.erb
693
698
  - config/after_initializers/menus.rb
699
+ - config/after_initializers/patches.rb
694
700
  - config/initializers/action_mailer.rb
695
701
  - config/initializers/active_scaffold.rb
696
702
  - config/initializers/backport_pg_10_support_to_rails_4.rb
@@ -708,7 +714,6 @@ files:
708
714
  - config/locales/en.yml
709
715
  - config/locales/pt-BR.yml
710
716
  - config/routes.rb
711
- - exe/eac_rails_base0_app
712
717
  - lib/eac_rails_base0.rb
713
718
  - lib/eac_rails_base0/app_base/ability.rb
714
719
  - lib/eac_rails_base0/app_base/ability_mapping.rb
@@ -718,28 +723,9 @@ files:
718
723
  - lib/eac_rails_base0/app_base/application/envvars.rb
719
724
  - lib/eac_rails_base0/app_base/application/production.rb
720
725
  - lib/eac_rails_base0/app_base/application/test.rb
721
- - lib/eac_rails_base0/app_generator/builder.rb
722
- - lib/eac_rails_base0/app_generator/generator.rb
723
- - lib/eac_rails_base0/app_generator/templates/Gemfile
724
- - lib/eac_rails_base0/app_generator/templates/app/assets/javascripts/application.js
725
- - lib/eac_rails_base0/app_generator/templates/app/assets/stylesheets/application.scss
726
- - lib/eac_rails_base0/app_generator/templates/app/controllers/application_controller.rb
727
- - lib/eac_rails_base0/app_generator/templates/app/controllers/welcome_controller.rb
728
- - lib/eac_rails_base0/app_generator/templates/app/views/welcome/index.html.erb
729
- - lib/eac_rails_base0/app_generator/templates/bin/bundle
730
- - lib/eac_rails_base0/app_generator/templates/bin/rails
731
- - lib/eac_rails_base0/app_generator/templates/bin/rake
732
- - lib/eac_rails_base0/app_generator/templates/bin/setup
733
- - lib/eac_rails_base0/app_generator/templates/config.ru
734
- - lib/eac_rails_base0/app_generator/templates/config/application.rb
735
- - lib/eac_rails_base0/app_generator/templates/config/boot.rb
736
- - lib/eac_rails_base0/app_generator/templates/config/database.yml
737
- - lib/eac_rails_base0/app_generator/templates/config/environment.rb
738
- - lib/eac_rails_base0/app_generator/templates/config/routes.rb
739
- - lib/eac_rails_base0/app_generator/templates/gitignore
740
726
  - lib/eac_rails_base0/engine.rb
741
- - lib/eac_rails_base0/patches/eac_rails_utils_links_helper_patch.rb
742
- - lib/eac_rails_base0/patches/url_for_patch.rb
727
+ - lib/eac_rails_base0/patches/eac_rails_utils_links_helper.rb
728
+ - lib/eac_rails_base0/patches/url_for.rb
743
729
  - lib/eac_rails_base0/paths.rb
744
730
  - lib/eac_rails_base0/rspec.rb
745
731
  - lib/eac_rails_base0/rspec/setup.rb
@@ -750,17 +736,6 @@ files:
750
736
  - lib/eac_rails_base0/x_engine.rb
751
737
  - lib/enumerator.rb
752
738
  - lib/fog.rb
753
- - lib/generators/eac_rails_base0/abilities/abilities_generator.rb
754
- - lib/generators/eac_rails_base0/abilities/templates/ability.rb
755
- - lib/generators/eac_rails_base0/abilities/templates/ability_mapping.rb
756
- - lib/generators/eac_rails_base0/rubocop/rubocop_generator.rb
757
- - lib/generators/eac_rails_base0/rubocop/templates/rubocop.rb
758
- - lib/generators/eac_rails_base0/testers/templates/Rakefile
759
- - lib/generators/eac_rails_base0/testers/templates/bin_rspec.rb
760
- - lib/generators/eac_rails_base0/testers/templates/rspec.rc
761
- - lib/generators/eac_rails_base0/testers/templates/spec_rails_helper.rb
762
- - lib/generators/eac_rails_base0/testers/testers_generator.rb
763
- - lib/generators/eac_rails_base0_generator.rb
764
739
  - lib/tasks/eac_rails_base0.rake
765
740
  homepage: https://github.com/esquilo-azul/eac_rails_base0
766
741
  licenses:
@@ -1,21 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'pathname'
5
-
6
- source_path = "#{Pathname.new(__FILE__).dirname}../lib".expand_path
7
- $LOAD_PATH << source_path
8
-
9
- require 'eac_rails_base0/app_generator/generator'
10
-
11
- if ARGV.empty?
12
- puts 'Please provide a path for the new application'
13
- puts
14
- puts 'See --help for more info'
15
- exit 1
16
- elsif ['-v', '--version'].include? ARGV[0]
17
- puts Suspenders::VERSION
18
- exit 0
19
- end
20
-
21
- EacRailsBase0::AppGenerator::Generator.start
@@ -1,61 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module EacRailsBase0
4
- module AppGenerator
5
- class Builder < Rails::AppBuilder
6
- def readme
7
- # Do nothing
8
- end
9
-
10
- def app
11
- directory 'app'
12
- end
13
-
14
- def config
15
- inside 'config' do
16
- template 'routes.rb'
17
- template 'application.rb'
18
- template 'environment.rb'
19
- template 'secrets.yml'
20
- end
21
- end
22
-
23
- def database_yml
24
- template 'config/database.yml'
25
- end
26
-
27
- def db
28
- directory 'db'
29
- end
30
-
31
- def lib
32
- directory 'lib'
33
- end
34
-
35
- def log
36
- # Do nothing
37
- empty_directory_with_keep_file 'log'
38
- end
39
-
40
- def test
41
- # Do nothing
42
- end
43
-
44
- def tmp
45
- # Do nothing
46
- end
47
-
48
- def vendor
49
- # Do nothing
50
- end
51
-
52
- def vendor_javascripts
53
- # Do nothing
54
- end
55
-
56
- def vendor_stylesheets
57
- # Do nothing
58
- end
59
- end
60
- end
61
- end
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'rails/generators/rails/app/app_generator'
4
- require 'eac_rails_base0/app_generator/builder'
5
-
6
- module EacRailsBase0
7
- module AppGenerator
8
- class Generator < Rails::Generators::AppGenerator
9
- source_root ::File.join(__dir__, 'templates')
10
- source_paths << source_root << ::Rails::Generators::AppGenerator.source_root
11
-
12
- def initialize(*args)
13
- super
14
- end
15
-
16
- protected
17
-
18
- def get_builder_class # rubocop:disable Naming/AccessorMethodName
19
- ::EacRailsBase0::AppGenerator::Builder
20
- end
21
- end
22
- end
23
- end
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gem 'eac_rails_base0'
6
-
7
- group :development, :test do
8
- gem 'quiet_assets'
9
- end
10
-
11
- group :production do
12
- gem 'rails_12factor'
13
- end
14
-
15
- # Gems locais
16
- Dir["#{__dir__}/{sub/gems,engines}/*/*.gemspec"].each do |file|
17
- gem File.basename(File.dirname(file)), path: File.dirname(file)
18
- end
@@ -1 +0,0 @@
1
- //= require eac_rails_base0
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class ApplicationController < EacRailsBase0::ApplicationController
4
- end
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class WelcomeController < ApplicationController
4
- def index; end
5
- end
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
5
- load Gem.bin_path('bundler', 'bundle')
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- APP_PATH = File.expand_path('../config/application', __dir__)
5
- require_relative '../config/boot'
6
- require 'rails/commands'
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require_relative '../config/boot'
5
- require 'rake'
6
- Rake.application.run
@@ -1,31 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'pathname'
5
-
6
- # path to your application root.
7
- APP_ROOT = Pathname.new File.expand_path('..', __dir__)
8
-
9
- Dir.chdir APP_ROOT do
10
- # This script is a starting point to setup your application.
11
- # Add necessary setup steps to this file:
12
-
13
- puts '== Installing dependencies =='
14
- system 'gem install bundler --conservative'
15
- system 'bundle check || bundle install'
16
-
17
- # puts "\n== Copying sample files =="
18
- # unless File.exist?("config/database.yml")
19
- # system "cp config/database.yml.sample config/database.yml"
20
- # end
21
-
22
- puts "\n== Preparing database =="
23
- system 'bin/rake db:setup'
24
-
25
- puts "\n== Removing old logs and tempfiles =="
26
- system 'rm -f log/*'
27
- system 'rm -rf tmp/cache'
28
-
29
- puts "\n== Restarting application server =="
30
- system 'touch tmp/restart.txt'
31
- end
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- APP_PATH = File.dirname(__dir__) unless defined?(APP_PATH)
4
- require File.expand_path('boot', __dir__)
5
- require 'eac_rails_base0/app_base/application'
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
4
-
5
- require 'bundler/setup' # Set up gems listed in the Gemfile.
@@ -1,19 +0,0 @@
1
- default: &default
2
- adapter: postgresql
3
- pool: 5
4
- timeout: 5000
5
- encoding: unicode
6
- username: <%= app_name %>
7
- password: <%= app_name %>
8
- host: localhost
9
-
10
- development: &development
11
- <<: *default
12
- database: <%= app_name %>
13
-
14
- production:
15
- <<: *development
16
-
17
- test:
18
- <<: *default
19
- database: <%= app_name %>_test
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Load the Rails application.
4
- require File.expand_path('application', __dir__)
5
-
6
- # Initialize the Rails application.
7
- Rails.application.initialize!
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Rails.application.routes.draw do
4
- root 'welcome#index'
5
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # This file is used by Rack-based servers to start the application.
4
-
5
- require File.expand_path('config/environment', __dir__)
6
- run Rails.application
@@ -1,24 +0,0 @@
1
- # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
- #
3
- # If you find yourself ignoring temporary files generated by your text editor
4
- # or operating system, you probably want to add a global ignore instead:
5
- # git config --global core.excludesfile '~/.gitignore_global'
6
-
7
- # Ignore bundler config.
8
- /.bundle
9
-
10
- <% if sqlite3? -%>
11
- # Ignore the default SQLite database.
12
- /db/*.sqlite3
13
- /db/*.sqlite3-journal
14
-
15
- <% end -%>
16
- # Ignore all logfiles and tempfiles.
17
- /log/*
18
- !/log/.keep
19
- /tmp
20
-
21
- # Configuration files
22
- config/database.y*ml
23
- config/envvars.y*ml
24
- config/envvars.d/*.y*ml
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module EacRailsBase0
4
- class AbilitiesGenerator < Rails::Generators::Base
5
- source_root File.expand_path('templates', __dir__)
6
-
7
- def copy_bin
8
- %w[ability ability_mapping].each do |base|
9
- copy_file "#{base}.rb", "lib/#{base}.rb"
10
- end
11
- end
12
- end
13
- end
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class Ability < EacRailsBase0::AppBase::Ability
4
- def initialize(*args)
5
- super
6
- can :read, :public
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class AbilityMapping < EacRailsBase0::AppBase::AbilityMapping
4
- def initialize(*args)
5
- super
6
- map_action 'Welcome', 'index', :read, :public
7
- end
8
- end
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module EacRailsBase0
4
- class RubocopGenerator < Rails::Generators::Base
5
- source_root File.expand_path('templates', __dir__)
6
-
7
- def install_gem
8
- gem 'rubocop'
9
- end
10
-
11
- def copy_bin
12
- copy_file 'rubocop.rb', 'bin/rubocop'
13
- chmod 'bin', 0o755 & ~File.umask, verbose: false
14
- end
15
- end
16
- end
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- system(
5
- File.join(File.dirname(__FILE__), 'bundle'),
6
- 'exec', 'rubocop', *ARGV
7
- )
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- if %w[test rspec].any? { |arg| ARGV.first.to_s.include?(arg) } # rubocop:disable Style/ArrayIntersect
4
- ENV['RACK_ENV'] = ENV['RAILS_ENV'] = 'test'
5
- end
6
-
7
- require File.expand_path('config/application', __dir__)
8
-
9
- Rails.application.load_tasks
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
5
- system('bundle', 'exec', 'rspec', *ARGV)
@@ -1 +0,0 @@
1
- --require lib/spec_rails_helper --color --format doc --default-path . --pattern 'spec/**/*_spec.rb'
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- ENV['RAILS_ENV'] ||= 'test'
4
- require File.expand_path('../config/environment', __dir__)
5
- abort('The Rails environment is running in production mode!') if Rails.env.production?
6
- require 'rspec/rails'
7
- require 'eac_rails_base0/spec_helper'
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module EacRailsBase0
4
- class TestersGenerator < Rails::Generators::Base
5
- source_root File.expand_path('templates', __dir__)
6
-
7
- def create_initializer_files
8
- copy_file 'Rakefile', 'Rakefile'
9
- copy_file 'rspec.rc', '.rspec'
10
- copy_file 'spec_rails_helper.rb', 'lib/spec_rails_helper.rb'
11
- copy_file 'bin_rspec.rb', 'bin/rspec'
12
- end
13
- end
14
- end
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class EacRailsBase0Generator < Rails::Generators::Base
4
- SUB_GENERATORS = %w[abilities testers rubocop].freeze
5
-
6
- def run_other_generators
7
- SUB_GENERATORS.each do |generator|
8
- generate "eac_rails_base0:#{generator}"
9
- end
10
- end
11
- end