tripwire_notifier 0.2.4 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tripwire_notifier/version.rb +1 -1
- data/lib/tripwire_notifier.rb +1 -1
- data/test/helper.rb +1 -0
- data/test/tripwire_test.rb +6 -0
- data/tripwire_notifier.gemspec +3 -4
- metadata +6 -6
data/lib/tripwire_notifier.rb
CHANGED
@@ -26,7 +26,7 @@ module TripwireNotifier
|
|
26
26
|
def notifier_params
|
27
27
|
{}.tap do |params|
|
28
28
|
params[:notifier_version] = self.configuration.notifier_version
|
29
|
-
params[:api_key] = self.configuration.api_key
|
29
|
+
params[:api_key] = self.configuration.api_key || ENV['TRIPWIRE_API_KEY']
|
30
30
|
params[:api_version] = API_VERSION
|
31
31
|
end
|
32
32
|
end
|
data/test/helper.rb
CHANGED
data/test/tripwire_test.rb
CHANGED
@@ -40,6 +40,12 @@ class TestTripwire < Test::Unit::TestCase
|
|
40
40
|
assert_equal "Foo", TripwireNotifier.configuration.api_key
|
41
41
|
end
|
42
42
|
|
43
|
+
should "fallback to the ENV api key" do
|
44
|
+
TripwireNotifier.configure { |c| c.api_key = nil }
|
45
|
+
ENV['TRIPWIRE_API_KEY'] = 'Cupcakes'
|
46
|
+
assert_equal "Cupcakes", TripwireNotifier.notifier_params[:api_key]
|
47
|
+
end
|
48
|
+
|
43
49
|
should "set secure" do
|
44
50
|
TripwireNotifier.configure { |c| c.secure = true }
|
45
51
|
assert TripwireNotifier.configuration.secure?
|
data/tripwire_notifier.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{tripwire_notifier}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jeffrey Chupp", "Jeremy Weiskotten"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-03-07}
|
13
13
|
s.description = %q{Tripwire captures validation errors from your Ruby on Rails application to help you identify and fix user experience issues. The TripwireNotifier gem makes it easy to hook up your app to the Tripwire web service.}
|
14
14
|
s.email = %q{support@tripwireapp.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
|
|
33
33
|
]
|
34
34
|
s.homepage = %q{http://github.com/jeremyw/tripwire_notifier}
|
35
35
|
s.require_paths = ["lib"]
|
36
|
-
s.rubygems_version = %q{1.
|
36
|
+
s.rubygems_version = %q{1.5.2}
|
37
37
|
s.summary = %q{Tripwire (http://tripwireapp.com) captures validation errors from your Ruby on Rails application.}
|
38
38
|
s.test_files = [
|
39
39
|
"test/helper.rb",
|
@@ -42,7 +42,6 @@ Gem::Specification.new do |s|
|
|
42
42
|
]
|
43
43
|
|
44
44
|
if s.respond_to? :specification_version then
|
45
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
46
45
|
s.specification_version = 3
|
47
46
|
|
48
47
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tripwire_notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 27
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 6
|
10
|
+
version: 0.2.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeffrey Chupp
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-
|
19
|
+
date: 2011-03-07 00:00:00 -05:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements: []
|
87
87
|
|
88
88
|
rubyforge_project:
|
89
|
-
rubygems_version: 1.
|
89
|
+
rubygems_version: 1.5.2
|
90
90
|
signing_key:
|
91
91
|
specification_version: 3
|
92
92
|
summary: Tripwire (http://tripwireapp.com) captures validation errors from your Ruby on Rails application.
|