mobility 0.7.0 → 0.7.1

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: e5043fe3bb4af2f09abf2cb81541680639b650777657e4ca776e178295b17ef8
4
- data.tar.gz: cc8bead5891cd7ddcaf3d1166eb03102705c820551ffd75563219d293a2badc8
3
+ metadata.gz: f81e4a56c4cc130277eb3af2e56fbb966cdf50f37341bec4f6938ba173a013f6
4
+ data.tar.gz: 9183ea4cdf94f5789184b60226f2e39fe0b186a91717c98a092f0bb4609bb703
5
5
  SHA512:
6
- metadata.gz: b2753f7b33cac63eba6f8edee4a328cea6cc2f9f5ec36cf19a50a71731b7c1b1474b061c86ec82abd8b096b8aeb43d1e5900da8f17fd9e8c72d70052dbc8672b
7
- data.tar.gz: 3eee2b8e73d06235472c3f1766eb64d2da8fd0367710d69865442c93c38a555fef6a8155f797d0e221ebb1fa74498786221b2da7896760841aaa2f20b2bf99ac
6
+ metadata.gz: c1a229d1bbac0f88066df401448e7e3255954d5820e90981709c066080d087757237f3778ac9c7910df3b3edb9bdee4ecec564f4b907c2241960a82a963250af
7
+ data.tar.gz: 64061966e7e2d164b417be5329cb4f3006866f9a9fd576c04cf3a025b9a80ceb36c46e23fb2703d0faad4cfe3b215537346f8ebd71f2abda07d6400bc3c88bef
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1,6 @@
1
- mŅ������cЖ��"n�3<��4�?�PfϮF��,��39��4iM���N$E�~���be�D��ChL���FD��U�.1"i����p@�p|��)^�`b����8�f��D�>��p��R�[���@��(G�v�N�K%ڨÈS��@���)>�Co�(�H�<�Y�o�"�c�B���ڧ����Š����]Yo:6&�U��MQ�m�����Ұ���>al��l��\�F%#>6���
2
- ��@�~
1
+ Y|��f�sk_��
2
+ h�נ-�]�$�!n��
3
+ �b�׍&�]�[�E�����E��-�+1�{k��� �q��SX���]�D�0�:Т
4
+ ��j�QWD�F�
5
+ F��C�
6
+ �ߓ���Q�p�q��N�D�m&ѱ)�%A�i�[~��T�o����
data/CHANGELOG.md CHANGED
@@ -2,12 +2,16 @@
2
2
 
3
3
  ## 0.7
4
4
 
5
+ ### 0.7.1 (May 30, 2018)
6
+ * Revert unscoping in uniqueness validator
7
+ ([#244](https://github.com/shioyama/mobility/pull/244))
8
+
5
9
  ### 0.7.0 (May 30, 2018)
6
10
 
7
11
  * Restructure querying into plugin (ActiveRecord only)
8
12
  ([#216](https://github.com/shioyama/mobility/pull/216),
9
13
  [#225](https://github.com/shioyama/mobility/pull/225),
10
- [#222](https://github.com/shioyama/mobility/pull/222),
14
+ [#222](https://github.com/shioyama/mobility/pull/222),
11
15
  * Support querying on multiple locales at once
12
16
  ([#232](https://github.com/shioyama/mobility/pull/232))
13
17
  * Allow passing locale to query methods
@@ -23,7 +27,7 @@
23
27
  ([#241](https://github.com/shioyama/mobility/pull/241))
24
28
  * Define options on subclassed backend class
25
29
  ([#218](https://github.com/shioyama/mobility/pull/218))
26
- * Add column_affix
30
+ * Add column_affix
27
31
  * Use module_eval to define locale_accessors
28
32
  ([#219](https://github.com/shioyama/mobility/pull/219))
29
33
  * Improve performance of getters/setters
data/README.md CHANGED
@@ -51,7 +51,7 @@ Installation
51
51
  Add this line to your application's Gemfile:
52
52
 
53
53
  ```ruby
54
- gem 'mobility', '~> 0.7.0'
54
+ gem 'mobility', '~> 0.7.1'
55
55
  ```
56
56
 
57
57
  Mobility is cryptographically signed. To be sure the gem you install hasn't
@@ -49,7 +49,7 @@ To use the validator, you must +extend Mobility+ before calling +validates+
49
49
  private
50
50
 
51
51
  def mobility_scope_relation(record, relation)
52
- [*options[:scope]].inject(relation.unscoped) do |scoped_relation, scope_item|
52
+ [*options[:scope]].inject(relation) do |scoped_relation, scope_item|
53
53
  scoped_relation.__mobility_query_scope__ do |m|
54
54
  m.__send__(scope_item).eq(record.send(scope_item))
55
55
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mobility
4
- VERSION = "0.7.0"
4
+ VERSION = "0.7.1"
5
5
  end
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: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Salzberg
metadata.gz.sig CHANGED
Binary file