tfgm 0.0.1 → 0.0.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.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/tfgm.rb +3 -0
  3. metadata +9 -10
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OGVkMzBiMDBmYTE2OWJlZjc3NWMxYTQ2YWU0YmU0YmM2NDY5M2Q1ZA==
4
+ OTZlMDUzY2FlNmExMDZkMDdmNzdmN2FjOTY1MDQzNTliNDYxMjcxNA==
5
5
  data.tar.gz: !binary |-
6
- OWNlZmI1YjgyNGUwODYyMmYwZGIwNzRmN2M1YTVhMjQ0MjkzNzllNQ==
6
+ MDEzNmJmYmFjY2ViNGM2MGJhZTA0MjNhOTZlNDVkYzI4OTZjMzE3Yg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MjNmOGI5OWRkNjQ4ZmFlNDczNTYxNDQ5YjkzMjc4M2E2MzYxYzM1OTM5NjUz
10
- MGNjYmYwY2UyZmUyYTgyMDlhMzBmNTg0MWEzYTA4NDljZWRmZDg0NWYzZGY0
11
- YzYyOTBmZWYwYjc4N2FlMjEyYWQ4YzJmZGJiNzY1MjM3ZGRlZWQ=
9
+ MzBiN2M4MWM0Yzg1MzFhYzUxNmRiYzRkYWRkNDRhYjMyOTMwYWRhYWU2ZGJi
10
+ ZTJjMTFkZDZhZDVhZmM2MzgyYmRlOTc3MzQxMjQwNzc0OWU5NDFiMDgyNDhj
11
+ OTljNGEzNzFkYzc4YWYzNGI2YjM1ZTQ3MTU2ZDMzMWQ3NjA1OWI=
12
12
  data.tar.gz: !binary |-
13
- OWZkMjg1ODc0MmFhZmNkMTBmYmU4NmI2MGJlNzk5MjJlM2Q0NTMzOGRkMzYx
14
- MjlmZmJlMGFhOTk0NGNhZjVmNDgxOGFmNGY5MDk0M2FkZWMxNjUwMzE3NzM4
15
- YWZiOTkwZDdiMDE4YjExYmY2MTAxZDdmODM0MjY5NTYzY2NjYWU=
13
+ MDUyNmMwZWJhNTQ5MWE5MGFmMTgwN2RkZDI0ZDg3NmQxNjNiZTczYzZiNzMz
14
+ YmQ2MjE3OGE4NDA4OTU4NjAxMmZkZjNkYWEwM2Y1MTU0NzM3MGRmN2Q4MTZj
15
+ ODJkOTY3NmE3OTI2OTQ0ZTY5ODQ1MWE3ZmQyNDQ1MzRlMTk3NmE=
@@ -44,6 +44,9 @@ module TFGM
44
44
  ## Move the keys to class-based variables
45
45
  @developer_key = dev_key
46
46
  @application_key = app_key
47
+
48
+ ## This checks if the API keys is valid.
49
+ _call('/api/enums')
47
50
  end
48
51
 
49
52
  ##
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tfgm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bilawal Hameed
@@ -52,11 +52,10 @@ dependencies:
52
52
  - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description: ! " A lightweight Ruby wrapper for the Transport for Greater Manchester
56
- Open Data REST API. It was built on the Routes to the Future Innovation Challenge
57
- in Manchester by @bilawalhameed.\n As of March 2013, it supports the REST API to
58
- query data such as bus routes, car parks, metrolinks based in Greater Manchester.
59
- The API itself is new, so I would take caution.\n"
55
+ description: ! ' A simple Ruby wrapper for the Transport for Greater Manchester REST
56
+ API (i.e. bus routes, car parks, metrolinks).
57
+
58
+ '
60
59
  email: b@bilawal.co.uk
61
60
  executables: []
62
61
  extensions: []
@@ -69,9 +68,9 @@ homepage: http://github.com/bih/tfgm
69
68
  licenses:
70
69
  - MIT
71
70
  metadata: {}
72
- post_install_message: ! '>> NOTICE: The TFGM REST API is unstable and is not recommended
73
- for production. It is purely for testing at this stage, and we encourage contributing
74
- to this gem via http://github.com/bih/tfgm <<'
71
+ post_install_message: ! "-------------------\n** NOTICE ** \nThe REST API is currently
72
+ unstable and not fit for production. This is due to the REST API, and not the Rubygem.\nIf
73
+ you'd like to contribute to the development of the gem, visit http://github.com/bih/tfgm\n-------------------\n"
75
74
  rdoc_options: []
76
75
  require_paths:
77
76
  - lib
@@ -90,5 +89,5 @@ rubyforge_project:
90
89
  rubygems_version: 2.0.3
91
90
  signing_key:
92
91
  specification_version: 4
93
- summary: Ruby wrapper for Transport for Greater Manchester's API
92
+ summary: A simple Ruby wrapper for the TFGM REST API.
94
93
  test_files: []