Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Rails gem dependencies to use Rails v7 #62

Merged
3 commits merged into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flappi.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Gem::Specification.new do |s|
s.homepage = 'https://github.com/sharesight/flappi'
s.license = 'MIT'

s.add_runtime_dependency 'activesupport', '>4.2.7'
s.add_runtime_dependency 'activesupport', '~> 7.0.8'
s.add_runtime_dependency 'recursive-open-struct'

s.add_development_dependency 'debug'
Expand Down
2 changes: 1 addition & 1 deletion test/api_doc_formatter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require_relative 'test_helper'

class ::Flappi::ApiDocFormatterTest < MiniTest::Test
class ::Flappi::ApiDocFormatterTest < Minitest::Test
context 'format' do
should 'format and write to file' do
Flappi::ApiDocFormatter.stubs(:format_to_text).returns('test')
Expand Down
2 changes: 1 addition & 1 deletion test/builder_factory_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require_relative 'test_helper'

class ::Flappi::BuilderFactoryTest < MiniTest::Test
class ::Flappi::BuilderFactoryTest < Minitest::Test
context 'validate_parameters' do
setup do
@defined_parameters = [
Expand Down
2 changes: 1 addition & 1 deletion test/common_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require_relative 'test_helper'

class ::Flappi::ResponseBuilderTest < MiniTest::Test
class ::Flappi::ResponseBuilderTest < Minitest::Test
context 'when extended' do
setup do
@common_test = Object.new
Expand Down
2 changes: 1 addition & 1 deletion test/definition_locator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require_relative 'examples2/exercise1'
require_relative 'examples2/exercise5'

class ::Flappi::DefinitionLocatorTest < MiniTest::Test
class ::Flappi::DefinitionLocatorTest < Minitest::Test
context 'locate_class' do
should 'Locate a valid definition' do
located_class = Flappi::DefinitionLocator.locate_class('Exercise1', 'v2.0')
Expand Down
2 changes: 1 addition & 1 deletion test/integration/empty_object_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class EmptyObjectController < ExampleController
end

module Integration
class EmptyObjectTest < MiniTest::Test
class EmptyObjectTest < Minitest::Test
context 'Response to EmptyObject' do
setup do
Flappi.configure do |conf|
Expand Down
2 changes: 1 addition & 1 deletion test/integration/exercise10_array_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Exercise10ArrayController < ExampleController
end

module Integration
class Exercise10ArrayResponseTest < MiniTest::Test
class Exercise10ArrayResponseTest < Minitest::Test
context 'Exercise10' do
setup do
Flappi.configure do |conf|
Expand Down
2 changes: 1 addition & 1 deletion test/integration/exercise11_response_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def request
end

module Integration
class Exercise11ResponseTest < MiniTest::Test
class Exercise11ResponseTest < Minitest::Test
context 'Response to Exercise11' do
setup do
Flappi.configure do |conf|
Expand Down
2 changes: 1 addition & 1 deletion test/integration/exercise12_doco_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
require_relative '../examples/exercise12_skipped'

module Integration
class Exercise12DocoTest < MiniTest::Test
class Exercise12DocoTest < Minitest::Test
context 'Documentation of Exercise12' do
setup do
Flappi.configure do |conf|
Expand Down
2 changes: 1 addition & 1 deletion test/integration/exercise1_doco_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require_relative '../examples/exercise1'

module Integration
class Exercise1DocoTest < MiniTest::Test
class Exercise1DocoTest < Minitest::Test
context 'Documentation of Exercise1' do
setup do
Flappi.configure do |conf|
Expand Down
2 changes: 1 addition & 1 deletion test/integration/exercise1_response_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def request
end

module Integration
class Exercise1ResponseTest < MiniTest::Test
class Exercise1ResponseTest < Minitest::Test
context 'Response to Exercise1' do
setup do
Flappi.configure do |conf|
Expand Down
2 changes: 1 addition & 1 deletion test/integration/exercise2_doco_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
require_relative '../examples/exercise2_versioned'

module Integration
class Exercise2DocoTest < MiniTest::Test
class Exercise2DocoTest < Minitest::Test
context 'Documentation of Exercise2' do
setup do
Flappi.configure do |conf|
Expand Down
2 changes: 1 addition & 1 deletion test/integration/exercise2_response_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Exercise2VersionedController < ExampleController
end

module Integration
class Exercise2ResponseTest < MiniTest::Test
class Exercise2ResponseTest < Minitest::Test
context 'Response to Exercise2' do
setup do
Flappi.configure do |conf|
Expand Down
2 changes: 1 addition & 1 deletion test/integration/exercise3_response_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def request
end

module Integration
class Exercise3ResponseTest < MiniTest::Test
class Exercise3ResponseTest < Minitest::Test
context 'Response to Exercise3' do
should 'respond with ok to posted data' do
controller = Examples::Exercise3Controller.new
Expand Down
2 changes: 1 addition & 1 deletion test/integration/exercise4_doco_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require_relative '../examples/exercise4'

module Integration
class Exercise4DocoTest < MiniTest::Test
class Exercise4DocoTest < Minitest::Test
context 'Documentation of Exercise1' do
setup do
Flappi.configure do |conf|
Expand Down
2 changes: 1 addition & 1 deletion test/integration/exercise4_response_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Exercise4Controller < ExampleController
end

module Integration
class Exercise4ResponseTest < MiniTest::Test
class Exercise4ResponseTest < Minitest::Test
context 'Response to Exercise4' do
setup do
Flappi.configure do |conf|
Expand Down
2 changes: 1 addition & 1 deletion test/integration/exercise6_response_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def request
end

module Integration
class Exercise6ResponseTest < MiniTest::Test
class Exercise6ResponseTest < Minitest::Test
context 'Response to Exercise6 with renaming' do
setup do
Flappi.configure do |conf|
Expand Down
2 changes: 1 addition & 1 deletion test/integration/exercise7_doco_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require_relative '../examples/exercise7_param'

module Integration
class Exercise7DocoTest < MiniTest::Test
class Exercise7DocoTest < Minitest::Test
context 'Documentation of Exercise7' do
setup do
Flappi.configure do |conf|
Expand Down
2 changes: 1 addition & 1 deletion test/integration/exercise7_response_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def update
end

module Integration
class Exercise7ResponseTest < MiniTest::Test
class Exercise7ResponseTest < Minitest::Test
context 'Response to Exercise7' do
setup do
Flappi.configure do |conf|
Expand Down
2 changes: 1 addition & 1 deletion test/integration/exercise8_strict_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def request
end

module Integration
class Exercise8ResponseTest < MiniTest::Test
class Exercise8ResponseTest < Minitest::Test
context 'Response to Exercise8' do
setup do
Flappi.configure do |conf|
Expand Down
2 changes: 1 addition & 1 deletion test/integration/exercise9_response_label_doco_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require_relative '../examples/exercise9'

module Integration
class Exercise9ResponseLabelDocoTest < MiniTest::Test
class Exercise9ResponseLabelDocoTest < Minitest::Test
context 'Documentation of Exercise9' do
setup do
Flappi.configure do |conf|
Expand Down
2 changes: 1 addition & 1 deletion test/integration/no_content_return_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class NoContentReturnController < ExampleController
end

module Integration
class NoContentReturnTest < MiniTest::Test
class NoContentReturnTest < Minitest::Test
context 'Response to NoContentReturn' do
setup do
Flappi.configure do |conf|
Expand Down
2 changes: 1 addition & 1 deletion test/integration/no_content_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class NoContentController < ExampleController
end

module Integration
class NoContentTest < MiniTest::Test
class NoContentTest < Minitest::Test
context 'Response to NoContent' do
setup do
Flappi.configure do |conf|
Expand Down
2 changes: 1 addition & 1 deletion test/response_builder_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def self.where(_params)
end
end

class ::Flappi::ResponseBuilderTest < MiniTest::Test
class ::Flappi::ResponseBuilderTest < Minitest::Test
context 'Response Builder' do
setup do
@response_builder = ::Flappi::ResponseBuilder.new
Expand Down
2 changes: 1 addition & 1 deletion test/utils/arg_utils_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require_relative '../test_helper'

class ::Flappi::ArgUtilsTest < MiniTest::Test
class ::Flappi::ArgUtilsTest < Minitest::Test
context 'paired_args' do
should 'return empty array for no args' do
assert_equal [], Flappi::Utils::ArgUtils.paired_args
Expand Down
2 changes: 1 addition & 1 deletion test/utils/hash_key_utils_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require_relative '../test_helper'

class ::Flappi::HashKeyUtilsTest < MiniTest::Test
class ::Flappi::HashKeyUtilsTest < Minitest::Test
['symbol', 'string', 'mixed'].each do |key_type|
context "#{key_type} keys" do
setup do
Expand Down
2 changes: 1 addition & 1 deletion test/utils/param_types_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require_relative '../test_helper'

class Flappi::ParamTypesTest < MiniTest::Test
class Flappi::ParamTypesTest < Minitest::Test
context 'when extended' do
setup do
@param_types_test = Object.new
Expand Down
2 changes: 1 addition & 1 deletion test/version_plan_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

require_relative 'examples/version_plan'

class Flappi::VersionPlanTest < MiniTest::Test
class Flappi::VersionPlanTest < Minitest::Test
context 'using version_plan' do
should 'return available_version_definitions' do
expect_versions = Examples::VersionPlan.parse_versions('v2.0;v2.0-mobile;v2.1;v2.1-ember;v2.1-flat;v2.1-mobile')
Expand Down
2 changes: 1 addition & 1 deletion test/version_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

require_relative 'examples/version_plan'

class Flappi::VersionTest < MiniTest::Test
class Flappi::VersionTest < Minitest::Test
context 'initialize' do
should 'set flavour to :_blank when nil' do
v = Flappi::Version.new([1, 0], nil, nil)
Expand Down
2 changes: 1 addition & 1 deletion test/versions_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require_relative 'test_helper'

class Flappi::VersionsTest < MiniTest::Test
class Flappi::VersionsTest < Minitest::Test
context 'versions' do
setup do
@versions = Flappi::Versions.new [Flappi::Version.new([1, 0, 0], nil, nil), Flappi::Version.new([2, 0, 0], nil, nil)]
Expand Down
Loading