rails_model_load_hook 0.1.0 → 0.1.2

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
- SHA1:
3
- metadata.gz: 19ca1dddc01a0f598676ba51059459065719eae7
4
- data.tar.gz: d598657e3a3bf426bcde136400db406bd2575b21
2
+ SHA256:
3
+ metadata.gz: 59809d182fd8ed44d58b1ab97624e8e3bce420e7c1a2114521ca9ecd78a24986
4
+ data.tar.gz: 8f1210c28099ce945c90ad79b754afc54e33ca7753586bae0ceb4847aef85d2c
5
5
  SHA512:
6
- metadata.gz: d8b189d61cd610424c57727d576edd0c22ef125e00e94ad152326da105c4b3d944dc47ff3be653a54af9adafe9f3c6132204259b49442f4a891906c5af958c6d
7
- data.tar.gz: 4633c6f289c79d4fac550e07542fbdce9985ce8aad8f465965eab1cef10b1286bbd27064945e72e50d94fff499e387ac6b6a595e17543db0829a799682107c35
6
+ metadata.gz: b6c6949e893a8e3453cec3552690e3e0d3f53bb0757941729b2ed9c80a8bdf451aa62181a28cec7ed3585f7960a842044faeb609f85d410a13632b32fef6fe01
7
+ data.tar.gz: e2838541b2b15bbf7d862568f1bdbeb95c0524fd67af21b5906c19411d642d4145bc6c443444530d01b06f559af22d388bef5b95b9fe376b2ef41e482abb8803
@@ -4,14 +4,13 @@ module RailsModelLoadHook::ActiveRecord
4
4
  module OnLoad
5
5
  extend ActiveSupport::Concern
6
6
 
7
- included do
8
- singleton_class.alias_method_chain :inherited, :on_load
9
- end
10
-
11
7
  module ClassMethods
12
- def inherited_with_on_load child
8
+ private
9
+
10
+ def inherited child
11
+ super
12
+
13
13
  ActiveSupport.run_load_hooks :model_class, child
14
- inherited_without_on_load child
15
14
  end
16
15
  end
17
16
  end
@@ -1,5 +1,5 @@
1
1
  require 'rails_model_load_hook/active_record/on_load'
2
2
 
3
3
  ActiveSupport.on_load :active_record do
4
- include RailsModelLoadHook::ActiveRecord::OnLoad
4
+ prepend RailsModelLoadHook::ActiveRecord::OnLoad
5
5
  end
@@ -1,3 +1,3 @@
1
1
  module RailsModelLoadHook
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_model_load_hook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Senko
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-19 00:00:00.000000000 Z
11
+ date: 2023-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: Adds :model_class load hook for every ActiveRecord descendant.
@@ -45,37 +45,36 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - lib/tasks/rails_model_load_hook_tasks.rake
49
- - lib/rails_model_load_hook.rb
50
- - lib/rails_model_load_hook/version.rb
51
- - lib/rails_model_load_hook/engine.rb
52
- - lib/rails_model_load_hook/active_record/on_load.rb
53
- - lib/rails_model_load_hook/active_record.rb
54
48
  - MIT-LICENSE
55
- - Rakefile
56
49
  - README.rdoc
57
- homepage: https://github.com/softpro/rails_model_load_hook
50
+ - Rakefile
51
+ - lib/rails_model_load_hook.rb
52
+ - lib/rails_model_load_hook/active_record.rb
53
+ - lib/rails_model_load_hook/active_record/on_load.rb
54
+ - lib/rails_model_load_hook/engine.rb
55
+ - lib/rails_model_load_hook/version.rb
56
+ - lib/tasks/rails_model_load_hook_tasks.rake
57
+ homepage: https://github.com/Alexander-Senko/rails_model_load_hook
58
58
  licenses:
59
59
  - MIT
60
60
  metadata: {}
61
- post_install_message:
61
+ post_install_message:
62
62
  rdoc_options: []
63
63
  require_paths:
64
64
  - lib
65
65
  required_ruby_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - '>='
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '0'
69
+ version: '2.0'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - '>='
72
+ - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubyforge_project:
77
- rubygems_version: 2.0.3
78
- signing_key:
76
+ rubygems_version: 3.4.0.dev
77
+ signing_key:
79
78
  specification_version: 4
80
79
  summary: Load hook for Rails model classes.
81
80
  test_files: []