associate_jsonb 0.0.1 → 0.0.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
2
  SHA256:
3
- metadata.gz: ad94cc18f8d5f87d25f2ebe9d0b75309fb43a3f22fc1438266e05ce39c2a3064
4
- data.tar.gz: 016ce6443d9fdca1155d4b63fc18e6f6aaa18ef8887f73fe22312ee876d65f5d
3
+ metadata.gz: 0b7b0080eb6128847d7f71444d31f97bd2b4d09ebd9e0611901867e6a7812b1d
4
+ data.tar.gz: b3f85301fb398025f1cd732987035def7a79ba743fe51f9c1df337a1992848bd
5
5
  SHA512:
6
- metadata.gz: 7534ab4739036cff3691d4da6ac3d612cb6149c948088a3b7c24095e10bafce0d98e4bd96b7276c1ce84fd5e1017f039af48d59ed7d29f42827e90379a5e277d
7
- data.tar.gz: 97e169f1942e48131f7de7be8dc99551c525fbdec7914a3de26abe3738614f1ae838bbd3edf2fb8828097c60ae32a47546638053f447510b4ad3792677dd639b
6
+ metadata.gz: 30312348d528402aa1fb3da6c00c0f12cd9cc13fb76d1f5f2a9410d908c69aecf2eadb662d7a243f6fa486bbea093c78de8b8a0806a91390da1c9f75c4e4b0fd
7
+ data.tar.gz: 485c25f17feda5fdaeab8d105f923470ed28a13f73c07c851854dc6af86a86d1dcf044598748ca3a2abdca1eb64d3550734a017a941ebb64373cda8eaf10b296
@@ -12,6 +12,7 @@ require "mutex_m"
12
12
 
13
13
  require "zeitwerk"
14
14
  loader = Zeitwerk::Loader.for_gem
15
+ loader.inflector.inflect "supported_rails_version" => "SUPPORTED_RAILS_VERSION"
15
16
  loader.setup # ready!
16
17
 
17
18
  module AssociateJsonb
@@ -0,0 +1,6 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: true
3
+
4
+ module AssociateJsonb
5
+ SUPPORTED_RAILS_VERSION = "6.0.3.2"
6
+ end
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module AssociateJsonb
5
- VERSION = "0.0.1"
5
+ VERSION = "0.0.2"
6
6
  end
@@ -116,7 +116,7 @@ module AssociateJsonb
116
116
 
117
117
  mixin.class_eval <<-CODE, __FILE__, __LINE__ + 1
118
118
  def #{store}=(given)
119
- given = super((given || {}).with_indifferent_access)
119
+ given = super(given || {}).with_indifferent_access
120
120
  write_attribute(:#{attribute}, given["#{key}"])
121
121
  given["#{key}"] = #{attribute} unless #{attribute}.nil?
122
122
  super(given)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: associate_jsonb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sampson Crowley
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '6'
19
+ version: 6.0.3
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 6.0.3.1
22
+ version: 6.0.3.2
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '6'
29
+ version: 6.0.3
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 6.0.3.1
32
+ version: 6.0.3.2
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: pg
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -144,6 +144,7 @@ files:
144
144
  - lib/associate_jsonb/connection_adapters/reference_definition.rb
145
145
  - lib/associate_jsonb/reflection.rb
146
146
  - lib/associate_jsonb/relation/where_clause.rb
147
+ - lib/associate_jsonb/supported_rails_version.rb
147
148
  - lib/associate_jsonb/version.rb
148
149
  - lib/associate_jsonb/with_store_attribute.rb
149
150
  homepage: https://github.com/SampsonCrowley/associate_jsonb