bdotdub-integrity-prowl 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{integrity-prowl}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Benny Wong"]
@@ -11,7 +11,7 @@ module Integrity
11
11
  end
12
12
 
13
13
  def deliver!
14
- if api_keys = config[:api_keys]
14
+ if api_keys = config['api_keys']
15
15
  api_keys.split(',').each do |key|
16
16
  prowl_params = {}
17
17
  prowl_params[:application] = 'Integrity'
@@ -17,7 +17,7 @@ class IntegrityProwlTest < Test::Unit::TestCase
17
17
 
18
18
  context 'with valid API keys' do
19
19
  should 'add one prowl message with one key' do
20
- config = { :api_keys => 'an_api_key' }
20
+ config = { 'api_keys' => 'an_api_key' }
21
21
  flexmock(::Prowl).should_receive(:add).once
22
22
 
23
23
  notifier = Integrity::Notifier::Prowl
@@ -27,7 +27,7 @@ class IntegrityProwlTest < Test::Unit::TestCase
27
27
  should 'add n prowl message with n keys' do
28
28
  [5, 10, 25, 50].each do |to|
29
29
  keys = (0...to).map{ |n| "api_key_#{n}" }
30
- config = { :api_keys => keys.join(',') }
30
+ config = { 'api_keys' => keys.join(',') }
31
31
  flexmock(::Prowl).should_receive(:add).times(keys.length)
32
32
 
33
33
  notifier = Integrity::Notifier::Prowl
@@ -38,7 +38,7 @@ class IntegrityProwlTest < Test::Unit::TestCase
38
38
 
39
39
  should 'not notify prowl if no key is provided' do
40
40
  [nil, ''].each do |key|
41
- config = { :api_keys => key }
41
+ config = { 'api_keys' => key }
42
42
  flexmock(::Prowl).should_receive(:add).times(0)
43
43
 
44
44
  notifier = Integrity::Notifier::Prowl
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bdotdub-integrity-prowl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benny Wong