i18n_screwdriver 2.1.1 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,11 @@
1
1
  module I18nScrewdriver
2
2
  class Translation < ActiveSupport::SafeBuffer
3
+ attr_accessor :text, :options
4
+
3
5
  def self.new(text, options = {}, &block)
4
6
  super(I18n.translate(I18nScrewdriver.for_key(text), options)).tap do |translation|
7
+ translation.text = text
8
+ translation.options = options
5
9
  translation.linkify(block.binding, *block.call) if block
6
10
  end
7
11
  end
@@ -1,4 +1,4 @@
1
1
  module I18nScrewdriver
2
- VERSION = "2.1.1"
2
+ VERSION = "2.2.0"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_screwdriver
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
5
4
  prerelease:
5
+ version: 2.2.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tobias Miesel
@@ -10,17 +10,16 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-08-22 00:00:00.000000000 Z
13
+ date: 2013-01-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: rspec
16
+ type: :development
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
21
21
  - !ruby/object:Gem::Version
22
22
  version: '0'
23
- type: :development
24
23
  prerelease: false
25
24
  version_requirements: !ruby/object:Gem::Requirement
26
25
  none: false
@@ -28,15 +27,15 @@ dependencies:
28
27
  - - ! '>='
29
28
  - !ruby/object:Gem::Version
30
29
  version: '0'
30
+ name: rspec
31
31
  - !ruby/object:Gem::Dependency
32
- name: rails
32
+ type: :runtime
33
33
  requirement: !ruby/object:Gem::Requirement
34
34
  none: false
35
35
  requirements:
36
36
  - - ! '>='
37
37
  - !ruby/object:Gem::Version
38
38
  version: 3.0.0
39
- type: :runtime
40
39
  prerelease: false
41
40
  version_requirements: !ruby/object:Gem::Requirement
42
41
  none: false
@@ -44,6 +43,7 @@ dependencies:
44
43
  - - ! '>='
45
44
  - !ruby/object:Gem::Version
46
45
  version: 3.0.0
46
+ name: rails
47
47
  description: make translating with rails i18n fun again
48
48
  email:
49
49
  - agileapplications@gmail.com
@@ -77,18 +77,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
77
  - - ! '>='
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0'
80
- segments:
81
- - 0
82
- hash: -6762225808489324
83
80
  required_rubygems_version: !ruby/object:Gem::Requirement
84
81
  none: false
85
82
  requirements:
86
83
  - - ! '>='
87
84
  - !ruby/object:Gem::Version
88
85
  version: '0'
89
- segments:
90
- - 0
91
- hash: -6762225808489324
92
86
  requirements: []
93
87
  rubyforge_project: i18n_screwdriver
94
88
  rubygems_version: 1.8.24