ns-yapi 0.4.1 → 0.4.2
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.
- data/Gemfile.lock +1 -1
- data/lib/ns_client.rb +1 -1
- data/ns.gemspec +1 -1
- data/spec/fixtures/stations_list_mangled.xml +4 -1
- data/spec/fixtures/stations_list_with_invalid_new_lines.xml +2 -1
- data/spec/ns_client_spec.rb +1 -0
- metadata +3 -3
data/Gemfile.lock
CHANGED
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.
|
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}
|
data/spec/ns_client_spec.rb
CHANGED
@@ -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.
|
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: -
|
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: -
|
119
|
+
hash: -3423485013195934807
|
120
120
|
requirements: []
|
121
121
|
rubyforge_project:
|
122
122
|
rubygems_version: 1.8.24
|