ns-yapi 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ns-yapi (0.4.1)
4
+ ns-yapi (0.4.2)
5
5
  httpclient
6
6
  nokogiri
7
7
  nori
data/lib/ns_client.rb CHANGED
@@ -176,7 +176,7 @@ class NSClient
176
176
  end
177
177
 
178
178
  def remove_unwanted_whitespace content
179
- content.gsub /<\s*(\/?)\s*?([a-zA-Z0-9]*)\s*>/, '<\1\2>'
179
+ content.gsub /<\s*(\/?)\s*?([a-zA-Z0-9]*)\s*([a-zA-Z0-9]*)\s*>/, '<\1\2\3>'
180
180
  end
181
181
 
182
182
  def disruption_url(query)
data/ns.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "ns-yapi"
7
- gem.version = '0.4.1'
7
+ gem.version = '0.4.2'
8
8
  gem.authors = ["Stefan Hendriks"]
9
9
  gem.email = ["stefanhen83@gmail.com"]
10
10
  gem.description = %q{Yet Another (Ruby) NS API client}
@@ -11,7 +11,10 @@
11
11
  <Kort>L
12
12
  ochem</Kort>
13
13
  <
14
- Middel>Lochem<
14
+ Mi
15
+ d
16
+ d
17
+ el>Lochem<
15
18
  /Middel>
16
19
  <Lang>Lochem</Lang>
17
20
  </Nam
@@ -25,7 +25,8 @@
25
25
  <Type>intercitystation</Type>
26
26
  <Namen>
27
27
  <Kort>Den Bosch</Kort>
28
- <Middel>'s-Hertogenbosch</Middel>
28
+ <Mid
29
+ del>'s-Hertogenbosch</Middel>
29
30
  <Lang>'s-Hertogenbosch</Lang>
30
31
  </Namen>
31
32
  <Land>NL</Land>
@@ -95,6 +95,7 @@ describe NSClient do
95
95
  "</ Code >" => "</Code>",
96
96
  "</\n\nCode >" => "</Code>",
97
97
  "</\r\tCode\n>" => "</Code>",
98
+ "</Co\nde\n>" => "</Code>",
98
99
  }.each do |k, v|
99
100
  it "removes unwanted whitespace from #{k} , expecting #{v} (remove_unwanted_whitespace)" do
100
101
  client.remove_unwanted_whitespace(k).should eq v
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ns-yapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -107,7 +107,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
107
  version: '0'
108
108
  segments:
109
109
  - 0
110
- hash: -3456481437934328000
110
+ hash: -3423485013195934807
111
111
  required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  none: false
113
113
  requirements:
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  version: '0'
117
117
  segments:
118
118
  - 0
119
- hash: -3456481437934328000
119
+ hash: -3423485013195934807
120
120
  requirements: []
121
121
  rubyforge_project:
122
122
  rubygems_version: 1.8.24