bdotdub-integrity-prowl 0.2.0 → 0.2.1

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.0
1
+ 0.2.1
@@ -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.0"
8
+ s.version = "0.2.1"
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"]
@@ -28,6 +28,7 @@ Gem::Specification.new do |s|
28
28
  "integrity-prowl.gemspec",
29
29
  "lib/integrity/notifier/config.haml",
30
30
  "lib/integrity/notifier/prowl.rb",
31
+ "test/dict",
31
32
  "test/integrity_prowl_test.rb",
32
33
  "test/test_helper.rb"
33
34
  ]
@@ -1,3 +1,9 @@
1
1
  %p.normal
2
- %label{ :for => "prowl_api_keys" } Email
2
+ %div
3
+ Enter your
4
+ %a{ :href => 'https://prowl.weks.net/' } Prowl
5
+ API Key(s) below. Get your key here:
6
+ %a{ :href => 'https://prowl.weks.net/settings.php' } Prowl Settings
7
+ %label{ :for => "prowl_api_keys" } API Key(s)
8
+ %small (separated by commas):
3
9
  %input.text#tumblr_notifier_email{ :name => "notifiers[Prowl][api_keys]", :value => config['api_keys'], :type => 'text' }
data/test/dict ADDED
@@ -0,0 +1,50 @@
1
+ A
2
+ a
3
+ aa
4
+ aal
5
+ aalii
6
+ aam
7
+ Aani
8
+ aardvark
9
+ aardwolf
10
+ Aaron
11
+ Aaronic
12
+ Aaronical
13
+ Aaronite
14
+ Aaronitic
15
+ Aaru
16
+ Ab
17
+ aba
18
+ Ababdeh
19
+ Ababua
20
+ abac
21
+ abaca
22
+ abacate
23
+ abacay
24
+ abacinate
25
+ abacination
26
+ abaciscus
27
+ abacist
28
+ aback
29
+ abactinal
30
+ abactinally
31
+ abaction
32
+ abactor
33
+ abaculus
34
+ abacus
35
+ Abadite
36
+ abaff
37
+ abaft
38
+ abaisance
39
+ abaiser
40
+ abaissed
41
+ abalienate
42
+ abalienation
43
+ abalone
44
+ Abama
45
+ abampere
46
+ abandon
47
+ abandonable
48
+ abandoned
49
+ abandonedly
50
+ abandonee
@@ -25,12 +25,14 @@ class IntegrityProwlTest < Test::Unit::TestCase
25
25
  end
26
26
 
27
27
  should 'add n prowl message with n keys' do
28
- keys = (0...rand(100)).map{ |n| "api_key_#{n}" }
29
- config = { :api_keys => keys.join(',') }
30
- flexmock(::Prowl).should_receive(:add).times(keys.length)
31
-
32
- notifier = Integrity::Notifier::Prowl
33
- notifier.notify_of_build(Integrity::Build.gen(:successful), config)
28
+ [5, 10, 25, 50].each do |to|
29
+ keys = (0...to).map{ |n| "api_key_#{n}" }
30
+ config = { :api_keys => keys.join(',') }
31
+ flexmock(::Prowl).should_receive(:add).times(keys.length)
32
+
33
+ notifier = Integrity::Notifier::Prowl
34
+ notifier.notify_of_build(Integrity::Build.gen(:successful), config)
35
+ end
34
36
  end
35
37
  end
36
38
 
data/test/test_helper.rb CHANGED
@@ -2,9 +2,16 @@ require 'rubygems'
2
2
  require 'test/unit'
3
3
  require 'flexmock/test_unit'
4
4
  require 'shoulda'
5
+ require 'randexp'
5
6
 
6
7
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
7
8
  $LOAD_PATH.unshift(File.dirname(__FILE__))
8
9
 
10
+ class Randexp::Dictionary
11
+ def self.load_dictionary
12
+ File.read(File.dirname(__FILE__) + '/dict').split
13
+ end
14
+ end
15
+
9
16
  class Test::Unit::TestCase
10
17
  end
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.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benny Wong
@@ -53,6 +53,7 @@ files:
53
53
  - integrity-prowl.gemspec
54
54
  - lib/integrity/notifier/config.haml
55
55
  - lib/integrity/notifier/prowl.rb
56
+ - test/dict
56
57
  - test/integrity_prowl_test.rb
57
58
  - test/test_helper.rb
58
59
  has_rdoc: false