-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
134 additions
and
32 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,12 @@ | ||
# Dependabot update strategy | ||
version: 2 | ||
updates: | ||
- package-ecosystem: bundler | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
allow: | ||
# Automatically keep all runtime dependencies updated | ||
- dependency-name: "*" | ||
dependency-type: "production" | ||
versioning-strategy: lockfile-only |
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,47 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- actions-* | ||
tags: | ||
- v* | ||
pull_request: | ||
branches-ignore: | ||
- actions-* | ||
|
||
env: | ||
BUNDLE_CLEAN: "true" | ||
BUNDLE_PATH: vendor/bundle | ||
BUNDLE_JOBS: 3 | ||
BUNDLE_RETRY: 3 | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.ruby }} build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- ruby: "ruby" | ||
standardrb: true | ||
- ruby: "3.0" | ||
- ruby: "2.7" | ||
- ruby: "2.6" | ||
- ruby: "2.5" | ||
- ruby: "2.4" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby}} | ||
- name: Install gems | ||
run: | | ||
bundle install | ||
- name: Run Tests | ||
run: bundle exec rake | ||
- name: standardrb | ||
if: matrix.standardrb | ||
run: bundle exec standardrb |
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,29 @@ | ||
name: Regression Test | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 15 * * 1" | ||
env: | ||
BUNDLE_CLEAN: "true" | ||
BUNDLE_PATH: vendor/bundle | ||
BUNDLE_JOBS: 3 | ||
BUNDLE_RETRY: 3 | ||
jobs: | ||
specs: | ||
name: Run specs | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Ruby ${{ matrix.ruby }} | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ruby | ||
- name: Install bundler | ||
run: | | ||
bundle update | ||
- name: Run specs | ||
run: | | ||
bundle exec rake spec |
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,13 @@ | ||
pkg | ||
tmp | ||
rdoc | ||
*.rbc | ||
.tm_properties | ||
.bundle | ||
/gemfiles/*.lock | ||
.yardoc | ||
/_yardoc/ | ||
/coverage/ | ||
/doc/ | ||
/pkg/ | ||
/spec/reports/ | ||
/tmp/ | ||
.DS_Store | ||
Gemfile.lock | ||
.ruby-version |
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,10 @@ | ||
# I really just have issues with the automatic "semantic blocks" | ||
|
||
ruby_version: 2.4 | ||
|
||
format: progress | ||
|
||
ignore: | ||
- 'spec/**/*': | ||
- Lint/UselessAssignment | ||
- Lint/Void |
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
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,16 +1,16 @@ | ||
Gem::Specification.new do |spec| | ||
spec.name = 'lumberjack_syslog_device' | ||
spec.name = "lumberjack_syslog_device" | ||
spec.version = File.read(File.expand_path("../VERSION", __FILE__)).strip | ||
spec.authors = ['Brian Durand'] | ||
spec.email = ['[email protected]'] | ||
spec.authors = ["Brian Durand"] | ||
spec.email = ["[email protected]"] | ||
|
||
spec.summary = "A logging device for the lumberjack gem that writes log entries to syslog." | ||
spec.homepage = "https://github.com/bdurand/lumberjack_syslog_device" | ||
spec.license = "MIT" | ||
|
||
# Specify which files should be added to the gem when it is released. | ||
# The `git ls-files -z` loads the files in the RubyGem that have been added into git. | ||
ignore_files = %w( | ||
ignore_files = %w[ | ||
.gitignore | ||
.travis.yml | ||
Appraisals | ||
|
@@ -19,14 +19,14 @@ Gem::Specification.new do |spec| | |
Rakefile | ||
gemfiles/ | ||
spec/ | ||
) | ||
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do | ||
`git ls-files -z`.split("\x0").reject{ |f| ignore_files.any?{ |path| f.start_with?(path) } } | ||
] | ||
spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do | ||
`git ls-files -z`.split("\x0").reject { |f| ignore_files.any? { |path| f.start_with?(path) } } | ||
end | ||
|
||
spec.require_paths = ['lib'] | ||
spec.require_paths = ["lib"] | ||
|
||
spec.required_ruby_version = '>=2.4' | ||
spec.required_ruby_version = ">=2.4" | ||
|
||
spec.add_dependency "lumberjack", ">=1.1" | ||
|
||
|
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
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