rails_model_load_hook 0.2.3 → 0.2.4

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: ac50e63d66b73854785a4d987cbdc49a6c1b2de94dff9406dfe5fdbea3792c20
4
- data.tar.gz: 30ecd97aaa130637b754650539dcbf291c7deb75d6c185945434c7fd53f7eeb3
3
+ metadata.gz: 39be06afd5e8ad6eeb8511e34135cd71295cfa90474480a7305844633b6ca940
4
+ data.tar.gz: d3025d562a3fe1167c548c1caeb3bafa3e89a705979ef8bfd60db642569b8524
5
5
  SHA512:
6
- metadata.gz: fc0f7f8516d9393d96744ba963a48098c19860ed88e1fb62fb427266961dba8987670f865ba8c7a8ee62f5871d3c1b8ceb0e19952e867523e6452644730f2287
7
- data.tar.gz: 231c525e4c482ad527bb19fd753fe84f7214e2f12dfad5e70587fee79dad9b0296575f66de394ffe2ded67f304b6c171866ed4d74bffb473d646edee207e0fc2
6
+ metadata.gz: c66baac11234ce2643efab4c38d3ba7b365ace7f6c661980a6053a36701fa5b4fd89b4dfc2b49269f0b12d5c59208c85a391b3a4e7635149013ef1fef959bad3
7
+ data.tar.gz: 1ea4ffa1d90925dc4b86770be7bfd8e86f78344e989cef2b1e32b3a33a3b55158e55c660a83e1d3f9bb7369507f9cd5ce0bc3d57c610a85029e8fa57b93bd9f3
data/Rakefile CHANGED
@@ -1,8 +1,10 @@
1
- require "bundler/setup"
1
+ # frozen_string_literal: true
2
2
 
3
- APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
4
- load "rails/tasks/engine.rake"
3
+ require 'bundler/setup'
5
4
 
6
- load "rails/tasks/statistics.rake"
5
+ APP_RAKEFILE = File.expand_path('test/dummy/Rakefile', __dir__)
6
+ load 'rails/tasks/engine.rake'
7
7
 
8
- require "bundler/gem_tasks"
8
+ load 'rails/tasks/statistics.rake'
9
+
10
+ require 'bundler/gem_tasks'
@@ -1,4 +1,6 @@
1
- module RailsModelLoadHook
1
+ # frozen_string_literal: true
2
+
3
+ module RailsModelLoadHook # :nodoc:
2
4
  concern :ActiveRecord do
3
5
  class_methods do
4
6
  private
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  ActiveSupport.on_load :active_record do
2
4
  prepend RailsModelLoadHook::ActiveRecord
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Gem::Author ||= Struct.new(
2
4
  :name,
3
5
  :email,
@@ -11,5 +13,5 @@ module RailsModelLoadHook
11
13
  email: 'Alexander.Senko@gmail.com',
12
14
  github_url: 'https://github.com/Alexander-Senko',
13
15
  ),
14
- ]
16
+ ].freeze
15
17
  end
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module RailsModelLoadHook
2
- class Engine < ::Rails::Engine
4
+ class Engine < ::Rails::Engine # :nodoc:
3
5
  isolate_namespace RailsModelLoadHook
4
6
  end
5
7
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module RailsModelLoadHook
2
- VERSION = '0.2.3'
4
+ VERSION = '0.2.4'
3
5
  end
@@ -1,6 +1,8 @@
1
- require "rails_model_load_hook/version"
2
- require "rails_model_load_hook/engine"
1
+ # frozen_string_literal: true
3
2
 
4
- module RailsModelLoadHook
3
+ require 'rails_model_load_hook/version'
4
+ require 'rails_model_load_hook/engine'
5
+
6
+ module RailsModelLoadHook # :nodoc:
5
7
  # Your code goes here...
6
8
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # desc 'Explaining what the task does'
2
4
  # task :rails_model_load_hook do
3
5
  # # Task goes here
metadata CHANGED
@@ -1,27 +1,26 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_model_load_hook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Senko
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-04-02 00:00:00.000000000 Z
10
+ date: 2025-03-08 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rails
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - "~>"
16
+ - - ">="
18
17
  - !ruby/object:Gem::Version
19
18
  version: '7.1'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
- - - "~>"
23
+ - - ">="
25
24
  - !ruby/object:Gem::Version
26
25
  version: '7.1'
27
26
  description: Adds :model_class load hook for every ActiveRecord descendant.
@@ -35,17 +34,8 @@ files:
35
34
  - MIT-LICENSE
36
35
  - README.md
37
36
  - Rakefile
38
- - app/assets/config/rails_model_load_hook_manifest.js
39
- - app/assets/stylesheets/rails_model_load_hook/application.css
40
- - app/controllers/rails_model_load_hook/application_controller.rb
41
- - app/helpers/rails_model_load_hook/application_helper.rb
42
- - app/jobs/rails_model_load_hook/application_job.rb
43
- - app/mailers/rails_model_load_hook/application_mailer.rb
44
37
  - app/models/concerns/rails_model_load_hook/active_record.rb
45
- - app/models/rails_model_load_hook/application_record.rb
46
- - app/views/layouts/rails_model_load_hook/application.html.erb
47
38
  - config/initializers/active_record.rb
48
- - config/routes.rb
49
39
  - lib/rails_model_load_hook.rb
50
40
  - lib/rails_model_load_hook/authors.rb
51
41
  - lib/rails_model_load_hook/engine.rb
@@ -57,8 +47,7 @@ licenses:
57
47
  metadata:
58
48
  homepage_uri: https://github.com/Alexander-Senko/rails_model_load_hook
59
49
  source_code_uri: https://github.com/Alexander-Senko/rails_model_load_hook
60
- changelog_uri: https://github.com/Alexander-Senko/rails_model_load_hook/blob/v0.2.3/CHANGELOG.md
61
- post_install_message:
50
+ changelog_uri: https://github.com/Alexander-Senko/rails_model_load_hook/blob/v0.2.4/CHANGELOG.md
62
51
  rdoc_options: []
63
52
  require_paths:
64
53
  - lib
@@ -73,8 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
62
  - !ruby/object:Gem::Version
74
63
  version: '0'
75
64
  requirements: []
76
- rubygems_version: 3.5.6
77
- signing_key:
65
+ rubygems_version: 3.6.2
78
66
  specification_version: 4
79
67
  summary: Load hook for Rails model classes.
80
68
  test_files: []
@@ -1 +0,0 @@
1
- //= link_directory ../stylesheets/rails_model_load_hook .css
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
- * files in this directory. Styles in this file should be added after the last require_* statement.
11
- * It is generally better to create a new file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
@@ -1,4 +0,0 @@
1
- module RailsModelLoadHook
2
- class ApplicationController < ActionController::Base
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module RailsModelLoadHook
2
- module ApplicationHelper
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module RailsModelLoadHook
2
- class ApplicationJob < ActiveJob::Base
3
- end
4
- end
@@ -1,6 +0,0 @@
1
- module RailsModelLoadHook
2
- class ApplicationMailer < ActionMailer::Base
3
- default from: "from@example.com"
4
- layout "mailer"
5
- end
6
- end
@@ -1,5 +0,0 @@
1
- module RailsModelLoadHook
2
- class ApplicationRecord < ActiveRecord::Base
3
- self.abstract_class = true
4
- end
5
- end
@@ -1,15 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Rails model load hook</title>
5
- <%= csrf_meta_tags %>
6
- <%= csp_meta_tag %>
7
-
8
- <%= stylesheet_link_tag "rails_model_load_hook/application", media: "all" %>
9
- </head>
10
- <body>
11
-
12
- <%= yield %>
13
-
14
- </body>
15
- </html>
data/config/routes.rb DELETED
@@ -1,2 +0,0 @@
1
- RailsModelLoadHook::Engine.routes.draw do
2
- end