grosser-fast_gettext 0.4.9 → 0.4.10

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 4
4
- :patch: 9
4
+ :patch: 10
@@ -15,6 +15,10 @@ describe String do
15
15
  it "does not substitute after %%" do
16
16
  ("%%{num} oops" % {:num => 1}).should == '%{num} oops'
17
17
  end
18
+
19
+ it "does not substitute when nothing could be found" do
20
+ ("abc" % {:x=>1}).should == 'abc'
21
+ end
18
22
  end
19
23
 
20
24
  describe 'old sprintf style' do
data/vendor/string.rb CHANGED
@@ -45,6 +45,7 @@ rescue ArgumentError
45
45
  args.has_key?(key) ? sprintf("%#{$3}", args[key]) : match
46
46
  end
47
47
  end
48
+ ret
48
49
  else
49
50
  ret = gsub(/%([{<])/, '%%\1')
50
51
  ret._fast_gettext_old_format_m(args)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grosser-fast_gettext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-15 00:00:00 -07:00
12
+ date: 2009-05-30 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15