No commit activity in last 3 years
No release in over 3 years
Collection of refinements for Ruby classes
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 5.14.1
~> 13.0
 Project Readme

Tests Maintainability Coverage Status

TurboTestRubyRefinements

Collection of refinements for Ruby classes:

  • TurboTestRubyRefinements::HashDeepMerge (Hash)

    #deep_merge from ActiveSupport #deep_merge! from ActiveSupport

  • TurboTestRubyRefinements::HashLeafPaths (Hash)

    #leaf_paths: returns an array with a list of nested keys in the hash

  • TurboTestRubyRefinements::ModuleName (Module)

    #turbo_test_name: resolves singleton and anonymous class names.

  • TurboTestRubyRefinements::InstanceVariableHash (Module)

    #instance_variable_hash

  • TurboTestRubyRefinements::ClassVariableHash (Module)

    #class_variable_hash

  • TurboTestRubyRefinements::ObjectLoadedConstants (Object)

    #loaded_constants

  • TurboTestRubyRefinements::StringJSONParse (String)

    #parse_as_json

  • TurboTestRubyRefinements::StringRelativePath (String)

    #relative_path

  • TurboTestRubyRefinements::StringTestFile (String)

    #test_file?

  • TurboTestRubyRefinements::GemLoadedSpecsPaths (Gem)

    #loaded_specs_paths

Installation

Add this line to your application's Gemfile:

gem 'turbo_test_ruby_refinements'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install turbo_test_ruby_refinements

Usage

Activate the refinements you want to use at the top-level, and inside classes and modules.

using TurboTestRubyRefinements::StringRelativePath

Refinements Documentation

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/dunkelbraun/turbo_test_ruby_refinements. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the TurboTestRubyRefinements project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.