log_toolbox 1.0.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +3 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +83 -22
- data/README.md +22 -5
- data/bitbucket-pipelines.yml +3 -1
- data/config/routes.rb +3 -0
- data/lib/log_toolbox/log_controller.rb +53 -0
- data/lib/log_toolbox/log_helper.rb +5 -1
- data/lib/log_toolbox/log_payload.rb +2 -1
- data/lib/log_toolbox/log_routes.rb +15 -0
- data/lib/log_toolbox/log_simple.rb +1 -1
- data/lib/log_toolbox/lograge_config.rb +3 -1
- data/lib/log_toolbox/version.rb +1 -1
- data/lib/log_toolbox.rb +2 -0
- data/log_toolbox.gemspec +4 -5
- metadata +28 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e7a0a82ef30745dbef3c5bc479a0be875fd881b015254b5650ce15c61611595c
|
4
|
+
data.tar.gz: 797f45b294bdabeaf068df140e3d278dfd20a5b2f23ff684f40d865703bec041
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 897098929dea4f4105c1eba591d3a133c33c8faada961f09d1e4dc959fd2f6b86801f69d4f863030bce531a5e9ab99706a84944f4f366604b9a1d55d149e5707
|
7
|
+
data.tar.gz: 9a2a119b9dcd418e86684678f24c2b0f49a87799a41d52b4593b907ac143b2b652c9984d2106e0d181c9f83f75848bee29f87c6666e5e9ab292ceb1d1933f572
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -6,3 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
6
6
|
|
7
7
|
## [Released] - 2019-05-21
|
8
8
|
|
9
|
+
## [1.2.0] - 2019-07-24
|
10
|
+
### Added
|
11
|
+
- Add feature to change log level of your application at running time
|
12
|
+
|
13
|
+
## [1.1.0] - 2019-05-30
|
14
|
+
### Changed
|
15
|
+
- Changed header correlation_id to activityID as requested by architecture team
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,15 +1,24 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
log_toolbox (1.
|
5
|
-
actionpack (>= 4.0.0)
|
6
|
-
activesupport (>= 4.0.0)
|
4
|
+
log_toolbox (1.2.0)
|
7
5
|
lograge (>= 0.11.1)
|
8
6
|
logstash-event (>= 1.2.02)
|
7
|
+
rails (>= 4.0)
|
9
8
|
|
10
9
|
GEM
|
11
10
|
remote: https://rubygems.org/
|
12
11
|
specs:
|
12
|
+
actioncable (5.2.3)
|
13
|
+
actionpack (= 5.2.3)
|
14
|
+
nio4r (~> 2.0)
|
15
|
+
websocket-driver (>= 0.6.1)
|
16
|
+
actionmailer (5.2.3)
|
17
|
+
actionpack (= 5.2.3)
|
18
|
+
actionview (= 5.2.3)
|
19
|
+
activejob (= 5.2.3)
|
20
|
+
mail (~> 2.5, >= 2.5.4)
|
21
|
+
rails-dom-testing (~> 2.0)
|
13
22
|
actionpack (5.2.3)
|
14
23
|
actionview (= 5.2.3)
|
15
24
|
activesupport (= 5.2.3)
|
@@ -23,11 +32,25 @@ GEM
|
|
23
32
|
erubi (~> 1.4)
|
24
33
|
rails-dom-testing (~> 2.0)
|
25
34
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
35
|
+
activejob (5.2.3)
|
36
|
+
activesupport (= 5.2.3)
|
37
|
+
globalid (>= 0.3.6)
|
38
|
+
activemodel (5.2.3)
|
39
|
+
activesupport (= 5.2.3)
|
40
|
+
activerecord (5.2.3)
|
41
|
+
activemodel (= 5.2.3)
|
42
|
+
activesupport (= 5.2.3)
|
43
|
+
arel (>= 9.0)
|
44
|
+
activestorage (5.2.3)
|
45
|
+
actionpack (= 5.2.3)
|
46
|
+
activerecord (= 5.2.3)
|
47
|
+
marcel (~> 0.3.1)
|
26
48
|
activesupport (5.2.3)
|
27
49
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
28
50
|
i18n (>= 0.7, < 2)
|
29
51
|
minitest (~> 5.1)
|
30
52
|
tzinfo (~> 1.1)
|
53
|
+
arel (9.0.0)
|
31
54
|
ast (2.4.0)
|
32
55
|
builder (3.2.3)
|
33
56
|
byebug (11.0.1)
|
@@ -36,10 +59,12 @@ GEM
|
|
36
59
|
crass (1.0.4)
|
37
60
|
diff-lcs (1.3)
|
38
61
|
erubi (1.8.0)
|
62
|
+
globalid (0.4.2)
|
63
|
+
activesupport (>= 4.2.0)
|
39
64
|
i18n (1.6.0)
|
40
65
|
concurrent-ruby (~> 1.0)
|
41
66
|
jaro_winkler (1.5.2)
|
42
|
-
lograge (0.11.
|
67
|
+
lograge (0.11.2)
|
43
68
|
actionpack (>= 4)
|
44
69
|
activesupport (>= 4)
|
45
70
|
railties (>= 4)
|
@@ -48,9 +73,16 @@ GEM
|
|
48
73
|
loofah (2.2.3)
|
49
74
|
crass (~> 1.0.2)
|
50
75
|
nokogiri (>= 1.5.9)
|
76
|
+
mail (2.7.1)
|
77
|
+
mini_mime (>= 0.1.1)
|
78
|
+
marcel (0.3.3)
|
79
|
+
mimemagic (~> 0.3.2)
|
51
80
|
method_source (0.9.2)
|
81
|
+
mimemagic (0.3.3)
|
82
|
+
mini_mime (1.0.2)
|
52
83
|
mini_portile2 (2.4.0)
|
53
84
|
minitest (5.11.3)
|
85
|
+
nio4r (2.4.0)
|
54
86
|
nokogiri (1.10.3)
|
55
87
|
mini_portile2 (~> 2.4.0)
|
56
88
|
parallel (1.17.0)
|
@@ -65,6 +97,19 @@ GEM
|
|
65
97
|
rack (2.0.7)
|
66
98
|
rack-test (1.1.0)
|
67
99
|
rack (>= 1.0, < 3)
|
100
|
+
rails (5.2.3)
|
101
|
+
actioncable (= 5.2.3)
|
102
|
+
actionmailer (= 5.2.3)
|
103
|
+
actionpack (= 5.2.3)
|
104
|
+
actionview (= 5.2.3)
|
105
|
+
activejob (= 5.2.3)
|
106
|
+
activemodel (= 5.2.3)
|
107
|
+
activerecord (= 5.2.3)
|
108
|
+
activestorage (= 5.2.3)
|
109
|
+
activesupport (= 5.2.3)
|
110
|
+
bundler (>= 1.3.0)
|
111
|
+
railties (= 5.2.3)
|
112
|
+
sprockets-rails (>= 2.0.0)
|
68
113
|
rails-dom-testing (2.0.3)
|
69
114
|
activesupport (>= 4.2.0)
|
70
115
|
nokogiri (>= 1.6)
|
@@ -77,50 +122,66 @@ GEM
|
|
77
122
|
rake (>= 0.8.7)
|
78
123
|
thor (>= 0.19.0, < 2.0)
|
79
124
|
rainbow (3.0.0)
|
80
|
-
rake (
|
125
|
+
rake (12.3.2)
|
81
126
|
request_store (1.4.1)
|
82
127
|
rack (>= 1.4)
|
83
|
-
rspec (3.8.
|
84
|
-
rspec-core (~> 3.8.0)
|
85
|
-
rspec-expectations (~> 3.8.0)
|
86
|
-
rspec-mocks (~> 3.8.0)
|
87
|
-
rspec-core (3.8.0)
|
128
|
+
rspec-core (3.8.2)
|
88
129
|
rspec-support (~> 3.8.0)
|
89
|
-
rspec-expectations (3.8.
|
130
|
+
rspec-expectations (3.8.4)
|
90
131
|
diff-lcs (>= 1.2.0, < 2.0)
|
91
132
|
rspec-support (~> 3.8.0)
|
92
|
-
rspec-mocks (3.8.
|
133
|
+
rspec-mocks (3.8.1)
|
93
134
|
diff-lcs (>= 1.2.0, < 2.0)
|
94
135
|
rspec-support (~> 3.8.0)
|
95
|
-
rspec-
|
96
|
-
|
136
|
+
rspec-rails (3.8.2)
|
137
|
+
actionpack (>= 3.0)
|
138
|
+
activesupport (>= 3.0)
|
139
|
+
railties (>= 3.0)
|
140
|
+
rspec-core (~> 3.8.0)
|
141
|
+
rspec-expectations (~> 3.8.0)
|
142
|
+
rspec-mocks (~> 3.8.0)
|
143
|
+
rspec-support (~> 3.8.0)
|
144
|
+
rspec-support (3.8.2)
|
145
|
+
rubocop (0.71.0)
|
97
146
|
jaro_winkler (~> 1.5.1)
|
98
147
|
parallel (~> 1.10)
|
99
|
-
parser (>= 2.
|
148
|
+
parser (>= 2.6)
|
100
149
|
rainbow (>= 2.2.2, < 4.0)
|
101
150
|
ruby-progressbar (~> 1.7)
|
102
|
-
unicode-display_width (>= 1.4.0, < 1.
|
103
|
-
ruby-progressbar (1.10.
|
104
|
-
shoulda-matchers (3.1.
|
151
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
152
|
+
ruby-progressbar (1.10.1)
|
153
|
+
shoulda-matchers (3.1.3)
|
105
154
|
activesupport (>= 4.0.0)
|
155
|
+
sprockets (3.7.2)
|
156
|
+
concurrent-ruby (~> 1.0)
|
157
|
+
rack (> 1, < 3)
|
158
|
+
sprockets-rails (3.2.1)
|
159
|
+
actionpack (>= 4.0)
|
160
|
+
activesupport (>= 4.0)
|
161
|
+
sprockets (>= 3.0.0)
|
162
|
+
sqlite3 (1.4.1)
|
106
163
|
thor (0.20.3)
|
107
164
|
thread_safe (0.3.6)
|
108
165
|
tzinfo (1.2.5)
|
109
166
|
thread_safe (~> 0.1)
|
110
|
-
unicode-display_width (1.
|
167
|
+
unicode-display_width (1.6.0)
|
168
|
+
websocket-driver (0.7.1)
|
169
|
+
websocket-extensions (>= 0.1.0)
|
170
|
+
websocket-extensions (0.1.4)
|
111
171
|
|
112
172
|
PLATFORMS
|
113
173
|
ruby
|
114
174
|
|
115
175
|
DEPENDENCIES
|
116
|
-
bundler
|
176
|
+
bundler
|
117
177
|
log_toolbox!
|
118
178
|
pry
|
119
179
|
pry-byebug
|
120
|
-
rake
|
121
|
-
rspec
|
180
|
+
rake
|
181
|
+
rspec-rails
|
122
182
|
rubocop
|
123
183
|
shoulda-matchers (~> 3.1)
|
184
|
+
sqlite3
|
124
185
|
|
125
186
|
BUNDLED WITH
|
126
187
|
2.0.1
|
data/README.md
CHANGED
@@ -4,10 +4,6 @@ Ruby gem for logging
|
|
4
4
|
=======
|
5
5
|
# LogToolbox
|
6
6
|
|
7
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/log_toolbox`. To experiment with that code, run `bin/console` for an interactive prompt.
|
8
|
-
|
9
|
-
TODO: Delete this and the text above, and describe your gem
|
10
|
-
|
11
7
|
## Installation
|
12
8
|
|
13
9
|
Add this line to your application's Gemfile:
|
@@ -64,8 +60,29 @@ end
|
|
64
60
|
LogToolbox::LogSimple.log_info('system was here') # => {"event_at":"2019-05-21 17:41:59 -0300","level":"INFO","service_name":"logging","version":"1.0.1","message":"system was here"}
|
65
61
|
```
|
66
62
|
|
67
|
-
Also you can log with same methods log_info, log_warn, log_error and log_critical
|
63
|
+
Also you can log with same methods log_debug, log_info, log_warn, log_error and log_critical
|
64
|
+
|
65
|
+
### Log routes
|
66
|
+
|
67
|
+
## Add routes config to manage your log level
|
68
|
+
|
69
|
+
At your 'routes.rb' add log routes
|
70
|
+
|
71
|
+
```ruby
|
72
|
+
Rails.application.routes.draw do
|
73
|
+
log_routes
|
74
|
+
end
|
75
|
+
```
|
76
|
+
|
77
|
+
You can change your application log doing a POST at /log/change_level
|
78
|
+
|
79
|
+
```json
|
80
|
+
{
|
81
|
+
"level": "FATAL"
|
82
|
+
}
|
83
|
+
```
|
68
84
|
|
85
|
+
You can test your application log doing a GET at /log/test
|
69
86
|
|
70
87
|
## Development
|
71
88
|
|
data/bitbucket-pipelines.yml
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
-
image: ruby:2.
|
1
|
+
image: ruby:2.6.3
|
2
2
|
|
3
3
|
pipelines:
|
4
4
|
default:
|
5
5
|
- step:
|
6
6
|
script:
|
7
7
|
- git archive --remote=git@bitbucket.org:guideinvestimentos/rails_defaults.git HEAD .rubocop.yml | tar -x
|
8
|
+
- gem update bundler
|
8
9
|
- bundle install
|
9
10
|
- gem install rubocop
|
10
11
|
- rspec -fdoc
|
@@ -14,6 +15,7 @@ pipelines:
|
|
14
15
|
master:
|
15
16
|
- step:
|
16
17
|
script:
|
18
|
+
- mkdir -p ~/.gem
|
17
19
|
- gem build log_toolbox.gemspec
|
18
20
|
- curl -u $RUBYGEMS_USERNAME:$RUBYGEMS_PASSWORD https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials
|
19
21
|
- chmod 0600 ~/.gem/credentials
|
data/config/routes.rb
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'log_toolbox/log_payload'
|
4
|
+
require 'action_controller'
|
5
|
+
|
6
|
+
module LogToolbox
|
7
|
+
class LogController < ActionController::Base
|
8
|
+
include LogToolbox::LogPayload
|
9
|
+
|
10
|
+
def change_level
|
11
|
+
log_info("Log level was changed to #{level_param}")
|
12
|
+
Rails.logger.level = Logger.const_get(level_param.upcase)
|
13
|
+
|
14
|
+
render json: {
|
15
|
+
message: "Your application log level was changed to #{rails_logger}",
|
16
|
+
log_options: options,
|
17
|
+
log_levels: levels
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
def test
|
22
|
+
log_debug('Log level DEBUG')
|
23
|
+
log_info('Log level INFO')
|
24
|
+
log_warn('Log level WARN')
|
25
|
+
log_error('Log level ERR')
|
26
|
+
log_critical('Log level CRIT')
|
27
|
+
|
28
|
+
render json: {
|
29
|
+
message: "Your application log level is #{rails_logger}",
|
30
|
+
log_options: options,
|
31
|
+
log_levels: levels
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
private
|
36
|
+
|
37
|
+
def options
|
38
|
+
%w[DEBUG INFO WARN ERROR FATAL]
|
39
|
+
end
|
40
|
+
|
41
|
+
def levels
|
42
|
+
{ DEBUG: 0, INFO: 1, WARN: 2, ERROR: 3, FATAL: 4 }
|
43
|
+
end
|
44
|
+
|
45
|
+
def rails_logger
|
46
|
+
Rails.logger.level
|
47
|
+
end
|
48
|
+
|
49
|
+
def level_param
|
50
|
+
params.require(:level)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -25,13 +25,17 @@ module LogToolbox
|
|
25
25
|
log_pattern('info', additional.merge(message: message))
|
26
26
|
end
|
27
27
|
|
28
|
+
def log_debug(message, additional = {})
|
29
|
+
log_pattern('debug', additional.merge(message: message))
|
30
|
+
end
|
31
|
+
|
28
32
|
private
|
29
33
|
|
30
34
|
# rubocop:disable Metrics/AbcSize,Metrics/MethodLength
|
31
35
|
def default_log(level)
|
32
36
|
level = 'CRITICAL' if level == 'FATAL'
|
33
37
|
{
|
34
|
-
|
38
|
+
activityID: request.headers['activityID'],
|
35
39
|
event_at: I18n.l(Time.now, format: :timestamp),
|
36
40
|
level: level,
|
37
41
|
service_name: LogUtil.system_service_name,
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'active_support'
|
4
|
+
require 'log_toolbox/log_helper'
|
4
5
|
|
5
6
|
module LogToolbox
|
6
7
|
module LogPayload
|
@@ -10,7 +11,7 @@ module LogToolbox
|
|
10
11
|
# rubocop:disable Metrics/AbcSize
|
11
12
|
def append_info_to_payload(payload)
|
12
13
|
super
|
13
|
-
payload[:
|
14
|
+
payload[:activityID] = request.headers['activityID']
|
14
15
|
payload[:event_at] = I18n.l(Time.now, format: :timestamp)
|
15
16
|
payload[:service_name] = LogUtil.system_service_name
|
16
17
|
payload[:version] = LogUtil.system_version
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActionDispatch
|
4
|
+
module Routing
|
5
|
+
class Mapper
|
6
|
+
def log_routes
|
7
|
+
match 'log/change_level(/:checks)(.:format)', to:
|
8
|
+
'log_toolbox/log#change_level', via: :post
|
9
|
+
|
10
|
+
match 'log/test(/:checks)(.:format)', to:
|
11
|
+
'log_toolbox/log#test', via: :get
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'lograge'
|
4
|
+
|
3
5
|
module LogToolbox
|
4
6
|
class LogrageConfig
|
5
7
|
# rubocop:disable Metrics/AbcSize,Metrics/MethodLength
|
@@ -11,7 +13,7 @@ module LogToolbox
|
|
11
13
|
|
12
14
|
config.lograge.custom_options = lambda do |event|
|
13
15
|
{
|
14
|
-
|
16
|
+
activityID: event.payload[:activityID],
|
15
17
|
event_at: event.payload[:event_at],
|
16
18
|
level: 'INFO',
|
17
19
|
service_name: event.payload[:service_name],
|
data/lib/log_toolbox/version.rb
CHANGED
data/lib/log_toolbox.rb
CHANGED
data/log_toolbox.gemspec
CHANGED
@@ -21,16 +21,15 @@ Gem::Specification.new do |spec|
|
|
21
21
|
end
|
22
22
|
spec.require_paths = ['lib']
|
23
23
|
|
24
|
-
spec.add_dependency 'actionpack', '>= 4.0.0'
|
25
|
-
spec.add_dependency 'activesupport', '>= 4.0.0'
|
26
24
|
spec.add_dependency 'lograge', '>= 0.11.1'
|
27
25
|
spec.add_dependency 'logstash-event', '>= 1.2.02'
|
26
|
+
spec.add_dependency('rails', ['>= 4.0'])
|
28
27
|
|
29
|
-
spec.add_development_dependency 'bundler'
|
28
|
+
spec.add_development_dependency 'bundler'
|
30
29
|
spec.add_development_dependency 'pry'
|
31
30
|
spec.add_development_dependency 'pry-byebug'
|
32
|
-
spec.add_development_dependency 'rake'
|
33
|
-
spec.add_development_dependency 'rspec'
|
31
|
+
spec.add_development_dependency 'rake'
|
32
|
+
spec.add_development_dependency 'rspec-rails'
|
34
33
|
spec.add_development_dependency 'rubocop'
|
35
34
|
spec.add_development_dependency 'shoulda-matchers', '~> 3.1'
|
36
35
|
end
|
metadata
CHANGED
@@ -1,85 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: log_toolbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Caio Almeida
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: lograge
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.11.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.11.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: logstash-event
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.2.02
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 1.2.02
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0
|
47
|
+
version: '4.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: logstash-event
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 1.2.02
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 1.2.02
|
54
|
+
version: '4.0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: bundler
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
|
-
- - "
|
59
|
+
- - ">="
|
74
60
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
61
|
+
version: '0'
|
76
62
|
type: :development
|
77
63
|
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
|
-
- - "
|
66
|
+
- - ">="
|
81
67
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
68
|
+
version: '0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: pry
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,30 +98,30 @@ dependencies:
|
|
112
98
|
name: rake
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
114
100
|
requirements:
|
115
|
-
- - "
|
101
|
+
- - ">="
|
116
102
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
103
|
+
version: '0'
|
118
104
|
type: :development
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
107
|
requirements:
|
122
|
-
- - "
|
108
|
+
- - ">="
|
123
109
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
110
|
+
version: '0'
|
125
111
|
- !ruby/object:Gem::Dependency
|
126
|
-
name: rspec
|
112
|
+
name: rspec-rails
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|
128
114
|
requirements:
|
129
|
-
- - "
|
115
|
+
- - ">="
|
130
116
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
117
|
+
version: '0'
|
132
118
|
type: :development
|
133
119
|
prerelease: false
|
134
120
|
version_requirements: !ruby/object:Gem::Requirement
|
135
121
|
requirements:
|
136
|
-
- - "
|
122
|
+
- - ">="
|
137
123
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
124
|
+
version: '0'
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: rubocop
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -183,9 +169,12 @@ files:
|
|
183
169
|
- bin/console
|
184
170
|
- bin/setup
|
185
171
|
- bitbucket-pipelines.yml
|
172
|
+
- config/routes.rb
|
186
173
|
- lib/log_toolbox.rb
|
174
|
+
- lib/log_toolbox/log_controller.rb
|
187
175
|
- lib/log_toolbox/log_helper.rb
|
188
176
|
- lib/log_toolbox/log_payload.rb
|
177
|
+
- lib/log_toolbox/log_routes.rb
|
189
178
|
- lib/log_toolbox/log_simple.rb
|
190
179
|
- lib/log_toolbox/log_util.rb
|
191
180
|
- lib/log_toolbox/lograge_config.rb
|
@@ -210,8 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
199
|
- !ruby/object:Gem::Version
|
211
200
|
version: '0'
|
212
201
|
requirements: []
|
213
|
-
|
214
|
-
rubygems_version: 2.6.13
|
202
|
+
rubygems_version: 3.0.3
|
215
203
|
signing_key:
|
216
204
|
specification_version: 4
|
217
205
|
summary: Guide default gem for ruby application logging
|