twenty_sixteen 0.2.1 → 0.3.0

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: bd6159fab3e60946e20bf6a8ac7b291e56c638ae
4
- data.tar.gz: aa694130c8daf08da61c3ff696ec0e09cda6da73
3
+ metadata.gz: 96eb2953c125670f35b44d947fae99ac96fbfec1
4
+ data.tar.gz: 6709b814eede5cf48e71bdf0ddf6e901f7dd14d2
5
5
  SHA512:
6
- metadata.gz: 2289a15e9328813cad5bb364747c62470594f02ce7c3fb794325127b261c5d6d86c88046d5cd4eebca5e0c7ab33df6e62a60f72833f326628e78e7dd4d1f21b2
7
- data.tar.gz: db5f0a582b46d3a641c0820d139edbc17f95dec3ce200c79035d619b7ab8d0106a9700b498d10f5d0af5e98e24a69aeacfa4eef359eed48f57b99fd32d0974c1
6
+ metadata.gz: e7872467ab06c4acee7efc861c0a66a2e7035374d280302bf43f74ad4bfd67a998433cf29551ee07520d5d370b9a466f38bff0c9b6781ce801b55e6f9c94f1d0
7
+ data.tar.gz: ce1c2b9ba7ec012242c4574066c7f938e906917aebbf2f20986d288c511223a603b40b829aad94c7676056d44df1b94386a3ef5ea5b2da05d99c0d745ff31be0
@@ -1,11 +1,11 @@
1
1
  [
2
2
  {
3
- "party":"Independent",
3
+ "party":"Democrat",
4
4
  "first_name":"Jim",
5
5
  "last_name":"Webb",
6
6
  "url":"http://www.webb2016.com/",
7
7
  "campaign_name":null,
8
- "campaign_status":"active",
8
+ "campaign_status":"inactive",
9
9
  "slogans":["Leadership You Can Trust"],
10
10
  "social_urls":[
11
11
  "http://www.facebook.com/IHeardMyCountryCalling",
@@ -149,7 +149,7 @@
149
149
  "last_name":"Bush",
150
150
  "url":"https://jeb2016.com",
151
151
  "campaign_name":"Jeb 2016",
152
- "campaign_status":"active",
152
+ "campaign_status":"inactive",
153
153
  "slogans":[],
154
154
  "social_urls":[
155
155
  "https://twitter.com/JebBush",
@@ -253,7 +253,7 @@
253
253
  "last_name":"Carson",
254
254
  "url":"https://www.bencarson.com/",
255
255
  "campaign_name":"Carson America",
256
- "campaign_status":"active",
256
+ "campaign_status":"inactive",
257
257
  "slogans":["Heal, Inspire, Revive"],
258
258
  "social_urls":[
259
259
  "https://www.facebook.com/realbencarson/",
@@ -1,5 +1,5 @@
1
1
  # version should be bumped to 1.0.0 when the primaries are over and the general begins
2
2
 
3
3
  module TwentySixteen
4
- VERSION = "0.2.1"
4
+ VERSION = "0.3.0"
5
5
  end
@@ -39,16 +39,22 @@ module TwentySixteen
39
39
  describe '.independent' do
40
40
  it "returns an array of matching candidates, indies only" do
41
41
  indies = TwentySixteen::Candidate.independent
42
- expect(indies).to be_kind_of(Array)
43
- expect(indies).not_to be_empty
44
- expect(indies.first).to be_kind_of(Hash)
42
+ expect(indies).to be_empty
45
43
  end
46
44
  end
47
45
 
48
46
  describe '.active' do
49
47
  it "returns an array of candidates having a campaign_status of 'active'" do
50
- expect(active_dems.map{|c| c[:last_name]}.sort).to eql(["Clinton","Sanders"])
51
- expect(active_gops.map{|c| c[:last_name]}.sort).to eql(["Bush", "Carson", "Cruz", "Kasich", "Rubio", "Trump"])
48
+ expect(active_dems.map{|c| c[:last_name]}.sort).to eql([
49
+ "Clinton",
50
+ "Sanders"
51
+ ])
52
+ expect(active_gops.map{|c| c[:last_name]}.sort).to eql([
53
+ "Cruz",
54
+ "Kasich",
55
+ "Rubio",
56
+ "Trump"
57
+ ])
52
58
  end
53
59
  end
54
60
 
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.2.1
4
+ version: 0.3.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: 2016-02-11 00:00:00.000000000 Z
11
+ date: 2016-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler