twenty_sixteen 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/twenty_sixteen/candidates.json +34 -10
- data/lib/twenty_sixteen/version.rb +1 -1
- data/spec/candidate_spec.rb +2 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85b0c555d3f6b0cde17cd687bb4800dfe91d3aa7
|
4
|
+
data.tar.gz: 467edba01191f208beb89efac1bd4299d11d5e60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3047bc03ee14a1314576f2777b990eece816cbe259c83c9150b8a8d704d747bd28363b420ee4603e4243751e2ec8fb26f67d98439ac455ccc630587849114743
|
7
|
+
data.tar.gz: 5d0a1d0af243d2e72896f475a34072196d52147222ddf011c7d3ad83d77b12ff391a58f6361c93ce9c6c4ee7b5c22dad92d77658ace1f575cae6bcce0ea24e36
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[
|
2
2
|
{
|
3
|
-
"party":"
|
3
|
+
"party":"Independent",
|
4
4
|
"first_name":"Jim",
|
5
5
|
"last_name":"Webb",
|
6
6
|
"url":"http://www.webb2016.com/",
|
@@ -13,7 +13,11 @@
|
|
13
13
|
"http://www.twitter.com/jimwebbusa",
|
14
14
|
"https://www.youtube.com/channel/UC-Cs55IKt_UoYTMyioTSPww"
|
15
15
|
],
|
16
|
-
"support_groups": [{"name":"Born Fighting PAC", "url":"http://www.bornfighting.com"}]
|
16
|
+
"support_groups": [{"name":"Born Fighting PAC", "url":"http://www.bornfighting.com"}],
|
17
|
+
"news_urls":[
|
18
|
+
"http://www.cnn.com/2015/10/20/politics/jim-webb-2016-election-drops-out/",
|
19
|
+
"http://thehill.com/blogs/ballot-box/presidential-races/257454-jim-webb-drops-out-as-democrat-may-still-run-as"
|
20
|
+
]
|
17
21
|
},
|
18
22
|
{
|
19
23
|
"party":"Democrat",
|
@@ -41,7 +45,7 @@
|
|
41
45
|
"last_name":"Chafee",
|
42
46
|
"url":"http://www.chafee2016.com/",
|
43
47
|
"campaign_name":"Chafee 2016 Committee",
|
44
|
-
"campaign_status":"
|
48
|
+
"campaign_status":"inactive",
|
45
49
|
"slogans":["Fresh Ideas for America"],
|
46
50
|
"social_urls":[
|
47
51
|
"https://www.facebook.com/chafee2016",
|
@@ -49,7 +53,11 @@
|
|
49
53
|
"https://instagram.com/lincchafee/",
|
50
54
|
"https://vimeo.com/chafee2016"
|
51
55
|
],
|
52
|
-
"support_groups":[]
|
56
|
+
"support_groups":[],
|
57
|
+
"news_urls":[
|
58
|
+
"http://www.cnn.com/2015/10/23/politics/lincoln-chafee-2016-election-dnc-meeting/",
|
59
|
+
"http://www.politico.com/story/2015/10/lincoln-chafee-drops-out-of-democratic-race-215101"
|
60
|
+
]
|
53
61
|
},
|
54
62
|
{
|
55
63
|
"party":"Democrat",
|
@@ -105,7 +113,7 @@
|
|
105
113
|
"last_name":"Jindal",
|
106
114
|
"url":"http://www.bobbyjindal.com/",
|
107
115
|
"campaign_name":"Jindal for President",
|
108
|
-
"campaign_status":"
|
116
|
+
"campaign_status":"inactive",
|
109
117
|
"slogans":[],
|
110
118
|
"social_urls":[
|
111
119
|
"http://facebook.com/bobbyjindal",
|
@@ -113,7 +121,11 @@
|
|
113
121
|
"http://instagram.com/bobbyjindal",
|
114
122
|
"https://www.youtube.com/user/bobbyjindal"
|
115
123
|
],
|
116
|
-
"support_groups":[]
|
124
|
+
"support_groups":[],
|
125
|
+
"news_urls":[
|
126
|
+
"http://thehill.com/blogs/ballot-box/presidential-races/260508-jindal-drops-out-of-white-house-race",
|
127
|
+
"http://www.huffingtonpost.com/entry/bobby-jindal-drops-out_560a8993e4b0768126ff0e01"
|
128
|
+
]
|
117
129
|
},
|
118
130
|
{
|
119
131
|
"party":"Republican",
|
@@ -145,7 +157,7 @@
|
|
145
157
|
"https://instagram.com/jebbush",
|
146
158
|
"https://www.youtube.com/channel/UCxuef1vrlJMjZRrFmYyGSeQ"
|
147
159
|
],
|
148
|
-
"support_groups":[]
|
160
|
+
"support_groups":["Right to Rise USA"]
|
149
161
|
},
|
150
162
|
{
|
151
163
|
"party":"Republican",
|
@@ -161,7 +173,11 @@
|
|
161
173
|
"https://www.youtube.com/user/governorrickperry",
|
162
174
|
"https://instagram.com/governorperry/"
|
163
175
|
],
|
164
|
-
"support_groups":[]
|
176
|
+
"support_groups":[],
|
177
|
+
"news_urls":[
|
178
|
+
"http://www.cnn.com/2015/09/11/politics/rick-perry-2016-campaign-suspended/",
|
179
|
+
"http://www.politico.com/story/2015/09/rick-perry-drops-out-presidential-race-213569"
|
180
|
+
]
|
165
181
|
},
|
166
182
|
{
|
167
183
|
"party":"Republican",
|
@@ -177,7 +193,11 @@
|
|
177
193
|
"https://www.facebook.com/LindseyGrahamSC",
|
178
194
|
"https://www.youtube.com/user/LindseyGrahamdotcom"
|
179
195
|
],
|
180
|
-
"support_groups":[]
|
196
|
+
"support_groups":[],
|
197
|
+
"news_urls":[
|
198
|
+
"http://www.wsj.com/articles/lindsey-graham-drops-out-of-gop-presidential-race-1450709196",
|
199
|
+
"http://www.newyorker.com/news/daily-comment/why-did-lindsey-graham-run"
|
200
|
+
]
|
181
201
|
},
|
182
202
|
{
|
183
203
|
"party":"Republican",
|
@@ -327,7 +347,11 @@
|
|
327
347
|
"https://www.facebook.com/scottkwalker",
|
328
348
|
"https://twitter.com/ScottWalker"
|
329
349
|
],
|
330
|
-
"support_groups":[]
|
350
|
+
"support_groups":[],
|
351
|
+
"news_urls":[
|
352
|
+
"http://www.cnn.com/2015/09/21/politics/scott-walker-drops-out-2016-election/",
|
353
|
+
"http://www.slate.com/articles/news_and_politics/politics/2015/09/scott_walker_drops_out_why_the_wisconsin_governor_left_the_gop_primary.html"
|
354
|
+
]
|
331
355
|
},
|
332
356
|
{
|
333
357
|
"party":"Republican",
|
data/spec/candidate_spec.rb
CHANGED
@@ -38,9 +38,8 @@ module TwentySixteen
|
|
38
38
|
|
39
39
|
describe '#find_by_last_name' do
|
40
40
|
it "returns a candidate whose last name matches the paramater" do
|
41
|
-
|
42
|
-
|
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.
|
41
|
+
donald = TwentySixteen::Candidate.find_by_last_name("Trump")
|
42
|
+
expect(donald).to be_kind_of(Hash)
|
44
43
|
end
|
45
44
|
end
|
46
45
|
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.1.
|
4
|
+
version: 0.1.1
|
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-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|