Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
teeparham committed Feb 2, 2024
1 parent 1bebc48 commit 1d7a13c
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 18 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,22 @@ name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.flaky }}
strategy:
matrix:
ruby-version: ["2.5", "2.6", "2.7", "3.0", "3.1", "jruby-9.2", "jruby-9.3", "truffleruby-21" ,"truffleruby-22"]
ruby-version:
[
"2.5",
"2.6",
"2.7",
"3.0",
"3.1",
"jruby-9.2",
"jruby-9.3",
"truffleruby-21",
"truffleruby-22",
]
flaky: [false]
include:
- ruby-version: "ruby-head"
Expand Down
8 changes: 4 additions & 4 deletions gemdiff.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
spec.name = "gemdiff"
spec.version = Gemdiff::VERSION
spec.authors = ["Tee Parham"]
spec.email = ["tee@neighborland.com"]
spec.email = ["parhameter@gmail.com"]
spec.summary = "Find source repositories for ruby gems. Open, compare, and update outdated gem versions"
spec.description = "Command-line utility to find source repositories for ruby gems, open common GitHub pages, "\
"compare gem versions, and simplify gem update workflow in git."
Expand All @@ -17,13 +17,13 @@ Gem::Specification.new do |spec|
spec.executables = %w[gemdiff]
spec.require_paths = %w[lib]

spec.required_ruby_version = ">= 2.5.0"
spec.required_ruby_version = ">= 3.0.0"

spec.add_dependency "launchy", "~> 2.4"
spec.add_dependency "octokit", "~> 4.0"
spec.add_dependency "thor", "~> 1.0"

spec.add_development_dependency "minitest", "~> 5.4"
spec.add_development_dependency "mocha", "~> 1.1"
spec.add_development_dependency "minitest", "~> 5.21"
spec.add_development_dependency "mocha", "~> 2.0"
spec.add_development_dependency "rake", "~> 13.0"
end
8 changes: 5 additions & 3 deletions test/bundle_inspector_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

require "test_helper"

class BundleInspectorTest < MiniTest::Spec
let(:inspector) { Gemdiff::BundleInspector.new }
# class BundleInspectorTest < Minitest::Test
def inspector
@inspector ||= Gemdiff::BundleInspector.new
end

describe "#list" do
it "returns outdated gems" do
Expand Down Expand Up @@ -59,4 +61,4 @@ def fake_up_to_date
OUT
end
end
# end
8 changes: 5 additions & 3 deletions test/cli_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

require "test_helper"

class CLITest < MiniTest::Spec
let(:cli) { Gemdiff::CLI.new }
# class CLITest < Minitest::Test
def cli
@cli ||= Gemdiff::CLI.new
end

describe "#find" do
it "finds" do
Expand Down Expand Up @@ -198,4 +200,4 @@ def mock_missing_gem
Gemdiff::OutdatedGem.stubs new: outdated_gem
outdated_gem
end
end
# end
3 changes: 1 addition & 2 deletions test/gem_updater_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

require "test_helper"

class GemUpdaterTest < MiniTest::Spec
describe "#update" do
it "updates the gem" do
updater = Gemdiff::GemUpdater.new("x")
Expand Down Expand Up @@ -81,4 +80,4 @@ class GemUpdaterTest < MiniTest::Spec
refute updater.clean?
end
end
end

3 changes: 1 addition & 2 deletions test/outdated_gem_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

require "test_helper"

class OutdatedGemTest < MiniTest::Spec
describe "#initialize" do
it "sets name" do
assert_equal "x", Gemdiff::OutdatedGem.new("x").name
Expand Down Expand Up @@ -157,4 +156,4 @@ class OutdatedGemTest < MiniTest::Spec
outdated_gem.open
end
end
end

4 changes: 2 additions & 2 deletions test/repo_finder_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "test_helper"

class RepoFinderTest < MiniTest::Spec
# class RepoFinderTest < Minitest::Test
describe ".github_url" do
it "returns github url from local gemspec" do
Gemdiff::RepoFinder.stubs find_local_gemspec: fake_gemspec("homepage: http://github.com/rails/arel")
Expand Down Expand Up @@ -106,4 +106,4 @@ def mock_octokit(full_name)
def fake_gemspec(extra = "")
[FAKE_GEMSPEC, extra].compact.join("\n")
end
end
# end

0 comments on commit 1d7a13c

Please sign in to comment.