twenty_sixteen 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1b06a86f2ac601c399f80e543dbbcb3627c01bc
4
- data.tar.gz: 7fb391d8e67f8caff7b0ca270b0e1af5672a25a2
3
+ metadata.gz: 3bdf259c7c34a10eace31662343e49ac8a6628d3
4
+ data.tar.gz: 85ef8ba2c3e51948cc1db59325432286c12103fa
5
5
  SHA512:
6
- metadata.gz: 0a2f2b12e2cca8b74e10dde50b44b22cb8fe75f8f7576b4d16f1d10b703e1439b673cb86298afe4e7391e6bb049ceb23b9a68eab688ddefdccaadc9b02da2089
7
- data.tar.gz: ef293a485ad3a26a59294f5eb89e8f2ca5740710560d572b69988fd429bfd22703a7167ab3b0a8f27adc129da2403647e18f5e691c3cd18fca2ca091dbce1e8c
6
+ metadata.gz: c61b29f7fc1f0b98ad504d1acf0324b2d8d0985ee9fbb241d0ef5f9007f1d5ba8060c8602c09f8ebe098b9ad01a56f8e1013ec5a609893dfc1e03e34f0e58309
7
+ data.tar.gz: f9aa5430d1f6199ae1718d734e78ffd7a98d6a524fa53766ced8b4a6a83b94ab80c60ef880bc6fc11d89bdc55255eb53f97dfdb502b2b10e6962d678cfdaceac
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # TwentySixteen
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/twenty_sixteen.svg)](http://badge.fury.io/rb/twenty_sixteen)
4
+
3
5
  A source for data about the 2016 United States Presidential election. Includes a **candidates** endpoint.
4
6
 
5
7
  ## Installation
@@ -2,8 +2,11 @@ require 'json'
2
2
 
3
3
  module TwentySixteen
4
4
  class Candidate
5
+
6
+ CANDIDATES_JSON = File.dirname(__FILE__) + '/candidates.json'
7
+
5
8
  def self.all
6
- JSON.parse(File.read("lib/twenty_sixteen/candidates.json"), :symbolize_names => true)
9
+ JSON.parse(File.read(CANDIDATES_JSON), :symbolize_names => true)
7
10
  end
8
11
 
9
12
  def self.democrat
@@ -1,3 +1,3 @@
1
1
  module TwentySixteen
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twenty_sixteen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - MJ Rossetti (@s2t2)