mobility 0.7.0 → 0.7.1
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +6 -2
- data/CHANGELOG.md +6 -2
- data/README.md +1 -1
- data/lib/mobility/active_record/uniqueness_validator.rb +1 -1
- data/lib/mobility/version.rb +1 -1
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f81e4a56c4cc130277eb3af2e56fbb966cdf50f37341bec4f6938ba173a013f6
|
|
4
|
+
data.tar.gz: 9183ea4cdf94f5789184b60226f2e39fe0b186a91717c98a092f0bb4609bb703
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
2
|
-
|
|
1
|
+
Y|��f�s�k�_��
|
|
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
|
@@ -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
|
|
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
|
data/lib/mobility/version.rb
CHANGED
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|