lex-log 0.1.2 → 0.1.3

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: 43a98e887020930ca7e93e948ccefd422419c93d41a1231178b87fb699184db7
4
- data.tar.gz: 59603d7546e8c6a00a710a4ead68df9e527e46ea9537d3fe7e98a13d6b6d8c70
3
+ metadata.gz: fadec20fe2c404c9dfc861c2386f9171acc49f0aacfa751fb386f7b7e11ee016
4
+ data.tar.gz: 8390ea506bea502b07fc7c56fd2ed534781055c500a8ce17075c1f7c5ff4c9f3
5
5
  SHA512:
6
- metadata.gz: 564d835fc978094caa02de639d8f38187b9812a209ddc78c4697f2f7bd9bc70f76308b31933c50ee671bd79dc093c0421e65e1eedb104e3f3810aa250f09a2a5
7
- data.tar.gz: a7fbc5dac487beabfb2dd5b4ad863ed7b00f11fc8abccd18167c8e661334a440ff109631e5611de883023e3eab6f090e6bfb083daf1c7c92c962bf9ba9d6d688
6
+ metadata.gz: 1478ff7ae28d75cb7441f67473d7392198ea509960effc02f912c14597e7993bd8993266a95e365299efe1fdc28647f4416d7944814b56b46afb230abf56aea5
7
+ data.tar.gz: 940d885b68ac0587149642d7630007b92ea56d1b1c1ede084c3e8791bfbe233a516cc9a9008f7bf2e4fa0113575937a25c26475b906b9269966af9fc508226f2
@@ -11,6 +11,7 @@ Style/Documentation:
11
11
  AllCops:
12
12
  TargetRubyVersion: 2.5
13
13
  NewCops: enable
14
+ SuggestExtensions: false
14
15
  Style/FrozenStringLiteralComment:
15
16
  Enabled: false
16
17
  Naming/FileName:
@@ -0,0 +1,10 @@
1
+ FROM ruby:2.7-alpine
2
+ LABEL maintainer="Matthew Iverson <matthewdiverson@gmail.com>"
3
+
4
+ RUN mkdir /etc/legionio
5
+ RUN apk update && apk add build-base tzdata gcc git
6
+
7
+ COPY . ./
8
+ RUN gem install legionio tzinfo-data tzinfo --no-document --no-prerelease
9
+ RUN gem install lex-log --no-document --no-prerelease
10
+ CMD legionio
@@ -12,114 +12,97 @@ GEM
12
12
  aws-eventstream (1.1.0)
13
13
  aws-sigv4 (1.2.2)
14
14
  aws-eventstream (~> 1, >= 1.0.2)
15
- bunny (2.16.1)
15
+ bunny (2.17.0)
16
16
  amq-protocol (~> 2.3, >= 2.3.1)
17
17
  concurrent-ruby (1.1.7)
18
18
  concurrent-ruby-ext (1.1.7)
19
19
  concurrent-ruby (= 1.1.7)
20
20
  connection_pool (2.2.3)
21
21
  daemons (1.3.1)
22
- dalli (2.7.10)
22
+ dalli (2.7.11)
23
23
  diff-lcs (1.4.4)
24
- docile (1.3.2)
25
- faraday (1.0.1)
26
- multipart-post (>= 1.2, < 3)
27
- faraday_middleware (1.0.0)
28
- faraday (~> 1.0)
29
- ffi (1.13.1)
30
- hashdiff (1.0.1)
31
- json (2.3.1)
32
- legion-cache (1.0.0)
33
- connection_pool
34
- dalli
35
- redis
36
- legion-crypt (0.2.0)
37
- rbnacl
24
+ docile (1.3.5)
25
+ json (2.5.1)
26
+ json_pure (2.5.1)
27
+ legion-cache (1.1.1)
28
+ connection_pool (>= 2.2.3)
29
+ dalli (>= 2.7)
30
+ redis (>= 4.2)
31
+ legion-crypt (0.2.3)
38
32
  vault
39
- legion-data (0.2.0)
40
- legion-logging
41
- legion-settings
42
- mysql2
43
- sequel
44
- legion-exceptions (1.1.0)
45
- legion-json (1.1.0)
33
+ legion-exceptions (1.1.5)
34
+ legion-json (1.1.4)
35
+ json_pure
36
+ legion-exceptions (>= 1.1.5)
46
37
  multi_json
47
- legion-logging (1.1.0)
38
+ legion-logging (1.1.4)
48
39
  rainbow (~> 3)
49
- legion-settings (1.1.1)
40
+ legion-settings (1.1.3)
50
41
  legion-json
51
42
  legion-logging
52
- legion-transport (1.1.1)
53
- bunny
54
- concurrent-ruby
55
- legionio (0.2.0)
56
- concurrent-ruby
57
- concurrent-ruby-ext
58
- daemons
59
- hashdiff
43
+ legion-transport (1.1.8)
44
+ bunny (>= 2.17.0)
45
+ concurrent-ruby (>= 1.1.7)
46
+ legion-json
47
+ legionio (0.4.0)
48
+ concurrent-ruby (>= 1.1.7)
49
+ concurrent-ruby-ext (>= 1.1.7)
50
+ daemons (>= 1.3.1)
60
51
  legion-cache
61
- legion-crypt
62
- legion-data
52
+ legion-crypt (>= 0.2.0)
63
53
  legion-exceptions
64
54
  legion-json
65
55
  legion-logging
66
56
  legion-settings
67
- legion-transport
68
- sleepiq
69
- vault
57
+ legion-transport (>= 1.1.8)
58
+ lex-node
59
+ oj (>= 3.10)
60
+ thor (>= 1)
61
+ lex-node (0.1.3)
70
62
  multi_json (1.15.0)
71
- multipart-post (2.1.1)
72
- mysql2 (0.5.3)
73
- parallel (1.19.2)
74
- parser (2.7.1.4)
63
+ oj (3.11.0)
64
+ parallel (1.20.1)
65
+ parser (3.0.0.0)
75
66
  ast (~> 2.4.1)
76
67
  rainbow (3.0.0)
77
- rake (13.0.1)
78
- rbnacl (7.1.1)
79
- ffi
80
- redis (4.2.1)
81
- regexp_parser (1.7.1)
68
+ rake (13.0.3)
69
+ redis (4.2.5)
70
+ regexp_parser (2.0.3)
82
71
  rexml (3.2.4)
83
- rspec (3.9.0)
84
- rspec-core (~> 3.9.0)
85
- rspec-expectations (~> 3.9.0)
86
- rspec-mocks (~> 3.9.0)
87
- rspec-core (3.9.2)
88
- rspec-support (~> 3.9.3)
89
- rspec-expectations (3.9.2)
72
+ rspec (3.10.0)
73
+ rspec-core (~> 3.10.0)
74
+ rspec-expectations (~> 3.10.0)
75
+ rspec-mocks (~> 3.10.0)
76
+ rspec-core (3.10.1)
77
+ rspec-support (~> 3.10.0)
78
+ rspec-expectations (3.10.1)
90
79
  diff-lcs (>= 1.2.0, < 2.0)
91
- rspec-support (~> 3.9.0)
92
- rspec-mocks (3.9.1)
80
+ rspec-support (~> 3.10.0)
81
+ rspec-mocks (3.10.1)
93
82
  diff-lcs (>= 1.2.0, < 2.0)
94
- rspec-support (~> 3.9.0)
95
- rspec-support (3.9.3)
83
+ rspec-support (~> 3.10.0)
84
+ rspec-support (3.10.1)
96
85
  rspec_junit_formatter (0.4.1)
97
86
  rspec-core (>= 2, < 4, != 2.12.0)
98
- rubocop (0.89.1)
87
+ rubocop (1.8.1)
99
88
  parallel (~> 1.10)
100
- parser (>= 2.7.1.1)
89
+ parser (>= 3.0.0.0)
101
90
  rainbow (>= 2.2.2, < 4.0)
102
- regexp_parser (>= 1.7)
91
+ regexp_parser (>= 1.8, < 3.0)
103
92
  rexml
104
- rubocop-ast (>= 0.3.0, < 1.0)
93
+ rubocop-ast (>= 1.2.0, < 2.0)
105
94
  ruby-progressbar (~> 1.7)
106
- unicode-display_width (>= 1.4.0, < 2.0)
107
- rubocop-ast (0.3.0)
108
- parser (>= 2.7.1.4)
109
- ruby-progressbar (1.10.1)
110
- sequel (5.35.0)
95
+ unicode-display_width (>= 1.4.0, < 3.0)
96
+ rubocop-ast (1.4.0)
97
+ parser (>= 2.7.1.5)
98
+ ruby-progressbar (1.11.0)
111
99
  simplecov (0.17.1)
112
100
  docile (~> 1.1)
113
101
  json (>= 1.8, < 3)
114
102
  simplecov-html (~> 0.10.0)
115
103
  simplecov-html (0.10.2)
116
- sleepiq (0.2.2)
117
- dalli
118
- faraday
119
- faraday_middleware
120
- thor
121
104
  thor (1.0.1)
122
- unicode-display_width (1.7.0)
105
+ unicode-display_width (2.0.0)
123
106
  vault (0.15.0)
124
107
  aws-sigv4
125
108
 
@@ -127,6 +110,7 @@ PLATFORMS
127
110
  ruby
128
111
 
129
112
  DEPENDENCIES
113
+ bundler (>= 2)
130
114
  legionio
131
115
  lex-log!
132
116
  rake
data/README.md CHANGED
@@ -1,40 +1,2 @@
1
1
  # Legion::Extensions::Log
2
-
3
- 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/legion/extensions/log`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- Delete this and the text above, and describe your gem
6
-
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'legion-extensions-log'
13
- ```
14
-
15
- And then execute:
16
-
17
- $ bundle install
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install legion-extensions-log
22
-
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- 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).
32
-
33
- ## Contributing
34
-
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/legion-extensions-log.
36
-
37
-
38
- ## License
39
-
40
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
2
+ Allows Legion to async log things. Basically used 99% of the time for testing
@@ -1,4 +1,4 @@
1
- image: ruby:2.7.0
1
+ image: ruby:2.7
2
2
 
3
3
  pipelines:
4
4
  tags:
@@ -7,11 +7,15 @@ pipelines:
7
7
  name: Push to RubyGems
8
8
  deployment: RubyGems
9
9
  script:
10
- - gem install bundler gem-release rake rspec
11
- - bundle install
12
- - rake build
13
- - mkdir .gem
14
- - (umask 077 ; echo $gem_creds | base64 --decode > .gem/credentials)
10
+ - gem install gem-release
11
+ - (umask 077 ; echo $gem_creds | base64 --decode > ~/.gem/credentials)
15
12
  - gem release
16
13
  artifacts:
17
- - pkg/**
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'
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ name = 'log'
4
+ require "./lib/legion/extensions/#{name}/version"
5
+ version = Legion::Extensions::Log::VERSION
6
+
7
+ puts "Building docker image for Legion v#{version}"
8
+ system("docker build --tag legionio/lex-#{name}:v#{version} .")
9
+ puts 'Pushing to hub.docker.com'
10
+ system("docker push legionio/lex-#{name}:v#{version}")
11
+ system("docker tag legionio/lex-#{name}:v#{version} legionio/lex-#{name}:latest")
12
+ system("docker push legionio/lex-#{name}:latest")
13
+ puts 'completed'
@@ -16,12 +16,13 @@ Gem::Specification.new do |spec|
16
16
 
17
17
  spec.metadata['homepage_uri'] = spec.homepage
18
18
  spec.metadata['source_code_uri'] = 'https://bitbucket.org/legion-io/lex-log/src'
19
- spec.metadata['changelog_uri'] = 'https://bitbucket.org/legion-io/lex-log/src/master/CHANGELOG.md'
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'
20
22
 
21
23
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
24
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
25
  end
24
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
26
  spec.require_paths = ['lib']
26
27
 
27
28
  spec.add_development_dependency 'legionio'
@@ -1,12 +1,9 @@
1
- # frozen_string_literal: true
2
-
3
1
  require 'legion/extensions/log/version'
4
- require 'legion/extensions'
5
2
 
6
3
  module Legion
7
4
  module Extensions
8
5
  module Log
9
- extend Legion::Extensions::Core
6
+ extend Legion::Extensions::Core if Legion::Extensions.const_defined? :Core
10
7
  end
11
8
  end
12
9
  end
@@ -3,7 +3,7 @@
3
3
  module Legion
4
4
  module Extensions
5
5
  module Log
6
- VERSION = '0.1.2'
6
+ VERSION = '0.1.3'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lex-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-24 00:00:00.000000000 Z
11
+ date: 2021-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: legionio
@@ -115,20 +115,18 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
- - ".circleci/config.yml"
119
118
  - ".gitignore"
120
119
  - ".rspec"
121
120
  - ".rubocop.yml"
122
- - ".travis.yml"
121
+ - Dockerfile
123
122
  - Gemfile
124
123
  - Gemfile.lock
125
124
  - LICENSE.txt
126
125
  - README.md
127
126
  - Rakefile
128
- - bin/console
129
- - bin/setup
130
127
  - bitbucket-pipelines.yml
131
- - legion-extensions-log.gemspec
128
+ - docker_deploy.rb
129
+ - lex-log.gemspec
132
130
  - lib/legion/extensions/log.rb
133
131
  - lib/legion/extensions/log/runners/output.rb
134
132
  - lib/legion/extensions/log/version.rb
@@ -139,8 +137,10 @@ licenses:
139
137
  metadata:
140
138
  homepage_uri: https://bitbucket.org/legion-io/lex-log
141
139
  source_code_uri: https://bitbucket.org/legion-io/lex-log/src
142
- changelog_uri: https://bitbucket.org/legion-io/lex-log/src/master/CHANGELOG.md
143
- post_install_message:
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:
144
144
  rdoc_options: []
145
145
  require_paths:
146
146
  - lib
@@ -155,8 +155,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  - !ruby/object:Gem::Version
156
156
  version: '0'
157
157
  requirements: []
158
- rubygems_version: 3.1.2
159
- signing_key:
158
+ rubygems_version: 3.1.4
159
+ signing_key:
160
160
  specification_version: 4
161
161
  summary: Used to generate logs within the Legion framework
162
162
  test_files: []
@@ -1,82 +0,0 @@
1
- version: 2.1
2
- orbs:
3
- ruby: circleci/ruby@0.2.1
4
- sonarcloud: sonarsource/sonarcloud@1.0.1
5
-
6
- jobs:
7
- "rubocop":
8
- docker:
9
- - image: circleci/ruby:2.7-node
10
- steps:
11
- - checkout
12
- - ruby/load-cache
13
- - ruby/install-deps
14
- - run:
15
- name: Run Rubocop
16
- command: bundle exec rubocop
17
- - ruby/save-cache
18
- "ruby-two-five":
19
- docker:
20
- - image: circleci/ruby:2.5
21
- steps:
22
- - checkout
23
- - ruby/load-cache
24
- - run:
25
- name: update bundler
26
- command: gem update bundler
27
- - ruby/install-deps
28
- - ruby/run-tests
29
- - ruby/save-cache
30
- "ruby-two-six":
31
- docker:
32
- - image: circleci/ruby:2.6
33
- steps:
34
- - checkout
35
- - ruby/load-cache
36
- - run:
37
- name: update bundler
38
- command: gem update bundler
39
- - ruby/install-deps
40
- - ruby/run-tests
41
- - ruby/save-cache
42
- "ruby-two-seven":
43
- docker:
44
- - image: circleci/ruby:2.7
45
- steps:
46
- - checkout
47
- - ruby/load-cache
48
- - ruby/install-deps
49
- - ruby/run-tests
50
- - ruby/save-cache
51
- "sonarcloud":
52
- docker:
53
- - image: circleci/ruby:2.7
54
- steps:
55
- - checkout
56
- - ruby/load-cache
57
- - ruby/install-deps
58
- - ruby/run-tests
59
- - run:
60
- name: Run Rubocop
61
- command: bundle exec rubocop --format=json --out=rubocop-result.json
62
- - sonarcloud/scan
63
- - ruby/save-cache
64
-
65
- workflows:
66
- version: 2
67
- rubocop-rspec:
68
- jobs:
69
- - rubocop
70
- - ruby-two-five:
71
- requires:
72
- - rubocop
73
- - ruby-two-six:
74
- requires:
75
- - ruby-two-five
76
- - ruby-two-seven:
77
- requires:
78
- - ruby-two-five
79
- - sonarcloud:
80
- requires:
81
- - ruby-two-seven
82
- - ruby-two-six
@@ -1,6 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.6.3
6
- before_install: gem install bundler -v 2.1.4
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/setup'
5
- require 'legion/extensions/log'
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__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
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