adaptive_alias 0.0.2 → 0.2.0
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 +4 -4
- data/.github/workflows/ruby.yml +70 -70
- data/.gitignore +62 -62
- data/.rubocop.yml +1227 -1227
- data/CHANGELOG.md +12 -1
- data/CODE_OF_CONDUCT.md +49 -49
- data/LICENSE +21 -21
- data/README.md +67 -67
- data/Rakefile +10 -10
- data/adaptive_alias.gemspec +44 -44
- data/bin/console +14 -14
- data/bin/setup +8 -8
- data/gemfiles/6.0.gemfile +11 -10
- data/gemfiles/6.1.gemfile +11 -10
- data/gemfiles/7.0.gemfile +12 -11
- data/lib/adaptive_alias/active_model_patches/apply_scope.rb +17 -0
- data/lib/adaptive_alias/active_model_patches/read_attribute.rb +30 -20
- data/lib/adaptive_alias/active_model_patches/remove_alias_attribute.rb +24 -27
- data/lib/adaptive_alias/active_model_patches/write_attribute.rb +25 -0
- data/lib/adaptive_alias/hooks/association.rb +17 -13
- data/lib/adaptive_alias/hooks/association_scope.rb +13 -13
- data/lib/adaptive_alias/hooks/relation.rb +21 -21
- data/lib/adaptive_alias/hooks/singular_association.rb +13 -13
- data/lib/adaptive_alias/patches/backward_patch.rb +24 -21
- data/lib/adaptive_alias/patches/base.rb +110 -75
- data/lib/adaptive_alias/patches/forward_patch.rb +24 -21
- data/lib/adaptive_alias/version.rb +3 -3
- data/lib/adaptive_alias.rb +79 -65
- metadata +8 -6
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adaptive_alias
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- khiav reoy
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -123,8 +123,10 @@ files:
|
|
123
123
|
- gemfiles/6.1.gemfile
|
124
124
|
- gemfiles/7.0.gemfile
|
125
125
|
- lib/adaptive_alias.rb
|
126
|
+
- lib/adaptive_alias/active_model_patches/apply_scope.rb
|
126
127
|
- lib/adaptive_alias/active_model_patches/read_attribute.rb
|
127
128
|
- lib/adaptive_alias/active_model_patches/remove_alias_attribute.rb
|
129
|
+
- lib/adaptive_alias/active_model_patches/write_attribute.rb
|
128
130
|
- lib/adaptive_alias/hooks/association.rb
|
129
131
|
- lib/adaptive_alias/hooks/association_scope.rb
|
130
132
|
- lib/adaptive_alias/hooks/relation.rb
|
@@ -142,7 +144,7 @@ metadata:
|
|
142
144
|
source_code_uri: https://github.com/khiav223577/adaptive_alias
|
143
145
|
documentation_uri: https://www.rubydoc.info/gems/adaptive_alias
|
144
146
|
bug_tracker_uri: https://github.com/khiav223577/adaptive_alias/issues
|
145
|
-
post_install_message:
|
147
|
+
post_install_message:
|
146
148
|
rdoc_options: []
|
147
149
|
require_paths:
|
148
150
|
- lib
|
@@ -157,8 +159,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
159
|
- !ruby/object:Gem::Version
|
158
160
|
version: '0'
|
159
161
|
requirements: []
|
160
|
-
rubygems_version: 3.
|
161
|
-
signing_key:
|
162
|
+
rubygems_version: 3.2.14
|
163
|
+
signing_key:
|
162
164
|
specification_version: 4
|
163
165
|
summary: Extend attribute_alias and make it be adaptive with realtime database schema
|
164
166
|
test_files: []
|