asana_exception_notifier 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +6 -0
- data/lib/asana_exception_notifier/classes/error_page.rb +4 -6
- data/lib/asana_exception_notifier/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9eada43045687a0353c559d3592ce7ed9bf23d4
|
4
|
+
data.tar.gz: 5b0d6a1fcc947b6c204e0200bc170bda8892f62a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e0271ba23488a1ce95d9423a92cbaeac082d031ac1e18045b133a922ef0edb5e0d9324f0c0bb175c9761ee0d1d621ad0b11052e65508209fa5f64f668f26584
|
7
|
+
data.tar.gz: d4204a5c771cc3dbe32861804ca143c63945ba8650fd18876500d3f8698daef60e9b2bdccc61aa72ad4e400cc42efad40a228b988a3b3e7370d7dcbe912a620f
|
data/Rakefile
CHANGED
@@ -14,6 +14,12 @@ end
|
|
14
14
|
YARD::Config.options[:load_plugins] = true
|
15
15
|
YARD::Config.load_plugins
|
16
16
|
|
17
|
+
# dirty hack for YardocTask
|
18
|
+
::Rake.application.class.class_eval do
|
19
|
+
alias_method :last_comment, :last_description
|
20
|
+
end
|
21
|
+
|
22
|
+
|
17
23
|
YARD::Rake::YardocTask.new do |t|
|
18
24
|
t.files = ['lib/**/*.rb', 'spec/**/*_spec.rb'] # optional
|
19
25
|
t.options = ['--any', '--extra', '--opts', '--markup-provider=redcarpet', '--markup=markdown', '--debug'] # optional
|
@@ -78,12 +78,10 @@ module AsanaExceptionNotifier
|
|
78
78
|
end
|
79
79
|
|
80
80
|
def exception_service
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
trace: @exception.respond_to?(:service_backtrace) ? @exception.service_backtrace : nil
|
86
|
-
}
|
81
|
+
@exception.instance_variables.select do |ivar|
|
82
|
+
attr_value = @exception.instance_variable_get(ivar)
|
83
|
+
attr_value.present? ? { "#{ivar}" => attr_value } : nil
|
84
|
+
end
|
87
85
|
end
|
88
86
|
|
89
87
|
def setup_env_params
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asana_exception_notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bogdanRada
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -461,7 +461,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
461
461
|
version: '2.5'
|
462
462
|
requirements: []
|
463
463
|
rubyforge_project:
|
464
|
-
rubygems_version: 2.
|
464
|
+
rubygems_version: 2.4.8
|
465
465
|
signing_key:
|
466
466
|
specification_version: 4
|
467
467
|
summary: Simple ruby implementation to send notifications to Asana when a exception
|