pra 1.5.0 → 1.5.1

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: 2f20d3d4e29aa312e839fec8e0cb6c4b1bc2cfcb
4
- data.tar.gz: fea9d130a22050f7319ff3b9cde79f25cffc2c99
3
+ metadata.gz: b05dfc4974f5278e4d5087b0fab5d2cc908f9610
4
+ data.tar.gz: a36c0354adc7ee9d909cb5994a7f50aeba73b7f6
5
5
  SHA512:
6
- metadata.gz: 0f22b755a523a15f55d45ea92afc2ab8f63887b7f24cfd7f736d7b72c57d14401e7c325021eb39fc625f62d5cf3d31d2f2acb5289b06a5f6deaba425fc3d5d1b
7
- data.tar.gz: 66fb0060311f013b42ad1bf4db0a349244cb9041132257f34322fc0933429d8c9b14ae7219cf9c8dc5557fba1503eb55a8cc484a818e0e89c1109bb66aadc10f
6
+ metadata.gz: 30ea96a3f2611358e6aacbe25448ce50c87ea925a0afafe3b722f71ca2855d94ae2b21c8d34505b60672c4b0e17f05b4a36c569ef6498c9509af74b6bae46764
7
+ data.tar.gz: bd02aa5874a98fcc7337fccdf6eba273e934dbaf0e44679bf0557cd0b61c5fdb8171746881e108e68c7bc3a5132c76b6cc52738b74ba824094bc6ea5a3daea71
data/ChangeLog.md CHANGED
@@ -6,6 +6,11 @@ versions as well as provide a rough history.
6
6
 
7
7
  #### Next Release
8
8
 
9
+ #### v1.5.1
10
+
11
+ * Fix bug where failed if no `assignee_blacklist` was found in config. Thanks
12
+ to @gfmtim.
13
+
9
14
  #### v1.5.0
10
15
 
11
16
  * Upgraded dependency gems and moved to less pessimisitic versioning
data/lib/pra/config.rb CHANGED
@@ -42,7 +42,7 @@ module Pra
42
42
  end
43
43
 
44
44
  def assignee_blacklist
45
- @initial_config["assignee_blacklist"]
45
+ Array(@initial_config["assignee_blacklist"])
46
46
  end
47
47
  end
48
48
  end
data/lib/pra/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pra
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.1"
3
3
  end
@@ -136,10 +136,19 @@ describe Pra::Config do
136
136
  end
137
137
 
138
138
  describe "#assignee_blacklist" do
139
- it "returns the assignee blacklist value out of the config" do
140
- assignee_blacklist_configs = double('assignee blacklist configs')
141
- subject.instance_variable_set(:@initial_config, { "assignee_blacklist" => assignee_blacklist_configs })
142
- subject.assignee_blacklist.should eq(assignee_blacklist_configs)
139
+ context 'when config has an assignee blacklist' do
140
+ it "returns the assignee blacklist value out of the config" do
141
+ assignee_blacklist_configs = [double('assignee blacklist configs')]
142
+ subject.instance_variable_set(:@initial_config, { "assignee_blacklist" => assignee_blacklist_configs })
143
+ subject.assignee_blacklist.should eq(assignee_blacklist_configs)
144
+ end
145
+ end
146
+
147
+ context "when config does not have an assignee blacklist" do
148
+ it "returns an empty array" do
149
+ subject.instance_variable_set(:@initial_config, {})
150
+ subject.assignee_blacklist.should eq([])
151
+ end
143
152
  end
144
153
  end
145
154
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew De Ponte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-20 00:00:00.000000000 Z
11
+ date: 2014-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler