translatable_ar 1.1.2 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/templates/setup.rb +2 -2
- data/test/template_test.rb +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c22cdb4739b8a30a61816b048c263d6808bf59d
|
4
|
+
data.tar.gz: 2feb0786abb8406df0f87489cbf7e972b10c50d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b2bc8a42339e5e4b3a02b69dcbe4df68444daeaf28499cb2ed564c26f0fced383a1a32fde839acc8a23a84037a15599df7875e4e594600531f3377aa40d0ffc
|
7
|
+
data.tar.gz: b92f8ae33a8e385aa802c9e7d555dd91fbe71000fb05780b3d1ef1ff7110ee69b982c621d42a00b9f4a16b46d00b069cf9fb5f435cc55fef4b362e0e6cf9e41e
|
data/lib/templates/setup.rb
CHANGED
@@ -9,7 +9,7 @@ class <%= migration_class_name %> < ActiveRecord::Migration
|
|
9
9
|
<% end -%>
|
10
10
|
|
11
11
|
<% attributes.each do |attribute| -%>
|
12
|
-
|
12
|
+
add_index :<%= attribute.model.table_name %>, :<%= attribute.name %>_i18n
|
13
13
|
<% end -%>
|
14
14
|
|
15
15
|
<% models.each do |model| -%>
|
@@ -30,7 +30,7 @@ class <%= migration_class_name %> < ActiveRecord::Migration
|
|
30
30
|
<% end -%>
|
31
31
|
|
32
32
|
<% attributes.each do |attribute| -%>
|
33
|
-
|
33
|
+
remove_index :<%= attribute.model.table_name %>, :<%= attribute.name %>_i18n
|
34
34
|
<% end -%>
|
35
35
|
end
|
36
36
|
|
data/test/template_test.rb
CHANGED
@@ -58,8 +58,8 @@ class FakeMigrationClassName < ActiveRecord::Migration
|
|
58
58
|
add_column :fake_models_1, :fake_attribute1_name_i18n, :hstore
|
59
59
|
add_column :fake_models_2, :fake_attribute2_name_i18n, :hstore
|
60
60
|
|
61
|
-
|
62
|
-
|
61
|
+
add_index :fake_models_1, :fake_attribute1_name_i18n
|
62
|
+
add_index :fake_models_2, :fake_attribute2_name_i18n
|
63
63
|
|
64
64
|
puts "Preparing existing fake_model1_to_s objects ..."
|
65
65
|
fake_model1_to_s.reset_column_information
|
@@ -77,8 +77,8 @@ class FakeMigrationClassName < ActiveRecord::Migration
|
|
77
77
|
remove_column :fake_models_1, :fake_attribute1_name_i18n
|
78
78
|
remove_column :fake_models_2, :fake_attribute2_name_i18n
|
79
79
|
|
80
|
-
|
81
|
-
|
80
|
+
remove_index :fake_models_1, :fake_attribute1_name_i18n
|
81
|
+
remove_index :fake_models_2, :fake_attribute2_name_i18n
|
82
82
|
end
|
83
83
|
|
84
84
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: translatable_ar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kasper Bjørn Nielsen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.
|
101
|
+
rubygems_version: 2.4.6
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: i18n for your active record models with HStore attribute
|