cta_track 0.0.2 → 0.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ddb441083bebdc827e5cd0c4bf5513e52ee1ce7
4
- data.tar.gz: 31007904673f1a2c03a710f375c32dcbecf1685d
3
+ metadata.gz: 0b2a57432029295ec46ad800cd7be765542f352d
4
+ data.tar.gz: 6339ff479fca8065372227db421de65ab0e70f80
5
5
  SHA512:
6
- metadata.gz: aefadbda6de2f27c90d04f2b557dfd06df10f1af37e3e4f13cb68e9e1124a6ada29a7b1d142e912ac202230980a08993a984cffba32c288987fc9e5584d6a5e6
7
- data.tar.gz: 0204273527399f0405512b8a98ae25fe705b0130dc301be74f98fc22f35cf072d5340a2c0ae7b85fdb7fecb78e24851b949af637cbe1f255c02d5b50477c8eb1
6
+ metadata.gz: e9cf02069aac774f4df65261e014ded250368fd1ed9aa33a4358a97dc63eee107bb5d00fcea46637933cd398dc24efb24ae0ecc5ef36cfeb8f469976432b0309
7
+ data.tar.gz: 6f024288a56f9ce4a2395498432212b43b0aa8e5a80383d4157573a187c864ea2e02b98994e9174331cad19d96c51f773fb638a1601baf9f9e89414cea288051
data/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Description coming
4
4
 
5
+ ## Ruby Gems
6
+
7
+ [Project on rubygems.org](https://rubygems.org/gems/cta_track)
8
+
5
9
  ## Installation
6
10
 
7
11
  Add this line to your application's Gemfile:
@@ -1,3 +1,3 @@
1
1
  module CtaTrack
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/routes.rb CHANGED
@@ -5,7 +5,7 @@ module CtaTrack
5
5
  raise ArgumentError, "must enter api key" if API.apikey.nil?
6
6
  @result = {}
7
7
  API.routes.root.xpath("route").each do |node|
8
- @result[node.xpath('rt').to_sym] = {:number=> node.xpath('rt'), :name=> node.xpath('rtnm') }
8
+ @result[node.xpath('rt').text.to_i] = {:number=> node.xpath('rt').text, :name=> node.xpath('rtnm').text }
9
9
  end
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cta_track
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - rdalin82