bysykkel 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/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ * 0.4.2
2
+ Geo returns float not strings
3
+
1
4
  * 0.4.1
2
5
  Tests runs.
3
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.2
@@ -0,0 +1,65 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{bysykkel}
8
+ s.version = "0.4.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Espen Antonsen & Rune Botten"]
12
+ s.date = %q{2010-10-04}
13
+ s.description = %q{Query the Oslo City Bike availability API at clearchannel.no with Ruby. Not affilliated with ClearChannel.}
14
+ s.email = %q{espen@inspired.no}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".gitignore",
21
+ "CHANGES",
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "LICENSE",
25
+ "README.rdoc",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "bysykkel.gemspec",
29
+ "lib/bysykkel.rb",
30
+ "lib/bysykkel/rack.rb",
31
+ "spec/bysykkel/rack_spec.rb",
32
+ "spec/fixtures/rack.xml",
33
+ "spec/fixtures/racks.xml",
34
+ "spec/options",
35
+ "spec/spec.opts"
36
+ ]
37
+ s.homepage = %q{http://github.com/espen/bysykkel}
38
+ s.rdoc_options = ["--charset=UTF-8"]
39
+ s.require_paths = ["lib"]
40
+ s.rubygems_version = %q{1.3.7}
41
+ s.summary = %q{Oslo City Bike (Bysykkel) Ruby API}
42
+ s.test_files = [
43
+ "spec/bysykkel/rack_spec.rb"
44
+ ]
45
+
46
+ if s.respond_to? :specification_version then
47
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
48
+ s.specification_version = 3
49
+
50
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
51
+ s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
52
+ s.add_runtime_dependency(%q<nokogiri>, [">= 1.4.1"])
53
+ s.add_runtime_dependency(%q<typhoeus>, [">= 0.1.31"])
54
+ else
55
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
56
+ s.add_dependency(%q<nokogiri>, [">= 1.4.1"])
57
+ s.add_dependency(%q<typhoeus>, [">= 0.1.31"])
58
+ end
59
+ else
60
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
61
+ s.add_dependency(%q<nokogiri>, [">= 1.4.1"])
62
+ s.add_dependency(%q<typhoeus>, [">= 0.1.31"])
63
+ end
64
+ end
65
+
@@ -61,8 +61,8 @@ module Bysykkel
61
61
  :empty_locks => rack.xpath('empty_locks').text.to_i,
62
62
  :ready_bikes => rack.xpath('ready_bikes').text.to_i,
63
63
  :online => rack.xpath('online').text == '1' ? true : false,
64
- :lat => rack.xpath('latitude').text,
65
- :lng => rack.xpath('longitute').text
64
+ :lat => rack.xpath('latitude').text.to_f,
65
+ :lng => rack.xpath('longitute').text.to_f
66
66
  } )
67
67
  end
68
68
 
@@ -42,8 +42,8 @@ describe Bysykkel::Rack do
42
42
  # Test first
43
43
  rack = racks.first
44
44
  rack.name.should == "Middelthunsgate (vis-a-vis nr. 21, retning Kirkeveien)"
45
- rack.lat.should == '59.92786125852981'
46
- rack.lng.should == '10.709009170532226'
45
+ rack.lat.should == 59.92786125852981
46
+ rack.lng.should == 10.709009170532226
47
47
  end
48
48
  end
49
49
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bysykkel
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 1
10
- version: 0.4.1
9
+ - 2
10
+ version: 0.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Espen Antonsen & Rune Botten
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-02 00:00:00 +02:00
18
+ date: 2010-10-04 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -84,6 +84,7 @@ files:
84
84
  - README.rdoc
85
85
  - Rakefile
86
86
  - VERSION
87
+ - bysykkel.gemspec
87
88
  - lib/bysykkel.rb
88
89
  - lib/bysykkel/rack.rb
89
90
  - spec/bysykkel/rack_spec.rb