mobility 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/mobility.rb +9 -0
- data/lib/mobility/version.rb +1 -1
- metadata +2 -2
- 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: 0e0f95b761c21d4b4e8dbbbc3b46dea6a2b70039ca864dba15983689f207cf69
|
4
|
+
data.tar.gz: 1b2e5d61347a30f602dcaf56a7e467b24bf775bf0577a9494d84683921779705
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da7f935a5624a5ba5aae4eed92ea45ee2eb04593ba7efd370d51cc10b8715ec933d4955a36ced854b68190de40598bff1fed3ab99befe1c7c46bce681e0b4e8c
|
7
|
+
data.tar.gz: 76ba495e0ae4d8e287b5581f97641f3e2e71e69fbd326c18c12031c76a4db5dc7a36b8f0733c14a1ee31b322fdd805cf4089eaad67fa55a517c9d7c1837a35aa
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## 0.7
|
4
4
|
|
5
|
+
### 0.7.3 (June 7, 2018)
|
6
|
+
* Fix uniqueness on Mobility model with no translated attributes ([#252](Fix
|
7
|
+
uniqueness on Mobility model with no translated attributes))
|
8
|
+
|
5
9
|
### 0.7.2 (June 3, 2018)
|
6
10
|
* Normalize locale in table aliases
|
7
11
|
([#246](https://github.com/shioyama/mobility/pull/246))
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/mobility.rb
CHANGED
@@ -82,6 +82,7 @@ module Mobility
|
|
82
82
|
return if model_class.respond_to? :mobility_accessor
|
83
83
|
|
84
84
|
model_class.extend Translates
|
85
|
+
model_class.extend ClassMethods
|
85
86
|
#TODO: Remove in v1.0
|
86
87
|
model_class.include InstanceMethods
|
87
88
|
|
@@ -271,6 +272,14 @@ version of Mobility. To get backends, use <post>.<attribute>_backend instead.}
|
|
271
272
|
private_constant :Adapter
|
272
273
|
end
|
273
274
|
|
275
|
+
module ClassMethods
|
276
|
+
# Return translated attribute names on this model.
|
277
|
+
# @return [Array<String>] Attribute names
|
278
|
+
def mobility_attributes
|
279
|
+
[]
|
280
|
+
end
|
281
|
+
end
|
282
|
+
|
274
283
|
class InvalidLocale < I18n::InvalidLocale; end
|
275
284
|
class NotImplementedError < StandardError; end
|
276
285
|
end
|
data/lib/mobility/version.rb
CHANGED
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.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Salzberg
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
eGDROPZoL5RXwiOnRbexxa7dcAxMrDfGB/hpiunIPWPsi4n5P7K/6OO/sGVMl9xv
|
31
31
|
SZBPXjzrHdyOFLBYXB+PG7s3F/4=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2018-06-
|
33
|
+
date: 2018-06-07 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: request_store
|
metadata.gz.sig
CHANGED
Binary file
|