gettext_simple_rails 0.0.14 → 0.0.15

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
  SHA1:
3
- metadata.gz: ab756d992b407d2f415c33e38f064243ef22ebf4
4
- data.tar.gz: 876b859d12837b4422e4e99d5134dde8df6e5155
3
+ metadata.gz: 0b7c6b9a6f203be11f2cb0b3ec042677482a4ee5
4
+ data.tar.gz: a4c606e9e3a652c28e1b9d6805cadc364d7e8ac8
5
5
  SHA512:
6
- metadata.gz: 523e17e4c68b2c5157ce22289600f4680219402c1251062e7f3bc41c040679b4a726c621f807c9f82c32ad93523a24620b1d1748b9b1e7fc98b95a5b6d3a40dc
7
- data.tar.gz: b4ca945e61dafee29b154f38a704eb0a995bfcd9222889e41ac0bc96b845ffa1b37c778850c516573ba424f0605688646cc68da969d0d6bc473bb09f1db6b320
6
+ metadata.gz: 4d6f290e3158fcd1c7940e45321958eb3ddd1089382426659221dec72cad588a172f2abdf32239a82de749745d7c2431aa7309b32c36690406e12d84b6ce621b
7
+ data.tar.gz: 961e628b54a7bf1c925730943745cfa35a981ff9e111ad78b82481f95a3b1dfdc3a360b24537b876d94eb08b48b176619a5a6d74163e3cf43332e6b3017251e5
@@ -5,16 +5,19 @@ class GettextSimpleRails::Translators::SimpleFormTranslator
5
5
 
6
6
  def translations
7
7
  @translations = {"simple_form" => {
8
- "hints" => {}
8
+ "hints" => {},
9
+ "placeholders" => {}
9
10
  }}
10
11
 
11
12
  hints = @translations["simple_form"]["hints"]
13
+ placeholders = @translations["simple_form"]["placeholders"]
12
14
 
13
15
  GettextSimpleRails::ModelInspector.model_classes do |inspector|
14
16
  clazz_snake_name = StringCases.camel_to_snake(inspector.clazz.name)
15
-
16
17
  clazz_hints = {}
18
+
17
19
  hints[clazz_snake_name] = clazz_hints
20
+ placeholders[clazz_snake_name] = clazz_hints
18
21
 
19
22
  inspector.attributes do |attribute|
20
23
  clazz_hints[attribute.name.to_s] = ""
@@ -1,3 +1,3 @@
1
1
  module GettextSimpleRails
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gettext_simple_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kasper Johansen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-28 00:00:00.000000000 Z
11
+ date: 2014-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails