pa_billreader 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +44 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/pa_billreader +10 -0
- data/bin/setup +8 -0
- data/lib/environment.rb +8 -0
- data/lib/pa_billreader/bill.rb +57 -0
- data/lib/pa_billreader/cli.rb +136 -0
- data/lib/pa_billreader/scraper.rb +35 -0
- data/lib/pa_billreader/version.rb +3 -0
- data/pa_billreader.gemspec +40 -0
- data/spec.md +7 -0
- metadata +134 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 74a3f321c2af22a139f82f46f31ee8791ed8a0c1
|
4
|
+
data.tar.gz: 8556b2390e59edd8e53ef69b49efed5aa2b6a643
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c5c8af740a8ec3cde97aabf32ec993955191581d235720d19c794793dd4ca8407e5bdc371e8fd21e6f1775166ef260f3c0170114eaf0dda6c2f3cdb46c672c3d
|
7
|
+
data.tar.gz: fd05f676281342f1a533d74e5e515a5e5eac4e388040bd5dc66b5dd6c4408c980237911a13cae9165901efd5e57f4d8ebb01efed19054f3ca899214febe8fec3
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at kelseyhuse30@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Kelsey Huse
|
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,44 @@
|
|
1
|
+
# PaBillreader
|
2
|
+
|
3
|
+
This gem is an interactive cli program to view and list current bills for the 2017-2018 Regular Session in Pennsylvania.
|
4
|
+
The data is scraped from http://www.legis.state.pa.us/ to display current information.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'pa_billreader'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
|
20
|
+
$ gem install pa_billreader
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
Open running the program, it will automatically scrape the data from the PA Legislation website and create bill objects.
|
25
|
+
Type 'list' to view the list of bill numbers and summaries (warning: it will be >1000 items)
|
26
|
+
Type 'view' to view information on a specific bill. You will be prompted for the number and then the branch of congress.
|
27
|
+
When viewing a bill, you can type 'view memo' or 'view full' and the url will open in your browser. Not all bills will have these available.
|
28
|
+
Type 'exit' to exit the application.
|
29
|
+
|
30
|
+
## Development
|
31
|
+
|
32
|
+
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.
|
33
|
+
|
34
|
+
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).
|
35
|
+
|
36
|
+
## Contributing
|
37
|
+
|
38
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/kelseyhuse30/pa_billreader. 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.
|
39
|
+
|
40
|
+
|
41
|
+
## License
|
42
|
+
|
43
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
44
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'environment'
|
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 "irb"
|
14
|
+
IRB.start
|
data/bin/pa_billreader
ADDED
data/bin/setup
ADDED
data/lib/environment.rb
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
class PaBillreader::Bill
|
2
|
+
|
3
|
+
attr_accessor :number, :branch, :short_title, :prime_sponsor, :last_action, :memo_url, :full_text_url
|
4
|
+
|
5
|
+
@@all = []
|
6
|
+
|
7
|
+
def initialize(bill_hash)
|
8
|
+
bill_hash.each { |attr, value|
|
9
|
+
self.send("#{attr}=", value)
|
10
|
+
}
|
11
|
+
save
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.all
|
15
|
+
@@all
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.size
|
19
|
+
@@all.size
|
20
|
+
end
|
21
|
+
|
22
|
+
def save
|
23
|
+
@@all << self
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.sorted!
|
27
|
+
@@all.sort_by! {|bill| bill.number.to_i
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.create_from_array(array)
|
32
|
+
array.each { |bill_hash|
|
33
|
+
PaBillreader::Bill.new(bill_hash)
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
def add_bill_attributes(attr_hash)
|
38
|
+
attr_hash.each { |attr, value|
|
39
|
+
self.send("#{attr}=",value)
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.find_by_number(number, branch)
|
44
|
+
self.all.detect { |bill|
|
45
|
+
bill.number == number && bill.branch == branch }
|
46
|
+
end
|
47
|
+
|
48
|
+
def self.house_bills
|
49
|
+
self.all.select {|bill| bill.branch == "H" }
|
50
|
+
end
|
51
|
+
|
52
|
+
def self.senate_bills
|
53
|
+
self.all.select {|bill| bill.branch == "S" }
|
54
|
+
end
|
55
|
+
|
56
|
+
|
57
|
+
end
|
@@ -0,0 +1,136 @@
|
|
1
|
+
class PaBillreader::CLI
|
2
|
+
|
3
|
+
@@viewed_bills = []
|
4
|
+
|
5
|
+
def call
|
6
|
+
puts "-------------------------------"
|
7
|
+
puts "Welcome to the PA bill reader!"
|
8
|
+
puts "-------------------------------"
|
9
|
+
puts "Loading bills now..."
|
10
|
+
puts "-------------------------------"
|
11
|
+
create_bills
|
12
|
+
# binding.pry
|
13
|
+
menu
|
14
|
+
goodbye
|
15
|
+
end
|
16
|
+
|
17
|
+
def create_bills
|
18
|
+
PaBillreader::Scraper.scrape_bill_nums("H") #house bills
|
19
|
+
|
20
|
+
puts "There are currently #{PaBillreader::Bill.house_bills.size} bills in the House"
|
21
|
+
|
22
|
+
PaBillreader::Scraper.scrape_bill_nums("S") #senate bills
|
23
|
+
|
24
|
+
puts "There are currently #{PaBillreader::Bill.senate_bills.size} bills in the Senate"
|
25
|
+
|
26
|
+
end
|
27
|
+
|
28
|
+
def create_bill_details_all
|
29
|
+
PaBillreader::Bill.all.each {|bill|
|
30
|
+
attributes = PaBillreader::Scraper.scrape_bill_detail(bill.branch, bill.number)
|
31
|
+
bill.add_bill_attributes(attributes)
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
def create_bill_details_single(bill)
|
36
|
+
attributes = PaBillreader::Scraper.scrape_bill_detail(bill.branch, bill.number)
|
37
|
+
bill.add_bill_attributes(attributes)
|
38
|
+
end
|
39
|
+
|
40
|
+
def list_bills
|
41
|
+
puts "Here are all the current bills for Regular Session 2017-2018"
|
42
|
+
puts "-------------------------------"
|
43
|
+
puts "This may take a while..."
|
44
|
+
puts "-------------------------------"
|
45
|
+
create_bill_details_all
|
46
|
+
PaBillreader::Bill.sorted!
|
47
|
+
PaBillreader::Bill.all.each {|bill|
|
48
|
+
puts bill.number
|
49
|
+
puts bill.short_title
|
50
|
+
}
|
51
|
+
puts "-------------------------------"
|
52
|
+
end
|
53
|
+
|
54
|
+
def menu
|
55
|
+
input = nil
|
56
|
+
while input != "exit"
|
57
|
+
puts "would you like to VIEW a bill, LIST all bills, or EXIT?"
|
58
|
+
puts "-------------------------------"
|
59
|
+
input = gets.downcase.strip
|
60
|
+
if input == "view"
|
61
|
+
input_num = get_valid_bill_num
|
62
|
+
input_branch = get_valid_branch
|
63
|
+
bill_to_find = PaBillreader::Bill.find_by_number(input_num, input_branch)
|
64
|
+
@@viewed_bills << bill_to_find
|
65
|
+
create_bill_details_single(bill_to_find) unless bill_to_find == nil
|
66
|
+
display_bill_info(bill_to_find) unless bill_to_find == nil
|
67
|
+
puts "That is not a valid bill" if bill_to_find == nil
|
68
|
+
elsif input == "list"
|
69
|
+
list_bills
|
70
|
+
elsif input == "open memo"
|
71
|
+
open_memo(bill_to_find)
|
72
|
+
elsif input == "open full"
|
73
|
+
open_full(bill_to_find)
|
74
|
+
elsif input == "history"
|
75
|
+
# list bills
|
76
|
+
print_history
|
77
|
+
else
|
78
|
+
puts "Not sure what you want, type view, list or exit"
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
def get_valid_bill_num
|
84
|
+
input_num = "0"
|
85
|
+
while !input_num.to_i.between?(1, PaBillreader::Bill.size)
|
86
|
+
puts "Enter the number of the bill you'd like to view"
|
87
|
+
puts "-------------------------------"
|
88
|
+
input_num = gets.strip
|
89
|
+
end
|
90
|
+
input_num
|
91
|
+
end
|
92
|
+
|
93
|
+
def get_valid_branch
|
94
|
+
input_branch = ""
|
95
|
+
while input_branch != "S" && input_branch != "H"
|
96
|
+
puts "Would you like to see the senate or house bill?"
|
97
|
+
puts "-------------------------------"
|
98
|
+
input_branch = gets.strip.upcase[0,1]
|
99
|
+
end
|
100
|
+
input_branch
|
101
|
+
end
|
102
|
+
|
103
|
+
def display_bill_info(bill)
|
104
|
+
puts "#{display_branch(bill.branch)} Bill Number #{bill.number}: #{bill.short_title}"
|
105
|
+
puts "Primary Sponsor: #{bill.prime_sponsor}"
|
106
|
+
puts "Last Action: #{bill.last_action}"
|
107
|
+
puts "Type 'Open Memo' to open memo in browser." if bill.memo_url
|
108
|
+
puts "Type 'Open Full' to open full bill text in browser." if bill.full_text_url
|
109
|
+
end
|
110
|
+
|
111
|
+
def open_memo(bill)
|
112
|
+
open_in_browser(bill.memo_url)
|
113
|
+
end
|
114
|
+
|
115
|
+
def open_full(bill)
|
116
|
+
open_in_browser(bill.full_text_url)
|
117
|
+
end
|
118
|
+
|
119
|
+
def open_in_browser(url)
|
120
|
+
system("open '#{url}'")
|
121
|
+
end
|
122
|
+
|
123
|
+
def display_branch(abbrev)
|
124
|
+
return "Senate" if abbrev == "S"
|
125
|
+
return "House" if abbrev == "H"
|
126
|
+
end
|
127
|
+
|
128
|
+
def print_history
|
129
|
+
@@viewed_bills.each {|bill| display_bill_info(bill)}
|
130
|
+
end
|
131
|
+
|
132
|
+
def goodbye
|
133
|
+
puts "See you later for more bills bills bills!"
|
134
|
+
end
|
135
|
+
|
136
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
class PaBillreader::Scraper
|
2
|
+
|
3
|
+
attr_accessor :bills
|
4
|
+
|
5
|
+
@@count = 0
|
6
|
+
|
7
|
+
def self.scrape_bill_nums(branch)
|
8
|
+
doc = Nokogiri::HTML(open("http://www.legis.state.pa.us/cfdocs/legis/bi/BillIndx.cfm?sYear=2017&sIndex=0&bod=#{branch}"))
|
9
|
+
@bills = []
|
10
|
+
|
11
|
+
doc.css("table.DataTable")[0].css("td a").each { |id|
|
12
|
+
@bills << {number: id.text, branch: branch}
|
13
|
+
}
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
PaBillreader::Bill.create_from_array(@bills)
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.scrape_bill_detail(branch, bill)
|
21
|
+
|
22
|
+
doc = Nokogiri::HTML(open("http://www.legis.state.pa.us/cfdocs/billinfo/billinfo.cfm?syear=2017&sind=0&body=#{branch}&type=B&bn=#{bill}"))
|
23
|
+
bill_details = {}
|
24
|
+
|
25
|
+
bill_details[:short_title] = doc.css("div.BillInfo-ShortTitle div.BillInfo-Section-Data").text.strip
|
26
|
+
bill_details[:prime_sponsor] = doc.css("div.BillInfo-PrimeSponsor div.BillInfo-Section-Data").text.strip
|
27
|
+
bill_details[:last_action] = doc.css("div.BillInfo-LastAction div.BillInfo-Section-Data").text.strip
|
28
|
+
bill_details[:memo_url] = doc.css("div.BillInfo-CosponMemo div.BillInfo-Section-Data a").attr('href').value if doc.at_css("div.BillInfo-CosponMemo div.BillInfo-Section-Data a")
|
29
|
+
bill_details[:full_text_url] = "http://www.legis.state.pa.us#{doc.css("table.DataTable.BillInfo-PNTable td[valign='middle'] a").attr('href').value}" if doc.at_css("table.DataTable.BillInfo-PNTable td[valign='middle'] a")
|
30
|
+
|
31
|
+
bill_details
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'pa_billreader/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "pa_billreader"
|
8
|
+
spec.version = PaBillreader::VERSION
|
9
|
+
spec.authors = ["Kelsey Huse"]
|
10
|
+
spec.email = ["kelseyhuse30@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = "CLI gem to read PA bills from congress website"
|
13
|
+
spec.description = "This gem will scrape the house and senate websites to get bill numbers, descriptions, and sponsors."
|
14
|
+
spec.homepage = "https://github.com/kelseyhuse30/pa_billreader"
|
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'] = "https://rubygems.org"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
23
|
+
"public gem pushes."
|
24
|
+
end
|
25
|
+
|
26
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
27
|
+
f.match(%r{^(test|spec|features)/})
|
28
|
+
end
|
29
|
+
spec.bindir = "exe"
|
30
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
|
+
spec.require_paths = ["lib"]
|
32
|
+
|
33
|
+
spec.add_development_dependency "bundler", "~> 1.13"
|
34
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
35
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
36
|
+
spec.add_development_dependency "pry"
|
37
|
+
|
38
|
+
spec.add_dependency "nokogiri"
|
39
|
+
|
40
|
+
end
|
data/spec.md
ADDED
metadata
ADDED
@@ -0,0 +1,134 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pa_billreader
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Kelsey Huse
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-03-13 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.13'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.13'
|
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: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: nokogiri
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description: This gem will scrape the house and senate websites to get bill numbers,
|
84
|
+
descriptions, and sponsors.
|
85
|
+
email:
|
86
|
+
- kelseyhuse30@gmail.com
|
87
|
+
executables: []
|
88
|
+
extensions: []
|
89
|
+
extra_rdoc_files: []
|
90
|
+
files:
|
91
|
+
- ".gitignore"
|
92
|
+
- ".rspec"
|
93
|
+
- ".travis.yml"
|
94
|
+
- CODE_OF_CONDUCT.md
|
95
|
+
- Gemfile
|
96
|
+
- LICENSE.txt
|
97
|
+
- README.md
|
98
|
+
- Rakefile
|
99
|
+
- bin/console
|
100
|
+
- bin/pa_billreader
|
101
|
+
- bin/setup
|
102
|
+
- lib/environment.rb
|
103
|
+
- lib/pa_billreader/bill.rb
|
104
|
+
- lib/pa_billreader/cli.rb
|
105
|
+
- lib/pa_billreader/scraper.rb
|
106
|
+
- lib/pa_billreader/version.rb
|
107
|
+
- pa_billreader.gemspec
|
108
|
+
- spec.md
|
109
|
+
homepage: https://github.com/kelseyhuse30/pa_billreader
|
110
|
+
licenses:
|
111
|
+
- MIT
|
112
|
+
metadata:
|
113
|
+
allowed_push_host: https://rubygems.org
|
114
|
+
post_install_message:
|
115
|
+
rdoc_options: []
|
116
|
+
require_paths:
|
117
|
+
- lib
|
118
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - ">="
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '0'
|
128
|
+
requirements: []
|
129
|
+
rubyforge_project:
|
130
|
+
rubygems_version: 2.5.1
|
131
|
+
signing_key:
|
132
|
+
specification_version: 4
|
133
|
+
summary: CLI gem to read PA bills from congress website
|
134
|
+
test_files: []
|