gigo 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gigo.rb +2 -1
- data/lib/gigo/version.rb +1 -1
- data/test/cases/gigo_test.rb +4 -0
- metadata +4 -4
data/lib/gigo.rb
CHANGED
@@ -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
|
data/lib/gigo/version.rb
CHANGED
data/test/cases/gigo_test.rb
CHANGED
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.
|
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-
|
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:
|
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:
|
195
|
+
hash: 4476278558512394603
|
196
196
|
requirements: []
|
197
197
|
rubyforge_project:
|
198
198
|
rubygems_version: 1.8.25
|