Skip to content

Commit

Permalink
Merge branch 'main' into bundle-report-compability-ruby-version
Browse files Browse the repository at this point in the history
  • Loading branch information
etagwerker authored Sep 9, 2024
2 parents 41531e8 + 8627ce1 commit 5aeb016
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Your changes/patches go here.

- [FEATURE: Support compatibility for Ruby versions](https://github.com/fastruby/next_rails/pull/116)
- [CHORE: Remove GPL licensed dependency Colorize and replace it with Rainbow]

# v1.3.0 / 2023-06-16 [(commits)](https://github.com/fastruby/next_rails/compare/v1.2.4...v1.3.0)

Expand Down
4 changes: 3 additions & 1 deletion exe/deprecations
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/usr/bin/env ruby
require "json"
require "colorize"
require "rainbow/refinement"
require "optparse"
require "set"

using Rainbow

def run_tests(deprecation_warnings, opts = {})
tracker_mode = opts[:tracker_mode]
next_mode = opts[:next_mode]
Expand Down
4 changes: 3 additions & 1 deletion lib/deprecation_tracker.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
require "colorize"
require "rainbow/refinement"
require "json"

using Rainbow

# A shitlist for deprecation warnings during test runs. It has two modes: "save" and "compare"
#
# DEPRECATION_TRACKER=save
Expand Down
4 changes: 3 additions & 1 deletion lib/next_rails/bundle_report.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
require "colorize"
require "rainbow/refinement"
require "cgi"
require "erb"
require "json"
require "net/http"

using Rainbow

module NextRails
module BundleReport
extend self
Expand Down
2 changes: 1 addition & 1 deletion next_rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_dependency "colorize", ">= 0.8.1"
spec.add_dependency "rainbow", ">= 3"
spec.add_development_dependency "bundler", ">= 1.16", "< 3.0"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3.0"
Expand Down
2 changes: 2 additions & 0 deletions spec/bundle_report_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
require_relative 'spec_helper'
require_relative '../lib/next_rails/bundle_report'

using Rainbow

RSpec.describe NextRails::BundleReport do
describe '.outdated' do
let(:mock_version) { Struct.new(:version, :age) }
Expand Down

0 comments on commit 5aeb016

Please sign in to comment.