eac_rails_base0 0.72.1 → 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.
- checksums.yaml +4 -4
- data/README.rdoc +0 -4
- data/config/after_initializers/patches.rb +9 -0
- data/config/initializers/patches.rb +0 -1
- data/lib/eac_rails_base0/app_base/application/all.rb +1 -1
- data/lib/eac_rails_base0/engine.rb +0 -1
- data/lib/eac_rails_base0/patches/{eac_rails_utils_links_helper_patch.rb → eac_rails_utils_links_helper.rb} +0 -5
- data/lib/eac_rails_base0/patches/{url_for_patch.rb → url_for.rb} +1 -5
- data/lib/eac_rails_base0/version.rb +1 -1
- metadata +28 -53
- data/exe/eac_rails_base0_app +0 -21
- data/lib/eac_rails_base0/app_generator/builder.rb +0 -61
- data/lib/eac_rails_base0/app_generator/generator.rb +0 -23
- data/lib/eac_rails_base0/app_generator/templates/Gemfile +0 -18
- data/lib/eac_rails_base0/app_generator/templates/app/assets/javascripts/application.js +0 -1
- data/lib/eac_rails_base0/app_generator/templates/app/assets/stylesheets/application.scss +0 -1
- data/lib/eac_rails_base0/app_generator/templates/app/controllers/application_controller.rb +0 -4
- data/lib/eac_rails_base0/app_generator/templates/app/controllers/welcome_controller.rb +0 -5
- data/lib/eac_rails_base0/app_generator/templates/app/views/welcome/index.html.erb +0 -1
- data/lib/eac_rails_base0/app_generator/templates/bin/bundle +0 -5
- data/lib/eac_rails_base0/app_generator/templates/bin/rails +0 -6
- data/lib/eac_rails_base0/app_generator/templates/bin/rake +0 -6
- data/lib/eac_rails_base0/app_generator/templates/bin/setup +0 -31
- data/lib/eac_rails_base0/app_generator/templates/config/application.rb +0 -5
- data/lib/eac_rails_base0/app_generator/templates/config/boot.rb +0 -5
- data/lib/eac_rails_base0/app_generator/templates/config/database.yml +0 -19
- data/lib/eac_rails_base0/app_generator/templates/config/environment.rb +0 -7
- data/lib/eac_rails_base0/app_generator/templates/config/routes.rb +0 -5
- data/lib/eac_rails_base0/app_generator/templates/config.ru +0 -6
- data/lib/eac_rails_base0/app_generator/templates/gitignore +0 -24
- data/lib/generators/eac_rails_base0/abilities/abilities_generator.rb +0 -13
- data/lib/generators/eac_rails_base0/abilities/templates/ability.rb +0 -8
- data/lib/generators/eac_rails_base0/abilities/templates/ability_mapping.rb +0 -8
- data/lib/generators/eac_rails_base0/rubocop/rubocop_generator.rb +0 -16
- data/lib/generators/eac_rails_base0/rubocop/templates/rubocop.rb +0 -7
- data/lib/generators/eac_rails_base0/testers/templates/Rakefile +0 -9
- data/lib/generators/eac_rails_base0/testers/templates/bin_rspec.rb +0 -5
- data/lib/generators/eac_rails_base0/testers/templates/rspec.rc +0 -1
- data/lib/generators/eac_rails_base0/testers/templates/spec_rails_helper.rb +0 -7
- data/lib/generators/eac_rails_base0/testers/testers_generator.rb +0 -14
- 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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5e81a5888172adfb35998ea7d65b3cd9eaa93451726732f257cbb32f6218c248
|
|
4
|
+
data.tar.gz: d0c3e191c5313624d3a85c4830fff4e8af34f587515832c15b00bd751d5e034b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 93dc83c1af2289f85123076d6d3e0d015f13dae9a7b32eef0a08efb995d64fa22e23c4f9503f0e2d623b40db48eb83e67042bae47079e2c22a5c860e58390345
|
|
7
|
+
data.tar.gz: 557de60b5995d60b2dfed51ac5aabf90b6e8c8618f4843424d12708a58552483c0613565c75b1a11205bd01e35353eb5401219fb8580530c27e30134fe9645de
|
data/README.rdoc
CHANGED
|
@@ -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)
|
|
@@ -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
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module EacRailsBase0
|
|
4
4
|
module Patches
|
|
5
|
-
module
|
|
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)
|
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.
|
|
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-
|
|
11
|
+
date: 2026-07-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aranha-parsers
|
|
@@ -87,7 +87,7 @@ dependencies:
|
|
|
87
87
|
version: '0.6'
|
|
88
88
|
- - ">="
|
|
89
89
|
- !ruby/object:Gem::Version
|
|
90
|
-
version: 0.6.
|
|
90
|
+
version: 0.6.2
|
|
91
91
|
type: :runtime
|
|
92
92
|
prerelease: false
|
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -97,7 +97,7 @@ dependencies:
|
|
|
97
97
|
version: '0.6'
|
|
98
98
|
- - ">="
|
|
99
99
|
- !ruby/object:Gem::Version
|
|
100
|
-
version: 0.6.
|
|
100
|
+
version: 0.6.2
|
|
101
101
|
- !ruby/object:Gem::Dependency
|
|
102
102
|
name: can_can_dry
|
|
103
103
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -235,7 +235,7 @@ dependencies:
|
|
|
235
235
|
version: '0.12'
|
|
236
236
|
- - ">="
|
|
237
237
|
- !ruby/object:Gem::Version
|
|
238
|
-
version: 0.12.
|
|
238
|
+
version: 0.12.3
|
|
239
239
|
type: :runtime
|
|
240
240
|
prerelease: false
|
|
241
241
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -245,7 +245,7 @@ dependencies:
|
|
|
245
245
|
version: '0.12'
|
|
246
246
|
- - ">="
|
|
247
247
|
- !ruby/object:Gem::Version
|
|
248
|
-
version: 0.12.
|
|
248
|
+
version: 0.12.3
|
|
249
249
|
- !ruby/object:Gem::Dependency
|
|
250
250
|
name: eac_rails_remotes
|
|
251
251
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -255,7 +255,7 @@ dependencies:
|
|
|
255
255
|
version: '0.5'
|
|
256
256
|
- - ">="
|
|
257
257
|
- !ruby/object:Gem::Version
|
|
258
|
-
version: 0.5.
|
|
258
|
+
version: 0.5.3
|
|
259
259
|
type: :runtime
|
|
260
260
|
prerelease: false
|
|
261
261
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -265,7 +265,7 @@ dependencies:
|
|
|
265
265
|
version: '0.5'
|
|
266
266
|
- - ">="
|
|
267
267
|
- !ruby/object:Gem::Version
|
|
268
|
-
version: 0.5.
|
|
268
|
+
version: 0.5.3
|
|
269
269
|
- !ruby/object:Gem::Dependency
|
|
270
270
|
name: eac_rails_utils
|
|
271
271
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -273,6 +273,9 @@ dependencies:
|
|
|
273
273
|
- - "~>"
|
|
274
274
|
- !ruby/object:Gem::Version
|
|
275
275
|
version: '0.29'
|
|
276
|
+
- - ">="
|
|
277
|
+
- !ruby/object:Gem::Version
|
|
278
|
+
version: 0.29.1
|
|
276
279
|
type: :runtime
|
|
277
280
|
prerelease: false
|
|
278
281
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -280,6 +283,9 @@ dependencies:
|
|
|
280
283
|
- - "~>"
|
|
281
284
|
- !ruby/object:Gem::Version
|
|
282
285
|
version: '0.29'
|
|
286
|
+
- - ">="
|
|
287
|
+
- !ruby/object:Gem::Version
|
|
288
|
+
version: 0.29.1
|
|
283
289
|
- !ruby/object:Gem::Dependency
|
|
284
290
|
name: eac_ruby_utils
|
|
285
291
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -346,14 +352,20 @@ dependencies:
|
|
|
346
352
|
requirements:
|
|
347
353
|
- - "~>"
|
|
348
354
|
- !ruby/object:Gem::Version
|
|
349
|
-
version: '2.
|
|
355
|
+
version: '2.15'
|
|
356
|
+
- - ">="
|
|
357
|
+
- !ruby/object:Gem::Version
|
|
358
|
+
version: 2.15.1
|
|
350
359
|
type: :runtime
|
|
351
360
|
prerelease: false
|
|
352
361
|
version_requirements: !ruby/object:Gem::Requirement
|
|
353
362
|
requirements:
|
|
354
363
|
- - "~>"
|
|
355
364
|
- !ruby/object:Gem::Version
|
|
356
|
-
version: '2.
|
|
365
|
+
version: '2.15'
|
|
366
|
+
- - ">="
|
|
367
|
+
- !ruby/object:Gem::Version
|
|
368
|
+
version: 2.15.1
|
|
357
369
|
- !ruby/object:Gem::Dependency
|
|
358
370
|
name: jquery-rails
|
|
359
371
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -502,20 +514,14 @@ dependencies:
|
|
|
502
514
|
requirements:
|
|
503
515
|
- - "~>"
|
|
504
516
|
- !ruby/object:Gem::Version
|
|
505
|
-
version:
|
|
506
|
-
- - ">="
|
|
507
|
-
- !ruby/object:Gem::Version
|
|
508
|
-
version: 6.1.7.10
|
|
517
|
+
version: 7.0.10
|
|
509
518
|
type: :runtime
|
|
510
519
|
prerelease: false
|
|
511
520
|
version_requirements: !ruby/object:Gem::Requirement
|
|
512
521
|
requirements:
|
|
513
522
|
- - "~>"
|
|
514
523
|
- !ruby/object:Gem::Version
|
|
515
|
-
version:
|
|
516
|
-
- - ">="
|
|
517
|
-
- !ruby/object:Gem::Version
|
|
518
|
-
version: 6.1.7.10
|
|
524
|
+
version: 7.0.10
|
|
519
525
|
- !ruby/object:Gem::Dependency
|
|
520
526
|
name: rails-i18n
|
|
521
527
|
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/
|
|
742
|
-
- lib/eac_rails_base0/patches/
|
|
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:
|
data/exe/eac_rails_base0_app
DELETED
|
@@ -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 +0,0 @@
|
|
|
1
|
-
@import "eac_rails_base0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<p>Bem-vindo!</p>
|
|
@@ -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,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,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,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,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 +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
|