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 +4 -4
- data/README.md +2 -0
- data/lib/twenty_sixteen/candidate.rb +4 -1
- data/lib/twenty_sixteen/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bdf259c7c34a10eace31662343e49ac8a6628d3
|
4
|
+
data.tar.gz: 85ef8ba2c3e51948cc1db59325432286c12103fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c61b29f7fc1f0b98ad504d1acf0324b2d8d0985ee9fbb241d0ef5f9007f1d5ba8060c8602c09f8ebe098b9ad01a56f8e1013ec5a609893dfc1e03e34f0e58309
|
7
|
+
data.tar.gz: f9aa5430d1f6199ae1718d734e78ffd7a98d6a524fa53766ced8b4a6a83b94ab80c60ef880bc6fc11d89bdc55255eb53f97dfdb502b2b10e6962d678cfdaceac
|
data/README.md
CHANGED
@@ -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(
|
9
|
+
JSON.parse(File.read(CANDIDATES_JSON), :symbolize_names => true)
|
7
10
|
end
|
8
11
|
|
9
12
|
def self.democrat
|