mobility 1.0.4 → 1.0.5

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: 4e614b2354ec6cfbc7d4b3d946beabc5214904c21432cceb0b78530ca389184e
4
- data.tar.gz: fa9e5cf7097b92a203e38e07617254e42d3bc11f58254b4b13b359639b70902a
3
+ metadata.gz: 64a3453a8f28396a24b95987a4df6fb0fabfd3d90b03fccc47f6b82d72e77d8d
4
+ data.tar.gz: 81ebec57acc6a48596d826716b37239549c01b68db59572d8bf6224b0d276831
5
5
  SHA512:
6
- metadata.gz: ef1653434cb1e303f0496c9fecd810ea2d2772009dca94358949e293157e6f2a58341867ad6c117a5dc91469002acdd80b969d442126a7df95ea49f667360cc8
7
- data.tar.gz: dceae9f7039d21bcd5d68a0a2f54515b39c0b8ab871c7386fe0834a88f973e91af5c27f48a85cdfe0d6479a8291a976abfee2208e16a116c4d75b03db54a8f87
6
+ metadata.gz: 63c3046ddce27b50708b73d78119b79b2e554bee7b92f8db843a3ea275acb91694da9c88c473e11c4ad07147bb7d9448229f44d7eb581f8d433313b7e6ecc34a
7
+ data.tar.gz: 56ea4ab41a4984e54c5cb3ccf75fa13f42a4afbb3248463e65235fcdf879100bef6cdf34a29a482e5e790bb043bddf0dc6cb398a5fe24682a886882c6ace1bbb
@@ -1,2 +1,3 @@
1
- zUE-F��h9d8����CF�`3���F���rXp4S;)���ߴ>]�B��o����Wn Y��"�!\�snE��NھH�zp��!C4ɦ�2�Ջ�s��n����=gCV��i��b6��E�S��F���t+*��r|�-gd[��pغaCq���]�iZy��L�<u%�smШT��*~sk�}:�S T���Լ��i )�y,�V�Vc���‡O;��.򏸼g��؁��֮tvc�w�"V��]
2
- m~k��?��,�{����G@�������]m�Ň?F&���VN�� �PdSޒ�dG�ah����y�*\���|p�ɒ�+� �W�P���:�;�G��䎄)jv�3�]5yER��<<|��l��A
1
+ |�sx8qQ�/Ρ��w�ҭ|AHr<�RnP���j��˓)��fD Ť\A" ���'��2)��9�lh�=���GK�X4v3���]M���_x���6�mׯ\.r�}Q��is����x�-������+^�xzF0����
2
+ C ��b��ɍ%�fe�I
3
+ cl��E�&��t,�A�t����"��֡b��#S�����4ɇS'����5#�l�cIm�fvӽ=����n�L�-Ȓ
data.tar.gz.sig CHANGED
Binary file
@@ -21,6 +21,12 @@
21
21
  v1.0](https://github.com/shioyama/mobility/wiki/Introduction-to-Mobility-v1.0)
22
22
  for more details on how to upgrade.
23
23
 
24
+ ### 1.0.5
25
+ - Fix duping with AR Table backend, fixes
26
+ [#490](https://github.com/shioyama/mobility/issues/490)
27
+ ([#499](https://github.com/shioyama/mobility/pull/499) and
28
+ [#501](https://github.com/shioyama/mobility/pull/501))
29
+
24
30
  ### 1.0.4
25
31
  - Correctly override default backend options, fixes
26
32
  [#492](https://github.com/shioyama/mobility/issues/492)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mobility (1.0.1)
4
+ mobility (1.0.4)
5
5
  i18n (>= 0.6.10, < 2)
6
6
  request_store (~> 1.0)
7
7
 
data/README.md CHANGED
@@ -56,7 +56,7 @@ To use the latest pre-version of Mobility 1.0, add this line to your
56
56
  application's Gemfile:
57
57
 
58
58
  ```ruby
59
- gem 'mobility', '~> 1.0.4'
59
+ gem 'mobility', '~> 1.0.5'
60
60
  ```
61
61
 
62
62
  ### ActiveRecord (Rails)
@@ -274,6 +274,12 @@ columns to that table.
274
274
  define_method :initialize_dup do |source|
275
275
  super(source)
276
276
  self.send("#{association_name}=", source.send(association_name).map(&:dup))
277
+
278
+ # for cache
279
+ # FIXME: do this better
280
+ if options[:cache]
281
+ instance_variable_set(:"@__mobility_#{association_name}_cache", {})
282
+ end
277
283
  end
278
284
  end
279
285
  include const_set(module_name, dupable)
@@ -8,7 +8,7 @@ module Mobility
8
8
  module VERSION
9
9
  MAJOR = 1
10
10
  MINOR = 0
11
- TINY = 4
11
+ TINY = 5
12
12
  PRE = nil
13
13
 
14
14
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobility
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Salzberg
metadata.gz.sig CHANGED
Binary file