lex-log 0.1.3 → 0.1.4

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: fadec20fe2c404c9dfc861c2386f9171acc49f0aacfa751fb386f7b7e11ee016
4
- data.tar.gz: 8390ea506bea502b07fc7c56fd2ed534781055c500a8ce17075c1f7c5ff4c9f3
3
+ metadata.gz: 3470da7f75d3c1e8ac25834b177641c2fa32d1b0a3be87a294f71afadd9a599e
4
+ data.tar.gz: 50b4413b1a97c2aca9e6bcf8248c06add60a778c64733c15b5cdf9a8519c5f47
5
5
  SHA512:
6
- metadata.gz: 1478ff7ae28d75cb7441f67473d7392198ea509960effc02f912c14597e7993bd8993266a95e365299efe1fdc28647f4416d7944814b56b46afb230abf56aea5
7
- data.tar.gz: 940d885b68ac0587149642d7630007b92ea56d1b1c1ede084c3e8791bfbe233a516cc9a9008f7bf2e4fa0113575937a25c26475b906b9269966af9fc508226f2
6
+ metadata.gz: 7b8403638f01d8713a661ccc22fd335113e72ea482d9294096700b99ab8dc094eb3c8739b352812f76dd6016ae7c075d663b14d887f533c92872d46422a169f7
7
+ data.tar.gz: 29c49ff7b93b408e3503e369d83f6083c7e9c495f691bcce094d08bc73070cb2d4e5283b954d4249414654bb9cb7142f00279120537728c4c657ae503aab4c85
@@ -0,0 +1,69 @@
1
+ name: RSpec
2
+ on: [push, pull_request]
3
+
4
+ jobs:
5
+ rspec:
6
+ strategy:
7
+ fail-fast: false
8
+ matrix:
9
+ os: [ubuntu-latest]
10
+ ruby: [2.7]
11
+ runs-on: ${{ matrix.os }}
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - uses: ruby/setup-ruby@v1
15
+ with:
16
+ ruby-version: ${{ matrix.ruby }}
17
+ bundler-cache: true
18
+ - name: RSpec run
19
+ run: |
20
+ bash -c "
21
+ bundle exec rspec
22
+ [[ $? -ne 2 ]]
23
+ "
24
+ rspec-mri:
25
+ needs: rspec
26
+ strategy:
27
+ fail-fast: false
28
+ matrix:
29
+ os: [ ubuntu-latest ]
30
+ ruby: [2.5, 2.6, '3.0', head]
31
+ runs-on: ${{ matrix.os }}
32
+ steps:
33
+ - uses: actions/checkout@v2
34
+ - uses: ruby/setup-ruby@v1
35
+ with:
36
+ ruby-version: ${{ matrix.ruby }}
37
+ bundler-cache: true
38
+ - run: bundle exec rspec
39
+ rspec-jruby:
40
+ needs: rspec
41
+ strategy:
42
+ fail-fast: false
43
+ matrix:
44
+ os: [ ubuntu-latest ]
45
+ ruby: [ jruby, jruby-head]
46
+ runs-on: ${{ matrix.os }}
47
+ steps:
48
+ - uses: actions/checkout@v2
49
+ - uses: ruby/setup-ruby@v1
50
+ with:
51
+ ruby-version: ${{ matrix.ruby }}
52
+ bundler-cache: true
53
+ - run: JRUBY_OPTS="--debug" bundle exec rspec
54
+ rspec-truffleruby:
55
+ needs: rspec
56
+ strategy:
57
+ fail-fast: false
58
+ matrix:
59
+ os: [ ubuntu-latest ]
60
+ ruby: [truffleruby]
61
+ runs-on: ${{ matrix.os }}
62
+ steps:
63
+ - uses: actions/checkout@v2
64
+ - uses: ruby/setup-ruby@v1
65
+ with:
66
+ ruby-version: ${{ matrix.ruby }}
67
+ bundler-cache: true
68
+ - run: bundle exec rspec
69
+
@@ -0,0 +1,28 @@
1
+ name: Rubocop
2
+ on: [push, pull_request]
3
+ jobs:
4
+ rubocop:
5
+ strategy:
6
+ fail-fast: false
7
+ matrix:
8
+ os: [ubuntu-latest]
9
+ ruby: [2.7]
10
+ runs-on: ${{ matrix.os }}
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ - uses: ruby/setup-ruby@v1
14
+ with:
15
+ ruby-version: ${{ matrix.ruby }}
16
+ bundler-cache: true
17
+ - name: Install Rubocop
18
+ run: gem install rubocop code-scanning-rubocop
19
+ - name: Rubocop run --no-doc
20
+ run: |
21
+ bash -c "
22
+ rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
23
+ [[ $? -ne 2 ]]
24
+ "
25
+ - name: Upload Sarif output
26
+ uses: github/codeql-action/upload-sarif@v1
27
+ with:
28
+ sarif_file: rubocop.sarif
data/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
1
+ # LEX::Log
2
+
3
+ ## v0.1.4
4
+ Cleaning up things for github migration
data/Dockerfile CHANGED
@@ -1,10 +1,9 @@
1
- FROM ruby:2.7-alpine
1
+ FROM legionio/legion:latest
2
2
  LABEL maintainer="Matthew Iverson <matthewdiverson@gmail.com>"
3
3
 
4
4
  RUN mkdir /etc/legionio
5
5
  RUN apk update && apk add build-base tzdata gcc git
6
6
 
7
7
  COPY . ./
8
- RUN gem install legionio tzinfo-data tzinfo --no-document --no-prerelease
9
8
  RUN gem install lex-log --no-document --no-prerelease
10
- CMD legionio
9
+ CMD ruby --jit $(which legionio)
data/Gemfile CHANGED
@@ -1,5 +1,10 @@
1
- # frozen_string_literal: true
2
-
3
1
  source 'https://rubygems.org'
4
-
5
2
  gemspec
3
+
4
+ group :test do
5
+ gem 'rake'
6
+ gem 'rspec'
7
+ gem 'rspec_junit_formatter'
8
+ gem 'rubocop'
9
+ gem 'simplecov'
10
+ end
data/Gemfile.lock CHANGED
@@ -1,74 +1,74 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lex-log (0.1.2)
4
+ lex-log (0.1.4)
5
5
  legion-logging
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  amq-protocol (2.3.2)
11
- ast (2.4.1)
12
- aws-eventstream (1.1.0)
13
- aws-sigv4 (1.2.2)
11
+ ast (2.4.2)
12
+ aws-eventstream (1.1.1)
13
+ aws-sigv4 (1.2.3)
14
14
  aws-eventstream (~> 1, >= 1.0.2)
15
- bunny (2.17.0)
15
+ bunny (2.18.0)
16
16
  amq-protocol (~> 2.3, >= 2.3.1)
17
- concurrent-ruby (1.1.7)
18
- concurrent-ruby-ext (1.1.7)
19
- concurrent-ruby (= 1.1.7)
20
- connection_pool (2.2.3)
21
- daemons (1.3.1)
17
+ sorted_set (~> 1, >= 1.0.2)
18
+ concurrent-ruby (1.1.9)
19
+ concurrent-ruby-ext (1.1.9)
20
+ concurrent-ruby (= 1.1.9)
21
+ connection_pool (2.2.5)
22
+ daemons (1.4.0)
22
23
  dalli (2.7.11)
23
24
  diff-lcs (1.4.4)
24
- docile (1.3.5)
25
- json (2.5.1)
25
+ docile (1.4.0)
26
26
  json_pure (2.5.1)
27
- legion-cache (1.1.1)
27
+ legion-cache (1.2.0)
28
28
  connection_pool (>= 2.2.3)
29
29
  dalli (>= 2.7)
30
+ legion-logging
31
+ legion-settings
30
32
  redis (>= 4.2)
31
- legion-crypt (0.2.3)
32
- vault
33
- legion-exceptions (1.1.5)
34
- legion-json (1.1.4)
33
+ legion-crypt (1.2.0)
34
+ vault (>= 0.15.0)
35
+ legion-json (1.2.0)
35
36
  json_pure
36
- legion-exceptions (>= 1.1.5)
37
37
  multi_json
38
- legion-logging (1.1.4)
38
+ legion-logging (1.2.0)
39
39
  rainbow (~> 3)
40
- legion-settings (1.1.3)
41
- legion-json
42
- legion-logging
43
- legion-transport (1.1.8)
40
+ legion-settings (1.2.0)
41
+ legion-json (>= 1.2)
42
+ legion-transport (1.2.0)
44
43
  bunny (>= 2.17.0)
45
44
  concurrent-ruby (>= 1.1.7)
46
45
  legion-json
47
- legionio (0.4.0)
46
+ legion-settings
47
+ legionio (1.2.0)
48
48
  concurrent-ruby (>= 1.1.7)
49
49
  concurrent-ruby-ext (>= 1.1.7)
50
50
  daemons (>= 1.3.1)
51
- legion-cache
51
+ legion-cache (>= 0.2.0)
52
52
  legion-crypt (>= 0.2.0)
53
- legion-exceptions
54
- legion-json
55
- legion-logging
56
- legion-settings
57
- legion-transport (>= 1.1.8)
53
+ legion-json (>= 0.2.0)
54
+ legion-logging (>= 0.2.0)
55
+ legion-settings (>= 0.2.0)
56
+ legion-transport (>= 1.1.9)
58
57
  lex-node
59
58
  oj (>= 3.10)
60
59
  thor (>= 1)
61
- lex-node (0.1.3)
60
+ lex-node (0.2.0)
62
61
  multi_json (1.15.0)
63
- oj (3.11.0)
62
+ oj (3.11.5)
64
63
  parallel (1.20.1)
65
- parser (3.0.0.0)
64
+ parser (3.0.1.1)
66
65
  ast (~> 2.4.1)
67
66
  rainbow (3.0.0)
68
67
  rake (13.0.3)
69
- redis (4.2.5)
70
- regexp_parser (2.0.3)
71
- rexml (3.2.4)
68
+ rbtree (0.4.4)
69
+ redis (4.3.1)
70
+ regexp_parser (2.1.1)
71
+ rexml (3.2.5)
72
72
  rspec (3.10.0)
73
73
  rspec-core (~> 3.10.0)
74
74
  rspec-expectations (~> 3.10.0)
@@ -78,46 +78,50 @@ GEM
78
78
  rspec-expectations (3.10.1)
79
79
  diff-lcs (>= 1.2.0, < 2.0)
80
80
  rspec-support (~> 3.10.0)
81
- rspec-mocks (3.10.1)
81
+ rspec-mocks (3.10.2)
82
82
  diff-lcs (>= 1.2.0, < 2.0)
83
83
  rspec-support (~> 3.10.0)
84
- rspec-support (3.10.1)
84
+ rspec-support (3.10.2)
85
85
  rspec_junit_formatter (0.4.1)
86
86
  rspec-core (>= 2, < 4, != 2.12.0)
87
- rubocop (1.8.1)
87
+ rubocop (1.16.1)
88
88
  parallel (~> 1.10)
89
89
  parser (>= 3.0.0.0)
90
90
  rainbow (>= 2.2.2, < 4.0)
91
91
  regexp_parser (>= 1.8, < 3.0)
92
92
  rexml
93
- rubocop-ast (>= 1.2.0, < 2.0)
93
+ rubocop-ast (>= 1.7.0, < 2.0)
94
94
  ruby-progressbar (~> 1.7)
95
95
  unicode-display_width (>= 1.4.0, < 3.0)
96
- rubocop-ast (1.4.0)
97
- parser (>= 2.7.1.5)
96
+ rubocop-ast (1.7.0)
97
+ parser (>= 3.0.1.1)
98
98
  ruby-progressbar (1.11.0)
99
- simplecov (0.17.1)
99
+ set (1.0.1)
100
+ simplecov (0.21.2)
100
101
  docile (~> 1.1)
101
- json (>= 1.8, < 3)
102
- simplecov-html (~> 0.10.0)
103
- simplecov-html (0.10.2)
104
- thor (1.0.1)
102
+ simplecov-html (~> 0.11)
103
+ simplecov_json_formatter (~> 0.1)
104
+ simplecov-html (0.12.3)
105
+ simplecov_json_formatter (0.1.3)
106
+ sorted_set (1.0.3)
107
+ rbtree
108
+ set (~> 1.0)
109
+ thor (1.1.0)
105
110
  unicode-display_width (2.0.0)
106
- vault (0.15.0)
111
+ vault (0.16.0)
107
112
  aws-sigv4
108
113
 
109
114
  PLATFORMS
110
115
  ruby
111
116
 
112
117
  DEPENDENCIES
113
- bundler (>= 2)
114
118
  legionio
115
119
  lex-log!
116
120
  rake
117
121
  rspec
118
122
  rspec_junit_formatter
119
123
  rubocop
120
- simplecov (< 0.18.0)
124
+ simplecov
121
125
 
122
126
  BUNDLED WITH
123
127
  2.1.4
File without changes
data/docker_deploy.rb CHANGED
@@ -1,13 +1,18 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ long_name = 'lex-log'
3
4
  name = 'log'
4
5
  require "./lib/legion/extensions/#{name}/version"
5
6
  version = Legion::Extensions::Log::VERSION
6
7
 
8
+ system("gem build #{long_name}.gemspec")
9
+ system("gh release create v#{version} '#{long_name}-#{version}.gem'")
10
+ system("gem push #{long_name}-#{version}.gem")
11
+ system("gem push --key github --host https://rubygems.pkg.github.com/LegionIO #{long_name}-#{version}.gem")
12
+
7
13
  puts "Building docker image for Legion v#{version}"
8
14
  system("docker build --tag legionio/lex-#{name}:v#{version} .")
9
15
  puts 'Pushing to hub.docker.com'
10
16
  system("docker push legionio/lex-#{name}:v#{version}")
11
- system("docker tag legionio/lex-#{name}:v#{version} legionio/lex-#{name}:latest")
12
17
  system("docker push legionio/lex-#{name}:latest")
13
18
  puts 'completed'
data/lex-log.gemspec CHANGED
@@ -9,28 +9,22 @@ Gem::Specification.new do |spec|
9
9
  spec.email = ['matthewdiverson@gmail.com']
10
10
 
11
11
  spec.summary = 'Used to generate logs within the Legion framework'
12
- spec.description = 'It logs things'
13
- spec.homepage = 'https://bitbucket.org/legion-io/lex-log'
12
+ spec.description = 'A LegionIO Extension to log to STDOUT and to files in an async fashion'
13
+ spec.homepage = 'https://github.com/LegionIO/lex-log'
14
14
  spec.license = 'MIT'
15
15
  spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
16
16
 
17
17
  spec.metadata['homepage_uri'] = spec.homepage
18
- spec.metadata['source_code_uri'] = 'https://bitbucket.org/legion-io/lex-log/src'
19
- spec.metadata['documentation_uri'] = 'https://legionio.atlassian.net/wiki/spaces/LEX/pages/11993089'
20
- spec.metadata['changelog_uri'] = 'https://legionio.atlassian.net/wiki/spaces/LEX/pages/12156929'
21
- spec.metadata['bug_tracker_uri'] = 'https://bitbucket.org/legion-io/lex-log/issues'
18
+ spec.metadata['source_code_uri'] = 'https://github.com/LegionIO/lex-logsrc'
19
+ spec.metadata['documentation_uri'] = 'https://github.com/LegionIO/lex-log'
20
+ spec.metadata['changelog_uri'] = 'https://github.com/LegionIO/lex-log'
21
+ spec.metadata['bug_tracker_uri'] = 'https://github.com/LegionIO/lex-log/issues'
22
22
 
23
23
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
24
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
25
  end
26
26
  spec.require_paths = ['lib']
27
+ spec.add_dependency 'legion-logging'
27
28
 
28
29
  spec.add_development_dependency 'legionio'
29
- spec.add_development_dependency 'rake'
30
- spec.add_development_dependency 'rspec'
31
- spec.add_development_dependency 'rspec_junit_formatter'
32
- spec.add_development_dependency 'rubocop'
33
- spec.add_development_dependency 'simplecov', '< 0.18.0'
34
-
35
- spec.add_dependency 'legion-logging'
36
30
  end
@@ -3,7 +3,7 @@
3
3
  module Legion
4
4
  module Extensions
5
5
  module Log
6
- VERSION = '0.1.3'
6
+ VERSION = '0.1.4'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,65 +1,23 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lex-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-15 00:00:00.000000000 Z
11
+ date: 2021-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: legionio
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: rspec
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: rspec_junit_formatter
14
+ name: legion-logging
57
15
  requirement: !ruby/object:Gem::Requirement
58
16
  requirements:
59
17
  - - ">="
60
18
  - !ruby/object:Gem::Version
61
19
  version: '0'
62
- type: :development
20
+ type: :runtime
63
21
  prerelease: false
64
22
  version_requirements: !ruby/object:Gem::Requirement
65
23
  requirements:
@@ -67,7 +25,7 @@ dependencies:
67
25
  - !ruby/object:Gem::Version
68
26
  version: '0'
69
27
  - !ruby/object:Gem::Dependency
70
- name: rubocop
28
+ name: legionio
71
29
  requirement: !ruby/object:Gem::Requirement
72
30
  requirements:
73
31
  - - ">="
@@ -80,67 +38,40 @@ dependencies:
80
38
  - - ">="
81
39
  - !ruby/object:Gem::Version
82
40
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: simplecov
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "<"
88
- - !ruby/object:Gem::Version
89
- version: 0.18.0
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "<"
95
- - !ruby/object:Gem::Version
96
- version: 0.18.0
97
- - !ruby/object:Gem::Dependency
98
- name: legion-logging
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- description: It logs things
41
+ description: A LegionIO Extension to log to STDOUT and to files in an async fashion
112
42
  email:
113
43
  - matthewdiverson@gmail.com
114
44
  executables: []
115
45
  extensions: []
116
46
  extra_rdoc_files: []
117
47
  files:
48
+ - ".github/workflows/rspec.yml"
49
+ - ".github/workflows/rubocop.yml"
118
50
  - ".gitignore"
119
51
  - ".rspec"
120
52
  - ".rubocop.yml"
53
+ - CHANGELOG.md
121
54
  - Dockerfile
122
55
  - Gemfile
123
56
  - Gemfile.lock
124
- - LICENSE.txt
57
+ - LICENSE
125
58
  - README.md
126
- - Rakefile
127
- - bitbucket-pipelines.yml
128
59
  - docker_deploy.rb
129
60
  - lex-log.gemspec
130
61
  - lib/legion/extensions/log.rb
131
62
  - lib/legion/extensions/log/runners/output.rb
132
63
  - lib/legion/extensions/log/version.rb
133
64
  - sonar-project.properties
134
- homepage: https://bitbucket.org/legion-io/lex-log
65
+ homepage: https://github.com/LegionIO/lex-log
135
66
  licenses:
136
67
  - MIT
137
68
  metadata:
138
- homepage_uri: https://bitbucket.org/legion-io/lex-log
139
- source_code_uri: https://bitbucket.org/legion-io/lex-log/src
140
- documentation_uri: https://legionio.atlassian.net/wiki/spaces/LEX/pages/11993089
141
- changelog_uri: https://legionio.atlassian.net/wiki/spaces/LEX/pages/12156929
142
- bug_tracker_uri: https://bitbucket.org/legion-io/lex-log/issues
143
- post_install_message:
69
+ homepage_uri: https://github.com/LegionIO/lex-log
70
+ source_code_uri: https://github.com/LegionIO/lex-logsrc
71
+ documentation_uri: https://github.com/LegionIO/lex-log
72
+ changelog_uri: https://github.com/LegionIO/lex-log
73
+ bug_tracker_uri: https://github.com/LegionIO/lex-log/issues
74
+ post_install_message:
144
75
  rdoc_options: []
145
76
  require_paths:
146
77
  - lib
@@ -155,8 +86,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
86
  - !ruby/object:Gem::Version
156
87
  version: '0'
157
88
  requirements: []
158
- rubygems_version: 3.1.4
159
- signing_key:
89
+ rubygems_version: 3.1.6
90
+ signing_key:
160
91
  specification_version: 4
161
92
  summary: Used to generate logs within the Legion framework
162
93
  test_files: []
data/Rakefile DELETED
@@ -1,8 +0,0 @@
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
@@ -1,21 +0,0 @@
1
- image: ruby:2.7
2
-
3
- pipelines:
4
- tags:
5
- "v*":
6
- - step:
7
- name: Push to RubyGems
8
- deployment: RubyGems
9
- script:
10
- - gem install gem-release
11
- - (umask 077 ; echo $gem_creds | base64 --decode > ~/.gem/credentials)
12
- - gem release
13
- artifacts:
14
- - pkg/**
15
- - step:
16
- name: Push to Docker
17
- deployment: Docker
18
- script:
19
- - 'apt-get update'
20
- - 'apt-get install -y docker'
21
- - './docker_deploy.rb'