full_house 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/full_house +6 -0
- data/lib/full_house.rb +2 -2
- data/lib/full_house/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89bec05b74741c44fcdd62066fc58359be9bf133
|
4
|
+
data.tar.gz: 953c4a3ad12da42e9f2c2015827dc71f8cefba17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b351725c7ec853d9575324c4f2df10f21d844bd6f724710fdddaf3d4a9f831eff1694438c54b96226c0428a621b06181d0363f4670b17af7f35098cddd1de9d7
|
7
|
+
data.tar.gz: 1ebc8f6794bd4dfa27404ed51b2e98822f4c56455b02c9acafbbd3b00e4d19e364a3d086ca042623918e1e02e5832627dd37150131cfeda35063dcb5deff857f
|
data/full_house
ADDED
data/lib/full_house.rb
CHANGED
@@ -31,7 +31,7 @@ module FullHouse
|
|
31
31
|
response["perf_hour"] = nycb[:hour]
|
32
32
|
results << response
|
33
33
|
end
|
34
|
-
CSV.open("nycb_#{start.day}_#{start.hour}.csv", "w", :write_headers=> true, :headers => ["day_checked","hour_checked","performance_id","performance_date","performance_hour","seat_type","price_range","seats"]) do |csv|
|
34
|
+
CSV.open("nycb_#{start.day.to_s}_#{start.hour.to_s}.csv", "w", :write_headers=> true, :headers => ["day_checked","hour_checked","performance_id","performance_date","performance_hour","seat_type","price_range","seats"]) do |csv|
|
35
35
|
results.each do |result|
|
36
36
|
result['sections'].each do |section|
|
37
37
|
csv << [result["day"], result["hour"], result["perf_id"], result["perf_date"], result["perf_hour"], section["name"], section["price"], section['message']]
|
@@ -62,7 +62,7 @@ module FullHouse
|
|
62
62
|
end
|
63
63
|
results << response
|
64
64
|
end
|
65
|
-
CSV.open("bam_#{start.day}_#{start.hour}.csv", "w", :write_headers=> true, :headers => ["day_checked","hour_checked","performance_id","performance_date","performance_hour","seat_type","price_range","seats"]) do |csv|
|
65
|
+
CSV.open("bam_#{start.day.to_s}_#{start.hour.to_s}.csv", "w", :write_headers=> true, :headers => ["day_checked","hour_checked","performance_id","performance_date","performance_hour","seat_type","price_range","seats"]) do |csv|
|
66
66
|
results.flatten.each do |result|
|
67
67
|
csv << [result["day"], result["hour"], result["perf_id"], result["perf_date"], result["perf_hour"], result["ScreenDescription"], result["MinPrice"].to_s+"-"+result["MaxPrice"].to_s, result['AvailableSeats']]
|
68
68
|
end
|
data/lib/full_house/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: full_house
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Willis
|
@@ -64,6 +64,7 @@ files:
|
|
64
64
|
- LICENSE.txt
|
65
65
|
- README.md
|
66
66
|
- Rakefile
|
67
|
+
- full_house
|
67
68
|
- full_house.gemspec
|
68
69
|
- lib/full_house.rb
|
69
70
|
- lib/full_house/version.rb
|