i18n_screwdriver 3.0.1 → 4.0.0

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: 6e509083e21939ba66051c0566db663c310f8334
4
- data.tar.gz: 71ef94a688304c84af2f3c040d7b33f194ac2215
3
+ metadata.gz: 3b179342ac69a06ad03d10ab4a0424425aff3e70
4
+ data.tar.gz: a297fa182258a5797556d89ade2b6f3d12da91c7
5
5
  SHA512:
6
- metadata.gz: 326f0a21ddd53467a7457abdfe59a39d53f6967cc85246812523eaf992583fe1808ba5ea6a1b217c0757f9d86f02f30b564842191409a3da12af1caa6158d37c
7
- data.tar.gz: b2cf05ae5ecf6c4a0b948417d5db451f8293183412d3560e690d20c342bae37bfbdaa14a6bcd667adb7e6d5f8d173bda39a35b7a71ce08960f77d46e61a760f0
6
+ metadata.gz: 8daaa73824b66d11c1973720d885a7b7324c87d57b6008318bab1c46a9be95a087d3d7c34018be89e8ca47da2f8d3449d2009e8d4d610fddb30610704c1f0ac4
7
+ data.tar.gz: c0315f66acb6c611152c91a81849184585d8a3f68f006aacf0fa2b30d32b4d625b40d29b7d046c87149b52af4c4961750651ba1552d698345f5b866635d01f22
@@ -1,5 +1,5 @@
1
1
  module I18nScrewdriver
2
- class Translation < ActiveSupport::SafeBuffer
2
+ class Translation < String
3
3
  attr_accessor :text, :options
4
4
 
5
5
  def self.new(text, options = {}, &block)
@@ -12,7 +12,7 @@ module I18nScrewdriver
12
12
  urls_to_interpolate_count = translation.scan(/<<.+?>>/).count
13
13
  raise ArgumentError, "too few urls specified" if urls.count < urls_to_interpolate_count
14
14
  if urls.count > urls_to_interpolate_count
15
- raise ArgumentError, "expected extra url to be a hash intended for variable interpolation" unless urls.last.is_a?(Hash)
15
+ raise ArgumentError, "too many urls specified (#{urls.count} <> #{urls_to_interpolate_count})" unless urls.last.is_a?(Hash)
16
16
  translation = new(translation % urls.last, :raw => true)
17
17
  end
18
18
  translation.linkify(block.binding, urls)
@@ -1,4 +1,4 @@
1
1
  module I18nScrewdriver
2
- VERSION = "3.0.1"
2
+ VERSION = "4.0.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: 3.0.1
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Miesel
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-20 00:00:00.000000000 Z
12
+ date: 2013-09-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec