mobility 0.7.2 → 0.7.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4386e6a7b1d163ae7835e6f8a268935fe1bcd40cf5dfbf1adbb74502df44e559
4
- data.tar.gz: 9f4f318675f9004e7fb16598991d19af122f4f12fe6733d4224e77d93fdc8dbf
3
+ metadata.gz: 0e0f95b761c21d4b4e8dbbbc3b46dea6a2b70039ca864dba15983689f207cf69
4
+ data.tar.gz: 1b2e5d61347a30f602dcaf56a7e467b24bf775bf0577a9494d84683921779705
5
5
  SHA512:
6
- metadata.gz: 1f3b63825944b5b0993de2a6a540c3c3771ae0f7b127e1b89b97c4de076989e4f2703427dadddbc7a271c80fcf25edade7ccb38af77ccad7b1cd9c78741c671d
7
- data.tar.gz: 0b7b9b7a2c449483e79870bd85a06f1f1bef198f4cc70a9872e119555424cfa3cf3a38d1365eb525572162ab0a1513cee5027c2df025afdaa4628c04bdf971c3
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mobility (0.8.0.alpha1)
4
+ mobility (0.7.2)
5
5
  i18n (>= 0.6.10, < 1.1)
6
6
  request_store (~> 1.0)
7
7
 
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.2'
54
+ gem 'mobility', '~> 0.7.3'
55
55
  ```
56
56
 
57
57
  Mobility is cryptographically signed. To be sure the gem you install hasn't
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mobility
4
- VERSION = "0.7.2"
4
+ VERSION = "0.7.3"
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.2
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-03 00:00:00.000000000 Z
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