club_hopper 0.1.2 → 0.1.3

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: e12ea3e3ff6a092d9a140053fa2f068eae368ce1
4
- data.tar.gz: 57a33c831e8ffa2fd64b9858bef9118651f14617
3
+ metadata.gz: 35744f6b115cea907152ca6bc2abcf35f0913405
4
+ data.tar.gz: 89101e03bd08c58d4d61c4a9097cc9014f4f6b3e
5
5
  SHA512:
6
- metadata.gz: f4240f26f746326d905a687e4eb16a4c510c493dc13930a1a21c653bd049bf64d2fb8e37a6a1a4950f0ab87ce5dc619151220344f0d9cbf85184030c3fab678d
7
- data.tar.gz: 73e8d3abf0fc637fe218900a7ec5d88235cf7523d2d18a1bf4dd5554d8f468eddaf6b26f1ab6acb9ed264a602f316601fc9d61fee0af38f838ca2cc61dee8158
6
+ metadata.gz: 603129df0bae8ad318d057443bfa62c3a2a2e6a3b13bbf974e6a696e9bdf9c4aeed0b9c1e547a2e60c1d691ccc89c28b5a7663c8eb2049902737fa0a78a23c0d
7
+ data.tar.gz: d4334571655216e8154ab45a1f494e85182554d29d3112baccb4de2f8c5809e15ae62e4c757e0277cebc3e7a88253089b0cec7bbe013acb422155f390076c9dc
data/bin/clubhopper CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
 
4
4
  require "bundler/setup"
5
- require "../lib/club_hopper"
5
+ require "./lib/club_hopper"
6
6
 
7
7
  ClubHopper.new.call
Binary file
Binary file
data/club_hopper.gemspec CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "club_hopper"
8
- spec.version = "0.1.2"
8
+ spec.version = "0.1.3"
9
9
  spec.authors = "DownsideupmediaUSA"
10
10
  spec.email = "brandondecarlo@live.com"
11
11
 
@@ -27,7 +27,7 @@ class ClubHopper::Cielo
27
27
  def self.scrape_friday_cieloclub
28
28
  html = Nokogiri::HTML(open("http://cieloclub.com"))
29
29
  event = self.new
30
- event.name = html.css("#main > div.col.col1 > div > ul > li.tfly-event-id-1192821.tfly-org-id-3635.tfly-venue-id-32 > a").text.strip
30
+ event.name = html.css("#main > div.col.col1 > div > ul > li.tfly-event-id-1225303.tfly-org-id-3635.tfly-venue-id-32 > a").text.strip
31
31
  event
32
32
  end
33
33
 
@@ -35,7 +35,7 @@ class ClubHopper::Cielo
35
35
  def self.scrape_saturday_cieloclub
36
36
  html = Nokogiri::HTML(open("http://cieloclub.com"))
37
37
  event = self.new
38
- event.name = html.css("#main > div.col.col1 > div > ul > li.tfly-event-id-1187863.tfly-org-id-3635.tfly-venue-id-32 > a").text.strip
38
+ event.name = html.css("#main > div.col.col1 > div > ul > li.tfly-event-id-1222421.tfly-org-id-3635.tfly-venue-id-32 > a").text.strip
39
39
 
40
40
  event
41
41
  end
@@ -17,6 +17,7 @@
17
17
 
18
18
  def venue
19
19
  puts "So you're lookin' to go out, huh... what club?"
20
+ puts "----------------------------------------"
20
21
  puts <<-DOC
21
22
  1. Output - Brooklyn
22
23
  2. Cielo - Manhattan
@@ -24,8 +24,8 @@ class ClubHopper::Output
24
24
  def self.scrape_friday_outputnyc
25
25
  doc = Nokogiri::HTML(open("http://outputclub.com/"))
26
26
  event = self.new
27
- event.name = doc.css("#content > article.post-4008.post.type-post.status-publish.format-standard.hentry.category-uncategorized > h1:nth-child(3)").text
28
- event.date = doc.css("#content > article.post-4008.post.type-post.status-publish.format-standard.hentry.category-uncategorized > h1:nth-child(2)").text
27
+ event.name = doc.css("#content > article.post-4220.post.type-post.status-publish.format-standard.hentry.category-uncategorized > ul > li > h2:nth-child(1)").text
28
+ event.date = doc.css("#content > article.post-4220.post.type-post.status-publish.format-standard.hentry.category-uncategorized > h1:nth-child(2)").text
29
29
 
30
30
  event
31
31
  end
@@ -33,8 +33,8 @@ class ClubHopper::Output
33
33
  def self.scrape_saturday_outputnyc
34
34
  doc = Nokogiri::HTML(open("http://outputclub.com/"))
35
35
  event = self.new
36
- event.name = doc.css("#content > article.post-3974.post.type-post.status-publish.format-standard.hentry.category-uncategorized > h1:nth-child(3)").text
37
- event.date = doc.css("#content > article.post-3974.post.type-post.status-publish.format-standard.hentry.category-uncategorized > h1:nth-child(2)").text
36
+ event.name = doc.css("#content > article.post-4065.post.type-post.status-publish.format-standard.hentry.category-uncategorized > ul > li > h2:nth-child(1)").text
37
+ event.date = doc.css("#content > article.post-4065.post.type-post.status-publish.format-standard.hentry.category-uncategorized > h1:nth-child(2)").text
38
38
 
39
39
  event
40
40
  end
@@ -1,3 +1,3 @@
1
1
  # module ClubHopper::Version
2
- # VERSION = "0.1.1"
2
+ # VERSION = "0.1.3"
3
3
  # end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: club_hopper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - DownsideupmediaUSA
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-22 00:00:00.000000000 Z
11
+ date: 2016-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -99,6 +99,8 @@ files:
99
99
  - bin/console
100
100
  - bin/setup
101
101
  - club_hopper-0.1.0.gem
102
+ - club_hopper-0.1.1.gem
103
+ - club_hopper-0.1.2.gem
102
104
  - club_hopper.gemspec
103
105
  - lib/club_hopper.rb
104
106
  - lib/club_hopper/cielo.rb