ns-api 0.1 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,6 +32,7 @@ module Ns
32
32
  def new_disruption(raw_disruption)
33
33
  if raw_disruption.size >= 2
34
34
  raw_disruption = raw_disruption[1]
35
+ raw_disruption = raw_disruption.flatten[0] if raw_disruption.is_a?(Array)
35
36
 
36
37
  Ns::Disruption.new(
37
38
  route: raw_disruption['Traject'],
@@ -1,3 +1,3 @@
1
1
  module Ns
2
- VERSION = '0.1'
2
+ VERSION = '0.3'
3
3
  end
data/ns.gemspec CHANGED
@@ -2,9 +2,11 @@
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
+ require 'ns/version'
6
+
5
7
  Gem::Specification.new do |gem|
6
8
  gem.name = "ns-api"
7
- gem.version = "0.1"
9
+ gem.version = '0.3'
8
10
  gem.authors = ["Marcel de Graaf"]
9
11
  gem.email = ["mail@marceldegraaf.net"]
10
12
  gem.description = %q{A Ruby implementation of the NS (Dutch Railways) API}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ns-api
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.3'
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: 2013-02-25 00:00:00.000000000 Z
12
+ date: 2013-03-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httpi