fec_results 0.1 → 0.5
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.
- data/README.md +2 -1
- data/lib/fec_results/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
|
@@ -4,6 +4,8 @@ FecResults is a Ruby library that provides access to federal election results as
|
|
|
4
4
|
|
|
5
5
|
Please be aware that there can be typos in some of the FEC results files, mainly in the FEC candidate IDs.
|
|
6
6
|
|
|
7
|
+
An accompanying library, [FecResultsGenerator](https://github.com/openelections/fec_results_generator), turns the data retrieved by FecResults into JSON files suitable for creating a static API. You can browse this API from the [docs site](http://openelections.github.io/fec_results/).
|
|
8
|
+
|
|
7
9
|
## Installation
|
|
8
10
|
|
|
9
11
|
Add this line to your application's Gemfile:
|
|
@@ -51,7 +53,6 @@ results.first
|
|
|
51
53
|
=> <FecResults::Result:0x007fb46e297870 @year=2012, @chamber="H", @state="AL", @district="01", @fec_id="H2AL01077", @incumbent=true, @candidate_last="Bonner", @candidate_first="Jo", @candidate_name="Bonner, Jo", @party="R", @primary_votes=48702, @primary_pct=55.54959907839358, @primary_unopposed=false, @runoff_votes=nil, @runoff_pct=nil, @general_votes=196374, @general_pct=97.85624588889553, @general_unopposed=false, @general_runoff_votes=nil, @general_runoff_pct=nil, @general_combined_party_votes=nil, @general_combined_party_pct=nil, @general_winner=true, @notes=nil>
|
|
52
54
|
```
|
|
53
55
|
|
|
54
|
-
|
|
55
56
|
|
|
56
57
|
|
|
57
58
|
## Contributing
|
data/lib/fec_results/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fec_results
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.5'
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -110,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
110
110
|
version: '0'
|
|
111
111
|
segments:
|
|
112
112
|
- 0
|
|
113
|
-
hash:
|
|
113
|
+
hash: 3045175943861585558
|
|
114
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
none: false
|
|
116
116
|
requirements:
|
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
119
119
|
version: '0'
|
|
120
120
|
segments:
|
|
121
121
|
- 0
|
|
122
|
-
hash:
|
|
122
|
+
hash: 3045175943861585558
|
|
123
123
|
requirements: []
|
|
124
124
|
rubyforge_project:
|
|
125
125
|
rubygems_version: 1.8.25
|