errornot_notifier 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,4 +1,12 @@
1
- Version 1.0.0 - XXX
1
+ Version 1.0.1 -
2
+ ===============================================================================
3
+
4
+ Jason Morrison (3):
5
+ LH-629 Ensure notifier is not considered a framework gem ( update to ErrorNot by Cyril Mougel)
6
+ Removing things-the-generator-must-do file
7
+ Add rake cucumber:wip:rails* tasks for work-in-progress features+
8
+
9
+ Version 1.0.0 - 2010/03/08
2
10
  ===============================================================================
3
11
 
4
12
  Extract from HopToad notifier code base
data/README.rdoc CHANGED
@@ -198,6 +198,15 @@ Errornot merges the hash you pass with these default options:
198
198
 
199
199
  You can override any of those parameters.
200
200
 
201
+ === Sending shell environment variables when "Going beyond exceptions"
202
+
203
+ One common request we see is to send shell environment variables along with
204
+ manual exception notification. We recommend sending them along with CGI data
205
+ or Rack environment (:cgi_data or :rack_env keys, respectively.)
206
+
207
+ See ErrornotNotifier::Notice#initialize in lib/errornot_notifier/notice.rb for
208
+ more details.
209
+
201
210
  == Filtering
202
211
 
203
212
  You can specify a whitelist of errors, that Errornot will not report on. Use
data/Rakefile CHANGED
@@ -191,14 +191,14 @@ end
191
191
 
192
192
  task :cucumber => [:gemspec, :vendor_test_gems]
193
193
 
194
- namespace :cucumber do
194
+ def define_rails_cucumber_tasks(additional_cucumber_args = '')
195
195
  namespace :rails do
196
196
  RAILS_VERSIONS.each do |version|
197
197
  desc "Test integration of the gem with Rails #{version}"
198
198
  task version do
199
199
  puts "Testing Rails #{version}"
200
200
  ENV['RAILS_VERSION'] = version
201
- system("cucumber --format progress features/rails.feature")
201
+ system("cucumber --format progress #{additional_cucumber_args} features/rails.feature")
202
202
  end
203
203
  end
204
204
 
@@ -206,3 +206,12 @@ namespace :cucumber do
206
206
  task :all => RAILS_VERSIONS
207
207
  end
208
208
  end
209
+
210
+ namespace :cucumber do
211
+ namespace :wip do
212
+ define_rails_cucumber_tasks('--tags @wip')
213
+ end
214
+
215
+ define_rails_cucumber_tasks
216
+ end
217
+
@@ -1,5 +1,10 @@
1
- Dir[File.join(RAILS_ROOT, 'vendor', 'gems', 'errornot_notifier-*')].each do |vendored_notifier|
2
- $: << File.join(vendored_notifier, 'lib')
3
- end
1
+ # Don't load anything when running the gems:* tasks.
2
+ # Otherwise, hoptoad_notifier will be considered a framework gem.
3
+ # https://thoughtbot.lighthouseapp.com/projects/14221/tickets/629
4
+ unless ARGV.any? {|a| a =~ /^gems/}
5
+ Dir[File.join(RAILS_ROOT, 'vendor', 'gems', 'errornot_notifier-*')].each do |vendored_notifier|
6
+ $: << File.join(vendored_notifier, 'lib')
7
+ end
4
8
 
5
- require 'errornot_notifier/tasks'
9
+ require 'errornot_notifier/tasks'
10
+ end
@@ -23,8 +23,7 @@ module ErrornotNotifier
23
23
  :controller => params[:controller],
24
24
  :action => params[:action],
25
25
  :url => errornot_request_url,
26
- :cgi_data => errornot_filter_if_filtering(request.env),
27
- :environment_vars => errornot_filter_if_filtering(ENV) }
26
+ :cgi_data => errornot_filter_if_filtering(request.env) }
28
27
  end
29
28
 
30
29
  def errornot_filter_if_filtering(hash)
@@ -1,3 +1,3 @@
1
1
  module ErrornotNotifier
2
- VERSION = "1.0.0".freeze
2
+ VERSION = "1.0.1".freeze
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 0
9
- version: 1.0.0
8
+ - 1
9
+ version: 1.0.1
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-08 00:00:00 +01:00
17
+ date: 2010-03-11 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency