hdo-storting-importer 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -71,11 +71,15 @@ module Hdo
71
71
  body = "#{body.strip}."
72
72
  end
73
73
 
74
+ clean_invalid_unicode = lambda do |str|
75
+ str.gsub("\u00c5\u030a", 'Å').gsub("\u00e5\u030a", 'å')
76
+ end
77
+
74
78
  promise = new external_id,
75
79
  parties.strip,
76
- body.strip,
80
+ clean_invalid_unicode.call(body.strip),
77
81
  general.downcase == "ja",
78
- categories,
82
+ clean_invalid_unicode.call(categories),
79
83
  source.strip,
80
84
  Integer(page),
81
85
  date.strip
@@ -1,5 +1,5 @@
1
1
  module Hdo
2
2
  module StortingImporter
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hdo-storting-importer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
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: 2012-08-15 00:00:00.000000000 Z
12
+ date: 2012-08-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: builder