rightmove_wrangler 0.1.9 → 0.1.10

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.
@@ -1,3 +1,3 @@
1
1
  module RightmoveWrangler
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
@@ -208,22 +208,21 @@ module RightmoveWrangler
208
208
  return false
209
209
  end
210
210
  end
211
- end
212
211
 
213
- def force_convert_utf8(string)
214
- begin
215
- # Try it as UTF-8 directly
216
- cleaned = string.dup.force_encoding('UTF-8')
217
- unless cleaned.valid_encoding?
218
- # Some of it might be old Windows code page
219
- cleaned = string.encode( 'UTF-8', 'Windows-1252' )
220
- end
221
- utf8_string = cleaned
222
- rescue EncodingError
223
- # Force it to UTF-8, throwing out invalid bits
224
- utf8_string = string.encode!( 'UTF-8', invalid: :replace, undef: :replace )
212
+ def force_convert_utf8(string)
213
+ begin
214
+ # Try it as UTF-8 directly
215
+ cleaned = string.dup.force_encoding('UTF-8')
216
+ unless cleaned.valid_encoding?
217
+ # Some of it might be old Windows code page
218
+ cleaned = string.encode( 'UTF-8', 'Windows-1252' )
219
+ end
220
+ utf8_string = cleaned
221
+ rescue EncodingError
222
+ # Force it to UTF-8, throwing out invalid bits
223
+ utf8_string = string.encode!( 'UTF-8', invalid: :replace, undef: :replace )
224
+ end
225
+ utf8_string
225
226
  end
226
- utf8_string
227
227
  end
228
-
229
228
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rightmove_wrangler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: