hdo-storting-importer 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -67,18 +67,18 @@ module Hdo
67
67
  next
68
68
  end
69
69
 
70
- unless body =~ /\.$/
71
- body << "."
70
+ unless body.strip =~ /\.$/
71
+ body = "#{body.strip}."
72
72
  end
73
73
 
74
74
  promise = new external_id,
75
- party,
76
- body,
75
+ party.strip,
76
+ body.strip,
77
77
  general.downcase == "ja",
78
78
  categories,
79
- source,
79
+ source.strip,
80
80
  Integer(page),
81
- date
81
+ date.strip
82
82
 
83
83
  begin
84
84
  promise.validate!
@@ -1,5 +1,5 @@
1
1
  module Hdo
2
2
  module StortingImporter
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
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.1.6
4
+ version: 0.1.7
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-12 00:00:00.000000000 Z
12
+ date: 2012-08-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: builder