mobility 0.7.1 → 0.7.2

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: f81e4a56c4cc130277eb3af2e56fbb966cdf50f37341bec4f6938ba173a013f6
4
- data.tar.gz: 9183ea4cdf94f5789184b60226f2e39fe0b186a91717c98a092f0bb4609bb703
3
+ metadata.gz: 4386e6a7b1d163ae7835e6f8a268935fe1bcd40cf5dfbf1adbb74502df44e559
4
+ data.tar.gz: 9f4f318675f9004e7fb16598991d19af122f4f12fe6733d4224e77d93fdc8dbf
5
5
  SHA512:
6
- metadata.gz: c1a229d1bbac0f88066df401448e7e3255954d5820e90981709c066080d087757237f3778ac9c7910df3b3edb9bdee4ecec564f4b907c2241960a82a963250af
7
- data.tar.gz: 64061966e7e2d164b417be5329cb4f3006866f9a9fd576c04cf3a025b9a80ceb36c46e23fb2703d0faad4cfe3b215537346f8ebd71f2abda07d6400bc3c88bef
6
+ metadata.gz: 1f3b63825944b5b0993de2a6a540c3c3771ae0f7b127e1b89b97c4de076989e4f2703427dadddbc7a271c80fcf25edade7ccb38af77ccad7b1cd9c78741c671d
7
+ data.tar.gz: 0b7b9b7a2c449483e79870bd85a06f1f1bef198f4cc70a9872e119555424cfa3cf3a38d1365eb525572162ab0a1513cee5027c2df025afdaa4628c04bdf971c3
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.2 (June 3, 2018)
6
+ * Normalize locale in table aliases
7
+ ([#246](https://github.com/shioyama/mobility/pull/246))
8
+
5
9
  ### 0.7.1 (May 30, 2018)
6
10
  * Revert unscoping in uniqueness validator
7
11
  ([#244](https://github.com/shioyama/mobility/pull/244))
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mobility (0.6.0)
4
+ mobility (0.8.0.alpha1)
5
5
  i18n (>= 0.6.10, < 1.1)
6
6
  request_store (~> 1.0)
7
7
 
@@ -42,7 +42,7 @@ GEM
42
42
  database_cleaner (1.7.0)
43
43
  diff-lcs (1.3)
44
44
  erubi (1.7.1)
45
- ffi (1.9.23)
45
+ ffi (1.9.24)
46
46
  formatador (0.2.5)
47
47
  generator_spec (0.9.4)
48
48
  activesupport (>= 3.0.0)
@@ -128,7 +128,7 @@ GEM
128
128
  thread_safe (0.3.6)
129
129
  tzinfo (1.2.5)
130
130
  thread_safe (~> 0.1)
131
- yard (0.9.13)
131
+ yard (0.9.14)
132
132
 
133
133
  PLATFORMS
134
134
  ruby
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.1'
54
+ gem 'mobility', '~> 0.7.2'
55
55
  ```
56
56
 
57
57
  Mobility is cryptographically signed. To be sure the gem you install hasn't
@@ -73,7 +73,7 @@ Implements the {Mobility::Backends::KeyValue} backend for ActiveRecord models.
73
73
  private
74
74
 
75
75
  def table_alias(attr, locale)
76
- table_alias_affix % "#{attr}_#{locale}"
76
+ table_alias_affix % "#{attr}_#{Mobility.normalize_locale(locale)}"
77
77
  end
78
78
 
79
79
  def join_translations(relation, key, locale, join_type)
@@ -142,7 +142,7 @@ columns to that table.
142
142
  private
143
143
 
144
144
  def table_alias(locale)
145
- "#{locale}_#{table_name}"
145
+ "#{table_name}_#{Mobility.normalize_locale(locale)}"
146
146
  end
147
147
 
148
148
  def join_translations(relation, locale, join_type)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mobility
4
- VERSION = "0.7.1"
4
+ VERSION = "0.7.2"
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.1
4
+ version: 0.7.2
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-05-30 00:00:00.000000000 Z
33
+ date: 2018-06-03 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