gigo 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,8 @@ module GIGO
29
29
  string = string.encode forced_encoding, :undef => :replace, :invalid => :replace
30
30
  end
31
31
  end
32
- EnsureValidEncoding.ensure_valid_encoding string, invalid: :replace, replace: "?"
32
+ string = EnsureValidEncoding.ensure_valid_encoding string, invalid: :replace, replace: "?"
33
+ string.to_s
33
34
  end
34
35
 
35
36
  def self.forced_encoding
@@ -1,3 +1,3 @@
1
1
  module GIGO
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
@@ -23,6 +23,10 @@ module GIGO
23
23
  GIGO.load(o).must_equal o
24
24
  end
25
25
 
26
+ it 'always returns a String object' do
27
+ GIGO.load(data_bin_apos).must_be_instance_of String
28
+ end
29
+
26
30
  it 'fixes windows apostrophe' do
27
31
  GIGO.load(data_bin_apos).must_equal "won’t"
28
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gigo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-26 00:00:00.000000000 Z
12
+ date: 2013-04-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -183,7 +183,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
183
183
  version: '0'
184
184
  segments:
185
185
  - 0
186
- hash: 2152698803205983593
186
+ hash: 4476278558512394603
187
187
  required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  none: false
189
189
  requirements:
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  version: '0'
193
193
  segments:
194
194
  - 0
195
- hash: 2152698803205983593
195
+ hash: 4476278558512394603
196
196
  requirements: []
197
197
  rubyforge_project:
198
198
  rubygems_version: 1.8.25