tfl_api_client 0.1.0 → 0.2.0
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 +4 -4
- data/.travis.yml +2 -1
- data/.yardopts +4 -0
- data/CHANGELOG.md +3 -0
- data/GETTING_STARTED.md +71 -1
- data/LICENSE +1 -1
- data/README.md +67 -7
- data/Rakefile +6 -0
- data/lib/tfl_api_client.rb +2 -1
- data/lib/tfl_api_client/bike_point.rb +1 -1
- data/lib/tfl_api_client/client.rb +9 -1
- data/lib/tfl_api_client/cycle.rb +66 -0
- data/lib/tfl_api_client/exceptions.rb +1 -1
- data/lib/tfl_api_client/version.rb +2 -2
- data/spec/cassettes/cycle/authorised_client_superhighway.yml +75 -0
- data/spec/cassettes/cycle/authorised_client_superhighways.yml +99 -0
- data/spec/cassettes/cycle/unauthorised_client_superhighway.yml +50 -0
- data/spec/cassettes/cycle/unauthorised_client_superhighways.yml +50 -0
- data/spec/integration/bike_point_spec.rb +1 -1
- data/spec/integration/cycle_spec.rb +79 -0
- data/spec/support/coverage.rb +5 -5
- data/spec/support/helpers.rb +1 -1
- data/spec/support/vcr.rb +1 -1
- data/spec/unit/bike_point_spec.rb +1 -1
- data/spec/unit/client_spec.rb +1 -1
- data/spec/unit/cycle_spec.rb +66 -0
- data/tfl_api_client.gemspec +17 -16
- metadata +23 -10
- data/CONTRIBUTING.md +0 -62
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tfl_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luke Hackett
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.11'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.11'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '11.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '11.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: yard
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '3.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '3.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: webmock
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -147,8 +147,8 @@ extra_rdoc_files: []
|
|
147
147
|
files:
|
148
148
|
- ".gitignore"
|
149
149
|
- ".travis.yml"
|
150
|
+
- ".yardopts"
|
150
151
|
- CHANGELOG.md
|
151
|
-
- CONTRIBUTING.md
|
152
152
|
- GETTING_STARTED.md
|
153
153
|
- Gemfile
|
154
154
|
- LICENSE
|
@@ -157,6 +157,7 @@ files:
|
|
157
157
|
- lib/tfl_api_client.rb
|
158
158
|
- lib/tfl_api_client/bike_point.rb
|
159
159
|
- lib/tfl_api_client/client.rb
|
160
|
+
- lib/tfl_api_client/cycle.rb
|
160
161
|
- lib/tfl_api_client/exceptions.rb
|
161
162
|
- lib/tfl_api_client/version.rb
|
162
163
|
- spec/cassettes/bike_point/authorised_client_location.yml
|
@@ -169,13 +170,19 @@ files:
|
|
169
170
|
- spec/cassettes/bike_point/unauthorised_client_locations_within_bounding_box.yml
|
170
171
|
- spec/cassettes/bike_point/unauthorised_client_locations_within_locus.yml
|
171
172
|
- spec/cassettes/bike_point/unauthorised_client_search.yml
|
173
|
+
- spec/cassettes/cycle/authorised_client_superhighway.yml
|
174
|
+
- spec/cassettes/cycle/authorised_client_superhighways.yml
|
175
|
+
- spec/cassettes/cycle/unauthorised_client_superhighway.yml
|
176
|
+
- spec/cassettes/cycle/unauthorised_client_superhighways.yml
|
172
177
|
- spec/integration/bike_point_spec.rb
|
178
|
+
- spec/integration/cycle_spec.rb
|
173
179
|
- spec/spec_helper.rb
|
174
180
|
- spec/support/coverage.rb
|
175
181
|
- spec/support/helpers.rb
|
176
182
|
- spec/support/vcr.rb
|
177
183
|
- spec/unit/bike_point_spec.rb
|
178
184
|
- spec/unit/client_spec.rb
|
185
|
+
- spec/unit/cycle_spec.rb
|
179
186
|
- tfl_api_client.gemspec
|
180
187
|
homepage: https://github.com/LukeHackett/tfl_api_client
|
181
188
|
licenses:
|
@@ -189,7 +196,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
189
196
|
requirements:
|
190
197
|
- - ">="
|
191
198
|
- !ruby/object:Gem::Version
|
192
|
-
version: '0'
|
199
|
+
version: '2.0'
|
193
200
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
194
201
|
requirements:
|
195
202
|
- - ">="
|
@@ -212,11 +219,17 @@ test_files:
|
|
212
219
|
- spec/cassettes/bike_point/unauthorised_client_locations_within_bounding_box.yml
|
213
220
|
- spec/cassettes/bike_point/unauthorised_client_locations_within_locus.yml
|
214
221
|
- spec/cassettes/bike_point/unauthorised_client_search.yml
|
222
|
+
- spec/cassettes/cycle/authorised_client_superhighway.yml
|
223
|
+
- spec/cassettes/cycle/authorised_client_superhighways.yml
|
224
|
+
- spec/cassettes/cycle/unauthorised_client_superhighway.yml
|
225
|
+
- spec/cassettes/cycle/unauthorised_client_superhighways.yml
|
215
226
|
- spec/integration/bike_point_spec.rb
|
227
|
+
- spec/integration/cycle_spec.rb
|
216
228
|
- spec/spec_helper.rb
|
217
229
|
- spec/support/coverage.rb
|
218
230
|
- spec/support/helpers.rb
|
219
231
|
- spec/support/vcr.rb
|
220
232
|
- spec/unit/bike_point_spec.rb
|
221
233
|
- spec/unit/client_spec.rb
|
234
|
+
- spec/unit/cycle_spec.rb
|
222
235
|
has_rdoc:
|
data/CONTRIBUTING.md
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
# Contributing to TFL API Client
|
2
|
-
|
3
|
-
This project started in order to fill a gap in the current offers for gems
|
4
|
-
that provide a programmatic interface to TFL's API.
|
5
|
-
|
6
|
-
In the spirit of [free software][free-sw], **everyone** is encouraged to
|
7
|
-
help improve this project.
|
8
|
-
|
9
|
-
Here are some ways in which *you* can contribute:
|
10
|
-
|
11
|
-
* by using prerelease versions
|
12
|
-
* by reporting [bugs][issues]
|
13
|
-
* by suggesting [new features][issues]
|
14
|
-
* by writing or editing documentation
|
15
|
-
* by writing code ( **no patch is too small** : fix typos, add comments, clean up inconsistent whitespace )
|
16
|
-
* by refactoring code
|
17
|
-
* by reviewing code
|
18
|
-
|
19
|
-
[free-sw]: http://www.fsf.org/licensing/essays/free-sw.html
|
20
|
-
[issues]: https://github.com/LukeHackett/tfl_api_client/issues
|
21
|
-
|
22
|
-
|
23
|
-
## Submitting an Issue
|
24
|
-
|
25
|
-
I utilise the [GitHub issue tracking][issues] to track bugs and features.
|
26
|
-
Before submitting a bug report or feature request, check to make sure it
|
27
|
-
hasn't already been submitted.
|
28
|
-
|
29
|
-
When submitting a bug report, please include a [Gist][] that includes a stack
|
30
|
-
trace and any details that may be necessary to reproduce the bug, including
|
31
|
-
your gem version, Ruby version, and operating system.
|
32
|
-
|
33
|
-
Ideally, a bug report should include a pull request with failing specs.
|
34
|
-
|
35
|
-
[gist]: https://gist.github.com/
|
36
|
-
|
37
|
-
|
38
|
-
## Submitting a Pull Request
|
39
|
-
|
40
|
-
1. [Fork][fork] the [repository][repo].
|
41
|
-
2. [Create a feature branch][branch] using the [gitflow][] naming convention e.g. `feature/my-new-feature`.
|
42
|
-
3. Implement your feature or bug fix.
|
43
|
-
4. Add, commit, and push your changes.
|
44
|
-
5. [Submit a pull request][pr].
|
45
|
-
|
46
|
-
[repo]: https://github.com/LukeHackett/tfl_api_client/tree/master
|
47
|
-
[fork]: https://help.github.com/articles/fork-a-repo/
|
48
|
-
[branch]: https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/
|
49
|
-
[pr]: https://help.github.com/articles/using-pull-requests/
|
50
|
-
|
51
|
-
[gitflow]: http://danielkummer.github.io/git-flow-cheatsheet/#features
|
52
|
-
|
53
|
-
|
54
|
-
## Notes
|
55
|
-
|
56
|
-
* Please add tests if you changed code. Contributions without tests won't be accepted.
|
57
|
-
* Please don't update the Gem version.
|
58
|
-
|
59
|
-
Inspired by [Middleman-Heroku][middleman] and [Factory Girl][factory_girl].
|
60
|
-
|
61
|
-
[middleman]: https://github.com/middleman/middleman-heroku/blob/master/CONTRIBUTING.md
|
62
|
-
[factory_girl]: https://github.com/thoughtbot/factory_girl/blob/master/CONTRIBUTING.md
|