permadeps 1445.12.2 → 1445.12.4

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: cad5b933d9637a5f157c23410c4bb754be6332bce7ea30a1ad7921c73a72bdf8
4
- data.tar.gz: 933f4e2e35a8e709b0f400a4191dd2cc0bebda404acc295c2c21af6f1a7ddf9a
3
+ metadata.gz: 2308ff1b7f2c644586d56bac4f86a33da96e02db1f28c3809ffad69fff84711b
4
+ data.tar.gz: c381af1d0c28987726f86d1465bbb881bc1547da487ee3b6d5251e95091f4c32
5
5
  SHA512:
6
- metadata.gz: e866b228b515c1b3cded55ec9c37e3b79167a1f8942684835b75a75505788fe413c0485f118861e720087c234b2950f69d516f06490cd6e3ab2fac57343b82c9
7
- data.tar.gz: 696856f85aecc966e813a367f79ac8d557ca542e7be317d8c9573bbde34a725905f7c5ae738e24e915b36101134536ed095702ab4029264e00562bbbde84e424
6
+ metadata.gz: 2ca9e2e387aa6c289e875f1a372d937c213b35e21b79190da96f1bf513efd2de913019c7b308024fda13ae33761ff6db61b96aa13647be624ea121b4cfe45a40
7
+ data.tar.gz: d2d369926d0b22a7c69a1bb8cbe0dc417586c51378b02f81c226101b2368b4cd5a72613243090a347b8b1f34cdb20039b7b0c138ee6926fe8192314e7a96b7c8
data/.rubocop.yml CHANGED
@@ -31,6 +31,9 @@ Style/StringLiterals:
31
31
  Style/FrozenStringLiteralComment:
32
32
  Enabled: false
33
33
 
34
+ Style/MutableConstant:
35
+ Enabled: false
36
+
34
37
  Style/Documentation:
35
38
  Enabled: false
36
39
 
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,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,30 @@
1
+ ---
2
+ EnableDefaultLinters: true
3
+ exclude:
4
+ - '**/vendor/**/*'
5
+ - '**/node_modules/**/*'
6
+ linters:
7
+ ErbSafety:
8
+ enabled: true
9
+ better_html_config: .better-html.yml
10
+ Rubocop:
11
+ enabled: true
12
+ rubocop_config:
13
+ inherit_from:
14
+ - .rubocop.yml
15
+ Layout/InitialIndentation:
16
+ Enabled: false
17
+ Layout/LineLength:
18
+ Enabled: false
19
+ Layout/TrailingEmptyLines:
20
+ Enabled: false
21
+ Layout/TrailingWhitespace:
22
+ Enabled: false
23
+ Naming/FileName:
24
+ Enabled: false
25
+ Style/FrozenStringLiteralComment:
26
+ Enabled: false
27
+ Lint/UselessAssignment:
28
+ Enabled: false
29
+ Rails/OutputSafety:
30
+ Enabled: false
@@ -0,0 +1,3 @@
1
+ inherit_gem:
2
+ permadeps:
3
+ - rubocop.yml
@@ -0,0 +1,4 @@
1
+ BetterHtml.configure do |config|
2
+ config.partial_tag_name_pattern = /\A[a-zA-Z0-9\-\:]+\z/
3
+ config.template_exclusion_filter = proc { |filename| !filename.start_with?(Rails.root.to_s) }
4
+ end
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  module Permadeps
4
- VERSION = '1445.12.2'
2
+ VERSION = '1445.12.4'
5
3
  end
data/lib/permadeps.rb CHANGED
@@ -2,6 +2,7 @@ require 'ahoy'
2
2
  require 'blazer'
3
3
  require 'better_html'
4
4
  require 'flamegraph'
5
+ require 'geocoder'
5
6
  require 'memory_profiler'
6
7
  require 'notable'
7
8
  require 'pghero'
data/rubocop.yml CHANGED
@@ -31,6 +31,9 @@ Style/StringLiterals:
31
31
  Style/FrozenStringLiteralComment:
32
32
  Enabled: false
33
33
 
34
+ Style/MutableConstant:
35
+ Enabled: false
36
+
34
37
  Style/Documentation:
35
38
  Enabled: false
36
39
 
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.2
4
+ version: 1445.12.4
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