bugno-ruby 0.1.9

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: af64fab00f39a06dd5c9eed34bb67d0351d6f474d2a78fab9c95b46638e683b3
4
+ data.tar.gz: 950b648c204bd52d458fa155fc396a863d44ea6699e47dc588cc3025deaf7174
5
+ SHA512:
6
+ metadata.gz: 89d7d55defb1df2e7ebb08b4909b422002adeab08afeb8de8b1efdfedcaed6870951eaddf2148e71976c101ea4c63ace09bbd62a47867687d9bd31acca9d6ac2
7
+ data.tar.gz: 443efcb2a9e8200ecc3854978f179f2e5a799a6938a6c548679cb5521ca4b5800fe6d9f9560ed6892528dd4ca824cbbb8651541b7697478823d56d53634b3a7f
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.1
7
+ before_install: gem install bundler -v 2.0.1
@@ -0,0 +1,32 @@
1
+ # Change Log
2
+
3
+ ### v0.1.8
4
+
5
+ - Add active job support by default
6
+ - Change event class architecture
7
+
8
+ ### v0.1.7
9
+
10
+ - Fix exclude_exception
11
+
12
+ ### v0.1.6
13
+
14
+ - Truncate event message and title to less than three thousand characters
15
+
16
+ ### v0.1.5
17
+
18
+ - Add timestamp to event
19
+
20
+ ### v0.1.4
21
+
22
+ - Update nokogiri
23
+
24
+ ### v0.1.2 - v0.1.3
25
+
26
+ - Fix scrub params error
27
+
28
+ ### v0.1.1
29
+
30
+ - Show api response message in log
31
+ - Add route params, session, cookies and person data from request data to event
32
+ - Change configuration default, show more info in bugno initializer, add configuration by environments
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at grayeyed16@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in bugno.gemspec
6
+ gemspec
@@ -0,0 +1,171 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ bugno-ruby (0.1.9)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ actioncable (6.0.1)
10
+ actionpack (= 6.0.1)
11
+ nio4r (~> 2.0)
12
+ websocket-driver (>= 0.6.1)
13
+ actionmailbox (6.0.1)
14
+ actionpack (= 6.0.1)
15
+ activejob (= 6.0.1)
16
+ activerecord (= 6.0.1)
17
+ activestorage (= 6.0.1)
18
+ activesupport (= 6.0.1)
19
+ mail (>= 2.7.1)
20
+ actionmailer (6.0.1)
21
+ actionpack (= 6.0.1)
22
+ actionview (= 6.0.1)
23
+ activejob (= 6.0.1)
24
+ mail (~> 2.5, >= 2.5.4)
25
+ rails-dom-testing (~> 2.0)
26
+ actionpack (6.0.1)
27
+ actionview (= 6.0.1)
28
+ activesupport (= 6.0.1)
29
+ rack (~> 2.0)
30
+ rack-test (>= 0.6.3)
31
+ rails-dom-testing (~> 2.0)
32
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
33
+ actiontext (6.0.1)
34
+ actionpack (= 6.0.1)
35
+ activerecord (= 6.0.1)
36
+ activestorage (= 6.0.1)
37
+ activesupport (= 6.0.1)
38
+ nokogiri (>= 1.8.5)
39
+ actionview (6.0.1)
40
+ activesupport (= 6.0.1)
41
+ builder (~> 3.1)
42
+ erubi (~> 1.4)
43
+ rails-dom-testing (~> 2.0)
44
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
45
+ activejob (6.0.1)
46
+ activesupport (= 6.0.1)
47
+ globalid (>= 0.3.6)
48
+ activemodel (6.0.1)
49
+ activesupport (= 6.0.1)
50
+ activerecord (6.0.1)
51
+ activemodel (= 6.0.1)
52
+ activesupport (= 6.0.1)
53
+ activestorage (6.0.1)
54
+ actionpack (= 6.0.1)
55
+ activejob (= 6.0.1)
56
+ activerecord (= 6.0.1)
57
+ marcel (~> 0.3.1)
58
+ activesupport (6.0.1)
59
+ concurrent-ruby (~> 1.0, >= 1.0.2)
60
+ i18n (>= 0.7, < 2)
61
+ minitest (~> 5.1)
62
+ tzinfo (~> 1.1)
63
+ zeitwerk (~> 2.2)
64
+ builder (3.2.3)
65
+ coderay (1.1.2)
66
+ concurrent-ruby (1.1.5)
67
+ crass (1.0.5)
68
+ diff-lcs (1.3)
69
+ docile (1.3.2)
70
+ erubi (1.9.0)
71
+ globalid (0.4.2)
72
+ activesupport (>= 4.2.0)
73
+ i18n (1.7.0)
74
+ concurrent-ruby (~> 1.0)
75
+ json (2.2.0)
76
+ loofah (2.4.0)
77
+ crass (~> 1.0.2)
78
+ nokogiri (>= 1.5.9)
79
+ mail (2.7.1)
80
+ mini_mime (>= 0.1.1)
81
+ marcel (0.3.3)
82
+ mimemagic (~> 0.3.2)
83
+ method_source (0.9.2)
84
+ mimemagic (0.3.3)
85
+ mini_mime (1.0.2)
86
+ mini_portile2 (2.4.0)
87
+ minitest (5.13.0)
88
+ nio4r (2.5.2)
89
+ nokogiri (1.10.7)
90
+ mini_portile2 (~> 2.4.0)
91
+ pry (0.12.2)
92
+ coderay (~> 1.1.0)
93
+ method_source (~> 0.9.0)
94
+ rack (2.0.7)
95
+ rack-test (1.1.0)
96
+ rack (>= 1.0, < 3)
97
+ rails (6.0.1)
98
+ actioncable (= 6.0.1)
99
+ actionmailbox (= 6.0.1)
100
+ actionmailer (= 6.0.1)
101
+ actionpack (= 6.0.1)
102
+ actiontext (= 6.0.1)
103
+ actionview (= 6.0.1)
104
+ activejob (= 6.0.1)
105
+ activemodel (= 6.0.1)
106
+ activerecord (= 6.0.1)
107
+ activestorage (= 6.0.1)
108
+ activesupport (= 6.0.1)
109
+ bundler (>= 1.3.0)
110
+ railties (= 6.0.1)
111
+ sprockets-rails (>= 2.0.0)
112
+ rails-dom-testing (2.0.3)
113
+ activesupport (>= 4.2.0)
114
+ nokogiri (>= 1.6)
115
+ rails-html-sanitizer (1.3.0)
116
+ loofah (~> 2.3)
117
+ railties (6.0.1)
118
+ actionpack (= 6.0.1)
119
+ activesupport (= 6.0.1)
120
+ method_source
121
+ rake (>= 0.8.7)
122
+ thor (>= 0.20.3, < 2.0)
123
+ rake (10.5.0)
124
+ rspec (3.9.0)
125
+ rspec-core (~> 3.9.0)
126
+ rspec-expectations (~> 3.9.0)
127
+ rspec-mocks (~> 3.9.0)
128
+ rspec-core (3.9.0)
129
+ rspec-support (~> 3.9.0)
130
+ rspec-expectations (3.9.0)
131
+ diff-lcs (>= 1.2.0, < 2.0)
132
+ rspec-support (~> 3.9.0)
133
+ rspec-mocks (3.9.0)
134
+ diff-lcs (>= 1.2.0, < 2.0)
135
+ rspec-support (~> 3.9.0)
136
+ rspec-support (3.9.0)
137
+ simplecov (0.17.1)
138
+ docile (~> 1.1)
139
+ json (>= 1.8, < 3)
140
+ simplecov-html (~> 0.10.0)
141
+ simplecov-html (0.10.2)
142
+ sprockets (4.0.0)
143
+ concurrent-ruby (~> 1.0)
144
+ rack (> 1, < 3)
145
+ sprockets-rails (3.2.1)
146
+ actionpack (>= 4.0)
147
+ activesupport (>= 4.0)
148
+ sprockets (>= 3.0.0)
149
+ thor (0.20.3)
150
+ thread_safe (0.3.6)
151
+ tzinfo (1.2.5)
152
+ thread_safe (~> 0.1)
153
+ websocket-driver (0.7.1)
154
+ websocket-extensions (>= 0.1.0)
155
+ websocket-extensions (0.1.4)
156
+ zeitwerk (2.2.2)
157
+
158
+ PLATFORMS
159
+ ruby
160
+
161
+ DEPENDENCIES
162
+ bugno-ruby!
163
+ bundler (~> 2.0)
164
+ pry
165
+ rails
166
+ rake (~> 10.0)
167
+ rspec (~> 3.0)
168
+ simplecov
169
+
170
+ BUNDLED WITH
171
+ 2.0.2
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Dmitry Syvoglaz
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,62 @@
1
+ # Bugno
2
+
3
+ ## Installation
4
+
5
+ Add this line to your application's Gemfile:
6
+
7
+ ```ruby
8
+ gem 'bugno-ruby'
9
+ ```
10
+
11
+ And then execute:
12
+
13
+ $ bundle install
14
+
15
+ ## Usage
16
+
17
+ $ rails g bugno [API-KEY]
18
+
19
+ ## Configuration
20
+
21
+ To setup additional configuration navigate to `config/initializers/bugno.rb` in your app directory
22
+
23
+ #### Send in background with threading:
24
+ Send exceptions asynchronous
25
+
26
+ config.send_in_background = true
27
+
28
+ #### Send rails exceptions
29
+ Change following line to skip rails exceptions:
30
+
31
+ config.exclude_rails_exceptions = false
32
+
33
+ #### Specify rails exceptions to suppress
34
+ Suppress only exceptions you wish to (e.g. ActionController::RoutingError), make sure `config.exclude_rails_exceptions = true` specified:
35
+
36
+ config.excluded_exceptions = ['ActionController::RoutingError']
37
+
38
+ #### Specify or add usage environments:
39
+ config.usage_environments = %w[production]
40
+ config.usage_environments << 'development'
41
+
42
+ #### Specify current user method:
43
+ Allows you to send user related data
44
+
45
+ config.current_user_method = 'current_user'
46
+
47
+ Leave it blank to prevent
48
+ #### Add scrub fields and headers:
49
+ Filters sensetive params(e.g. passwords, tokens, credit cards)
50
+
51
+ config.scrub_fields << 'password'
52
+ config.scrub_headers << 'access_token'
53
+
54
+ ##### Defaults fields:
55
+ passwd password password_confirmation secret confirm_password password_confirmation secret_token api_key access_token session_id
56
+
57
+ ##### Defaults header:
58
+ Authorization
59
+
60
+ ## License
61
+
62
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'bugno'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'bugno/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'bugno-ruby'
9
+ spec.version = Bugno::VERSION
10
+ spec.authors = ['Dmitry Syvoglaz']
11
+ spec.email = ['grayeyed16@gmail.com']
12
+
13
+ spec.summary = 'Track your rails exceptions'
14
+ spec.homepage = 'https://bugno.io/'
15
+ spec.license = 'MIT'
16
+
17
+ if spec.respond_to?(:metadata)
18
+ # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
19
+ #
20
+ # spec.metadata["homepage_uri"] = spec.homepage
21
+ # spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
22
+ # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
23
+ else
24
+ raise 'RubyGems 2.0 or newer is required to protect against ' \
25
+ 'public gem pushes.'
26
+ end
27
+
28
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
29
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
30
+ end
31
+ spec.bindir = 'exe'
32
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
33
+ spec.require_paths = ['lib']
34
+
35
+ spec.add_development_dependency 'bundler', '~> 2.0'
36
+ spec.add_development_dependency 'pry'
37
+ spec.add_development_dependency 'rails'
38
+ spec.add_development_dependency 'rake', '~> 10.0'
39
+ spec.add_development_dependency 'rspec', '~> 3.0'
40
+ spec.add_development_dependency 'simplecov'
41
+ end