poll_tracker 0.1.2
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 +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +11 -0
- data/bin/console +17 -0
- data/bin/poll_tracker +9 -0
- data/bin/setup +8 -0
- data/lib/poll_tracker.rb +12 -0
- data/lib/poll_tracker/cli.rb +70 -0
- data/lib/poll_tracker/poll.rb +49 -0
- data/lib/poll_tracker/scraper.rb +103 -0
- data/lib/poll_tracker/version.rb +3 -0
- data/poll_tracker-0.1.1.gem +0 -0
- data/poll_tracker.gemspec +38 -0
- data/spec.md +14 -0
- metadata +167 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 287df6dbfe3bfed8d007b69867b68dc3b198665b
|
4
|
+
data.tar.gz: 4d7317ef6f972bf6073e99892a57b0d08498967b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e5bf63ccda1f76591d9222db909288ae2ac60db78e99174979837f1efef23a8265e880d86e094fcad4f8cc6afa488d22c69b9e82b4974d45b1180c133e5b0f06
|
7
|
+
data.tar.gz: b4f5c09d9019104451add7efa2f1f63bee77ac29c38b9fbb964d1ab158cd49351dc3785ae51bd8e8a9889dacb80cb4bc4a2dd11439a30b7b2563a8c1214039b1
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at bewick.scott@gmail.com. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Scott Bewick
|
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,39 @@
|
|
1
|
+
# PollTracker
|
2
|
+
|
3
|
+
Hello, this is the PollTracker gem. This gem will list the 25 most recent 2016 Presidential polls as compiled by the Huffington Post. You can choose anyone of these polls to see its results and more detailed information about it. Additionaly, it will show you the poll results from the average of more than 350 polls from 43 different pollsters. The list is updated daily through the election.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'poll_tracker'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install poll_tracker
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
After you have successfully installed the gem, type 'poll_tracker' into the command line and press enter. Follow the instructions on the screen to see polls.
|
24
|
+
|
25
|
+
## Development
|
26
|
+
|
27
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
28
|
+
|
29
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
30
|
+
|
31
|
+
## Contributing
|
32
|
+
|
33
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/scottibe/poll_tracker. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
34
|
+
|
35
|
+
|
36
|
+
## License
|
37
|
+
|
38
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
39
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "poll_tracker"
|
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 "pry"
|
14
|
+
Pry.start
|
15
|
+
|
16
|
+
# require "irb"
|
17
|
+
# IRB.start
|
data/bin/poll_tracker
ADDED
data/bin/setup
ADDED
data/lib/poll_tracker.rb
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
require 'pry'
|
2
|
+
class PollTracker::CLI
|
3
|
+
|
4
|
+
def call
|
5
|
+
welcome
|
6
|
+
end
|
7
|
+
|
8
|
+
def welcome
|
9
|
+
input = nil
|
10
|
+
puts "***********POLL TRACKER 2016!! TRUMP vs CLINTON!!***********".white.on_light_red
|
11
|
+
puts "*****************THE SHAMING OF AMERICA!!!!*****************".white.on_light_red
|
12
|
+
puts ""
|
13
|
+
sleep(1.5 )
|
14
|
+
puts "----Hello! I am Poll Tracker! I can show you many polls.----".blue.on_light_white
|
15
|
+
puts "----Currently, the average of more than 350 polls shows:----".blue.on_light_white
|
16
|
+
puts ""
|
17
|
+
sleep(1.5)
|
18
|
+
score = PollTracker::Scraper.avg_results_hash
|
19
|
+
puts "*****HILLARY CLINTON***** =====> #{score[:clinton]}%**********************".light_white.on_light_blue.underline
|
20
|
+
puts "*****DONALD TRUMP?******* =====> #{score[:trump]}%*********** Seriously?".light_white.on_light_blue
|
21
|
+
puts ""
|
22
|
+
sleep(1.5)
|
23
|
+
puts "Type 'YesHillary' or 'NeverTrump' to see a list of the 25 most recent polls."
|
24
|
+
puts "Type 'exit' if this makes you sick and want to leave. PollTracker understands."
|
25
|
+
|
26
|
+
while input != "exit"
|
27
|
+
input = gets.strip.downcase
|
28
|
+
|
29
|
+
if input.downcase == "nevertrump" || input.downcase == "yeshillary"
|
30
|
+
list_polls
|
31
|
+
show_poll
|
32
|
+
else
|
33
|
+
puts "Rigged! Try again, type 'NeverTrump' or 'YesHillary'. Otherwise, type exit and leave!"
|
34
|
+
end
|
35
|
+
if input.downcase == "exit"
|
36
|
+
puts "Goodbye. Vote Quimby!"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
|
42
|
+
def list_polls
|
43
|
+
puts PollTracker::Scraper.poll_names_index
|
44
|
+
end
|
45
|
+
|
46
|
+
def show_poll
|
47
|
+
puts "Please choose the number of the poll you would like to see."
|
48
|
+
puts "Enter a number between 1-25"
|
49
|
+
|
50
|
+
poll_number = gets.strip
|
51
|
+
poll_number = poll_number.to_i - 1
|
52
|
+
if poll_number.between?(0, 24)
|
53
|
+
@poll = PollTracker::Poll.new_poll(poll_number)
|
54
|
+
puts ""
|
55
|
+
puts "Poll Source:-------------#{@poll.name}"
|
56
|
+
puts "Hillary Clinton: --------#{@poll.clinton}%"
|
57
|
+
puts "Donald Trump: -----------#{@poll.trump}%"
|
58
|
+
puts "Lead: -------------------#{@poll.lead} Points"
|
59
|
+
puts "Dates Polled: -----------#{@poll.date}"
|
60
|
+
puts "Likely Voters Polled: ---#{@poll.polled}"
|
61
|
+
puts ""
|
62
|
+
puts "Type 'YesHillary' or 'NeverTrump' to see go back to list."
|
63
|
+
puts "Or type 'exit' to leave"
|
64
|
+
|
65
|
+
elsif
|
66
|
+
puts "That is not a valid selection. Please type 'NeverTrump' or 'YesHillary' and choose again"
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'pry'
|
2
|
+
class PollTracker::Poll
|
3
|
+
|
4
|
+
attr_accessor :name, :date, :polled, :clinton, :trump, :lead
|
5
|
+
|
6
|
+
def initialize
|
7
|
+
@name = name
|
8
|
+
@date = date
|
9
|
+
@polled = polled
|
10
|
+
@lead = lead
|
11
|
+
@clinton = clinton
|
12
|
+
@trump = trump
|
13
|
+
end
|
14
|
+
|
15
|
+
def names(input)
|
16
|
+
PollTracker::Scraper.scrape_poll_names[input.to_i]
|
17
|
+
end
|
18
|
+
|
19
|
+
def clinton_results(input)
|
20
|
+
PollTracker::Scraper.clinton_results[input.to_i]
|
21
|
+
end
|
22
|
+
|
23
|
+
def trump_results(input)
|
24
|
+
PollTracker::Scraper.trump_results[input.to_i]
|
25
|
+
end
|
26
|
+
|
27
|
+
def leads(input)
|
28
|
+
PollTracker::Scraper.scrape_result_spread[input.to_i]
|
29
|
+
end
|
30
|
+
|
31
|
+
def dates(input)
|
32
|
+
PollTracker::Scraper.scrape_poll_date[input.to_i]
|
33
|
+
end
|
34
|
+
|
35
|
+
def number_polled(input)
|
36
|
+
PollTracker::Scraper.scrape_likely_voters[input.to_i]
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.new_poll(input)
|
40
|
+
@poll = self.new
|
41
|
+
@poll.name = @poll.names(input)
|
42
|
+
@poll.clinton = @poll.clinton_results(input)
|
43
|
+
@poll.trump = @poll.trump_results(input)
|
44
|
+
@poll.lead = @poll.leads(input)
|
45
|
+
@poll.date = @poll.dates(input)
|
46
|
+
@poll.polled = @poll.number_polled(input)
|
47
|
+
@poll
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,103 @@
|
|
1
|
+
require 'pry'
|
2
|
+
require 'nokogiri'
|
3
|
+
require 'open-uri'
|
4
|
+
|
5
|
+
|
6
|
+
class PollTracker::Scraper
|
7
|
+
|
8
|
+
attr_accessor :poll
|
9
|
+
|
10
|
+
def self.scrape_page
|
11
|
+
doc = Nokogiri::HTML(open("http://elections.huffingtonpost.com/pollster/2016-general-election-trump-vs-clinton"))
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.avg_results_hash
|
15
|
+
results = []
|
16
|
+
final_results = {}
|
17
|
+
clinton = scrape_page.css("ul#chart-choice-select li label.checked span.value").first.text.gsub("%", "").to_f
|
18
|
+
results << clinton
|
19
|
+
trump = scrape_page.css("ul#chart-choice-select li label.checked span.value").last.text.gsub("%", "").to_f
|
20
|
+
results << trump
|
21
|
+
results[0].to_i
|
22
|
+
results[1].to_i
|
23
|
+
results
|
24
|
+
final_results[:clinton] = results.first
|
25
|
+
final_results[:trump] = results.last
|
26
|
+
final_results
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.result_helper
|
30
|
+
names = scrape_page.css("div.scrollable-poll-table table#poll-table td.choice")
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.scrape_result_spread
|
34
|
+
spreads = []
|
35
|
+
sp = scrape_page.css("div.scrollable-poll-table table#poll-table td.spread")
|
36
|
+
sp.collect do |spread|
|
37
|
+
spreads << spread.text
|
38
|
+
end
|
39
|
+
spreads.first(25)
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.scrape_poll_names
|
43
|
+
polls = []
|
44
|
+
names = scrape_page.css("div.scrollable-poll-table table#poll-table tbody td.poll div.pollster a")
|
45
|
+
names.children.collect do |name|
|
46
|
+
polls << name.text
|
47
|
+
end
|
48
|
+
polls.first(25)
|
49
|
+
end
|
50
|
+
|
51
|
+
def self.trump_results
|
52
|
+
@clinton = []
|
53
|
+
@trump = []
|
54
|
+
@trump, @clinton = all_results.each_with_index.partition { |v| v[1].even?}.map{ |v| v.map{ |v| v[0] }}
|
55
|
+
@trump
|
56
|
+
end
|
57
|
+
|
58
|
+
def self.clinton_results
|
59
|
+
@clinton = []
|
60
|
+
@trump = []
|
61
|
+
@trump, @clinton = all_results.each_with_index.partition { |v| v[1].even?}.map{ |v| v.map{ |v| v[0] }}
|
62
|
+
@clinton
|
63
|
+
end
|
64
|
+
|
65
|
+
def self.poll_names_index
|
66
|
+
@names = []
|
67
|
+
scrape_poll_names.each.with_index(1) do |name, i|
|
68
|
+
@names << "#{i}. " "#{name}"
|
69
|
+
end
|
70
|
+
@names
|
71
|
+
end
|
72
|
+
|
73
|
+
def self.all_results
|
74
|
+
@results = []
|
75
|
+
result_helper.each do |el|
|
76
|
+
@results << el.text
|
77
|
+
@results
|
78
|
+
end
|
79
|
+
@results = @results.first(100)
|
80
|
+
@results = @results.delete_if do |num|
|
81
|
+
num.to_i < 20
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
def self.scrape_poll_date
|
86
|
+
date_array = []
|
87
|
+
date = scrape_page.css("tr.poll-single-subpopulation div.dates")
|
88
|
+
date.children.each do |dates|
|
89
|
+
date_array << dates.text
|
90
|
+
end
|
91
|
+
date_array.first(25)
|
92
|
+
end
|
93
|
+
|
94
|
+
|
95
|
+
def self.scrape_likely_voters
|
96
|
+
vote_array = []
|
97
|
+
voters = scrape_page.css("tr.poll-single-subpopulation div.npop")
|
98
|
+
voters.children.each do |vote|
|
99
|
+
vote_array << vote.text
|
100
|
+
end
|
101
|
+
vote_array.first(25)
|
102
|
+
end
|
103
|
+
end
|
Binary file
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'poll_tracker/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "poll_tracker"
|
8
|
+
spec.version = PollTracker::VERSION
|
9
|
+
spec.authors = ["Scott Bewick"]
|
10
|
+
spec.email = ["bewick.scott@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{it tracks presidential polls}
|
13
|
+
spec.description = %q{presents top polls clinton trump allows you to look at each polls statistics updated daily}
|
14
|
+
spec.homepage = "https://github.com/scottibe/poll_tracker_cli"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
# if spec.respond_to?(:metadata)
|
20
|
+
# spec.metadata['allowed_push_host'] = 'http://rubygems.org'
|
21
|
+
# else
|
22
|
+
# raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
# end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = "bin"
|
27
|
+
spec.executables = ["poll_tracker"]
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
31
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
32
|
+
spec.add_development_dependency "pry-byebug", "~> 3.4.0", ">= 3.4.0"
|
33
|
+
spec.add_development_dependency "byebug", "~> 9.0", ">= 9.0.5"
|
34
|
+
|
35
|
+
spec.add_runtime_dependency "colorize", "~> 0.8.1"
|
36
|
+
spec.add_runtime_dependency "nokogiri", "~> 1.6", ">= 1.6.8"
|
37
|
+
|
38
|
+
end
|
data/spec.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
Specifications for the CLI Assessment
|
2
|
+
|
3
|
+
Specs:
|
4
|
+
|
5
|
+
Have a CLI for interfacing with the application
|
6
|
+
[X] app will run on command line and asks for user input to see a list of polls and then asks for user input to see detailed information about any of those polls listed
|
7
|
+
|
8
|
+
|
9
|
+
Pull data from an external source
|
10
|
+
[X] This app pulls data and updates automatically from the following web page: http://elections.huffingtonpost.com/pollster/2016-general-election-trump-vs-clinton
|
11
|
+
|
12
|
+
|
13
|
+
Implement both list and detail views
|
14
|
+
[X] The user can type in 'NeverTrump' or 'YesHillary' to see a list of the 25 most recently released public polls. From there, the user can enter a number between 1-25 that corresponds to the poll they wish to see.
|
metadata
ADDED
@@ -0,0 +1,167 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: poll_tracker
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Scott Bewick
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-11-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.12'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.12'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pry-byebug
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.4.0
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 3.4.0
|
51
|
+
type: :development
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - "~>"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 3.4.0
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 3.4.0
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: byebug
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '9.0'
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 9.0.5
|
71
|
+
type: :development
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '9.0'
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 9.0.5
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: colorize
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - "~>"
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: 0.8.1
|
88
|
+
type: :runtime
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - "~>"
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 0.8.1
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: nokogiri
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - "~>"
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '1.6'
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: 1.6.8
|
105
|
+
type: :runtime
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - "~>"
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '1.6'
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: 1.6.8
|
115
|
+
description: presents top polls clinton trump allows you to look at each polls statistics
|
116
|
+
updated daily
|
117
|
+
email:
|
118
|
+
- bewick.scott@gmail.com
|
119
|
+
executables:
|
120
|
+
- poll_tracker
|
121
|
+
extensions: []
|
122
|
+
extra_rdoc_files: []
|
123
|
+
files:
|
124
|
+
- ".gitignore"
|
125
|
+
- ".rspec"
|
126
|
+
- ".travis.yml"
|
127
|
+
- CODE_OF_CONDUCT.md
|
128
|
+
- Gemfile
|
129
|
+
- LICENSE.txt
|
130
|
+
- README.md
|
131
|
+
- Rakefile
|
132
|
+
- bin/console
|
133
|
+
- bin/poll_tracker
|
134
|
+
- bin/setup
|
135
|
+
- lib/poll_tracker.rb
|
136
|
+
- lib/poll_tracker/cli.rb
|
137
|
+
- lib/poll_tracker/poll.rb
|
138
|
+
- lib/poll_tracker/scraper.rb
|
139
|
+
- lib/poll_tracker/version.rb
|
140
|
+
- poll_tracker-0.1.1.gem
|
141
|
+
- poll_tracker.gemspec
|
142
|
+
- spec.md
|
143
|
+
homepage: https://github.com/scottibe/poll_tracker_cli
|
144
|
+
licenses:
|
145
|
+
- MIT
|
146
|
+
metadata: {}
|
147
|
+
post_install_message:
|
148
|
+
rdoc_options: []
|
149
|
+
require_paths:
|
150
|
+
- lib
|
151
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - ">="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '0'
|
156
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - ">="
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
161
|
+
requirements: []
|
162
|
+
rubyforge_project:
|
163
|
+
rubygems_version: 2.4.5.1
|
164
|
+
signing_key:
|
165
|
+
specification_version: 4
|
166
|
+
summary: it tracks presidential polls
|
167
|
+
test_files: []
|