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.
@@ -1,3 +1,3 @@
1
1
  module TripwireNotifier
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.6'
3
3
  end
@@ -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
@@ -3,6 +3,7 @@ require 'redgreen'
3
3
  require 'test/unit'
4
4
  require 'ostruct'
5
5
  require 'shoulda'
6
+ gem 'actionpack', '~>2.3'
6
7
  require 'action_controller'
7
8
  require 'fakeweb'
8
9
  require 'mocha'
@@ -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?
@@ -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.4"
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-02-23}
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.3.7}
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: 31
5
- prerelease: false
4
+ hash: 27
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 4
10
- version: 0.2.4
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-02-23 00:00:00 -05:00
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.3.7
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.