tripwire_notifier 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +12 -0
- data/Gemfile.lock +24 -0
- data/README.rdoc +9 -6
- data/Rakefile +0 -2
- data/lib/tripwire_notifier.rb +9 -6
- data/lib/tripwire_notifier/configuration.rb +1 -1
- data/lib/tripwire_notifier/version.rb +1 -1
- data/tripwire_notifier.gemspec +27 -3
- metadata +110 -8
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
tripwire_notifier (0.2.6)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: http://rubygems.org/
|
8
|
+
specs:
|
9
|
+
fakeweb (1.3.0)
|
10
|
+
mocha (0.9.12)
|
11
|
+
rake (0.8.7)
|
12
|
+
redgreen (1.2.2)
|
13
|
+
shoulda (2.11.3)
|
14
|
+
|
15
|
+
PLATFORMS
|
16
|
+
ruby
|
17
|
+
|
18
|
+
DEPENDENCIES
|
19
|
+
fakeweb
|
20
|
+
mocha
|
21
|
+
rake (>= 0.8.7)
|
22
|
+
redgreen
|
23
|
+
shoulda
|
24
|
+
tripwire_notifier!
|
data/README.rdoc
CHANGED
@@ -51,20 +51,23 @@ TripwireNotifier assumes your app is RESTful, so it only monitors the create and
|
|
51
51
|
|
52
52
|
TripwireNotifier is only enabled in the production environment by default. If you want to enable it in additional environments, such as staging, you'll need to add the following line to your Tripwire initializer:
|
53
53
|
|
54
|
-
|
54
|
+
TripwireNotifier.configure do |config|
|
55
|
+
config.monitored_environments << 'staging'
|
56
|
+
end
|
55
57
|
|
56
58
|
=== SSL
|
57
59
|
|
58
|
-
TripwireNotifier
|
60
|
+
TripwireNotifier uses a secure connection over SSL by default, but you can easily disable it if you prefer:
|
59
61
|
|
60
|
-
|
62
|
+
TripwireNotifier.configure do |config|
|
63
|
+
config.secure = false
|
64
|
+
end
|
61
65
|
|
62
66
|
=== Filtering params
|
63
67
|
|
64
|
-
TripwireNotifier records the parameters submitted in actions that cause validation errors. Because your app may handle sensitive data, like passwords, credit card numbers, and nuclear launch codes, TripwireNotifier respects the
|
68
|
+
TripwireNotifier records the parameters submitted in actions that cause validation errors. Because your app may handle sensitive data, like passwords, credit card numbers, and nuclear launch codes, TripwireNotifier respects the parameter filtering that you configure in Rails in config/application.rb (Rails 3) or ApplicationController (Rails 2.3). For example in Rails 3:
|
65
69
|
|
66
|
-
|
67
|
-
filter_parameter_logging :password, :secret
|
70
|
+
config.filter_parameters += [:password, :secret, :cvv]
|
68
71
|
|
69
72
|
Per Rails convention, those params will show up as "[FILTERED]" in the data submitted to Tripwire.
|
70
73
|
|
data/Rakefile
CHANGED
data/lib/tripwire_notifier.rb
CHANGED
@@ -13,8 +13,11 @@ module TripwireNotifier
|
|
13
13
|
attr_accessor :configuration
|
14
14
|
attr_accessor :sender
|
15
15
|
|
16
|
+
def configuration
|
17
|
+
@configuration ||= Configuration.new
|
18
|
+
end
|
19
|
+
|
16
20
|
def configure
|
17
|
-
self.configuration ||= Configuration.new
|
18
21
|
yield(self.configuration)
|
19
22
|
self.sender = Sender.new(self.configuration)
|
20
23
|
end
|
@@ -24,11 +27,11 @@ module TripwireNotifier
|
|
24
27
|
end
|
25
28
|
|
26
29
|
def notifier_params
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
30
|
+
@notifier_params ||= {
|
31
|
+
:notifier_version => self.configuration.notifier_version,
|
32
|
+
:api_key => self.configuration.api_key || ENV['TRIPWIRE_API_KEY'],
|
33
|
+
:api_version => API_VERSION
|
34
|
+
}
|
32
35
|
end
|
33
36
|
end
|
34
37
|
end
|
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.7"
|
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-04-23}
|
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 = [
|
@@ -18,6 +18,8 @@ Gem::Specification.new do |s|
|
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
|
+
"Gemfile",
|
22
|
+
"Gemfile.lock",
|
21
23
|
"LICENSE",
|
22
24
|
"README.rdoc",
|
23
25
|
"Rakefile",
|
@@ -33,7 +35,7 @@ Gem::Specification.new do |s|
|
|
33
35
|
]
|
34
36
|
s.homepage = %q{http://github.com/jeremyw/tripwire_notifier}
|
35
37
|
s.require_paths = ["lib"]
|
36
|
-
s.rubygems_version = %q{1.
|
38
|
+
s.rubygems_version = %q{1.3.7}
|
37
39
|
s.summary = %q{Tripwire (http://tripwireapp.com) captures validation errors from your Ruby on Rails application.}
|
38
40
|
s.test_files = [
|
39
41
|
"test/helper.rb",
|
@@ -42,14 +44,36 @@ Gem::Specification.new do |s|
|
|
42
44
|
]
|
43
45
|
|
44
46
|
if s.respond_to? :specification_version then
|
47
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
45
48
|
s.specification_version = 3
|
46
49
|
|
47
50
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
51
|
+
s.add_runtime_dependency(%q<tripwire_notifier>, [">= 0"])
|
52
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
53
|
+
s.add_development_dependency(%q<fakeweb>, [">= 0"])
|
54
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
55
|
+
s.add_development_dependency(%q<mocha>, [">= 0"])
|
56
|
+
s.add_development_dependency(%q<redgreen>, [">= 0"])
|
57
|
+
s.add_development_dependency(%q<rake>, [">= 0.8.7"])
|
48
58
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
49
59
|
else
|
60
|
+
s.add_dependency(%q<tripwire_notifier>, [">= 0"])
|
61
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
62
|
+
s.add_dependency(%q<fakeweb>, [">= 0"])
|
63
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
64
|
+
s.add_dependency(%q<mocha>, [">= 0"])
|
65
|
+
s.add_dependency(%q<redgreen>, [">= 0"])
|
66
|
+
s.add_dependency(%q<rake>, [">= 0.8.7"])
|
50
67
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
51
68
|
end
|
52
69
|
else
|
70
|
+
s.add_dependency(%q<tripwire_notifier>, [">= 0"])
|
71
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
72
|
+
s.add_dependency(%q<fakeweb>, [">= 0"])
|
73
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
74
|
+
s.add_dependency(%q<mocha>, [">= 0"])
|
75
|
+
s.add_dependency(%q<redgreen>, [">= 0"])
|
76
|
+
s.add_dependency(%q<rake>, [">= 0.8.7"])
|
53
77
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
54
78
|
end
|
55
79
|
end
|
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: 25
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 7
|
10
|
+
version: 0.2.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeffrey Chupp
|
@@ -16,13 +16,42 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-
|
19
|
+
date: 2011-04-23 00:00:00 -04:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
|
+
prerelease: false
|
24
|
+
type: :runtime
|
25
|
+
name: tripwire_notifier
|
26
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
hash: 3
|
32
|
+
segments:
|
33
|
+
- 0
|
34
|
+
version: "0"
|
35
|
+
requirement: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
prerelease: false
|
38
|
+
type: :development
|
23
39
|
name: shoulda
|
40
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 3
|
46
|
+
segments:
|
47
|
+
- 0
|
48
|
+
version: "0"
|
49
|
+
requirement: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
24
51
|
prerelease: false
|
25
|
-
|
52
|
+
type: :development
|
53
|
+
name: fakeweb
|
54
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
26
55
|
none: false
|
27
56
|
requirements:
|
28
57
|
- - ">="
|
@@ -31,8 +60,79 @@ dependencies:
|
|
31
60
|
segments:
|
32
61
|
- 0
|
33
62
|
version: "0"
|
63
|
+
requirement: *id003
|
64
|
+
- !ruby/object:Gem::Dependency
|
65
|
+
prerelease: false
|
34
66
|
type: :development
|
35
|
-
|
67
|
+
name: shoulda
|
68
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
hash: 3
|
74
|
+
segments:
|
75
|
+
- 0
|
76
|
+
version: "0"
|
77
|
+
requirement: *id004
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
prerelease: false
|
80
|
+
type: :development
|
81
|
+
name: mocha
|
82
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
hash: 3
|
88
|
+
segments:
|
89
|
+
- 0
|
90
|
+
version: "0"
|
91
|
+
requirement: *id005
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
prerelease: false
|
94
|
+
type: :development
|
95
|
+
name: redgreen
|
96
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
hash: 3
|
102
|
+
segments:
|
103
|
+
- 0
|
104
|
+
version: "0"
|
105
|
+
requirement: *id006
|
106
|
+
- !ruby/object:Gem::Dependency
|
107
|
+
prerelease: false
|
108
|
+
type: :development
|
109
|
+
name: rake
|
110
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
111
|
+
none: false
|
112
|
+
requirements:
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
hash: 49
|
116
|
+
segments:
|
117
|
+
- 0
|
118
|
+
- 8
|
119
|
+
- 7
|
120
|
+
version: 0.8.7
|
121
|
+
requirement: *id007
|
122
|
+
- !ruby/object:Gem::Dependency
|
123
|
+
prerelease: false
|
124
|
+
type: :development
|
125
|
+
name: shoulda
|
126
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
hash: 3
|
132
|
+
segments:
|
133
|
+
- 0
|
134
|
+
version: "0"
|
135
|
+
requirement: *id008
|
36
136
|
description: 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.
|
37
137
|
email: support@tripwireapp.com
|
38
138
|
executables: []
|
@@ -44,6 +144,8 @@ extra_rdoc_files:
|
|
44
144
|
- README.rdoc
|
45
145
|
files:
|
46
146
|
- .document
|
147
|
+
- Gemfile
|
148
|
+
- Gemfile.lock
|
47
149
|
- LICENSE
|
48
150
|
- README.rdoc
|
49
151
|
- Rakefile
|
@@ -86,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
188
|
requirements: []
|
87
189
|
|
88
190
|
rubyforge_project:
|
89
|
-
rubygems_version: 1.
|
191
|
+
rubygems_version: 1.3.7
|
90
192
|
signing_key:
|
91
193
|
specification_version: 3
|
92
194
|
summary: Tripwire (http://tripwireapp.com) captures validation errors from your Ruby on Rails application.
|