log_toolbox 1.3.10 → 1.3.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/Dockerfile +10 -0
- data/Gemfile.lock +77 -81
- data/README.md +33 -0
- data/bitbucket-pipelines.yml +1 -1
- data/lib/log_toolbox/version.rb +1 -1
- data/log_toolbox.gemspec +1 -1
- data/test.sh +2 -0
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfd013e4caea03ee27b63de2968e8b06dcecf156ec6529fe7c6da9bce3516ac4
|
4
|
+
data.tar.gz: '052166091d1bb95524b187c8cb01d3142825af0df11b03c541267b3691f1bc3d'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69f983251fdef6daf57b87bfcc0dff754939d563300bca0badecd08d2c60f69a9b4f517dd280cefaca553fdf145e869f977bb09577b79ffba0b85b3f821a68a9
|
7
|
+
data.tar.gz: d23ebbce72a62b08c33ca4e15f248532055325d3f141a7ecf40d79413b9103ea13054bba14ee7c1d2da0b2002ebc7714f481d9de2f1da136fe789444c449bde0
|
data/CHANGELOG.md
CHANGED
@@ -4,13 +4,21 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
-
## [1.3.
|
7
|
+
## [1.3.11] - 2021-06-21
|
8
|
+
### CHANGED
|
9
|
+
- Update gems
|
10
|
+
- Allow version >= 2.5
|
11
|
+
- Pipeline using ruby:2.7.3
|
12
|
+
- Allow local tests with docker
|
13
|
+
|
14
|
+
## [1.3.10] - 2021-01-20
|
8
15
|
### CHANGED
|
9
16
|
- Update gems
|
10
17
|
- Update gemspec
|
11
18
|
- Update pipeline
|
12
19
|
- Simplify some tests
|
13
20
|
|
21
|
+
## [1.3.9] - 2021-01-15
|
14
22
|
### FIXED
|
15
23
|
- Fixed service_name custom option.
|
16
24
|
|
data/Dockerfile
ADDED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
log_toolbox (1.3.
|
4
|
+
log_toolbox (1.3.11)
|
5
5
|
lograge (>= 0.11.1)
|
6
6
|
logstash-event (>= 1.2.02)
|
7
7
|
logstash-logger (>= 0.26.1)
|
@@ -10,60 +10,60 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
actioncable (6.1.
|
14
|
-
actionpack (= 6.1.
|
15
|
-
activesupport (= 6.1.
|
13
|
+
actioncable (6.1.3.2)
|
14
|
+
actionpack (= 6.1.3.2)
|
15
|
+
activesupport (= 6.1.3.2)
|
16
16
|
nio4r (~> 2.0)
|
17
17
|
websocket-driver (>= 0.6.1)
|
18
|
-
actionmailbox (6.1.
|
19
|
-
actionpack (= 6.1.
|
20
|
-
activejob (= 6.1.
|
21
|
-
activerecord (= 6.1.
|
22
|
-
activestorage (= 6.1.
|
23
|
-
activesupport (= 6.1.
|
18
|
+
actionmailbox (6.1.3.2)
|
19
|
+
actionpack (= 6.1.3.2)
|
20
|
+
activejob (= 6.1.3.2)
|
21
|
+
activerecord (= 6.1.3.2)
|
22
|
+
activestorage (= 6.1.3.2)
|
23
|
+
activesupport (= 6.1.3.2)
|
24
24
|
mail (>= 2.7.1)
|
25
|
-
actionmailer (6.1.
|
26
|
-
actionpack (= 6.1.
|
27
|
-
actionview (= 6.1.
|
28
|
-
activejob (= 6.1.
|
29
|
-
activesupport (= 6.1.
|
25
|
+
actionmailer (6.1.3.2)
|
26
|
+
actionpack (= 6.1.3.2)
|
27
|
+
actionview (= 6.1.3.2)
|
28
|
+
activejob (= 6.1.3.2)
|
29
|
+
activesupport (= 6.1.3.2)
|
30
30
|
mail (~> 2.5, >= 2.5.4)
|
31
31
|
rails-dom-testing (~> 2.0)
|
32
|
-
actionpack (6.1.
|
33
|
-
actionview (= 6.1.
|
34
|
-
activesupport (= 6.1.
|
32
|
+
actionpack (6.1.3.2)
|
33
|
+
actionview (= 6.1.3.2)
|
34
|
+
activesupport (= 6.1.3.2)
|
35
35
|
rack (~> 2.0, >= 2.0.9)
|
36
36
|
rack-test (>= 0.6.3)
|
37
37
|
rails-dom-testing (~> 2.0)
|
38
38
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
39
|
-
actiontext (6.1.
|
40
|
-
actionpack (= 6.1.
|
41
|
-
activerecord (= 6.1.
|
42
|
-
activestorage (= 6.1.
|
43
|
-
activesupport (= 6.1.
|
39
|
+
actiontext (6.1.3.2)
|
40
|
+
actionpack (= 6.1.3.2)
|
41
|
+
activerecord (= 6.1.3.2)
|
42
|
+
activestorage (= 6.1.3.2)
|
43
|
+
activesupport (= 6.1.3.2)
|
44
44
|
nokogiri (>= 1.8.5)
|
45
|
-
actionview (6.1.
|
46
|
-
activesupport (= 6.1.
|
45
|
+
actionview (6.1.3.2)
|
46
|
+
activesupport (= 6.1.3.2)
|
47
47
|
builder (~> 3.1)
|
48
48
|
erubi (~> 1.4)
|
49
49
|
rails-dom-testing (~> 2.0)
|
50
50
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
51
|
-
activejob (6.1.
|
52
|
-
activesupport (= 6.1.
|
51
|
+
activejob (6.1.3.2)
|
52
|
+
activesupport (= 6.1.3.2)
|
53
53
|
globalid (>= 0.3.6)
|
54
|
-
activemodel (6.1.
|
55
|
-
activesupport (= 6.1.
|
56
|
-
activerecord (6.1.
|
57
|
-
activemodel (= 6.1.
|
58
|
-
activesupport (= 6.1.
|
59
|
-
activestorage (6.1.
|
60
|
-
actionpack (= 6.1.
|
61
|
-
activejob (= 6.1.
|
62
|
-
activerecord (= 6.1.
|
63
|
-
activesupport (= 6.1.
|
64
|
-
marcel (~> 0.
|
65
|
-
|
66
|
-
activesupport (6.1.
|
54
|
+
activemodel (6.1.3.2)
|
55
|
+
activesupport (= 6.1.3.2)
|
56
|
+
activerecord (6.1.3.2)
|
57
|
+
activemodel (= 6.1.3.2)
|
58
|
+
activesupport (= 6.1.3.2)
|
59
|
+
activestorage (6.1.3.2)
|
60
|
+
actionpack (= 6.1.3.2)
|
61
|
+
activejob (= 6.1.3.2)
|
62
|
+
activerecord (= 6.1.3.2)
|
63
|
+
activesupport (= 6.1.3.2)
|
64
|
+
marcel (~> 1.0.0)
|
65
|
+
mini_mime (~> 1.0.2)
|
66
|
+
activesupport (6.1.3.2)
|
67
67
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
68
68
|
i18n (>= 1.6, < 2)
|
69
69
|
minitest (>= 5.1)
|
@@ -73,13 +73,13 @@ GEM
|
|
73
73
|
builder (3.2.4)
|
74
74
|
byebug (11.1.3)
|
75
75
|
coderay (1.1.3)
|
76
|
-
concurrent-ruby (1.1.
|
76
|
+
concurrent-ruby (1.1.9)
|
77
77
|
crass (1.0.6)
|
78
78
|
diff-lcs (1.4.4)
|
79
79
|
erubi (1.10.0)
|
80
80
|
globalid (0.4.2)
|
81
81
|
activesupport (>= 4.2.0)
|
82
|
-
i18n (1.8.
|
82
|
+
i18n (1.8.10)
|
83
83
|
concurrent-ruby (~> 1.0)
|
84
84
|
lograge (0.11.2)
|
85
85
|
actionpack (>= 4)
|
@@ -89,24 +89,20 @@ GEM
|
|
89
89
|
logstash-event (1.2.02)
|
90
90
|
logstash-logger (0.26.1)
|
91
91
|
logstash-event (~> 1.2)
|
92
|
-
loofah (2.
|
92
|
+
loofah (2.10.0)
|
93
93
|
crass (~> 1.0.2)
|
94
94
|
nokogiri (>= 1.5.9)
|
95
95
|
mail (2.7.1)
|
96
96
|
mini_mime (>= 0.1.1)
|
97
|
-
marcel (0.
|
98
|
-
mimemagic (~> 0.3.2)
|
97
|
+
marcel (1.0.1)
|
99
98
|
method_source (1.0.0)
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
nio4r (2.5.4)
|
105
|
-
nokogiri (1.11.1)
|
106
|
-
mini_portile2 (~> 2.5.0)
|
99
|
+
mini_mime (1.0.3)
|
100
|
+
minitest (5.14.4)
|
101
|
+
nio4r (2.5.7)
|
102
|
+
nokogiri (1.11.7-x86_64-linux)
|
107
103
|
racc (~> 1.4)
|
108
104
|
parallel (1.20.1)
|
109
|
-
parser (3.0.
|
105
|
+
parser (3.0.1.1)
|
110
106
|
ast (~> 2.4.1)
|
111
107
|
pry (0.13.1)
|
112
108
|
coderay (~> 1.1)
|
@@ -118,38 +114,38 @@ GEM
|
|
118
114
|
rack (2.2.3)
|
119
115
|
rack-test (1.1.0)
|
120
116
|
rack (>= 1.0, < 3)
|
121
|
-
rails (6.1.
|
122
|
-
actioncable (= 6.1.
|
123
|
-
actionmailbox (= 6.1.
|
124
|
-
actionmailer (= 6.1.
|
125
|
-
actionpack (= 6.1.
|
126
|
-
actiontext (= 6.1.
|
127
|
-
actionview (= 6.1.
|
128
|
-
activejob (= 6.1.
|
129
|
-
activemodel (= 6.1.
|
130
|
-
activerecord (= 6.1.
|
131
|
-
activestorage (= 6.1.
|
132
|
-
activesupport (= 6.1.
|
117
|
+
rails (6.1.3.2)
|
118
|
+
actioncable (= 6.1.3.2)
|
119
|
+
actionmailbox (= 6.1.3.2)
|
120
|
+
actionmailer (= 6.1.3.2)
|
121
|
+
actionpack (= 6.1.3.2)
|
122
|
+
actiontext (= 6.1.3.2)
|
123
|
+
actionview (= 6.1.3.2)
|
124
|
+
activejob (= 6.1.3.2)
|
125
|
+
activemodel (= 6.1.3.2)
|
126
|
+
activerecord (= 6.1.3.2)
|
127
|
+
activestorage (= 6.1.3.2)
|
128
|
+
activesupport (= 6.1.3.2)
|
133
129
|
bundler (>= 1.15.0)
|
134
|
-
railties (= 6.1.
|
130
|
+
railties (= 6.1.3.2)
|
135
131
|
sprockets-rails (>= 2.0.0)
|
136
132
|
rails-dom-testing (2.0.3)
|
137
133
|
activesupport (>= 4.2.0)
|
138
134
|
nokogiri (>= 1.6)
|
139
135
|
rails-html-sanitizer (1.3.0)
|
140
136
|
loofah (~> 2.3)
|
141
|
-
railties (6.1.
|
142
|
-
actionpack (= 6.1.
|
143
|
-
activesupport (= 6.1.
|
137
|
+
railties (6.1.3.2)
|
138
|
+
actionpack (= 6.1.3.2)
|
139
|
+
activesupport (= 6.1.3.2)
|
144
140
|
method_source
|
145
141
|
rake (>= 0.8.7)
|
146
142
|
thor (~> 1.0)
|
147
143
|
rainbow (3.0.0)
|
148
144
|
rake (13.0.3)
|
149
|
-
regexp_parser (2.
|
145
|
+
regexp_parser (2.1.1)
|
150
146
|
request_store (1.5.0)
|
151
147
|
rack (>= 1.4)
|
152
|
-
rexml (3.2.
|
148
|
+
rexml (3.2.5)
|
153
149
|
rspec-core (3.10.1)
|
154
150
|
rspec-support (~> 3.10.0)
|
155
151
|
rspec-expectations (3.10.1)
|
@@ -158,26 +154,26 @@ GEM
|
|
158
154
|
rspec-mocks (3.10.2)
|
159
155
|
diff-lcs (>= 1.2.0, < 2.0)
|
160
156
|
rspec-support (~> 3.10.0)
|
161
|
-
rspec-rails (
|
162
|
-
actionpack (>=
|
163
|
-
activesupport (>=
|
164
|
-
railties (>=
|
157
|
+
rspec-rails (5.0.1)
|
158
|
+
actionpack (>= 5.2)
|
159
|
+
activesupport (>= 5.2)
|
160
|
+
railties (>= 5.2)
|
165
161
|
rspec-core (~> 3.10)
|
166
162
|
rspec-expectations (~> 3.10)
|
167
163
|
rspec-mocks (~> 3.10)
|
168
164
|
rspec-support (~> 3.10)
|
169
165
|
rspec-support (3.10.2)
|
170
|
-
rubocop (1.
|
166
|
+
rubocop (1.17.0)
|
171
167
|
parallel (~> 1.10)
|
172
168
|
parser (>= 3.0.0.0)
|
173
169
|
rainbow (>= 2.2.2, < 4.0)
|
174
170
|
regexp_parser (>= 1.8, < 3.0)
|
175
171
|
rexml
|
176
|
-
rubocop-ast (>= 1.
|
172
|
+
rubocop-ast (>= 1.7.0, < 2.0)
|
177
173
|
ruby-progressbar (~> 1.7)
|
178
174
|
unicode-display_width (>= 1.4.0, < 3.0)
|
179
|
-
rubocop-ast (1.
|
180
|
-
parser (>=
|
175
|
+
rubocop-ast (1.7.0)
|
176
|
+
parser (>= 3.0.1.1)
|
181
177
|
ruby-progressbar (1.11.0)
|
182
178
|
shoulda-matchers (4.5.1)
|
183
179
|
activesupport (>= 4.2.0)
|
@@ -193,13 +189,13 @@ GEM
|
|
193
189
|
tzinfo (2.0.4)
|
194
190
|
concurrent-ruby (~> 1.0)
|
195
191
|
unicode-display_width (2.0.0)
|
196
|
-
websocket-driver (0.7.
|
192
|
+
websocket-driver (0.7.5)
|
197
193
|
websocket-extensions (>= 0.1.0)
|
198
194
|
websocket-extensions (0.1.5)
|
199
195
|
zeitwerk (2.4.2)
|
200
196
|
|
201
197
|
PLATFORMS
|
202
|
-
|
198
|
+
x86_64-linux
|
203
199
|
|
204
200
|
DEPENDENCIES
|
205
201
|
log_toolbox!
|
data/README.md
CHANGED
@@ -22,6 +22,19 @@ $ gem install log_toolbox
|
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
|
+
Add this lines in your locale file `config/locales/*.yml`
|
26
|
+
|
27
|
+
```yml
|
28
|
+
en: # :pt-BR
|
29
|
+
time:
|
30
|
+
formats:
|
31
|
+
timestamp: '%Y-%m-%d %H:%M:%S %z'
|
32
|
+
time: '%H:%M:%S %z'
|
33
|
+
date:
|
34
|
+
formats:
|
35
|
+
short: '%Y-%m-%d'
|
36
|
+
```
|
37
|
+
|
25
38
|
Add this line at the end of your 'config/application.rb'
|
26
39
|
|
27
40
|
```ruby
|
@@ -98,6 +111,26 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
98
111
|
|
99
112
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
100
113
|
|
114
|
+
## Local Test
|
115
|
+
|
116
|
+
Get the current rubocop file
|
117
|
+
|
118
|
+
```bash
|
119
|
+
git archive --remote=git@bitbucket.org:guideinvestimentos/rails_defaults.git HEAD .rubocop.yml | tar -x
|
120
|
+
```
|
121
|
+
|
122
|
+
Build image
|
123
|
+
|
124
|
+
```bash
|
125
|
+
docker build . -t toolbox-test
|
126
|
+
```
|
127
|
+
|
128
|
+
Run test
|
129
|
+
|
130
|
+
```bash
|
131
|
+
docker run --rm -it -v "$(pwd):/log_toolbox" toolbox-test /bin/bash -c "sh test.sh"
|
132
|
+
```
|
133
|
+
|
101
134
|
## Contributing
|
102
135
|
|
103
136
|
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/log_toolbox.
|
data/bitbucket-pipelines.yml
CHANGED
data/lib/log_toolbox/version.rb
CHANGED
data/log_toolbox.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.authors = ['Caio Almeida']
|
11
11
|
spec.email = ['cbalmeida@guide.com.br']
|
12
12
|
|
13
|
-
spec.required_ruby_version = '
|
13
|
+
spec.required_ruby_version = '>= 2.5'
|
14
14
|
spec.summary = 'Guide default gem for ruby application logging'
|
15
15
|
spec.homepage = 'http://bitbucket.org/guideinvestimentos/log_toolbox'
|
16
16
|
spec.license = 'Guide'
|
data/test.sh
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: log_toolbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Caio Almeida
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lograge
|
@@ -76,6 +76,7 @@ files:
|
|
76
76
|
- ".gitignore"
|
77
77
|
- ".rspec"
|
78
78
|
- CHANGELOG.md
|
79
|
+
- Dockerfile
|
79
80
|
- Gemfile
|
80
81
|
- Gemfile.lock
|
81
82
|
- LICENSE.txt
|
@@ -95,6 +96,7 @@ files:
|
|
95
96
|
- lib/log_toolbox/lograge_config.rb
|
96
97
|
- lib/log_toolbox/version.rb
|
97
98
|
- log_toolbox.gemspec
|
99
|
+
- test.sh
|
98
100
|
homepage: http://bitbucket.org/guideinvestimentos/log_toolbox
|
99
101
|
licenses:
|
100
102
|
- Guide
|
@@ -105,16 +107,16 @@ require_paths:
|
|
105
107
|
- lib
|
106
108
|
required_ruby_version: !ruby/object:Gem::Requirement
|
107
109
|
requirements:
|
108
|
-
- - "
|
110
|
+
- - ">="
|
109
111
|
- !ruby/object:Gem::Version
|
110
|
-
version: 2.5
|
112
|
+
version: '2.5'
|
111
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
114
|
requirements:
|
113
115
|
- - ">="
|
114
116
|
- !ruby/object:Gem::Version
|
115
117
|
version: '0'
|
116
118
|
requirements: []
|
117
|
-
rubygems_version: 3.
|
119
|
+
rubygems_version: 3.1.6
|
118
120
|
signing_key:
|
119
121
|
specification_version: 4
|
120
122
|
summary: Guide default gem for ruby application logging
|