-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating lex-log for github migration
- Loading branch information
Showing
14 changed files
with
235 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: RSpec | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
rspec: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
ruby: [2.7] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- name: RSpec run | ||
run: | | ||
bash -c " | ||
bundle exec rspec | ||
[[ $? -ne 2 ]] | ||
" | ||
rspec-mri: | ||
needs: rspec | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
ruby: [2.5, 2.6, '3.0', head] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- run: bundle exec rspec | ||
rspec-jruby: | ||
needs: rspec | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
ruby: [ jruby, jruby-head] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- run: JRUBY_OPTS="--debug" bundle exec rspec | ||
rspec-truffleruby: | ||
needs: rspec | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
ruby: [truffleruby] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- run: bundle exec rspec | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Rubocop | ||
on: [push, pull_request] | ||
jobs: | ||
rubocop: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
ruby: [2.7] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- name: Install Rubocop | ||
run: gem install rubocop code-scanning-rubocop | ||
- name: Rubocop run --no-doc | ||
run: | | ||
bash -c " | ||
rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif | ||
[[ $? -ne 2 ]] | ||
" | ||
- name: Upload Sarif output | ||
uses: github/codeql-action/upload-sarif@v1 | ||
with: | ||
sarif_file: rubocop.sarif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# LEX::Log | ||
|
||
## v0.1.4 | ||
Cleaning up things for github migration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
FROM ruby:2.7-alpine | ||
FROM legionio/legion:latest | ||
LABEL maintainer="Matthew Iverson <[email protected]>" | ||
|
||
RUN mkdir /etc/legionio | ||
RUN apk update && apk add build-base tzdata gcc git | ||
|
||
COPY . ./ | ||
RUN gem install legionio tzinfo-data tzinfo --no-document --no-prerelease | ||
RUN gem install lex-log --no-document --no-prerelease | ||
CMD legionio | ||
CMD ruby --jit $(which legionio) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
gemspec | ||
|
||
group :test do | ||
gem 'rake' | ||
gem 'rspec' | ||
gem 'rspec_junit_formatter' | ||
gem 'rubocop' | ||
gem 'simplecov' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
#!/usr/bin/env ruby | ||
|
||
long_name = 'lex-log' | ||
name = 'log' | ||
require "./lib/legion/extensions/#{name}/version" | ||
version = Legion::Extensions::Log::VERSION | ||
|
||
system("gem build #{long_name}.gemspec") | ||
system("gh release create v#{version} '#{long_name}-#{version}.gem'") | ||
system("gem push #{long_name}-#{version}.gem") | ||
system("gem push --key github --host https://rubygems.pkg.github.com/LegionIO #{long_name}-#{version}.gem") | ||
|
||
puts "Building docker image for Legion v#{version}" | ||
system("docker build --tag legionio/lex-#{name}:v#{version} .") | ||
puts 'Pushing to hub.docker.com' | ||
system("docker push legionio/lex-#{name}:v#{version}") | ||
system("docker tag legionio/lex-#{name}:v#{version} legionio/lex-#{name}:latest") | ||
system("docker push legionio/lex-#{name}:latest") | ||
puts 'completed' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,28 +9,22 @@ Gem::Specification.new do |spec| | |
spec.email = ['[email protected]'] | ||
|
||
spec.summary = 'Used to generate logs within the Legion framework' | ||
spec.description = 'It logs things' | ||
spec.homepage = 'https://bitbucket.org/legion-io/lex-log' | ||
spec.description = 'A LegionIO Extension to log to STDOUT and to files in an async fashion' | ||
spec.homepage = 'https://github.com/LegionIO/lex-log' | ||
spec.license = 'MIT' | ||
spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0') | ||
|
||
spec.metadata['homepage_uri'] = spec.homepage | ||
spec.metadata['source_code_uri'] = 'https://bitbucket.org/legion-io/lex-log/src' | ||
spec.metadata['documentation_uri'] = 'https://legionio.atlassian.net/wiki/spaces/LEX/pages/11993089' | ||
spec.metadata['changelog_uri'] = 'https://legionio.atlassian.net/wiki/spaces/LEX/pages/12156929' | ||
spec.metadata['bug_tracker_uri'] = 'https://bitbucket.org/legion-io/lex-log/issues' | ||
spec.metadata['source_code_uri'] = 'https://github.com/LegionIO/lex-logsrc' | ||
spec.metadata['documentation_uri'] = 'https://github.com/LegionIO/lex-log' | ||
spec.metadata['changelog_uri'] = 'https://github.com/LegionIO/lex-log' | ||
spec.metadata['bug_tracker_uri'] = 'https://github.com/LegionIO/lex-log/issues' | ||
|
||
spec.files = Dir.chdir(File.expand_path(__dir__)) do | ||
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } | ||
end | ||
spec.require_paths = ['lib'] | ||
spec.add_dependency 'legion-logging' | ||
|
||
spec.add_development_dependency 'legionio' | ||
spec.add_development_dependency 'rake' | ||
spec.add_development_dependency 'rspec' | ||
spec.add_development_dependency 'rspec_junit_formatter' | ||
spec.add_development_dependency 'rubocop' | ||
spec.add_development_dependency 'simplecov', '< 0.18.0' | ||
|
||
spec.add_dependency 'legion-logging' | ||
end |
Oops, something went wrong.