i18n_screwdriver 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,5 @@
1
1
  require "i18n_screwdriver/version"
2
+ require "i18n_screwdriver/translation"
2
3
  require "i18n_screwdriver/rails"
3
4
 
4
5
  module I18nScrewdriver
@@ -1,4 +1,3 @@
1
1
  require 'rails'
2
2
  require 'i18n_screwdriver/rails/engine'
3
- require 'i18n_screwdriver/rails/helper'
4
3
 
@@ -0,0 +1,10 @@
1
+ module I18nScrewdriver
2
+ module Translation
3
+ def _(text, options = {})
4
+ I18n.translate(I18nScrewdriver.for_key(text), options)
5
+ end
6
+ end
7
+ end
8
+
9
+ Object.send(:include, I18nScrewdriver::Translation)
10
+
@@ -1,4 +1,4 @@
1
1
  module I18nScrewdriver
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_screwdriver
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-10-13 00:00:00.000000000Z
13
+ date: 2011-10-26 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
17
- requirement: &18220320 !ruby/object:Gem::Requirement
17
+ requirement: &9334380 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :development
24
24
  prerelease: false
25
- version_requirements: *18220320
25
+ version_requirements: *9334380
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rails
28
- requirement: &18219700 !ruby/object:Gem::Requirement
28
+ requirement: &9333120 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: 3.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *18219700
36
+ version_requirements: *9333120
37
37
  description: make translating with rails i18n fun again
38
38
  email:
39
39
  - agileapplications@gmail.com
@@ -51,7 +51,7 @@ files:
51
51
  - lib/i18n_screwdriver.rb
52
52
  - lib/i18n_screwdriver/rails.rb
53
53
  - lib/i18n_screwdriver/rails/engine.rb
54
- - lib/i18n_screwdriver/rails/helper.rb
54
+ - lib/i18n_screwdriver/translation.rb
55
55
  - lib/i18n_screwdriver/version.rb
56
56
  - lib/tasks/i18n.rake
57
57
  homepage: https://github.com/agileapplications/i18n_screwdriver
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  version: '0'
75
75
  requirements: []
76
76
  rubyforge_project: i18n_screwdriver
77
- rubygems_version: 1.8.8
77
+ rubygems_version: 1.8.10
78
78
  signing_key:
79
79
  specification_version: 3
80
80
  summary: make translating with rails i18n fun again
@@ -1,21 +0,0 @@
1
- module I18nScrewdriver
2
- module Rails
3
- module Helper
4
- def self.included(klass)
5
- klass.send :include, InstanceMethods
6
- end
7
-
8
- module InstanceMethods
9
- def _(text, options = {})
10
- I18n.translate(I18nScrewdriver.for_key(text), options)
11
- end
12
- end
13
- end
14
- end
15
- end
16
-
17
- ActionView::Base.send :include, I18nScrewdriver::Rails::Helper
18
- ActionController::Base.send :include, I18nScrewdriver::Rails::Helper
19
- ActionController::IntegrationTest.send :include, I18nScrewdriver::Rails::Helper
20
- ActionController::TestCase.send :include, I18nScrewdriver::Rails::Helper
21
-