awesome_translations 0.0.9 → 0.0.10

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: 4612144d818d762a95b0f229936a21d2fc45a8e8
4
- data.tar.gz: a7e747ff343c5e5725dcff124cbd239921501bd8
3
+ metadata.gz: c7284f4d0b7e1cea3d0ea30ea173e40811ace057
4
+ data.tar.gz: 45cab351fd2eb20104824fdd309b796d6e0d2529
5
5
  SHA512:
6
- metadata.gz: 44ae421d1d3e6f35c6c355d07722b775fa0bcc45f509c941742232287fc48e895db9e730c1508ff9e7613eae8607d57ab1b5d7b49dea2c598f5eac16f6b21c7e
7
- data.tar.gz: 9442400bc704ed650c0b34f042271e9fc5c5f453024c3bed4e63ef9770f1aff9e739b5e041326a1932e09ce6875e6b4348b1cd5fcec9f83ef0d7b0918570e09b
6
+ metadata.gz: 689829cae794f23a5a3277ba01a497271a7ea7eb0e01a27c6219e6fe03e88f9111524b7af59227deb5ae102893d0ccd389a7ce4e5b17a7f5dad8ae3298415a6c
7
+ data.tar.gz: 8e50825fcb1b34409cfca3f2770d53c0c32a8d4c4f682948f4a4072b2c9a311247f5079e437b25731c74b551051acf03a8be6815d53513e828b43fc12b578fcd
@@ -0,0 +1,6 @@
1
+ # Include this class to get access to the t-method.
2
+ module AwesomeTranslations::TranslateFunctionality
3
+ def t(key, args = {}, &blk)
4
+ AwesomeTranslations::GlobalTranslator.translate(key, translation_args: args, caller_number: 1, &blk)
5
+ end
6
+ end
@@ -1,3 +1,3 @@
1
1
  module AwesomeTranslations
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.10'
3
3
  end
@@ -10,8 +10,9 @@ module AwesomeTranslations
10
10
  autoload :ErbInspector, "#{path}/erb_inspector"
11
11
  autoload :GlobalTranslator, "#{path}/global_translator"
12
12
  autoload :Handlers, "#{path}/handlers"
13
- autoload :ObjectExtensions, "#{path}/object_extensions"
14
13
  autoload :ModelInspector, "#{path}/model_inspector"
14
+ autoload :ObjectExtensions, "#{path}/object_extensions"
15
+ autoload :TranslateFunctionality, "#{path}/translate_functionality"
15
16
 
16
17
  def self.config
17
18
  @config ||= AwesomeTranslations::Config.new
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awesome_translations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kasper Johansen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-20 00:00:00.000000000 Z
11
+ date: 2015-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -223,6 +223,7 @@ files:
223
223
  - lib/awesome_translations/model_inspector.rb
224
224
  - lib/awesome_translations/model_inspector/attribute.rb
225
225
  - lib/awesome_translations/object_extensions.rb
226
+ - lib/awesome_translations/translate_functionality.rb
226
227
  - lib/awesome_translations/version.rb
227
228
  - lib/tasks/awesome_translations_tasks.rake
228
229
  - spec/controllers/groups_controller_spec.rb