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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ffcf25e67cae75ee97fc47f080655c13869cc4bb
4
- data.tar.gz: 93443ff84ce3a40b8fc015ab03f0cd148952cf6e
3
+ metadata.gz: 89bec05b74741c44fcdd62066fc58359be9bf133
4
+ data.tar.gz: 953c4a3ad12da42e9f2c2015827dc71f8cefba17
5
5
  SHA512:
6
- metadata.gz: a89585ef97a781cd30d9d7363dd65a5619179de33fc628638b852358ed491ade5f76c870179df20c8e09a13cf0f7285cf7b730bf0f8c9250a3c2b4e7f4e1ad1e
7
- data.tar.gz: 30afb6bdc26f6bf285c4cb9071864080b78720433ec27cd478f2b0b04196fe0ab5eed06ef2211511d620d85c7d05cd8a26cfb74fa930dd08ef75e6fe83c05630
6
+ metadata.gz: b351725c7ec853d9575324c4f2df10f21d844bd6f724710fdddaf3d4a9f831eff1694438c54b96226c0428a621b06181d0363f4670b17af7f35098cddd1de9d7
7
+ data.tar.gz: 1ebc8f6794bd4dfa27404ed51b2e98822f4c56455b02c9acafbbd3b00e4d19e364a3d086ca042623918e1e02e5832627dd37150131cfeda35063dcb5deff857f
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rubygems'
4
+ require 'full_house'
5
+
6
+ FullHouse::Parser.parse_and_output
@@ -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
@@ -1,3 +1,3 @@
1
1
  module FullHouse
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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