rollbar-mongoid-extension 0.1 → 0.2

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: d2dac92197114d9c71471d9a8a1be95fa539f40a
4
- data.tar.gz: 7aa473ed25f05595d47832cd93e498c4be4c3357
3
+ metadata.gz: 3128ec546e32bd65bbe2f83b32796345e3f3971a
4
+ data.tar.gz: 28e19cf4f8a163ace728653041769b7b234137ec
5
5
  SHA512:
6
- metadata.gz: 4184fceb62f5c04b69fa8d9ce93bf4e1a3ba525dd0f7078713617a766b3383e0ec49f598d6376436be6d15b06d82b232d4293299dee7252ac04e34945d3697c5
7
- data.tar.gz: 68856c2cff8bb970159e7cba1612b787c40d1bb0812cb6225c1e6cdfa43ec70397a41763310c6d8c472073ebf366c5168026c0a6fe4152a9cb660d3aea6c055a
6
+ metadata.gz: fbca4a7940bef6f0a95dd82513a6496e7f77e8cc1393debbb1da89cf62812c9d87a8cdf8c8a2fafef4b642364d859fb4fed95e8bd80cd2fa7598a7daaeec48de
7
+ data.tar.gz: 6223f0853bc69b882016eb78c20cfedcc892417a784c9ddd2944c7ad9a8e5e80346938b60e6beec0291e0713368bfc87e8d51d7fc8089defa70279fddb24a897
data/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # Rollbar Mongoid Extension gem
2
+
3
+ Simple gem which take [ActiveRecord extension](https://github.com/Scalingo/rollbar-gem/commits/master/lib/rollbar/active_record_extension.rb)
4
+ of the rollbar-gem and include it in `Mongoid::Document`
5
+
6
+
7
+ ## Installation
8
+
9
+ In your Gemfile:
10
+
11
+ ```
12
+ gem 'rollbar-mongoid-extension'
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```ruby
18
+ after_validation :report_validation_errors_to_rollbar
19
+ ```
@@ -0,0 +1,3 @@
1
+ # Require the library
2
+
3
+ require "rollbar/mongoid_extension"
@@ -11,8 +11,10 @@ Gem::Specification.new do |gem|
11
11
  gem.files = `git ls-files`.split($\)
12
12
  gem.test_files = gem.files.grep(%r{^(spec)/})
13
13
  gem.name = "rollbar-mongoid-extension"
14
- gem.require_paths = ["lib/rollbar"]
15
- gem.version = "0.1"
14
+ gem.require_paths = ["lib"]
15
+ gem.version = "0.2"
16
16
 
17
17
  gem.add_runtime_dependency 'rollbar', '~> 1.5', '>= 0.10.7'
18
+ gem.add_runtime_dependency 'mongoid', '~> 4'
19
+ gem.add_runtime_dependency 'activesupport', '~> 4'
18
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rollbar-mongoid-extension
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scalingo SAS
@@ -30,6 +30,34 @@ dependencies:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 0.10.7
33
+ - !ruby/object:Gem::Dependency
34
+ name: mongoid
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '4'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '4'
47
+ - !ruby/object:Gem::Dependency
48
+ name: activesupport
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '4'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '4'
33
61
  description: Extension to rollbar-gem to use the ActiveRecordExtension with Mongoid
34
62
  email:
35
63
  - support@scalingo.com
@@ -39,6 +67,8 @@ extra_rdoc_files: []
39
67
  files:
40
68
  - CHANGELOG.md
41
69
  - LICENSE
70
+ - README.md
71
+ - lib/rollbar-mongoid-extension.rb
42
72
  - lib/rollbar/mongoid_extension.rb
43
73
  - rollbar-mongoid-extension.gemspec
44
74
  homepage: https://github.com/Scalingo/rollbar-mongoid-extension-gem
@@ -48,7 +78,7 @@ metadata: {}
48
78
  post_install_message:
49
79
  rdoc_options: []
50
80
  require_paths:
51
- - lib/rollbar
81
+ - lib
52
82
  required_ruby_version: !ruby/object:Gem::Requirement
53
83
  requirements:
54
84
  - - ">="