esb 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +15 -0
  2. data/README.md +6 -3
  3. data/lib/esb.rb +1 -1
  4. data/lib/esb/version.rb +1 -1
  5. metadata +5 -11
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ OTc4OTI3OWNjZDI3NGU3YzcyZDE1NGRiMTdjOTRlMDhjNTA2ZDczNQ==
5
+ data.tar.gz: !binary |-
6
+ NjEyYjdiY2UwNmUxZWM4NzgzMjZiMDQzMTcyNWE4NjNmNzY3YzRhYw==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ ZjE1OGNkNjhlMjM0MDU4YWJkNTRhYjJjYzhjY2I3YzI1N2FjZjVhMTJkZDhi
10
+ ZDQ0MzYzYzUwYzc4YTAxNjMyZjViOWZlOTFkMmY4NGU0ODQ1NjgyNTM5ODcy
11
+ NDFiNzg0OGVkYzY1M2IzNmY5ZmRlZWM0ODI1NjgwMmI0NzFjYTk=
12
+ data.tar.gz: !binary |-
13
+ M2EzNzA3ZDIwNDZiYTI2NWZhYjM5NjI2ZDk5YWI4ZDE4ODU0ODEwOTdkOWRm
14
+ M2Y4MzlmNDM2ZWI2OTI5NDMyZmE2MmYzOTkxZGQ1M2ExMzJhMzgwMzdjMzhk
15
+ NjQyNWIzYjI1NjgxMDI3Y2EzMzJkNDg5N2M0M2Y2NWVmMzU5ZjE=
data/README.md CHANGED
@@ -10,9 +10,12 @@ Look up the Empire State Building's current color - from your command line.
10
10
 
11
11
  $ esb
12
12
 
13
- November 25 - 28
14
- Special Lighting in Fall Colors
15
- In honor of the 87th Annual Macy's Thanksgiving Day Parade
13
+ Tonight, the Empire State Building will be lit in its signature white.
14
+
15
+ ## Getting Blank Text?
16
+
17
+ This gem scrapes http://www.esbnyc.com - they occasionally update their markup in a way
18
+ that breaks our scraping. File an issue or better yet, fix it and make a pull request!
16
19
 
17
20
  ## Contributing
18
21
 
data/lib/esb.rb CHANGED
@@ -5,7 +5,7 @@ class Esb
5
5
  def self.get_color
6
6
  doc = Nokogiri::HTML(open("http://www.esbnyc.com/current_events_tower_lights.asp"))
7
7
  puts " "
8
- puts doc.css("#lighting_schedule table tr.current").text.gsub("\t", "")
8
+ puts doc.css("#page-title").text.strip
9
9
  puts " "
10
10
  end
11
11
  end
data/lib/esb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Esb
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - nodanaonlyzuul
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-11-26 00:00:00.000000000 Z
11
+ date: 2014-06-26 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: nokogiri
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: pry
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -62,27 +57,26 @@ files:
62
57
  - lib/esb/version.rb
63
58
  homepage: https://github.com/nodanaonlyzuul/esb
64
59
  licenses: []
60
+ metadata: {}
65
61
  post_install_message:
66
62
  rdoc_options: []
67
63
  require_paths:
68
64
  - lib
69
65
  required_ruby_version: !ruby/object:Gem::Requirement
70
- none: false
71
66
  requirements:
72
67
  - - ! '>='
73
68
  - !ruby/object:Gem::Version
74
69
  version: '0'
75
70
  required_rubygems_version: !ruby/object:Gem::Requirement
76
- none: false
77
71
  requirements:
78
72
  - - ! '>='
79
73
  - !ruby/object:Gem::Version
80
74
  version: '0'
81
75
  requirements: []
82
76
  rubyforge_project:
83
- rubygems_version: 1.8.24
77
+ rubygems_version: 2.2.2
84
78
  signing_key:
85
- specification_version: 3
79
+ specification_version: 4
86
80
  summary: A command line tool to tell you what color the empire state building is,
87
81
  and why.
88
82
  test_files: []