route_c 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.rspec +3 -0
- data/.travis.yml +9 -0
- data/Gemfile +4 -0
- data/LICENSE.md +21 -0
- data/README.md +6 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/config/config.yaml +5 -0
- data/config/pins.yaml +8 -0
- data/exe/routec +4 -0
- data/fixtures/rspec/vcr/RouteC_Query/gets_some_json.yml +42 -0
- data/fixtures/rspec/vcr/RouteC_Query/gets_the_average_occupancy.yml +42 -0
- data/fixtures/rspec/vcr/RouteC_Query/light_the_elements/as_an_array/returns_an_array_for_an_average_of_18_.yml +42 -0
- data/lib/route_c/cli.rb +31 -0
- data/lib/route_c/version.rb +3 -0
- data/lib/route_c.rb +83 -0
- data/route_c.gemspec +34 -0
- metadata +219 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 70e700d59b416b24098c10461c92d971a9e358b0
|
4
|
+
data.tar.gz: 957594f6be7a1c1d4fc3c62861ce3fc55c46a5ad
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0579a4e7ad1d76d1e7f13b827c363f9ea57050f697b70b71d2a69c3dbef70c1906ba492fe95f11d84219d55154de54f641236d9a2ad6fb29c895867f07becc35
|
7
|
+
data.tar.gz: 0e7324530d27f69392be3702d8547bd992c053a04607e58272433387605cd2ad4205377e6f90e7c77eac1ba23f7e8dff0b06e9c9b732952c01ae823be1331041
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Open Data Institute
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
[![Build Status](http://img.shields.io/travis/TheODI-UD2D/route_c.svg?style=flat-square)](https://travis-ci.org/TheODI-UD2D/route_c)
|
2
|
+
[![Dependency Status](http://img.shields.io/gemnasium/TheODI-UD2D/route_c.svg?style=flat-square)](https://gemnasium.com/TheODI-UD2D/route_c)
|
3
|
+
[![Coverage Status](http://img.shields.io/coveralls/TheODI-UD2D/route_c.svg?style=flat-square)](https://coveralls.io/r/TheODI-UD2D/route_c)
|
4
|
+
[![Code Climate](http://img.shields.io/codeclimate/github/TheODI-UD2D/route_c.svg?style=flat-square)](https://codeclimate.com/github/TheODI-UD2D/route_c)
|
5
|
+
[![Gem Version](http://img.shields.io/gem/v/route_c.svg?style=flat-square)](https://rubygems.org/gems/route_c)
|
6
|
+
[![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](http://TheODI-UD2D.mit-license.org)
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "route_c"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/config/config.yaml
ADDED
data/config/pins.yaml
ADDED
data/exe/routec
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://<SIR_HANDEL_USERNAME>:<SIR_HANDEL_PASSWORD>@goingunderground.herokuapp.com/stations/arriving/southbound/euston/2015-09-23T16:20:00.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- Cowboy
|
23
|
+
Date:
|
24
|
+
- Thu, 25 Feb 2016 11:50:27 GMT
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Vary:
|
30
|
+
- Accept
|
31
|
+
X-Content-Type-Options:
|
32
|
+
- nosniff
|
33
|
+
Content-Length:
|
34
|
+
- '1728'
|
35
|
+
Via:
|
36
|
+
- 1.1 vegur
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '[[{"segment":1193,"number":0,"timeStamp":"2015-09-23T16:08:39.575Z"},{"CAR_A":29.443181818181817,"CAR_B":17.266666666666666,"CAR_C":12.931506849315069,"CAR_D":13.32857142857143}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T14:58:45.09Z"},{"CAR_A":27.382022471910112,"CAR_B":23.130434782608695,"CAR_C":11.327272727272728,"CAR_D":6.314814814814815}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T13:31:52.459Z"},{"CAR_A":30.984848484848484,"CAR_B":31.016666666666666,"CAR_C":17.339622641509433,"CAR_D":24.491525423728813}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T11:12:05.328Z"},{"CAR_A":25.066666666666666,"CAR_B":17.568627450980394,"CAR_C":16.59090909090909,"CAR_D":7.976744186046512}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T08:28:09.875Z"},{"CAR_A":76.51546391752578,"CAR_B":68.54166666666667,"CAR_C":66.63013698630137,"CAR_D":61.13636363636363}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T08:27:35.975Z"},{"CAR_A":82.1938775510204,"CAR_B":74.24489795918367,"CAR_C":68.07246376811594,"CAR_D":64.7127659574468}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T07:11:42.012Z"},{"CAR_A":97.02272727272727,"CAR_B":80.56989247311827,"CAR_C":66.51315789473684,"CAR_D":73.3768115942029}],[{"segment":1193,"number":0,"timeStamp":"2015-09-22T23:07:11.575Z"},{"CAR_A":16.650602409638555,"CAR_B":10.929577464788732,"CAR_C":15.414285714285715,"CAR_D":15.185714285714285}],[{"segment":1193,"number":0,"timeStamp":"2015-09-22T21:50:17.475Z"},{"CAR_A":27.041666666666668,"CAR_B":21.36,"CAR_C":13.95,"CAR_D":6.521739130434782}],[{"segment":1193,"number":0,"timeStamp":"2015-09-22T16:50:48.528Z"},{"CAR_A":41.75,"CAR_B":32.36363636363637,"CAR_C":26.11111111111111,"CAR_D":27.11111111111111}]]'
|
40
|
+
http_version:
|
41
|
+
recorded_at: Fri, 01 Jan 2016 16:20:00 GMT
|
42
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://<SIR_HANDEL_USERNAME>:<SIR_HANDEL_PASSWORD>@goingunderground.herokuapp.com/stations/arriving/southbound/euston/2015-09-23T16:20:00.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- Cowboy
|
23
|
+
Date:
|
24
|
+
- Thu, 25 Feb 2016 11:50:27 GMT
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Vary:
|
30
|
+
- Accept
|
31
|
+
X-Content-Type-Options:
|
32
|
+
- nosniff
|
33
|
+
Content-Length:
|
34
|
+
- '1728'
|
35
|
+
Via:
|
36
|
+
- 1.1 vegur
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '[[{"segment":1193,"number":0,"timeStamp":"2015-09-23T16:08:39.575Z"},{"CAR_A":29.443181818181817,"CAR_B":17.266666666666666,"CAR_C":12.931506849315069,"CAR_D":13.32857142857143}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T14:58:45.09Z"},{"CAR_A":27.382022471910112,"CAR_B":23.130434782608695,"CAR_C":11.327272727272728,"CAR_D":6.314814814814815}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T13:31:52.459Z"},{"CAR_A":30.984848484848484,"CAR_B":31.016666666666666,"CAR_C":17.339622641509433,"CAR_D":24.491525423728813}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T11:12:05.328Z"},{"CAR_A":25.066666666666666,"CAR_B":17.568627450980394,"CAR_C":16.59090909090909,"CAR_D":7.976744186046512}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T08:28:09.875Z"},{"CAR_A":76.51546391752578,"CAR_B":68.54166666666667,"CAR_C":66.63013698630137,"CAR_D":61.13636363636363}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T08:27:35.975Z"},{"CAR_A":82.1938775510204,"CAR_B":74.24489795918367,"CAR_C":68.07246376811594,"CAR_D":64.7127659574468}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T07:11:42.012Z"},{"CAR_A":97.02272727272727,"CAR_B":80.56989247311827,"CAR_C":66.51315789473684,"CAR_D":73.3768115942029}],[{"segment":1193,"number":0,"timeStamp":"2015-09-22T23:07:11.575Z"},{"CAR_A":16.650602409638555,"CAR_B":10.929577464788732,"CAR_C":15.414285714285715,"CAR_D":15.185714285714285}],[{"segment":1193,"number":0,"timeStamp":"2015-09-22T21:50:17.475Z"},{"CAR_A":27.041666666666668,"CAR_B":21.36,"CAR_C":13.95,"CAR_D":6.521739130434782}],[{"segment":1193,"number":0,"timeStamp":"2015-09-22T16:50:48.528Z"},{"CAR_A":41.75,"CAR_B":32.36363636363637,"CAR_C":26.11111111111111,"CAR_D":27.11111111111111}]]'
|
40
|
+
http_version:
|
41
|
+
recorded_at: Fri, 01 Jan 2016 16:20:00 GMT
|
42
|
+
recorded_with: VCR 3.0.1
|
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://<SIR_HANDEL_USERNAME>:<SIR_HANDEL_PASSWORD>@goingunderground.herokuapp.com/stations/arriving/southbound/euston/2015-09-23T16:20:00.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- Cowboy
|
23
|
+
Date:
|
24
|
+
- Thu, 25 Feb 2016 11:50:27 GMT
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Vary:
|
30
|
+
- Accept
|
31
|
+
X-Content-Type-Options:
|
32
|
+
- nosniff
|
33
|
+
Content-Length:
|
34
|
+
- '1728'
|
35
|
+
Via:
|
36
|
+
- 1.1 vegur
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '[[{"segment":1193,"number":0,"timeStamp":"2015-09-23T16:08:39.575Z"},{"CAR_A":29.443181818181817,"CAR_B":17.266666666666666,"CAR_C":12.931506849315069,"CAR_D":13.32857142857143}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T14:58:45.09Z"},{"CAR_A":27.382022471910112,"CAR_B":23.130434782608695,"CAR_C":11.327272727272728,"CAR_D":6.314814814814815}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T13:31:52.459Z"},{"CAR_A":30.984848484848484,"CAR_B":31.016666666666666,"CAR_C":17.339622641509433,"CAR_D":24.491525423728813}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T11:12:05.328Z"},{"CAR_A":25.066666666666666,"CAR_B":17.568627450980394,"CAR_C":16.59090909090909,"CAR_D":7.976744186046512}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T08:28:09.875Z"},{"CAR_A":76.51546391752578,"CAR_B":68.54166666666667,"CAR_C":66.63013698630137,"CAR_D":61.13636363636363}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T08:27:35.975Z"},{"CAR_A":82.1938775510204,"CAR_B":74.24489795918367,"CAR_C":68.07246376811594,"CAR_D":64.7127659574468}],[{"segment":1193,"number":0,"timeStamp":"2015-09-23T07:11:42.012Z"},{"CAR_A":97.02272727272727,"CAR_B":80.56989247311827,"CAR_C":66.51315789473684,"CAR_D":73.3768115942029}],[{"segment":1193,"number":0,"timeStamp":"2015-09-22T23:07:11.575Z"},{"CAR_A":16.650602409638555,"CAR_B":10.929577464788732,"CAR_C":15.414285714285715,"CAR_D":15.185714285714285}],[{"segment":1193,"number":0,"timeStamp":"2015-09-22T21:50:17.475Z"},{"CAR_A":27.041666666666668,"CAR_B":21.36,"CAR_C":13.95,"CAR_D":6.521739130434782}],[{"segment":1193,"number":0,"timeStamp":"2015-09-22T16:50:48.528Z"},{"CAR_A":41.75,"CAR_B":32.36363636363637,"CAR_C":26.11111111111111,"CAR_D":27.11111111111111}]]'
|
40
|
+
http_version:
|
41
|
+
recorded_at: Fri, 01 Jan 2016 16:20:00 GMT
|
42
|
+
recorded_with: VCR 3.0.1
|
data/lib/route_c/cli.rb
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'thor'
|
2
|
+
|
3
|
+
module RouteC
|
4
|
+
class CLI < Thor
|
5
|
+
desc 'version', 'Print routec version'
|
6
|
+
def version
|
7
|
+
puts "routec version #{VERSION}"
|
8
|
+
end
|
9
|
+
map %w(-v --version) => :version
|
10
|
+
|
11
|
+
desc 'lights', 'Show lights for station and direction'
|
12
|
+
method_option :time,
|
13
|
+
type: :string,
|
14
|
+
default: '2015-09-23T18:00',
|
15
|
+
desc: 'Show lights for time (on 23rd Sept)'
|
16
|
+
|
17
|
+
method_option :console,
|
18
|
+
type: :boolean,
|
19
|
+
default: false,
|
20
|
+
desc: 'Dump output to console (instead of LEDs)'
|
21
|
+
|
22
|
+
def lights station, direction
|
23
|
+
routec = RouteC::Query.new station, direction, options[:time]
|
24
|
+
if options['console']
|
25
|
+
puts routec.to_a.inspect
|
26
|
+
else
|
27
|
+
routec.to_lights
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
data/lib/route_c.rb
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
require 'json'
|
3
|
+
require 'dotenv'
|
4
|
+
require 'open-uri'
|
5
|
+
require 'pi_piper'
|
6
|
+
|
7
|
+
require "route_c/version"
|
8
|
+
require "route_c/cli"
|
9
|
+
|
10
|
+
Dotenv.load
|
11
|
+
|
12
|
+
module RouteC
|
13
|
+
class Query
|
14
|
+
def initialize(station, direction, datetime = nil)
|
15
|
+
@station, @direction, @datetime = station, direction, set_datetime(datetime)
|
16
|
+
end
|
17
|
+
|
18
|
+
def set_datetime(datetime)
|
19
|
+
if datetime.nil?
|
20
|
+
hour = Time.now.hour
|
21
|
+
minute = Time.now.min
|
22
|
+
"2015-09-23T#{hour}:#{minute}:00"
|
23
|
+
else
|
24
|
+
datetime
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def url
|
29
|
+
"#{Query.config['base_url']}#{@direction}/#{@station}/#{@datetime}.json"
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.config
|
33
|
+
YAML.load_file 'config/config.yaml'
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.pins
|
37
|
+
YAML.load_file 'config/pins.yaml'
|
38
|
+
end
|
39
|
+
|
40
|
+
def json
|
41
|
+
request = open(url, http_basic_authentication: [
|
42
|
+
ENV['SIR_HANDEL_USERNAME'],
|
43
|
+
ENV['SIR_HANDEL_PASSWORD']
|
44
|
+
])
|
45
|
+
JSON.parse request.read
|
46
|
+
end
|
47
|
+
|
48
|
+
def average_occupancy
|
49
|
+
loads = json.first.last
|
50
|
+
average = loads.values.inject{ |sum, el| sum + el }.to_f / loads.size
|
51
|
+
average.round
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.num_elements average, elements = Query.config['lights']
|
55
|
+
(elements * (average / 100.0)).round
|
56
|
+
end
|
57
|
+
|
58
|
+
def to_a
|
59
|
+
num = Query.num_elements average_occupancy
|
60
|
+
Array.new(Query.config['lights']).each_with_index.map { |k,v| v + 1 <= num ? 1 : 0 }
|
61
|
+
end
|
62
|
+
|
63
|
+
def to_lights
|
64
|
+
to_a.each_with_index do |b, i|
|
65
|
+
if b == 1
|
66
|
+
lights[i].on
|
67
|
+
sleep Query.config['interval']
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
sleep Query.config['pause']
|
72
|
+
|
73
|
+
lights.reverse.each do |l|
|
74
|
+
l.off
|
75
|
+
sleep Query.config['interval']
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
def lights
|
80
|
+
@lights ||= Query.pins.map { |p| PiPiper::Pin.new(pin: p, direction: :out) }
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
data/route_c.gemspec
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'route_c/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'route_c'
|
8
|
+
spec.version = RouteC::VERSION
|
9
|
+
spec.authors = ['pikesley', 'pezholio']
|
10
|
+
spec.email = ['ops@theodi.org']
|
11
|
+
|
12
|
+
spec.summary = %q{words}
|
13
|
+
spec.description = %q{words}
|
14
|
+
spec.homepage = 'http://github.com'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = 'exe'
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ['lib']
|
21
|
+
|
22
|
+
spec.add_dependency 'dotenv', '~> 2.0.2'
|
23
|
+
spec.add_dependency 'thor', '~> 0.19'
|
24
|
+
spec.add_dependency 'pi_piper'
|
25
|
+
|
26
|
+
spec.add_development_dependency 'bundler', '~> 1.11'
|
27
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
28
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
29
|
+
spec.add_development_dependency 'coveralls', '~>0.8'
|
30
|
+
spec.add_development_dependency 'timecop', '~> 0.8'
|
31
|
+
spec.add_development_dependency 'webmock', '~> 1.22'
|
32
|
+
spec.add_development_dependency 'vcr', '~> 3.0'
|
33
|
+
spec.add_development_dependency 'pry', '~> 0.10'
|
34
|
+
end
|
metadata
ADDED
@@ -0,0 +1,219 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: route_c
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- pikesley
|
8
|
+
- pezholio
|
9
|
+
autorequire:
|
10
|
+
bindir: exe
|
11
|
+
cert_chain: []
|
12
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: dotenv
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 2.0.2
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 2.0.2
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: thor
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0.19'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0.19'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: pi_piper
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
type: :runtime
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: bundler
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '1.11'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '1.11'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: rake
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '10.0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '10.0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: rspec
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - "~>"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '3.0'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '3.0'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: coveralls
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - "~>"
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0.8'
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - "~>"
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0.8'
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: timecop
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - "~>"
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0.8'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - "~>"
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0.8'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: webmock
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - "~>"
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '1.22'
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '1.22'
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: vcr
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - "~>"
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '3.0'
|
147
|
+
type: :development
|
148
|
+
prerelease: false
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - "~>"
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '3.0'
|
154
|
+
- !ruby/object:Gem::Dependency
|
155
|
+
name: pry
|
156
|
+
requirement: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - "~>"
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0.10'
|
161
|
+
type: :development
|
162
|
+
prerelease: false
|
163
|
+
version_requirements: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - "~>"
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '0.10'
|
168
|
+
description: words
|
169
|
+
email:
|
170
|
+
- ops@theodi.org
|
171
|
+
executables:
|
172
|
+
- routec
|
173
|
+
extensions: []
|
174
|
+
extra_rdoc_files: []
|
175
|
+
files:
|
176
|
+
- ".gitignore"
|
177
|
+
- ".rspec"
|
178
|
+
- ".travis.yml"
|
179
|
+
- Gemfile
|
180
|
+
- LICENSE.md
|
181
|
+
- README.md
|
182
|
+
- Rakefile
|
183
|
+
- bin/console
|
184
|
+
- bin/setup
|
185
|
+
- config/config.yaml
|
186
|
+
- config/pins.yaml
|
187
|
+
- exe/routec
|
188
|
+
- fixtures/rspec/vcr/RouteC_Query/gets_some_json.yml
|
189
|
+
- fixtures/rspec/vcr/RouteC_Query/gets_the_average_occupancy.yml
|
190
|
+
- fixtures/rspec/vcr/RouteC_Query/light_the_elements/as_an_array/returns_an_array_for_an_average_of_18_.yml
|
191
|
+
- lib/route_c.rb
|
192
|
+
- lib/route_c/cli.rb
|
193
|
+
- lib/route_c/version.rb
|
194
|
+
- route_c.gemspec
|
195
|
+
homepage: http://github.com
|
196
|
+
licenses:
|
197
|
+
- MIT
|
198
|
+
metadata: {}
|
199
|
+
post_install_message:
|
200
|
+
rdoc_options: []
|
201
|
+
require_paths:
|
202
|
+
- lib
|
203
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - ">="
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: '0'
|
208
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
|
+
requirements:
|
210
|
+
- - ">="
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
version: '0'
|
213
|
+
requirements: []
|
214
|
+
rubyforge_project:
|
215
|
+
rubygems_version: 2.5.1
|
216
|
+
signing_key:
|
217
|
+
specification_version: 4
|
218
|
+
summary: words
|
219
|
+
test_files: []
|