log_toolbox 1.3.6 → 1.3.11

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
  SHA256:
3
- metadata.gz: 28a9c385547959933a5c5fdb1d3ee5599c915f74a1a3ad6355dd8409a3bc20c7
4
- data.tar.gz: e5ba4e9d8a3a01b7a036589d29e0cc6df79eb6f527f8816b80491d019f96d41c
3
+ metadata.gz: cfd013e4caea03ee27b63de2968e8b06dcecf156ec6529fe7c6da9bce3516ac4
4
+ data.tar.gz: '052166091d1bb95524b187c8cb01d3142825af0df11b03c541267b3691f1bc3d'
5
5
  SHA512:
6
- metadata.gz: b9816f33487576697c9c6dd8581ad0ed8ecc098ad5bd5250bf750319bfce571a17c700a0c81514af1d64742ab8facd28fd6d9991f941951b962447c5ddb3afa8
7
- data.tar.gz: 899d9b23415f164ad5daa3315fb39a75287f5336a6f684493753d0c8400182b77afa0caaf9525c9057d7d116915b4efcd507bc3377c6b96ca02de54de9fa7f98
6
+ metadata.gz: 69f983251fdef6daf57b87bfcc0dff754939d563300bca0badecd08d2c60f69a9b4f517dd280cefaca553fdf145e869f977bb09577b79ffba0b85b3f821a68a9
7
+ data.tar.gz: d23ebbce72a62b08c33ca4e15f248532055325d3f141a7ecf40d79413b9103ea13054bba14ee7c1d2da0b2002ebc7714f481d9de2f1da136fe789444c449bde0
data/.gitignore CHANGED
@@ -12,3 +12,5 @@
12
12
  spec/dummy/log/*
13
13
  spec/dummy/db/*.sqlite3
14
14
  spec/dummy/tmp/*
15
+
16
+ .rubocop*.yml
data/CHANGELOG.md CHANGED
@@ -4,9 +4,33 @@ 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
- ## [Released] - 2019-05-21
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
8
13
 
9
- ## [1.3.6] - 2020-12-04
14
+ ## [1.3.10] - 2021-01-20
15
+ ### CHANGED
16
+ - Update gems
17
+ - Update gemspec
18
+ - Update pipeline
19
+ - Simplify some tests
20
+
21
+ ## [1.3.9] - 2021-01-15
22
+ ### FIXED
23
+ - Fixed service_name custom option.
24
+
25
+ ## [1.3.8] - 2020-12-10
26
+ ### FIXED
27
+ - Fixed LogStash configs
28
+
29
+ ## [1.3.7] - 2020-12-08
30
+ ### Added
31
+ - Configure log output stdout to development and test environment
32
+
33
+ ## [1.3.6] - 2020-12-08
10
34
  ### FIXED
11
35
  - Added buffer_max_items and buffer_max_interval into LogStash config
12
36
 
data/Dockerfile ADDED
@@ -0,0 +1,10 @@
1
+ FROM ruby:2.7.3
2
+
3
+ WORKDIR /log_toolbox
4
+
5
+ COPY . .
6
+
7
+ RUN gem install bundler -v $(cat Gemfile.lock | awk '/BUNDLED WITH/{ getline;print; }')
8
+ RUN bundle install
9
+
10
+ RUN chmod +x test.sh
data/Gemfile CHANGED
@@ -2,4 +2,10 @@ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in log_toolbox.gemspec
4
4
  gemspec
5
+
6
+ gem 'pry-byebug'
7
+ gem 'rake'
8
+ gem 'rspec-rails'
9
+ gem 'rubocop'
10
+ gem 'shoulda-matchers'
5
11
  gem 'sqlite3'
data/Gemfile.lock CHANGED
@@ -1,72 +1,86 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- log_toolbox (1.3.5)
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)
8
- rails (>= 4.0)
9
- rspec (>= 3.0.0)
10
- rspec-rails
8
+ rails (>= 5.0)
11
9
 
12
10
  GEM
13
11
  remote: https://rubygems.org/
14
12
  specs:
15
- actioncable (5.2.3)
16
- actionpack (= 5.2.3)
13
+ actioncable (6.1.3.2)
14
+ actionpack (= 6.1.3.2)
15
+ activesupport (= 6.1.3.2)
17
16
  nio4r (~> 2.0)
18
17
  websocket-driver (>= 0.6.1)
19
- actionmailer (5.2.3)
20
- actionpack (= 5.2.3)
21
- actionview (= 5.2.3)
22
- activejob (= 5.2.3)
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
+ mail (>= 2.7.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)
23
30
  mail (~> 2.5, >= 2.5.4)
24
31
  rails-dom-testing (~> 2.0)
25
- actionpack (5.2.3)
26
- actionview (= 5.2.3)
27
- activesupport (= 5.2.3)
28
- rack (~> 2.0)
32
+ actionpack (6.1.3.2)
33
+ actionview (= 6.1.3.2)
34
+ activesupport (= 6.1.3.2)
35
+ rack (~> 2.0, >= 2.0.9)
29
36
  rack-test (>= 0.6.3)
30
37
  rails-dom-testing (~> 2.0)
31
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
32
- actionview (5.2.3)
33
- activesupport (= 5.2.3)
38
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
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
+ nokogiri (>= 1.8.5)
45
+ actionview (6.1.3.2)
46
+ activesupport (= 6.1.3.2)
34
47
  builder (~> 3.1)
35
48
  erubi (~> 1.4)
36
49
  rails-dom-testing (~> 2.0)
37
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
38
- activejob (5.2.3)
39
- activesupport (= 5.2.3)
50
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
51
+ activejob (6.1.3.2)
52
+ activesupport (= 6.1.3.2)
40
53
  globalid (>= 0.3.6)
41
- activemodel (5.2.3)
42
- activesupport (= 5.2.3)
43
- activerecord (5.2.3)
44
- activemodel (= 5.2.3)
45
- activesupport (= 5.2.3)
46
- arel (>= 9.0)
47
- activestorage (5.2.3)
48
- actionpack (= 5.2.3)
49
- activerecord (= 5.2.3)
50
- marcel (~> 0.3.1)
51
- activesupport (5.2.3)
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)
52
67
  concurrent-ruby (~> 1.0, >= 1.0.2)
53
- i18n (>= 0.7, < 2)
54
- minitest (~> 5.1)
55
- tzinfo (~> 1.1)
56
- arel (9.0.0)
57
- ast (2.4.0)
58
- builder (3.2.3)
59
- byebug (11.0.1)
60
- coderay (1.1.2)
61
- concurrent-ruby (1.1.5)
62
- crass (1.0.4)
63
- diff-lcs (1.3)
64
- erubi (1.8.0)
68
+ i18n (>= 1.6, < 2)
69
+ minitest (>= 5.1)
70
+ tzinfo (~> 2.0)
71
+ zeitwerk (~> 2.3)
72
+ ast (2.4.2)
73
+ builder (3.2.4)
74
+ byebug (11.1.3)
75
+ coderay (1.1.3)
76
+ concurrent-ruby (1.1.9)
77
+ crass (1.0.6)
78
+ diff-lcs (1.4.4)
79
+ erubi (1.10.0)
65
80
  globalid (0.4.2)
66
81
  activesupport (>= 4.2.0)
67
- i18n (1.6.0)
82
+ i18n (1.8.10)
68
83
  concurrent-ruby (~> 1.0)
69
- jaro_winkler (1.5.2)
70
84
  lograge (0.11.2)
71
85
  actionpack (>= 4)
72
86
  activesupport (>= 4)
@@ -75,92 +89,94 @@ GEM
75
89
  logstash-event (1.2.02)
76
90
  logstash-logger (0.26.1)
77
91
  logstash-event (~> 1.2)
78
- loofah (2.2.3)
92
+ loofah (2.10.0)
79
93
  crass (~> 1.0.2)
80
94
  nokogiri (>= 1.5.9)
81
95
  mail (2.7.1)
82
96
  mini_mime (>= 0.1.1)
83
- marcel (0.3.3)
84
- mimemagic (~> 0.3.2)
85
- method_source (0.9.2)
86
- mimemagic (0.3.5)
87
- mini_mime (1.0.2)
88
- mini_portile2 (2.4.0)
89
- minitest (5.11.3)
90
- nio4r (2.5.4)
91
- nokogiri (1.10.3)
92
- mini_portile2 (~> 2.4.0)
93
- parallel (1.17.0)
94
- parser (2.6.3.0)
95
- ast (~> 2.4.0)
96
- pry (0.12.2)
97
- coderay (~> 1.1.0)
98
- method_source (~> 0.9.0)
99
- pry-byebug (3.7.0)
97
+ marcel (1.0.1)
98
+ method_source (1.0.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)
103
+ racc (~> 1.4)
104
+ parallel (1.20.1)
105
+ parser (3.0.1.1)
106
+ ast (~> 2.4.1)
107
+ pry (0.13.1)
108
+ coderay (~> 1.1)
109
+ method_source (~> 1.0)
110
+ pry-byebug (3.9.0)
100
111
  byebug (~> 11.0)
101
- pry (~> 0.10)
102
- rack (2.0.7)
112
+ pry (~> 0.13.0)
113
+ racc (1.5.2)
114
+ rack (2.2.3)
103
115
  rack-test (1.1.0)
104
116
  rack (>= 1.0, < 3)
105
- rails (5.2.3)
106
- actioncable (= 5.2.3)
107
- actionmailer (= 5.2.3)
108
- actionpack (= 5.2.3)
109
- actionview (= 5.2.3)
110
- activejob (= 5.2.3)
111
- activemodel (= 5.2.3)
112
- activerecord (= 5.2.3)
113
- activestorage (= 5.2.3)
114
- activesupport (= 5.2.3)
115
- bundler (>= 1.3.0)
116
- railties (= 5.2.3)
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)
129
+ bundler (>= 1.15.0)
130
+ railties (= 6.1.3.2)
117
131
  sprockets-rails (>= 2.0.0)
118
132
  rails-dom-testing (2.0.3)
119
133
  activesupport (>= 4.2.0)
120
134
  nokogiri (>= 1.6)
121
- rails-html-sanitizer (1.0.4)
122
- loofah (~> 2.2, >= 2.2.2)
123
- railties (5.2.3)
124
- actionpack (= 5.2.3)
125
- activesupport (= 5.2.3)
135
+ rails-html-sanitizer (1.3.0)
136
+ loofah (~> 2.3)
137
+ railties (6.1.3.2)
138
+ actionpack (= 6.1.3.2)
139
+ activesupport (= 6.1.3.2)
126
140
  method_source
127
141
  rake (>= 0.8.7)
128
- thor (>= 0.19.0, < 2.0)
142
+ thor (~> 1.0)
129
143
  rainbow (3.0.0)
130
- rake (12.3.2)
144
+ rake (13.0.3)
145
+ regexp_parser (2.1.1)
131
146
  request_store (1.5.0)
132
147
  rack (>= 1.4)
133
- rspec (3.8.0)
134
- rspec-core (~> 3.8.0)
135
- rspec-expectations (~> 3.8.0)
136
- rspec-mocks (~> 3.8.0)
137
- rspec-core (3.8.2)
138
- rspec-support (~> 3.8.0)
139
- rspec-expectations (3.8.4)
148
+ rexml (3.2.5)
149
+ rspec-core (3.10.1)
150
+ rspec-support (~> 3.10.0)
151
+ rspec-expectations (3.10.1)
140
152
  diff-lcs (>= 1.2.0, < 2.0)
141
- rspec-support (~> 3.8.0)
142
- rspec-mocks (3.8.1)
153
+ rspec-support (~> 3.10.0)
154
+ rspec-mocks (3.10.2)
143
155
  diff-lcs (>= 1.2.0, < 2.0)
144
- rspec-support (~> 3.8.0)
145
- rspec-rails (3.8.2)
146
- actionpack (>= 3.0)
147
- activesupport (>= 3.0)
148
- railties (>= 3.0)
149
- rspec-core (~> 3.8.0)
150
- rspec-expectations (~> 3.8.0)
151
- rspec-mocks (~> 3.8.0)
152
- rspec-support (~> 3.8.0)
153
- rspec-support (3.8.2)
154
- rubocop (0.71.0)
155
- jaro_winkler (~> 1.5.1)
156
+ rspec-support (~> 3.10.0)
157
+ rspec-rails (5.0.1)
158
+ actionpack (>= 5.2)
159
+ activesupport (>= 5.2)
160
+ railties (>= 5.2)
161
+ rspec-core (~> 3.10)
162
+ rspec-expectations (~> 3.10)
163
+ rspec-mocks (~> 3.10)
164
+ rspec-support (~> 3.10)
165
+ rspec-support (3.10.2)
166
+ rubocop (1.17.0)
156
167
  parallel (~> 1.10)
157
- parser (>= 2.6)
168
+ parser (>= 3.0.0.0)
158
169
  rainbow (>= 2.2.2, < 4.0)
170
+ regexp_parser (>= 1.8, < 3.0)
171
+ rexml
172
+ rubocop-ast (>= 1.7.0, < 2.0)
159
173
  ruby-progressbar (~> 1.7)
160
- unicode-display_width (>= 1.4.0, < 1.7)
161
- ruby-progressbar (1.10.1)
162
- shoulda-matchers (3.1.3)
163
- activesupport (>= 4.0.0)
174
+ unicode-display_width (>= 1.4.0, < 3.0)
175
+ rubocop-ast (1.7.0)
176
+ parser (>= 3.0.1.1)
177
+ ruby-progressbar (1.11.0)
178
+ shoulda-matchers (4.5.1)
179
+ activesupport (>= 4.2.0)
164
180
  sprockets (4.0.2)
165
181
  concurrent-ruby (~> 1.0)
166
182
  rack (> 1, < 3)
@@ -168,29 +184,27 @@ GEM
168
184
  actionpack (>= 4.0)
169
185
  activesupport (>= 4.0)
170
186
  sprockets (>= 3.0.0)
171
- sqlite3 (1.4.1)
172
- thor (0.20.3)
173
- thread_safe (0.3.6)
174
- tzinfo (1.2.5)
175
- thread_safe (~> 0.1)
176
- unicode-display_width (1.6.0)
177
- websocket-driver (0.7.3)
187
+ sqlite3 (1.4.2)
188
+ thor (1.1.0)
189
+ tzinfo (2.0.4)
190
+ concurrent-ruby (~> 1.0)
191
+ unicode-display_width (2.0.0)
192
+ websocket-driver (0.7.5)
178
193
  websocket-extensions (>= 0.1.0)
179
194
  websocket-extensions (0.1.5)
195
+ zeitwerk (2.4.2)
180
196
 
181
197
  PLATFORMS
182
- ruby
198
+ x86_64-linux
183
199
 
184
200
  DEPENDENCIES
185
- bundler
186
201
  log_toolbox!
187
- pry
188
202
  pry-byebug
189
203
  rake
190
204
  rspec-rails
191
205
  rubocop
192
- shoulda-matchers (~> 3.1)
206
+ shoulda-matchers
193
207
  sqlite3
194
208
 
195
209
  BUNDLED WITH
196
- 2.0.1
210
+ 2.2.3
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.
@@ -1,15 +1,14 @@
1
- image: ruby:2.6.3
1
+ image: ruby:2.7.3
2
2
 
3
3
  pipelines:
4
4
  default:
5
5
  - step:
6
6
  script:
7
- - git archive --remote=git@bitbucket.org:guideinvestimentos/rails_defaults.git HEAD .rubocop.yml | tar -x
8
- - gem update bundler
7
+ - wget -O .rubocop.yml $RUBOCOP_CONFIG_URL
8
+ - gem install bundler -v $(cat Gemfile.lock | awk '/BUNDLED WITH/{ getline;print; }')
9
9
  - bundle install
10
- - gem install rubocop
11
- - bundle exec rspec -fdoc
12
- - rubocop .
10
+ - rspec .
11
+ - rubocop -p .
13
12
 
14
13
  branches:
15
14
  master:
@@ -3,11 +3,15 @@
3
3
  module LogToolbox
4
4
  class LogUtil
5
5
  def self.system_version
6
- File.read('.version').delete!("\n")
6
+ Rails.root.join('.version').read.strip
7
7
  end
8
8
 
9
9
  def self.system_service_name
10
- Rails.application.class.parent_name.underscore
10
+ app_module.deconstantize.underscore
11
+ end
12
+
13
+ def self.app_module
14
+ Rails.app_class.name
11
15
  end
12
16
  end
13
17
  end
@@ -10,14 +10,14 @@ module LogToolbox
10
10
  LOGSTASH_URL = ENV['LOGSTASH_URL']
11
11
  LOGSTASH_PORT = ENV['LOGSTASH_PORT']
12
12
  LOGSTASH_PROTOCOL = ENV.fetch('LOGSTASH_PROTOCOL', 'udp')
13
- LOGSTASH_BUFFER_MAX_ITEMS = ENV['LOGSTASH_BUFFER_MAX_ITEMS'].to_i
14
- LOGSTASH_BUFFER_MAX_INTERVAL = ENV['LOGSTASH_BUFFER_MAX_INTERVAL'].to_i
13
+ LOGSTASH_BUFFER_MAX_ITEMS = ENV.fetch('LOGSTASH_BUFFER_MAX_ITEMS', 50).to_i
14
+ LOGSTASH_BUFFER_MAX_INTERVAL = ENV.fetch('LOGSTASH_BUFFER_MAX_INTERVAL', 5).to_i
15
15
 
16
16
  def self.configure
17
17
  Rails.application.configure do
18
18
  log_config = LogToolbox::LogrageConfig.new(config)
19
19
  log_config.configure_log_format
20
- if ENV['RAILS_ENV'] == 'development'
20
+ if %w[development test].include?(ENV['RAILS_ENV'])
21
21
  log_config.configure_log_output_stdout
22
22
  else
23
23
  log_config.configure_log_output_logstash
@@ -30,12 +30,11 @@ module LogToolbox
30
30
  end
31
31
 
32
32
  def configure_log_output_logstash
33
- config.logger = LogStashLogger.new(type: LOGSTASH_PROTOCOL,
34
- host: LOGSTASH_URL,
35
- port: LOGSTASH_PORT)
36
-
37
- config.logstash.buffer_max_items = LOGSTASH_BUFFER_MAX_ITEMS || 50
38
- config.logstash.buffer_max_interval = LOGSTASH_BUFFER_MAX_INTERVAL || 5
33
+ config.logstash.type = LOGSTASH_PROTOCOL
34
+ config.logstash.host = LOGSTASH_URL
35
+ config.logstash.port = LOGSTASH_PORT
36
+ config.logstash.buffer_max_items = LOGSTASH_BUFFER_MAX_ITEMS
37
+ config.logstash.buffer_max_interval = LOGSTASH_BUFFER_MAX_INTERVAL
39
38
  end
40
39
 
41
40
  def configure_log_output_stdout
@@ -57,7 +56,7 @@ module LogToolbox
57
56
  event_at: event.payload[:event_at],
58
57
  parameters: event.payload[:params].to_json,
59
58
  level: 'INFO',
60
- service_name: event.payload[:service_name],
59
+ service_name: event.payload[:service_name] || LogUtil.system_service_name,
61
60
  version: event.payload[:version],
62
61
  origin_ipv4: event.payload[:origin_ipv4],
63
62
  destination_ipv4: event.payload[:destination_ipv4],
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LogToolbox
4
- VERSION = '1.3.6'
4
+ VERSION = '1.3.11'
5
5
  end
data/log_toolbox.gemspec CHANGED
@@ -4,14 +4,13 @@ lib = File.expand_path('lib', __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require 'log_toolbox/version'
6
6
 
7
- # rubocop:disable Metrics/BlockLength
8
7
  Gem::Specification.new do |spec|
9
8
  spec.name = 'log_toolbox'
10
9
  spec.version = LogToolbox::VERSION
11
10
  spec.authors = ['Caio Almeida']
12
11
  spec.email = ['cbalmeida@guide.com.br']
13
12
 
14
- spec.required_ruby_version = '>= 2.5.0'
13
+ spec.required_ruby_version = '>= 2.5'
15
14
  spec.summary = 'Guide default gem for ruby application logging'
16
15
  spec.homepage = 'http://bitbucket.org/guideinvestimentos/log_toolbox'
17
16
  spec.license = 'Guide'
@@ -26,16 +25,5 @@ Gem::Specification.new do |spec|
26
25
  spec.add_dependency 'lograge', '>= 0.11.1'
27
26
  spec.add_dependency 'logstash-event', '>= 1.2.02'
28
27
  spec.add_dependency 'logstash-logger', '>= 0.26.1'
29
- spec.add_dependency 'rails', ['>= 4.0']
30
- spec.add_dependency 'rspec', '>= 3.0.0'
31
- spec.add_dependency 'rspec-rails'
32
-
33
- spec.add_development_dependency 'bundler'
34
- spec.add_development_dependency 'pry'
35
- spec.add_development_dependency 'pry-byebug'
36
- spec.add_development_dependency 'rake'
37
- spec.add_development_dependency 'rspec-rails'
38
- spec.add_development_dependency 'rubocop'
39
- spec.add_development_dependency 'shoulda-matchers', '~> 3.1'
28
+ spec.add_dependency 'rails', '>= 5.0'
40
29
  end
41
- # rubocop:enable Metrics/BlockLength
data/test.sh ADDED
@@ -0,0 +1,2 @@
1
+ rubocop -p .
2
+ rspec .
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.6
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: 2020-12-08 00:00:00.000000000 Z
11
+ date: 2021-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lograge
@@ -58,140 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '4.0'
61
+ version: '5.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '4.0'
69
- - !ruby/object:Gem::Dependency
70
- name: rspec
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: 3.0.0
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: 3.0.0
83
- - !ruby/object:Gem::Dependency
84
- name: rspec-rails
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: bundler
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: pry
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: pry-byebug
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: rake
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: rspec-rails
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: '0'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: '0'
167
- - !ruby/object:Gem::Dependency
168
- name: rubocop
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - ">="
172
- - !ruby/object:Gem::Version
173
- version: '0'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - ">="
179
- - !ruby/object:Gem::Version
180
- version: '0'
181
- - !ruby/object:Gem::Dependency
182
- name: shoulda-matchers
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - "~>"
186
- - !ruby/object:Gem::Version
187
- version: '3.1'
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - "~>"
193
- - !ruby/object:Gem::Version
194
- version: '3.1'
68
+ version: '5.0'
195
69
  description:
196
70
  email:
197
71
  - cbalmeida@guide.com.br
@@ -201,8 +75,8 @@ extra_rdoc_files: []
201
75
  files:
202
76
  - ".gitignore"
203
77
  - ".rspec"
204
- - ".travis.yml"
205
78
  - CHANGELOG.md
79
+ - Dockerfile
206
80
  - Gemfile
207
81
  - Gemfile.lock
208
82
  - LICENSE.txt
@@ -222,6 +96,7 @@ files:
222
96
  - lib/log_toolbox/lograge_config.rb
223
97
  - lib/log_toolbox/version.rb
224
98
  - log_toolbox.gemspec
99
+ - test.sh
225
100
  homepage: http://bitbucket.org/guideinvestimentos/log_toolbox
226
101
  licenses:
227
102
  - Guide
@@ -234,14 +109,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
234
109
  requirements:
235
110
  - - ">="
236
111
  - !ruby/object:Gem::Version
237
- version: 2.5.0
112
+ version: '2.5'
238
113
  required_rubygems_version: !ruby/object:Gem::Requirement
239
114
  requirements:
240
115
  - - ">="
241
116
  - !ruby/object:Gem::Version
242
117
  version: '0'
243
118
  requirements: []
244
- rubygems_version: 3.0.3
119
+ rubygems_version: 3.1.6
245
120
  signing_key:
246
121
  specification_version: 4
247
122
  summary: Guide default gem for ruby application logging
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.5.0
7
- before_install: gem install bundler -v 2.0.1