eac_rails_base0 0.73.0 → 0.75.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 +24 -55
- 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: fd88a6bdf6ad30d0d4d11102471f52acbe756d6d25007f06acc4da11740a5f49
|
|
4
|
+
data.tar.gz: 98191ab74e9a8beaf2159aa7a4fb6725d53a1c13fb72764ea52ac1ee3617ad68
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1596ba4b04f5a2c943af234f03220029c1bdb78526deaf60d6618799353282e6b7d69c1a7e748936b8bc4da8c6815a11590dd0bb879be67a6dd75ad60b40a9bf
|
|
7
|
+
data.tar.gz: bccf531be454a68bfba649b7c6069beb4fa820bebfbcdb58706366f2332778967ba4f4e793738566c47ee521da8e60b9eed8e71fb74d9f466fb52afd023c3961
|
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.75.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
|
|
@@ -232,20 +232,14 @@ dependencies:
|
|
|
232
232
|
requirements:
|
|
233
233
|
- - "~>"
|
|
234
234
|
- !ruby/object:Gem::Version
|
|
235
|
-
version: '0.
|
|
236
|
-
- - ">="
|
|
237
|
-
- !ruby/object:Gem::Version
|
|
238
|
-
version: 0.12.3
|
|
235
|
+
version: '0.13'
|
|
239
236
|
type: :runtime
|
|
240
237
|
prerelease: false
|
|
241
238
|
version_requirements: !ruby/object:Gem::Requirement
|
|
242
239
|
requirements:
|
|
243
240
|
- - "~>"
|
|
244
241
|
- !ruby/object:Gem::Version
|
|
245
|
-
version: '0.
|
|
246
|
-
- - ">="
|
|
247
|
-
- !ruby/object:Gem::Version
|
|
248
|
-
version: 0.12.3
|
|
242
|
+
version: '0.13'
|
|
249
243
|
- !ruby/object:Gem::Dependency
|
|
250
244
|
name: eac_rails_remotes
|
|
251
245
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -275,7 +269,7 @@ dependencies:
|
|
|
275
269
|
version: '0.29'
|
|
276
270
|
- - ">="
|
|
277
271
|
- !ruby/object:Gem::Version
|
|
278
|
-
version: 0.29.
|
|
272
|
+
version: 0.29.2
|
|
279
273
|
type: :runtime
|
|
280
274
|
prerelease: false
|
|
281
275
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -285,7 +279,7 @@ dependencies:
|
|
|
285
279
|
version: '0.29'
|
|
286
280
|
- - ">="
|
|
287
281
|
- !ruby/object:Gem::Version
|
|
288
|
-
version: 0.29.
|
|
282
|
+
version: 0.29.2
|
|
289
283
|
- !ruby/object:Gem::Dependency
|
|
290
284
|
name: eac_ruby_utils
|
|
291
285
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -295,7 +289,7 @@ dependencies:
|
|
|
295
289
|
version: '0.131'
|
|
296
290
|
- - ">="
|
|
297
291
|
- !ruby/object:Gem::Version
|
|
298
|
-
version: 0.131.
|
|
292
|
+
version: 0.131.3
|
|
299
293
|
type: :runtime
|
|
300
294
|
prerelease: false
|
|
301
295
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -305,7 +299,7 @@ dependencies:
|
|
|
305
299
|
version: '0.131'
|
|
306
300
|
- - ">="
|
|
307
301
|
- !ruby/object:Gem::Version
|
|
308
|
-
version: 0.131.
|
|
302
|
+
version: 0.131.3
|
|
309
303
|
- !ruby/object:Gem::Dependency
|
|
310
304
|
name: eac_users_support
|
|
311
305
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -315,7 +309,7 @@ dependencies:
|
|
|
315
309
|
version: '0.11'
|
|
316
310
|
- - ">="
|
|
317
311
|
- !ruby/object:Gem::Version
|
|
318
|
-
version: 0.11.
|
|
312
|
+
version: 0.11.4
|
|
319
313
|
type: :runtime
|
|
320
314
|
prerelease: false
|
|
321
315
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -325,7 +319,7 @@ dependencies:
|
|
|
325
319
|
version: '0.11'
|
|
326
320
|
- - ">="
|
|
327
321
|
- !ruby/object:Gem::Version
|
|
328
|
-
version: 0.11.
|
|
322
|
+
version: 0.11.4
|
|
329
323
|
- !ruby/object:Gem::Dependency
|
|
330
324
|
name: fog-aws
|
|
331
325
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -352,14 +346,20 @@ dependencies:
|
|
|
352
346
|
requirements:
|
|
353
347
|
- - "~>"
|
|
354
348
|
- !ruby/object:Gem::Version
|
|
355
|
-
version: '2.
|
|
349
|
+
version: '2.15'
|
|
350
|
+
- - ">="
|
|
351
|
+
- !ruby/object:Gem::Version
|
|
352
|
+
version: 2.15.1
|
|
356
353
|
type: :runtime
|
|
357
354
|
prerelease: false
|
|
358
355
|
version_requirements: !ruby/object:Gem::Requirement
|
|
359
356
|
requirements:
|
|
360
357
|
- - "~>"
|
|
361
358
|
- !ruby/object:Gem::Version
|
|
362
|
-
version: '2.
|
|
359
|
+
version: '2.15'
|
|
360
|
+
- - ">="
|
|
361
|
+
- !ruby/object:Gem::Version
|
|
362
|
+
version: 2.15.1
|
|
363
363
|
- !ruby/object:Gem::Dependency
|
|
364
364
|
name: jquery-rails
|
|
365
365
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -508,14 +508,14 @@ dependencies:
|
|
|
508
508
|
requirements:
|
|
509
509
|
- - "~>"
|
|
510
510
|
- !ruby/object:Gem::Version
|
|
511
|
-
version: 7.
|
|
511
|
+
version: 7.1.6
|
|
512
512
|
type: :runtime
|
|
513
513
|
prerelease: false
|
|
514
514
|
version_requirements: !ruby/object:Gem::Requirement
|
|
515
515
|
requirements:
|
|
516
516
|
- - "~>"
|
|
517
517
|
- !ruby/object:Gem::Version
|
|
518
|
-
version: 7.
|
|
518
|
+
version: 7.1.6
|
|
519
519
|
- !ruby/object:Gem::Dependency
|
|
520
520
|
name: rails-i18n
|
|
521
521
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -646,8 +646,7 @@ dependencies:
|
|
|
646
646
|
version: 4.2.1
|
|
647
647
|
description:
|
|
648
648
|
email:
|
|
649
|
-
executables:
|
|
650
|
-
- eac_rails_base0_app
|
|
649
|
+
executables: []
|
|
651
650
|
extensions: []
|
|
652
651
|
extra_rdoc_files: []
|
|
653
652
|
files:
|
|
@@ -691,6 +690,7 @@ files:
|
|
|
691
690
|
- app/views/layouts/eac_rails_base0/_version.erb
|
|
692
691
|
- app/views/layouts/eac_rails_base0/application.html.erb
|
|
693
692
|
- config/after_initializers/menus.rb
|
|
693
|
+
- config/after_initializers/patches.rb
|
|
694
694
|
- config/initializers/action_mailer.rb
|
|
695
695
|
- config/initializers/active_scaffold.rb
|
|
696
696
|
- config/initializers/backport_pg_10_support_to_rails_4.rb
|
|
@@ -708,7 +708,6 @@ files:
|
|
|
708
708
|
- config/locales/en.yml
|
|
709
709
|
- config/locales/pt-BR.yml
|
|
710
710
|
- config/routes.rb
|
|
711
|
-
- exe/eac_rails_base0_app
|
|
712
711
|
- lib/eac_rails_base0.rb
|
|
713
712
|
- lib/eac_rails_base0/app_base/ability.rb
|
|
714
713
|
- lib/eac_rails_base0/app_base/ability_mapping.rb
|
|
@@ -718,28 +717,9 @@ files:
|
|
|
718
717
|
- lib/eac_rails_base0/app_base/application/envvars.rb
|
|
719
718
|
- lib/eac_rails_base0/app_base/application/production.rb
|
|
720
719
|
- 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
720
|
- lib/eac_rails_base0/engine.rb
|
|
741
|
-
- lib/eac_rails_base0/patches/
|
|
742
|
-
- lib/eac_rails_base0/patches/
|
|
721
|
+
- lib/eac_rails_base0/patches/eac_rails_utils_links_helper.rb
|
|
722
|
+
- lib/eac_rails_base0/patches/url_for.rb
|
|
743
723
|
- lib/eac_rails_base0/paths.rb
|
|
744
724
|
- lib/eac_rails_base0/rspec.rb
|
|
745
725
|
- lib/eac_rails_base0/rspec/setup.rb
|
|
@@ -750,17 +730,6 @@ files:
|
|
|
750
730
|
- lib/eac_rails_base0/x_engine.rb
|
|
751
731
|
- lib/enumerator.rb
|
|
752
732
|
- 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
733
|
- lib/tasks/eac_rails_base0.rake
|
|
765
734
|
homepage: https://github.com/esquilo-azul/eac_rails_base0
|
|
766
735
|
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
|