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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82950083586b07bfbf3b29f0c1307898d06d400d
4
- data.tar.gz: 1c7c8e2a330964e1e7c8ef92795e1435989b6881
3
+ metadata.gz: f9eada43045687a0353c559d3592ce7ed9bf23d4
4
+ data.tar.gz: 5b0d6a1fcc947b6c204e0200bc170bda8892f62a
5
5
  SHA512:
6
- metadata.gz: 89d2d2a9b595d67e863056c511819d9337d23755d15955d61f2d65668d70d0d5cde9884f0000db3e8454fc2319c2c6b5ef8d344c832c7b4846f12c6d167fe206
7
- data.tar.gz: 266623f3416e048001b4bd3e6b52e71924474fab7361c21a0b4355803ad7defc912265f876ea1b0421512a4ce4797f8c6c2f7200987d0fffa3bb01f21a40d7cb
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
- service_class: @exception.respond_to?(:service_class) ? @exception.service_class : nil,
83
- arguments: @exception.respond_to?(:service_arguments) ? filter_params(@exception.service_arguments).inspect.gsub(',', ",\n") : nil,
84
- service_method: @exception.respond_to?(:service_method) ? @exception.service_method : nil,
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
@@ -17,7 +17,7 @@ module AsanaExceptionNotifier
17
17
  # minor release version
18
18
  MINOR = 2
19
19
  # tiny release version
20
- TINY = 0
20
+ TINY = 1
21
21
  # prelease version ( set this only if it is a prelease)
22
22
  PRE = nil
23
23
 
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.0
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-03-10 00:00:00.000000000 Z
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.5.1
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