errornot_notifier 1.0.1 → 1.0.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.
@@ -20,7 +20,7 @@ class ErrornotGenerator < Rails::Generator::Base
|
|
20
20
|
record do |m|
|
21
21
|
m.directory 'lib/tasks'
|
22
22
|
m.file 'errornot_notifier_tasks.rake', 'lib/tasks/errornot_notifier_tasks.rake'
|
23
|
-
if
|
23
|
+
if ['config/deploy.rb', 'Capfile'].all? { |file| File.exists?(file) }
|
24
24
|
m.append_to 'config/deploy.rb', capistrano_hook
|
25
25
|
end
|
26
26
|
if options[:api_key]
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# Don't load anything when running the gems:* tasks.
|
2
|
-
# Otherwise,
|
2
|
+
# Otherwise, errornot_notifier will be considered a framework gem.
|
3
3
|
# https://thoughtbot.lighthouseapp.com/projects/14221/tickets/629
|
4
4
|
unless ARGV.any? {|a| a =~ /^gems/}
|
5
5
|
Dir[File.join(RAILS_ROOT, 'vendor', 'gems', 'errornot_notifier-*')].each do |vendored_notifier|
|
@@ -7,13 +7,14 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
7
7
|
namespace :deploy do
|
8
8
|
desc "Notify Errornot of the deployment"
|
9
9
|
task :notify_errornot, :except => { :no_release => true } do
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
notify_command
|
15
|
-
|
16
|
-
|
10
|
+
# TODO : reactivate it when rake deploy define
|
11
|
+
# rails_env = fetch(:errornot_env, fetch(:rails_env, "production"))
|
12
|
+
# local_user = ENV['USER'] || ENV['USERNAME']
|
13
|
+
# executable = RUBY_PLATFORM.downcase.include?('mswin') ? 'rake.bat' : 'rake'
|
14
|
+
# notify_command = "#{executable} errornot:deploy TO=#{rails_env} REVISION=#{current_revision} REPO=#{repository} USER=#{local_user}"
|
15
|
+
# notify_command << " API_KEY=#{ENV['API_KEY']}" if ENV['API_KEY']
|
16
|
+
# puts "Notifying Errornot of Deploy (#{notify_command})"
|
17
|
+
# `#{notify_command}`
|
17
18
|
puts "Errornot Notification Complete."
|
18
19
|
end
|
19
20
|
end
|
@@ -21,6 +21,11 @@ module ErrornotNotifier
|
|
21
21
|
key = parent_key ? "#{parent_key}[#{k}]" : k
|
22
22
|
if p[k].is_a? Hash
|
23
23
|
process_payload(p[k], key)
|
24
|
+
elsif p[k].is_a? Array
|
25
|
+
p[k].map do |v|
|
26
|
+
value = URI.escape(v.to_s, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]"))
|
27
|
+
"#{key}[]=#{value}"
|
28
|
+
end
|
24
29
|
else
|
25
30
|
value = URI.escape(p[k].to_s, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]"))
|
26
31
|
"#{key}=#{value}"
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 2
|
9
|
+
version: 1.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- thoughtbot, inc, Cyril Mougel
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-03-
|
17
|
+
date: 2010-03-19 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -98,43 +98,43 @@ extensions: []
|
|
98
98
|
extra_rdoc_files:
|
99
99
|
- README.rdoc
|
100
100
|
files:
|
101
|
-
-
|
102
|
-
- INSTALL
|
101
|
+
- SUPPORTED_RAILS_VERSIONS
|
103
102
|
- MIT-LICENSE
|
103
|
+
- CHANGELOG
|
104
104
|
- Rakefile
|
105
105
|
- README.rdoc
|
106
|
-
-
|
106
|
+
- INSTALL
|
107
107
|
- TESTING.rdoc
|
108
108
|
- generators/errornot/errornot_generator.rb
|
109
|
-
- generators/errornot/lib/insert_commands.rb
|
110
|
-
- generators/errornot/lib/rake_commands.rb
|
111
109
|
- generators/errornot/templates/capistrano_hook.rb
|
112
110
|
- generators/errornot/templates/errornot_notifier_tasks.rake
|
113
111
|
- generators/errornot/templates/initializer.rb
|
114
|
-
- lib/
|
112
|
+
- generators/errornot/lib/rake_commands.rb
|
113
|
+
- generators/errornot/lib/insert_commands.rb
|
114
|
+
- lib/errornot_notifier.rb
|
115
115
|
- lib/errornot_notifier/capistrano.rb
|
116
|
-
- lib/errornot_notifier/configuration.rb
|
117
|
-
- lib/errornot_notifier/notice.rb
|
118
|
-
- lib/errornot_notifier/rack.rb
|
119
116
|
- lib/errornot_notifier/rails/action_controller_catcher.rb
|
120
117
|
- lib/errornot_notifier/rails/controller_methods.rb
|
121
118
|
- lib/errornot_notifier/rails/error_lookup.rb
|
122
|
-
- lib/errornot_notifier/
|
119
|
+
- lib/errornot_notifier/notice.rb
|
120
|
+
- lib/errornot_notifier/version.rb
|
123
121
|
- lib/errornot_notifier/sender.rb
|
122
|
+
- lib/errornot_notifier/rack.rb
|
123
|
+
- lib/errornot_notifier/rails.rb
|
124
124
|
- lib/errornot_notifier/tasks.rb
|
125
|
-
- lib/errornot_notifier/
|
126
|
-
- lib/errornot_notifier.rb
|
125
|
+
- lib/errornot_notifier/backtrace.rb
|
126
|
+
- lib/errornot_notifier/configuration.rb
|
127
127
|
- lib/errornot_tasks.rb
|
128
|
-
- test/backtrace_test.rb
|
129
128
|
- test/catcher_test.rb
|
130
129
|
- test/configuration_test.rb
|
130
|
+
- test/backtrace_test.rb
|
131
131
|
- test/erronot_tasks_test.rb
|
132
|
+
- test/rails_initializer_test.rb
|
132
133
|
- test/helper.rb
|
133
|
-
- test/logger_test.rb
|
134
134
|
- test/notice_test.rb
|
135
135
|
- test/notifier_test.rb
|
136
136
|
- test/rack_test.rb
|
137
|
-
- test/
|
137
|
+
- test/logger_test.rb
|
138
138
|
- test/sender_test.rb
|
139
139
|
- rails/init.rb
|
140
140
|
- script/integration_test.rb
|
@@ -172,13 +172,13 @@ signing_key:
|
|
172
172
|
specification_version: 3
|
173
173
|
summary: Send your application errors to a hosted service and reclaim your inbox.
|
174
174
|
test_files:
|
175
|
-
- test/backtrace_test.rb
|
176
175
|
- test/catcher_test.rb
|
177
176
|
- test/configuration_test.rb
|
177
|
+
- test/backtrace_test.rb
|
178
178
|
- test/erronot_tasks_test.rb
|
179
|
-
- test/
|
179
|
+
- test/rails_initializer_test.rb
|
180
180
|
- test/notice_test.rb
|
181
181
|
- test/notifier_test.rb
|
182
182
|
- test/rack_test.rb
|
183
|
-
- test/
|
183
|
+
- test/logger_test.rb
|
184
184
|
- test/sender_test.rb
|