mobility 0.8.3 → 0.8.4

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: ad9470458519dbff24eccfc016a2859c3ff00bf0c52de992338cb9e7ff226d9a
4
- data.tar.gz: 40b44307d5594435842e9cada15ada91531a464308e21a8447abab4a2ee77c6f
3
+ metadata.gz: 733ca7a4894cdebcc0cefe533129793b6648d19c5c9f57f837b3660f8ac704f6
4
+ data.tar.gz: 7fc756a3e7b7278702b43c9ecbdf12d904000a960037cee8bbba0bc0b4b3ee3a
5
5
  SHA512:
6
- metadata.gz: e2b8ec0c89f666d9a3c2a1cdf4c77c78fb0b93cedc27b07cef36d1cb5064571001ee130b2aadd38260ec542922f5abe67efa918f6b83b3ba8dcfd10a20817e0c
7
- data.tar.gz: cfdefd660724a22271f191bb1d910920bf82daf650b4aa78b1a55c850d90396922b9998fe1db0b1cb669673b22510ae64f010d8d45a2287945b7fd16f4e2d0ad
6
+ metadata.gz: 30bbaa926ac3aef1fa1f438120f20c47077f97412ae24140b4a827cc1862f1ebf9cf0d24caf1caae2362f12af1e46ca6251848f012dfbd606aa603e682c0af91
7
+ data.tar.gz: c30e9bfbd12036581a03cca35488a068832f33928a91c337f27fd2ccf25908cc8363c3d20b95fa60c8ed0792ed6ce3fc0d8d49c55e8874f7a4a41cbc8693fee5
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## 0.8
4
4
 
5
+ ### 0.8.4 (October 19, 2018)
6
+ * Use references to define polymorphic associations in generator migrations
7
+ ([#292](https://github.com/shioyama/mobility/pull/292))
8
+
5
9
  ### 0.8.3 (October 1, 2018)
6
10
  * Handle untranslated scopes in AR query module
7
11
  ([#288](https://github.com/shioyama/mobility/pull/288))
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.8.3'
54
+ gem 'mobility', '~> 0.8.4'
55
55
  ```
56
56
 
57
57
  Mobility is cryptographically signed. To be sure the gem you install hasn't
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mobility
4
- VERSION = "0.8.3"
4
+ VERSION = "0.8.4"
5
5
  end
@@ -2,12 +2,11 @@ class CreateStringTranslations < <%= activerecord_migration_class %>
2
2
 
3
3
  def change
4
4
  create_table :mobility_string_translations do |t|
5
- t.string :locale, null: false
6
- t.string :key, null: false
7
- t.string :value
8
- t.integer :translatable_id, null: false
9
- t.string :translatable_type, null: false
10
- t.timestamps null: false
5
+ t.string :locale, null: false
6
+ t.string :key, null: false
7
+ t.string :value
8
+ t.references :translatable, polymorphic: true, index: false
9
+ t.timestamps null: false
11
10
  end
12
11
  add_index :mobility_string_translations, [:translatable_id, :translatable_type, :locale, :key], unique: true, name: :index_mobility_string_translations_on_keys
13
12
  add_index :mobility_string_translations, [:translatable_id, :translatable_type, :key], name: :index_mobility_string_translations_on_translatable_attribute
@@ -2,12 +2,11 @@ class CreateTextTranslations < <%= activerecord_migration_class %>
2
2
 
3
3
  def change
4
4
  create_table :mobility_text_translations do |t|
5
- t.string :locale, null: false
6
- t.string :key, null: false
7
- t.text :value
8
- t.integer :translatable_id, null: false
9
- t.string :translatable_type, null: false
10
- t.timestamps null: false
5
+ t.string :locale, null: false
6
+ t.string :key, null: false
7
+ t.text :value
8
+ t.references :translatable, polymorphic: true, index: false
9
+ t.timestamps null: false
11
10
  end
12
11
  add_index :mobility_text_translations, [:translatable_id, :translatable_type, :locale, :key], unique: true, name: :index_mobility_text_translations_on_keys
13
12
  add_index :mobility_text_translations, [:translatable_id, :translatable_type, :key], name: :index_mobility_text_translations_on_translatable_attribute
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.8.3
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Salzberg
@@ -35,7 +35,7 @@ cert_chain:
35
35
  m46ezJjnr4uXgSNuTs+RdM6DtrKaFG2HuziSP+dzmWqZiUgj1eTACYsPwfF/Z1Z6
36
36
  2DiDkec/SK4qJBMlNYPo/PTZuh5m1jROtf/hyS0VXJmm+uWc
37
37
  -----END CERTIFICATE-----
38
- date: 2018-10-01 00:00:00.000000000 Z
38
+ date: 2018-10-19 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: request_store
metadata.gz.sig CHANGED
Binary file