rollbar-mongoid-extension 0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +5 -0
- data/LICENSE +22 -0
- data/lib/rollbar/mongoid_extension.rb +14 -0
- data/rollbar-mongoid-extension.gemspec +18 -0
- metadata +68 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d2dac92197114d9c71471d9a8a1be95fa539f40a
|
4
|
+
data.tar.gz: 7aa473ed25f05595d47832cd93e498c4be4c3357
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4184fceb62f5c04b69fa8d9ce93bf4e1a3ba525dd0f7078713617a766b3383e0ec49f598d6376436be6d15b06d82b232d4293299dee7252ac04e34945d3697c5
|
7
|
+
data.tar.gz: 68856c2cff8bb970159e7cba1612b787c40d1bb0812cb6225c1e6cdfa43ec70397a41763310c6d8c472073ebf366c5168026c0a6fe4152a9cb660d3aea6c055a
|
data/CHANGELOG.md
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Scalingo SAS
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Rollbar
|
2
|
+
module MongoidExtension
|
3
|
+
extend ActiveSupport::Concern
|
4
|
+
|
5
|
+
def report_validation_errors_to_rollbar
|
6
|
+
self.errors.full_messages.each do |error|
|
7
|
+
Rollbar.log_info "[Rollbar] Reporting form validation error: #{error} for #{self.to_s}"
|
8
|
+
Rollbar.warning("Form Validation Error: #{error} for #{self.to_s}")
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
Mongoid::Document.send(:include, Rollbar::MongoidExtension)
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |gem|
|
4
|
+
gem.authors = ["Scalingo SAS"]
|
5
|
+
gem.email = ["support@scalingo.com"]
|
6
|
+
gem.description = %q{Extension to rollbar-gem to use the ActiveRecordExtension with Mongoid}
|
7
|
+
gem.summary = %q{Reports exceptions to Rollbar on validation errors with Mongoid}
|
8
|
+
gem.homepage = "https://github.com/Scalingo/rollbar-mongoid-extension-gem"
|
9
|
+
gem.license = 'MIT'
|
10
|
+
|
11
|
+
gem.files = `git ls-files`.split($\)
|
12
|
+
gem.test_files = gem.files.grep(%r{^(spec)/})
|
13
|
+
gem.name = "rollbar-mongoid-extension"
|
14
|
+
gem.require_paths = ["lib/rollbar"]
|
15
|
+
gem.version = "0.1"
|
16
|
+
|
17
|
+
gem.add_runtime_dependency 'rollbar', '~> 1.5', '>= 0.10.7'
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rollbar-mongoid-extension
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.1'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Scalingo SAS
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-05-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rollbar
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.5'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.10.7
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.5'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.10.7
|
33
|
+
description: Extension to rollbar-gem to use the ActiveRecordExtension with Mongoid
|
34
|
+
email:
|
35
|
+
- support@scalingo.com
|
36
|
+
executables: []
|
37
|
+
extensions: []
|
38
|
+
extra_rdoc_files: []
|
39
|
+
files:
|
40
|
+
- CHANGELOG.md
|
41
|
+
- LICENSE
|
42
|
+
- lib/rollbar/mongoid_extension.rb
|
43
|
+
- rollbar-mongoid-extension.gemspec
|
44
|
+
homepage: https://github.com/Scalingo/rollbar-mongoid-extension-gem
|
45
|
+
licenses:
|
46
|
+
- MIT
|
47
|
+
metadata: {}
|
48
|
+
post_install_message:
|
49
|
+
rdoc_options: []
|
50
|
+
require_paths:
|
51
|
+
- lib/rollbar
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
requirements: []
|
63
|
+
rubyforge_project:
|
64
|
+
rubygems_version: 2.4.5
|
65
|
+
signing_key:
|
66
|
+
specification_version: 4
|
67
|
+
summary: Reports exceptions to Rollbar on validation errors with Mongoid
|
68
|
+
test_files: []
|