exception_notification-rake 0.1.3 → 0.2.0.rc1

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.
data/README.md CHANGED
@@ -7,13 +7,17 @@ This Ruby gem is an extension of the [exception_notification gem](http://rubygem
7
7
 
8
8
  ## Installation
9
9
 
10
- If you're using Rails 4.0.x (or you're not using Rails at all), use the 0.1.x line of the gem:
10
+ If you're using Rails 4.1.x (or you're not using Rails at all), use the latest version of the gem:
11
11
 
12
- gem 'exception_notification-rake', '~> 0.1.3'
12
+ gem 'exception_notification-rake', '~> 0.2.0'
13
+
14
+ If you're using Rails 4.0.x, use the 0.1.x line of versions:
15
+
16
+ gem 'exception_notification-rake', '~> 0.1.2'
13
17
 
14
18
  If you're using Rails 3, use the 0.0.x line of versions:
15
19
 
16
- gem 'exception_notification-rake', '~> 0.0.7'
20
+ gem 'exception_notification-rake', '~> 0.0.6'
17
21
 
18
22
 
19
23
  ## Usage
@@ -30,7 +34,7 @@ Exception notification must be set up in your Rails config files. In general, yo
30
34
  # Other configuration here, including ActionMailer config ...
31
35
 
32
36
  config.middleware.use ExceptionNotification::Rack,
33
- :ignore_if => lambda { |env, exception| !env[:rake?] }
37
+ :ignore_if => lambda { |env, exception| !env[:rake?] },
34
38
  :email => {
35
39
  :sender_address => %{"notifier" <sender.address@example.com>},
36
40
  :exception_recipients => %w{your.email@example.com}
@@ -23,7 +23,7 @@ end
23
23
 
24
24
  # Only do this if we're actually in a Rake context. In some contexts (e.g.,
25
25
  # in the Rails console) Rake might not be defined.
26
- if Object.const_defined?(:Rake) && Rake.respond_to?(:application)
26
+ if Object.const_defined? :Rake
27
27
  Rake.application.instance_eval do
28
28
  class << self
29
29
  include ExceptionNotifier::RakePatch
@@ -1,5 +1,5 @@
1
1
  module ExceptionNotifier
2
2
  class Rake
3
- VERSION = '0.1.3'
3
+ VERSION = '0.2.0.rc1'
4
4
  end
5
5
  end
data/test/rake_test.rb CHANGED
@@ -1,10 +1,8 @@
1
- require 'test/unit'
2
- require 'mocha/setup'
1
+ require "minitest/autorun"
3
2
 
4
- require 'active_support/core_ext'
5
3
  require 'exception_notifier/rake'
6
4
 
7
- class RakeTest < Test::Unit::TestCase
5
+ class RakeTest < Minitest::Test
8
6
 
9
7
  class Notifier
10
8
  attr_accessor :exception, :options
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exception_notification-rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
5
- prerelease:
4
+ version: 0.2.0.rc1
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nik Haldimann
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-01-10 00:00:00.000000000 Z
12
+ date: 2014-04-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: exception_notification
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 4.0.1
21
+ version: 4.1.0.rc1
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 4.0.1
29
+ version: 4.1.0.rc1
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rake
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ~>
52
52
  - !ruby/object:Gem::Version
53
- version: 4.0.0
53
+ version: 4.1.0
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,23 +58,7 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 4.0.0
62
- - !ruby/object:Gem::Dependency
63
- name: mocha
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ~>
68
- - !ruby/object:Gem::Version
69
- version: 0.13.3
70
- type: :development
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ~>
76
- - !ruby/object:Gem::Version
77
- version: 0.13.3
61
+ version: 4.1.0
78
62
  description: An extension of the exception_notification gem to support sending mail
79
63
  upon failures in Rake tasks
80
64
  email:
@@ -104,13 +88,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
88
  requirements:
105
89
  - - ! '>='
106
90
  - !ruby/object:Gem::Version
107
- version: '2.0'
91
+ version: '0'
108
92
  required_rubygems_version: !ruby/object:Gem::Requirement
109
93
  none: false
110
94
  requirements:
111
- - - ! '>='
95
+ - - ! '>'
112
96
  - !ruby/object:Gem::Version
113
- version: '0'
97
+ version: 1.3.1
114
98
  requirements: []
115
99
  rubyforge_project:
116
100
  rubygems_version: 1.8.23