-
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.
- Loading branch information
Showing
12 changed files
with
230 additions
and
57 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,18 @@ | ||
name: 'Dependency Review' | ||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
dependency-review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout Repository' | ||
uses: actions/checkout@v3 | ||
- name: 'Dependency Review' | ||
uses: actions/dependency-review-action@v2 |
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,31 @@ | ||
name: Ruby | ||
|
||
on: | ||
push: | ||
branches: [ "master", develop ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ruby-version: ['2.7', '3.1'] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Ruby | ||
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, | ||
# change this to (see https://github.com/ruby/setup-ruby#versioning): | ||
# uses: ruby/setup-ruby@v1 | ||
uses: ruby/setup-ruby@0a29871fe2b0200a17a4497bae54fe5df0d973aa # v1.115.3 | ||
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- name: Run tests | ||
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
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,5 +1,5 @@ | ||
--format documentation | ||
--format RspecJunitFormatter | ||
--out spec/reports/rspec.xml | ||
--out test-reports/rspec.xml | ||
--color | ||
--require spec_helper |
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
pipeline { | ||
agent { | ||
label 'ruby' | ||
} | ||
|
||
stages { | ||
stage('Setup') { | ||
steps { | ||
sh 'bundle install' | ||
} | ||
} | ||
|
||
stage('Build') { | ||
steps { | ||
sh 'bundle exec rake build' | ||
} | ||
} | ||
|
||
stage('Test production branch') { | ||
when { | ||
branch 'master' | ||
} | ||
steps { | ||
sh 'bundle exec rake yard' | ||
sh 'bundle exec rake rubocop' | ||
sh 'bundle exec rake spec' | ||
} | ||
} | ||
|
||
stage('Test development branch') { | ||
when { | ||
not { | ||
branch 'master' | ||
} | ||
} | ||
steps { | ||
sh 'bundle exec rake spec' | ||
} | ||
} | ||
} | ||
|
||
post { | ||
always { | ||
junit 'test-reports/*.xml' | ||
} | ||
} | ||
} |
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,6 +1,6 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2018 Jan Lindblom | ||
Copyright (c) 2022 Jan Lindblom ([email protected]) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
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 |
---|---|---|
|
@@ -18,18 +18,21 @@ spec = Gem::Specification.new do |s| | |
s.email = ["[email protected]"] | ||
|
||
s.summary = %q{Quadtrees in Ruby.} | ||
s.homepage = "https://bitbucket.org/janlindblom/ruby-quadtree" | ||
s.homepage = "https://github.com/janlindblom/ruby-quadtree" | ||
s.license = "MIT" | ||
|
||
s.files = `git ls-files -z`.split("\x0").reject do |f| | ||
f.match(%r{^(bin|test|spec|features)/}) || | ||
f.match(%r{^(bin|test|spec|features|.github)/}) || | ||
f == ".travis.yml" || | ||
f == ".gitignore" || | ||
f == ".editorconfig" || | ||
f == ".rspec" || | ||
f == "bitbucket-pipelines.yml" || | ||
f == "buildspec.yml" || | ||
f == ".gitlab-ci.yml" | ||
f == ".gitlab-ci.yml" || | ||
f == ".rubocop.yml" || | ||
f == ".rubocop_todo.yml" || | ||
f == "Jenkinsfile" | ||
end | ||
s.bindir = "exe" | ||
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
|
@@ -38,14 +41,14 @@ spec = Gem::Specification.new do |s| | |
s.required_ruby_version = '>= 2.3.0' | ||
|
||
s.add_development_dependency "bundler", "~> 2" | ||
s.add_development_dependency "rake", "~> 13.0" | ||
s.add_development_dependency "rspec", "~> 3.9" | ||
s.add_development_dependency "pry", "~> 0.13" | ||
s.add_development_dependency "rake", "~> 13" | ||
s.add_development_dependency "rspec", "~> 3" | ||
s.add_development_dependency "pry", "~> 0.14" | ||
s.add_development_dependency "yard", "~> 0.9" | ||
s.add_development_dependency "simplecov", "~> 0.18" | ||
s.add_development_dependency "rspec_junit_formatter", "~> 0.4" | ||
s.add_development_dependency "rubocop", "~> 0.85" | ||
s.add_runtime_dependency "version", "~> 1.1" | ||
s.add_development_dependency "simplecov", "~> 0.21" | ||
s.add_development_dependency "rspec_junit_formatter", "~> 0.6" | ||
s.add_development_dependency "rubocop", "~> 1" | ||
s.add_runtime_dependency "version", "~> 1" | ||
end | ||
|
||
Rake::VersionTask.new do |task| | ||
|
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 +1 @@ | ||
1.0.8 | ||
1.0.9 |
Oops, something went wrong.