safer_bus_api 0.0.4 → 0.0.5

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: 67ce3c5993fb98a883ab27f78d29290f899ce970
4
- data.tar.gz: 422c1a4920d21ab40c4c461df80685d2309a8a0b
3
+ metadata.gz: 8a9294ea1c4cb2def4afb282c2e8586bd4c4496d
4
+ data.tar.gz: 620094d8c3cfbb9c6ff0595c1c98fff48c565ac3
5
5
  SHA512:
6
- metadata.gz: 75092fc44c8a481edd2a95756c2c12336d38eff7a1c67ac4b9cb184a85c3c21973286c8cf782d1b471a83ea1b59e7c42bd0aae0eaffda27e874634f8448478e9
7
- data.tar.gz: b65faaa39261c9950796bf8c15e4a06bb2090f60b8e92fb4cfd7936bbb7c179534615fb4c17045307b7208a15a5c49bf158722782c707ed9ad83d271c6c321f1
6
+ metadata.gz: 61d846b98cb798da67c92ca5be32a5f1b3c9ba118ae1d1e1ced8179870b613c631592779a75eb3a494e57c46972187f0edbefa61001c33de391793b4b7193807
7
+ data.tar.gz: 30fac9507f6c4b17a093d10f4f471b1589619d38d05e3cb9e21d5695561655a143656217d06353e6de10d7581b298fad80dc14f6b9fa32c2078519f213d6f38a
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Gem Version](https://badge.fury.io/rb/safer_bus_api.png)](http://badge.fury.io/rb/safer_bus_api)
2
+
1
3
  # Overview
2
4
 
3
5
  The Department of Transportation maintains the SaferBusAPI to provide safety information pertaining to transporation companies. Information related to this API and instructions for access the API can be found here: [https://mobile.fmcsa.dot.gov/developer/apidescription.page?cid=561](https://mobile.fmcsa.dot.gov/developer/apidescription.page?cid=561)
@@ -5,11 +5,8 @@ require 'safer_bus_api/query'
5
5
  require 'safer_bus_api/request'
6
6
  require 'safer_bus_api/response'
7
7
 
8
- module SaferBusApi
9
- module_function
10
-
8
+ class SaferBusApi
11
9
  def configure
12
10
  yield SaferBusApi::Configuration
13
11
  end
14
-
15
12
  end
@@ -1,6 +1,5 @@
1
- module SaferBusApi
2
- module Configuration
3
- module_function
1
+ class SaferBusApi
2
+ class Configuration
4
3
  @data = {:api_token => ''}
5
4
 
6
5
  def update!(data)
@@ -1,4 +1,4 @@
1
- module SaferBusApi
1
+ class SaferBusApi
2
2
  class Query
3
3
  BASE_URL = 'https://mobile.fmcsa.dot.gov/saferbus/resource/v1/'
4
4
 
@@ -1,4 +1,4 @@
1
- module SaferBusApi
1
+ class SaferBusApi
2
2
  class Request
3
3
  def initialize(opts={})
4
4
  @dot_number = opts[:dot_number]
@@ -1,4 +1,4 @@
1
- module SaferBusApi
1
+ class SaferBusApi
2
2
  class Response
3
3
  def initialize(raw_data)
4
4
  @raw_data = raw_data
@@ -1,3 +1,3 @@
1
1
  module SaferBusApi
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -18,5 +18,4 @@ Gem::Specification.new do |gem|
18
18
 
19
19
  gem.add_development_dependency('rspec')
20
20
  gem.add_dependency 'typhoeus', '~> 0.6'
21
-
22
- end
21
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: safer_bus_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Bertram
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.0.3
78
+ rubygems_version: 2.2.1
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: A simple wrapper for the SaferBusAPI