reittiopas 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reittiopas
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 27
5
+ prerelease:
5
6
  segments:
6
7
  - 0
8
+ - 1
7
9
  - 0
8
- - 2
9
- version: 0.0.2
10
+ version: 0.1.0
10
11
  platform: ruby
11
12
  authors:
12
13
  - Raine Virta
@@ -14,28 +15,33 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-04-22 00:00:00 +03:00
18
- default_executable:
18
+ date: 2012-08-12 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: addressable
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
24
25
  requirements:
25
- - - ">="
26
+ - - "="
26
27
  - !ruby/object:Gem::Version
28
+ hash: 23
27
29
  segments:
28
- - 0
29
- version: "0"
30
+ - 2
31
+ - 2
32
+ - 8
33
+ version: 2.2.8
30
34
  type: :runtime
31
35
  version_requirements: *id001
32
36
  - !ruby/object:Gem::Dependency
33
37
  name: nokogiri
34
38
  prerelease: false
35
39
  requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
36
41
  requirements:
37
42
  - - ">="
38
43
  - !ruby/object:Gem::Version
44
+ hash: 3
39
45
  segments:
40
46
  - 0
41
47
  version: "0"
@@ -45,58 +51,100 @@ dependencies:
45
51
  name: webmock
46
52
  prerelease: false
47
53
  requirement: &id003 !ruby/object:Gem::Requirement
54
+ none: false
48
55
  requirements:
49
- - - ">="
56
+ - - "="
50
57
  - !ruby/object:Gem::Version
58
+ hash: 39
51
59
  segments:
52
- - 0
53
- - 9
54
60
  - 1
55
- version: 0.9.1
61
+ - 8
62
+ - 8
63
+ version: 1.8.8
56
64
  type: :development
57
65
  version_requirements: *id003
58
66
  - !ruby/object:Gem::Dependency
59
67
  name: rspec
60
68
  prerelease: false
61
69
  requirement: &id004 !ruby/object:Gem::Requirement
70
+ none: false
62
71
  requirements:
63
- - - ">="
72
+ - - "="
64
73
  - !ruby/object:Gem::Version
74
+ hash: 35
65
75
  segments:
76
+ - 2
77
+ - 11
66
78
  - 0
67
- version: "0"
79
+ version: 2.11.0
68
80
  type: :development
69
81
  version_requirements: *id004
70
82
  - !ruby/object:Gem::Dependency
71
- name: darkfish-rdoc
83
+ name: yard
72
84
  prerelease: false
73
85
  requirement: &id005 !ruby/object:Gem::Requirement
86
+ none: false
74
87
  requirements:
75
88
  - - ">="
76
89
  - !ruby/object:Gem::Version
90
+ hash: 5
77
91
  segments:
78
92
  - 0
79
- version: "0"
93
+ - 8
94
+ - 2
95
+ - 1
96
+ version: 0.8.2.1
80
97
  type: :development
81
98
  version_requirements: *id005
82
99
  - !ruby/object:Gem::Dependency
83
- name: hoe
100
+ name: hoe-yard
84
101
  prerelease: false
85
102
  requirement: &id006 !ruby/object:Gem::Requirement
103
+ none: false
86
104
  requirements:
87
105
  - - ">="
88
106
  - !ruby/object:Gem::Version
107
+ hash: 3
89
108
  segments:
90
- - 2
91
- - 6
92
109
  - 0
93
- version: 2.6.0
110
+ version: "0"
94
111
  type: :development
95
112
  version_requirements: *id006
113
+ - !ruby/object:Gem::Dependency
114
+ name: newgem
115
+ prerelease: false
116
+ requirement: &id007 !ruby/object:Gem::Requirement
117
+ none: false
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ hash: 5
122
+ segments:
123
+ - 1
124
+ - 5
125
+ - 3
126
+ version: 1.5.3
127
+ type: :development
128
+ version_requirements: *id007
129
+ - !ruby/object:Gem::Dependency
130
+ name: hoe
131
+ prerelease: false
132
+ requirement: &id008 !ruby/object:Gem::Requirement
133
+ none: false
134
+ requirements:
135
+ - - ~>
136
+ - !ruby/object:Gem::Version
137
+ hash: 7
138
+ segments:
139
+ - 3
140
+ - 0
141
+ version: "3.0"
142
+ type: :development
143
+ version_requirements: *id008
96
144
  description: |-
97
- Reittiopas is a Ruby library for accessing the {Reittiopas Developer API}[http://developer.reittiopas.fi/pages/fi/reittiopas-api.php].
145
+ Reittiopas is a Ruby library for accessing the [Reittiopas Developer API](http://developer.reittiopas.fi/pages/fi/reittiopas-api.php).
98
146
 
99
- Requires an account to the service that can be requested through {the account request page}[http://developer.reittiopas.fi/pages/fi/accountrequest.php].
147
+ Requires an account to the service that can be requested through [the account request page](http://developer.reittiopas.fi/pages/fi/accountrequest.php).
100
148
  email:
101
149
  - raine.virta@gmail.com
102
150
  executables: []
@@ -106,11 +154,15 @@ extensions: []
106
154
  extra_rdoc_files:
107
155
  - History.txt
108
156
  - Manifest.txt
109
- - README.rdoc
110
157
  files:
158
+ - .rspec
159
+ - .yardoc/checksums
160
+ - .yardoc/object_types
161
+ - .yardoc/objects/root.dat
162
+ - .yardoc/proxy_types
111
163
  - History.txt
112
164
  - Manifest.txt
113
- - README.rdoc
165
+ - README.md
114
166
  - Rakefile
115
167
  - lib/reittiopas.rb
116
168
  - lib/reittiopas/coordinates.rb
@@ -119,48 +171,60 @@ files:
119
171
  - lib/reittiopas/http.rb
120
172
  - lib/reittiopas/location.rb
121
173
  - lib/reittiopas/reittiopas.rb
174
+ - lib/reittiopas/routing.rb
122
175
  - lib/reittiopas/utils.rb
123
176
  - script/console
124
177
  - script/destroy
125
178
  - script/generate
179
+ - spec/fixtures/kallion_kirjasto.xml
126
180
  - spec/fixtures/key.xml
127
181
  - spec/fixtures/no_access
128
182
  - spec/fixtures/reverse_geocoding.xml
183
+ - spec/fixtures/route_ulvilantie_19-kallion_kirjasto.xml
184
+ - spec/fixtures/ulvilantie_19_helsinki.xml
185
+ - spec/reittiopas_routing_spec.rb
129
186
  - spec/reittiopas_spec.rb
130
- - spec/spec.opts
131
187
  - spec/spec_helper.rb
132
188
  - tasks/rdoc.rake
133
189
  - tasks/rspec.rake
134
- has_rdoc: true
190
+ - .gemtest
135
191
  homepage: http://github.com/raneksi/reittiopas
136
192
  licenses: []
137
193
 
138
194
  post_install_message:
139
195
  rdoc_options:
140
- - --main
141
- - README.rdoc
196
+ - --protected
197
+ - --title
198
+ - Reittiopas (0.1.0)
199
+ - --markup
200
+ - markdown
201
+ - --quiet
142
202
  require_paths:
143
203
  - lib
144
204
  required_ruby_version: !ruby/object:Gem::Requirement
205
+ none: false
145
206
  requirements:
146
207
  - - ">="
147
208
  - !ruby/object:Gem::Version
209
+ hash: 3
148
210
  segments:
149
211
  - 0
150
212
  version: "0"
151
213
  required_rubygems_version: !ruby/object:Gem::Requirement
214
+ none: false
152
215
  requirements:
153
216
  - - ">="
154
217
  - !ruby/object:Gem::Version
218
+ hash: 3
155
219
  segments:
156
220
  - 0
157
221
  version: "0"
158
222
  requirements: []
159
223
 
160
224
  rubyforge_project: reittiopas
161
- rubygems_version: 1.3.6
225
+ rubygems_version: 1.8.24
162
226
  signing_key:
163
227
  specification_version: 3
164
- summary: Reittiopas is a Ruby library for accessing the {Reittiopas Developer API}[http://developer.reittiopas.fi/pages/fi/reittiopas-api.php]
228
+ summary: Reittiopas is a Ruby library for accessing the [Reittiopas Developer API](http://developer.reittiopas.fi/pages/fi/reittiopas-api.php)
165
229
  test_files: []
166
230
 
@@ -1,75 +0,0 @@
1
- = Reittiopas
2
-
3
- * {Documentation at Github}[http://raneksi.github.com/reittiopas/]
4
- * {Specifications}[http://raneksi.github.com/reittiopas/specdoc]
5
-
6
- == DESCRIPTION:
7
-
8
- Reittiopas is a Ruby library for accessing the {Reittiopas Developer API}[http://developer.reittiopas.fi/pages/fi/reittiopas-api.php].
9
-
10
- Requires an account to the service that can be requested through {the account request page}[http://developer.reittiopas.fi/pages/fi/accountrequest.php].
11
-
12
- == SYNOPSIS:
13
- require 'reittiopas'
14
- reittiopas = Reittiopas.new(:username => 'myuser', :password => 'lolcats')
15
-
16
- === Geocoding
17
- Search for location by keyword _tee_.
18
- location = reittiopas.location('tee').first
19
- puts "#{location}, #{location.city}"
20
- puts "http://maps.google.com/maps?q=#{URI.escape location.coordinates[:wgs]}"
21
- Teeripuisto, Helsinki
22
-
23
- http://maps.google.com/maps?q=60.2528,%2025.02051
24
-
25
- === Reverse geocoding
26
- Search for a location by KKJ[http://fi.wikipedia.org/wiki/Kartastokoordinaattij%C3%A4rjestelm%C3%A4] coordinates.
27
- location = reittiopas.location(:x => 2546445, :y => 6675512).first
28
- puts "#{location}, #{location.city}"
29
- Otakaari 9, Espoo
30
-
31
- == INSTALLATION:
32
-
33
- gem install reittiopas
34
-
35
- or for the latest git:
36
-
37
- git clone git://github.com/raneksi/reittiopas.git
38
- cd reittiopas
39
- rake newb
40
- rake install_gem
41
-
42
- == REQUIREMENTS:
43
-
44
- * Nokogiri[http://nokogiri.org/]
45
- * Addressable[http://github.com/sporkmonger/addressable]
46
-
47
- == TODO:
48
-
49
- * Support for determining the closest stop within radius
50
- * Routing
51
-
52
- == LICENSE:
53
-
54
- (The MIT License)
55
-
56
- Copyright (c) 2010 Raine Virta
57
-
58
- Permission is hereby granted, free of charge, to any person obtaining
59
- a copy of this software and associated documentation files (the
60
- 'Software'), to deal in the Software without restriction, including
61
- without limitation the rights to use, copy, modify, merge, publish,
62
- distribute, sublicense, and/or sell copies of the Software, and to
63
- permit persons to whom the Software is furnished to do so, subject to
64
- the following conditions:
65
-
66
- The above copyright notice and this permission notice shall be
67
- included in all copies or substantial portions of the Software.
68
-
69
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
70
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
71
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
72
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
73
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
74
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
75
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,4 +0,0 @@
1
- --colour
2
- --format specdoc
3
- --loadby mtime
4
- --reverse