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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/mobility/version.rb +1 -1
- data/lib/rails/generators/mobility/templates/create_string_translations.rb +5 -6
- data/lib/rails/generators/mobility/templates/create_text_translations.rb +5 -6
- 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: 733ca7a4894cdebcc0cefe533129793b6648d19c5c9f57f837b3660f8ac704f6
|
4
|
+
data.tar.gz: 7fc756a3e7b7278702b43c9ecbdf12d904000a960037cee8bbba0bc0b4b3ee3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30bbaa926ac3aef1fa1f438120f20c47077f97412ae24140b4a827cc1862f1ebf9cf0d24caf1caae2362f12af1e46ca6251848f012dfbd606aa603e682c0af91
|
7
|
+
data.tar.gz: c30e9bfbd12036581a03cca35488a068832f33928a91c337f27fd2ccf25908cc8363c3d20b95fa60c8ed0792ed6ce3fc0d8d49c55e8874f7a4a41cbc8693fee5
|
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.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
data/lib/mobility/version.rb
CHANGED
@@ -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
|
6
|
-
t.string
|
7
|
-
t.string
|
8
|
-
t.
|
9
|
-
t.
|
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
|
6
|
-
t.string
|
7
|
-
t.text
|
8
|
-
t.
|
9
|
-
t.
|
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.
|
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-
|
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
|