permadeps 1445.12.2 → 1445.12.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/README.md +8 -0
- data/lib/generators/permadeps/install/install_generator.rb +16 -0
- data/lib/generators/permadeps/install/templates/.annotaterb.yml +58 -0
- data/lib/generators/permadeps/install/templates/.better-html.yml +1 -0
- data/lib/generators/permadeps/install/templates/.env.example +5 -0
- data/lib/generators/permadeps/install/templates/.erb-lint.yml +27 -0
- data/lib/generators/permadeps/install/templates/.rubocop.yml +3 -0
- data/lib/generators/permadeps/install/templates/better_html.rb +4 -0
- data/lib/permadeps/version.rb +1 -3
- data/lib/permadeps.rb +1 -0
- data/rubocop.yml +3 -0
- metadata +8 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe62daf2a7eb148fabfccb5c08b6a13be1c922d05e56fa2cb9654a1881cb6351
|
4
|
+
data.tar.gz: 21a6b55410ee184bc1792a07878f9e121c55cab87f24e365ac75c19e5e3072aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03bd74e39ad6c67603bfc374b3d19f44fca575ebe75b3771221e3bd471eec89f9774adceacc9f13021f35d045591c075d00d2c0c9b7fd035af898d365941f05a
|
7
|
+
data.tar.gz: 7c6dd7379bad39b80c75219fe4e061f61edab873f2b198efd93daf515efca84bd64227260048311a39d7a8efca6fe6b5c14dae1252b6f1d1561c01cb3676c240
|
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
@@ -68,6 +68,14 @@ inherit_gem:
|
|
68
68
|
|
69
69
|
Make sure to setup the other gems properly in your Rails application.
|
70
70
|
|
71
|
+
### Generator
|
72
|
+
|
73
|
+
The gem also provides a generator to install the necessary files to the Rails application:
|
74
|
+
|
75
|
+
```bash
|
76
|
+
$ rails g permadeps:install
|
77
|
+
```
|
78
|
+
|
71
79
|
## License
|
72
80
|
|
73
81
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Permadeps
|
2
|
+
module Generators
|
3
|
+
class InstallGenerator < ::Rails::Generators::Base
|
4
|
+
source_root File.expand_path('templates', __dir__)
|
5
|
+
|
6
|
+
def copy_hook_file
|
7
|
+
copy_file '.annotaterb.yml', '.annotaterb.yml'
|
8
|
+
copy_file '.better-html.yml', '.better-html.yml'
|
9
|
+
copy_file '.env.example', '.env.example'
|
10
|
+
copy_file '.erb-lint.yml', '.erb-lint.yml'
|
11
|
+
copy_file '.rubocop.yml', '.rubocop.yml'
|
12
|
+
copy_file 'better_html.rb', 'config/initializers/better_html.rb'
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
---
|
2
|
+
:position: before
|
3
|
+
:position_in_additional_file_patterns: before
|
4
|
+
:position_in_class: before
|
5
|
+
:position_in_factory: before
|
6
|
+
:position_in_fixture: before
|
7
|
+
:position_in_routes: before
|
8
|
+
:position_in_serializer: before
|
9
|
+
:position_in_test: before
|
10
|
+
:classified_sort: true
|
11
|
+
:exclude_controllers: true
|
12
|
+
:exclude_factories: false
|
13
|
+
:exclude_fixtures: false
|
14
|
+
:exclude_helpers: true
|
15
|
+
:exclude_scaffolds: true
|
16
|
+
:exclude_serializers: false
|
17
|
+
:exclude_sti_subclasses: false
|
18
|
+
:exclude_tests: false
|
19
|
+
:force: false
|
20
|
+
:format_markdown: false
|
21
|
+
:format_rdoc: false
|
22
|
+
:format_yard: false
|
23
|
+
:frozen: false
|
24
|
+
:ignore_model_sub_dir: false
|
25
|
+
:ignore_unknown_models: false
|
26
|
+
:include_version: false
|
27
|
+
:show_check_constraints: false
|
28
|
+
:show_complete_foreign_keys: false
|
29
|
+
:show_foreign_keys: true
|
30
|
+
:show_indexes: true
|
31
|
+
:simple_indexes: false
|
32
|
+
:sort: false
|
33
|
+
:timestamp: false
|
34
|
+
:trace: false
|
35
|
+
:with_comment: true
|
36
|
+
:with_column_comments: true
|
37
|
+
:with_table_comments: true
|
38
|
+
:active_admin: false
|
39
|
+
:command:
|
40
|
+
:debug: false
|
41
|
+
:hide_default_column_types: ''
|
42
|
+
:hide_limit_column_types: ''
|
43
|
+
:ignore_columns:
|
44
|
+
:ignore_routes:
|
45
|
+
:models: true
|
46
|
+
:routes: true
|
47
|
+
:skip_on_db_migrate: false
|
48
|
+
:target_action: :do_annotations
|
49
|
+
:wrapper:
|
50
|
+
:wrapper_close:
|
51
|
+
:wrapper_open:
|
52
|
+
:classes_default_to_s: []
|
53
|
+
:additional_file_patterns: []
|
54
|
+
:model_dir:
|
55
|
+
- app/models
|
56
|
+
:require: []
|
57
|
+
:root_dir:
|
58
|
+
- ''
|
@@ -0,0 +1 @@
|
|
1
|
+
# defaults
|
@@ -0,0 +1,5 @@
|
|
1
|
+
# For deployment only:
|
2
|
+
# KAMAL_REGISTRY_PASSWORD=dckr_pat_xXXxx_x0xXxXx-xX-XXX0xX0x-x
|
3
|
+
# RAILS_MASTER_KEY=00x00xxx000xxx000000xx0x000x0x00
|
4
|
+
# POSTGRES_PASSWORD=xXxxx0xXXx0
|
5
|
+
# BLAZER_DATABASE_URL=postgres://baheth:{POSTGRES_PASSWORD}@baheth-postgres:5432/baheth_production
|
@@ -0,0 +1,27 @@
|
|
1
|
+
---
|
2
|
+
EnableDefaultLinters: true
|
3
|
+
linters:
|
4
|
+
ErbSafety:
|
5
|
+
enabled: true
|
6
|
+
better_html_config: .better-html.yml
|
7
|
+
Rubocop:
|
8
|
+
enabled: true
|
9
|
+
rubocop_config:
|
10
|
+
inherit_from:
|
11
|
+
- .rubocop.yml
|
12
|
+
Layout/InitialIndentation:
|
13
|
+
Enabled: false
|
14
|
+
Layout/LineLength:
|
15
|
+
Enabled: false
|
16
|
+
Layout/TrailingEmptyLines:
|
17
|
+
Enabled: false
|
18
|
+
Layout/TrailingWhitespace:
|
19
|
+
Enabled: false
|
20
|
+
Naming/FileName:
|
21
|
+
Enabled: false
|
22
|
+
Style/FrozenStringLiteralComment:
|
23
|
+
Enabled: false
|
24
|
+
Lint/UselessAssignment:
|
25
|
+
Enabled: false
|
26
|
+
Rails/OutputSafety:
|
27
|
+
Enabled: false
|
data/lib/permadeps/version.rb
CHANGED
data/lib/permadeps.rb
CHANGED
data/rubocop.yml
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: permadeps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1445.12.
|
4
|
+
version: 1445.12.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ali Hamdi Ali Fadel
|
@@ -539,6 +539,13 @@ files:
|
|
539
539
|
- ".rubocop.yml"
|
540
540
|
- LICENSE
|
541
541
|
- README.md
|
542
|
+
- lib/generators/permadeps/install/install_generator.rb
|
543
|
+
- lib/generators/permadeps/install/templates/.annotaterb.yml
|
544
|
+
- lib/generators/permadeps/install/templates/.better-html.yml
|
545
|
+
- lib/generators/permadeps/install/templates/.env.example
|
546
|
+
- lib/generators/permadeps/install/templates/.erb-lint.yml
|
547
|
+
- lib/generators/permadeps/install/templates/.rubocop.yml
|
548
|
+
- lib/generators/permadeps/install/templates/better_html.rb
|
542
549
|
- lib/permadeps.rb
|
543
550
|
- lib/permadeps/version.rb
|
544
551
|
- permadeps.gemspec
|