Skip to content

Commit

Permalink
Merge branch 'main' into dependabot-github_actions-codecov-codecov-ac…
Browse files Browse the repository at this point in the history
…tion-4
  • Loading branch information
dpep authored Apr 5, 2024
2 parents 91d1202 + 8d74b1d commit 5500320
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 21 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ jobs:
run: gh pr checkout ${{github.event.pull_request.number}}
- name: Fetch PR metadata
id: metadata
uses: dependabot/fetch-metadata@v1
uses: dependabot/fetch-metadata@v2
- name: Approve PR
if: steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'
run: |
if [ "$(gh pr status --json reviewDecision -q .currentBranch.reviewDecision)" != "APPROVED" ]; then
gh pr review --approve
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: [ 3.1, "3.0", 2.7 ]
ruby-version: [ 3.2, 3.1, "3.0" ]

name: Ruby ${{ matrix.ruby-version }}

Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
*.irbrc
.byebug_history
coverage
Gemfile.lock
38 changes: 38 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
PATH
remote: .
specs:
meddleware (0.3.0)

GEM
remote: https://rubygems.org/
specs:
byebug (11.1.3)
diff-lcs (1.5.1)
docile (1.4.0)
rspec (2.99.0)
rspec-core (~> 2.99.0)
rspec-expectations (~> 2.99.0)
rspec-mocks (~> 2.99.0)
rspec-core (2.99.2)
rspec-expectations (2.99.2)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.99.4)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)

PLATFORMS
arm64-darwin-23
ruby

DEPENDENCIES
byebug
meddleware!
rspec (~> 2.0)
simplecov

BUNDLED WITH
2.5.7
20 changes: 5 additions & 15 deletions meddleware.gemspec
Original file line number Diff line number Diff line change
@@ -1,29 +1,19 @@
package_name = File.basename(__FILE__).split(".")[0]
load Dir.glob("lib/**/version.rb")[0]

require_relative "lib/meddleware/version"
package = Meddleware


Gem::Specification.new do |s|
s.name = package_name
s.name = File.basename(__FILE__).split(".")[0]
s.version = package.const_get 'VERSION'
s.authors = ['Daniel Pepper']
s.summary = package.to_s
s.description = 'A middleware framework to make meddling easy.'
s.homepage = "https://github.com/dpep/#{package_name}_rb"
s.homepage = "https://github.com/dpep/meddleware_rb"
s.license = 'MIT'
s.required_ruby_version = '>= 2.7'
s.files = `git ls-files * ':!:spec'`.split("\n")

s.files = Dir[
__FILE__,
'lib/**/*',
'CHANGELOG*',
'LICENSE*',
'README*',
]
s.required_ruby_version = '>= 3'

s.add_development_dependency 'byebug'
s.add_development_dependency 'codecov'
s.add_development_dependency 'rspec'
s.add_development_dependency 'simplecov'
end
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
end

if ENV['CI'] == 'true' || ENV['CODECOV_TOKEN']
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
require 'simplecov_json_formatter'
SimpleCov.formatter = SimpleCov::Formatter::JSONFormatter
end

require 'meddleware'
Expand Down

0 comments on commit 5500320

Please sign in to comment.