permadeps 1445.12.2 → 1445.12.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cad5b933d9637a5f157c23410c4bb754be6332bce7ea30a1ad7921c73a72bdf8
4
- data.tar.gz: 933f4e2e35a8e709b0f400a4191dd2cc0bebda404acc295c2c21af6f1a7ddf9a
3
+ metadata.gz: fe62daf2a7eb148fabfccb5c08b6a13be1c922d05e56fa2cb9654a1881cb6351
4
+ data.tar.gz: 21a6b55410ee184bc1792a07878f9e121c55cab87f24e365ac75c19e5e3072aa
5
5
  SHA512:
6
- metadata.gz: e866b228b515c1b3cded55ec9c37e3b79167a1f8942684835b75a75505788fe413c0485f118861e720087c234b2950f69d516f06490cd6e3ab2fac57343b82c9
7
- data.tar.gz: 696856f85aecc966e813a367f79ac8d557ca542e7be317d8c9573bbde34a725905f7c5ae738e24e915b36101134536ed095702ab4029264e00562bbbde84e424
6
+ metadata.gz: 03bd74e39ad6c67603bfc374b3d19f44fca575ebe75b3771221e3bd471eec89f9774adceacc9f13021f35d045591c075d00d2c0c9b7fd035af898d365941f05a
7
+ data.tar.gz: 7c6dd7379bad39b80c75219fe4e061f61edab873f2b198efd93daf515efca84bd64227260048311a39d7a8efca6fe6b5c14dae1252b6f1d1561c01cb3676c240
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,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
@@ -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.3'
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.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