twenty_sixteen 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -1
- data/lib/twenty_sixteen/candidates.json +53 -0
- data/lib/twenty_sixteen/version.rb +1 -1
- data/spec/candidate_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff36a13e70a4c966cc0b06197de076677eed83aa
|
4
|
+
data.tar.gz: b73b01263df8fb61f0f31776125635a9f5b573b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ef6493ff958469e7796981f6d4326a55c5371ff55b0953aef7e76a02f87a2d2530e47a2d0d6392c29c3e9852da0e52f4d9e829293fcaa070b0d9126fbf68420
|
7
|
+
data.tar.gz: df077075f578e8e33d8120f98258c1d7d943630e9fbc60e6e7d32ff245d6efa23e0d374c9ed90da1a2cae6cfdd0d445242f5881d872479b14864ccb0a08caa4f
|
data/README.md
CHANGED
@@ -38,7 +38,21 @@ List all candidates running for President.
|
|
38
38
|
```` rb
|
39
39
|
candidates = TwentySixteen::Candidate.all
|
40
40
|
candidates.each do |candidate|
|
41
|
-
|
41
|
+
puts candidate
|
42
|
+
#=> {
|
43
|
+
# :party=>"Democrat",
|
44
|
+
# :first_name=>"Jim",
|
45
|
+
# :last_name=>"Webb",
|
46
|
+
# :url=>"http://www.webb2016.com/",
|
47
|
+
# :campaign_name=>nil,
|
48
|
+
# :slogans=>["Leadership You Can Trust"],
|
49
|
+
# :social_urls=>
|
50
|
+
# ["http://www.facebook.com/IHeardMyCountryCalling",
|
51
|
+
# "http://instagram.com/webb2016/",
|
52
|
+
# "http://www.twitter.com/jimwebbusa",
|
53
|
+
# "https://www.youtube.com/channel/UC-Cs55IKt_UoYTMyioTSPww"],
|
54
|
+
# :support_groups=>[{:name=>"Born Fighting PAC", :url=>"http://www.bornfighting.com"}]
|
55
|
+
#}
|
42
56
|
end
|
43
57
|
````
|
44
58
|
|
@@ -5,6 +5,7 @@
|
|
5
5
|
"last_name":"Webb",
|
6
6
|
"url":"http://www.webb2016.com/",
|
7
7
|
"campaign_name":null,
|
8
|
+
"campaign_status":"active",
|
8
9
|
"slogans":["Leadership You Can Trust"],
|
9
10
|
"social_urls":[
|
10
11
|
"http://www.facebook.com/IHeardMyCountryCalling",
|
@@ -20,6 +21,7 @@
|
|
20
21
|
"last_name":"Clinton",
|
21
22
|
"url":"https://www.hillaryclinton.com/",
|
22
23
|
"campaign_name":"Hillary for America",
|
24
|
+
"campaign_status":"active",
|
23
25
|
"slogans":[],
|
24
26
|
"social_urls":[
|
25
27
|
"https://www.facebook.com/hillaryclinton",
|
@@ -39,6 +41,7 @@
|
|
39
41
|
"last_name":"Chafee",
|
40
42
|
"url":"http://www.chafee2016.com/",
|
41
43
|
"campaign_name":"Chafee 2016 Committee",
|
44
|
+
"campaign_status":"active",
|
42
45
|
"slogans":["Fresh Ideas for America"],
|
43
46
|
"social_urls":[
|
44
47
|
"https://www.facebook.com/chafee2016",
|
@@ -53,6 +56,7 @@
|
|
53
56
|
"first_name":"Martin",
|
54
57
|
"last_name":"O'Malley",
|
55
58
|
"url":"https://martinomalley.com/",
|
59
|
+
"campaign_status":"active",
|
56
60
|
"campaign_name":"O'Malley for President",
|
57
61
|
"slogans":[],
|
58
62
|
"social_urls":[
|
@@ -69,6 +73,7 @@
|
|
69
73
|
"last_name":"Sanders",
|
70
74
|
"url":"https://berniesanders.com/",
|
71
75
|
"campaign_name":"Bernie 2016",
|
76
|
+
"campaign_status":"active",
|
72
77
|
"slogans":[],
|
73
78
|
"social_urls":[
|
74
79
|
"https://www.facebook.com/berniesanders",
|
@@ -84,6 +89,7 @@
|
|
84
89
|
"last_name":"Christie",
|
85
90
|
"url":"https://www.chrischristie.com",
|
86
91
|
"campaign_name":"Chris Christie for President",
|
92
|
+
"campaign_status":"active",
|
87
93
|
"slogans":["Telling it like it is."],
|
88
94
|
"social_urls":[
|
89
95
|
"https://www.facebook.com/govchristie",
|
@@ -99,6 +105,7 @@
|
|
99
105
|
"last_name":"Jindal",
|
100
106
|
"url":"http://www.bobbyjindal.com/",
|
101
107
|
"campaign_name":"Jindal for President",
|
108
|
+
"campaign_status":"active",
|
102
109
|
"slogans":[],
|
103
110
|
"social_urls":[
|
104
111
|
"http://facebook.com/bobbyjindal",
|
@@ -114,6 +121,7 @@
|
|
114
121
|
"last_name":"Trump",
|
115
122
|
"url":"https://www.donaldjtrump.com/",
|
116
123
|
"campaign_name":"Donald J. Trump for President",
|
124
|
+
"campaign_status":"active",
|
117
125
|
"slogans":["Make America Great Again!"],
|
118
126
|
"social_urls":[
|
119
127
|
"https://twitter.com/realdonaldtrump",
|
@@ -129,6 +137,7 @@
|
|
129
137
|
"last_name":"Bush",
|
130
138
|
"url":"https://jeb2016.com",
|
131
139
|
"campaign_name":"Jeb 2016",
|
140
|
+
"campaign_status":"active",
|
132
141
|
"slogans":[],
|
133
142
|
"social_urls":[
|
134
143
|
"https://twitter.com/JebBush",
|
@@ -144,6 +153,7 @@
|
|
144
153
|
"last_name":"Perry",
|
145
154
|
"url":"https://rickperry.org/",
|
146
155
|
"campaign_name":"Perry for President",
|
156
|
+
"campaign_status":"inactive",
|
147
157
|
"slogans":[],
|
148
158
|
"social_urls":[
|
149
159
|
"https://twitter.com/governorperry",
|
@@ -159,6 +169,7 @@
|
|
159
169
|
"last_name":"Graham",
|
160
170
|
"url":"http://www.lindseygraham.com/",
|
161
171
|
"campaign_name":"Lindsey Graham 2016",
|
172
|
+
"campaign_status":"active",
|
162
173
|
"slogans":["Ready to be Commander-in-Chief on Day One"],
|
163
174
|
"social_urls":[
|
164
175
|
"https://twitter.com/LindseyGrahamSC",
|
@@ -174,6 +185,7 @@
|
|
174
185
|
"last_name":"Pataki",
|
175
186
|
"url":"http://www.georgepataki.com/",
|
176
187
|
"campaign_name":"Pataki for President",
|
188
|
+
"campaign_status":"active",
|
177
189
|
"slogans":["People over Politics"],
|
178
190
|
"social_urls":[
|
179
191
|
"https://www.facebook.com/GovGeorgePataki",
|
@@ -188,6 +200,7 @@
|
|
188
200
|
"last_name":"Santorum",
|
189
201
|
"url":"http://www.ricksantorum.com/",
|
190
202
|
"campaign_name":"Santorum for President 2016",
|
203
|
+
"campaign_status":"active",
|
191
204
|
"slogans":["Restore the American Dream for Hard-working Families"],
|
192
205
|
"social_urls":[
|
193
206
|
"https://www.facebook.com/RickSantorum",
|
@@ -203,6 +216,7 @@
|
|
203
216
|
"last_name":"Huckabee",
|
204
217
|
"url":"http://www.mikehuckabee.com/",
|
205
218
|
"campaign_name":"Huckabee for President",
|
219
|
+
"campaign_status":"active",
|
206
220
|
"slogans":["From Hope to Higher Ground"],
|
207
221
|
"social_urls":[
|
208
222
|
"https://www.facebook.com/mikehuckabee",
|
@@ -219,6 +233,7 @@
|
|
219
233
|
"last_name":"Carson",
|
220
234
|
"url":"https://www.bencarson.com/",
|
221
235
|
"campaign_name":"Carson America",
|
236
|
+
"campaign_status":"active",
|
222
237
|
"slogans":["Heal, Inspire, Revive"],
|
223
238
|
"social_urls":[
|
224
239
|
"https://www.facebook.com/realbencarson/",
|
@@ -235,6 +250,7 @@
|
|
235
250
|
"last_name":"Fiorina",
|
236
251
|
"url":"https://carlyforamerica.com/",
|
237
252
|
"campaign_name":"Carly for America",
|
253
|
+
"campaign_status":"active",
|
238
254
|
"slogans":["We must once again become a nation of limitless possibility."],
|
239
255
|
"social_urls":[
|
240
256
|
"https://www.facebook.com/pages/Carly-For-America/801745626578122",
|
@@ -250,6 +266,7 @@
|
|
250
266
|
"last_name":"Rubio",
|
251
267
|
"url":"https://marcorubio.com/",
|
252
268
|
"campaign_name":"Marco Rubio for President",
|
269
|
+
"campaign_status":"active",
|
253
270
|
"slogans":["A New American Century"],
|
254
271
|
"social_urls":[
|
255
272
|
"https://www.youtube.com/user/marcorubio",
|
@@ -268,6 +285,7 @@
|
|
268
285
|
"last_name":"Paul",
|
269
286
|
"url":"https://randpaul.com/",
|
270
287
|
"campaign_name":"Rand Paul for President",
|
288
|
+
"campaign_status":"active",
|
271
289
|
"slogans":["Defeat the Washington Machine"],
|
272
290
|
"social_urls":[
|
273
291
|
"https://www.facebook.com/RandPaul",
|
@@ -284,6 +302,7 @@
|
|
284
302
|
"last_name":"Cruz",
|
285
303
|
"url":"https://www.tedcruz.org/",
|
286
304
|
"campaign_name":"Cruz for President",
|
305
|
+
"campaign_status":"active",
|
287
306
|
"slogans":["Courageous Conservatives Reigniting the Promise of America"],
|
288
307
|
"social_urls":[
|
289
308
|
"https://www.facebook.com/tedcruzpage",
|
@@ -291,5 +310,39 @@
|
|
291
310
|
"https://www.youtube.com/user/TedCruzforSenate"
|
292
311
|
],
|
293
312
|
"support_groups":[]
|
313
|
+
},
|
314
|
+
{
|
315
|
+
"party":"Republican",
|
316
|
+
"first_name":"Scott",
|
317
|
+
"last_name":"Walker",
|
318
|
+
"url":"https://www.scottwalker.com/",
|
319
|
+
"campaign_name":"Scott Walker Inc.",
|
320
|
+
"campaign_status":"inactive",
|
321
|
+
"slogans":["Reform, Growth, Safety"],
|
322
|
+
"social_urls":[
|
323
|
+
"https://www.youtube.com/user/supportscottwalker",
|
324
|
+
"https://plus.google.com/+ScottWalker/",
|
325
|
+
"https://instagram.com/scottwalker",
|
326
|
+
"https://medium.com/@scottwalker",
|
327
|
+
"https://www.facebook.com/scottkwalker",
|
328
|
+
"https://twitter.com/ScottWalker"
|
329
|
+
],
|
330
|
+
"support_groups":[]
|
331
|
+
},
|
332
|
+
{
|
333
|
+
"party":"Republican",
|
334
|
+
"first_name":"John",
|
335
|
+
"last_name":"Kasich",
|
336
|
+
"url":"https://johnkasich.com/",
|
337
|
+
"campaign_name":"John Kasich for America",
|
338
|
+
"campaign_status":"active",
|
339
|
+
"slogans":[],
|
340
|
+
"social_urls":[
|
341
|
+
"https://www.facebook.com/JohnKasich/",
|
342
|
+
"https://instagram.com/JohnKasich/",
|
343
|
+
"https://www.youtube.com/user/JohnKasich",
|
344
|
+
"https://twitter.com/johnkasich"
|
345
|
+
],
|
346
|
+
"support_groups":[]
|
294
347
|
}
|
295
348
|
]
|
data/spec/candidate_spec.rb
CHANGED
@@ -40,7 +40,7 @@ module TwentySixteen
|
|
40
40
|
it "returns a candidate whose last name matches the paramater" do
|
41
41
|
pending "announcement by the VP..."
|
42
42
|
joe = TwentySixteen::Candidate.find_by_last_name("Biden")
|
43
|
-
expect(joe).to be_kind_of(Hash)
|
43
|
+
expect(joe).to be_kind_of(Hash) # fyi this is going to fail until the VP enters the race and his data is added.
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twenty_sixteen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MJ Rossetti (@s2t2)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
124
|
rubyforge_project:
|
125
|
-
rubygems_version: 2.
|
125
|
+
rubygems_version: 2.4.5
|
126
126
|
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: A source for data about the 2016 United States Presidential election.
|