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

Support search for ruby less than 2.4.0 #12

Merged

Conversation

kfpo
Copy link
Contributor

@kfpo kfpo commented Oct 3, 2018

  1. Switching to the Symbol#match because of missing Symbol#match? method in older Ruby versions
    ( http://ruby-doc.org/core-2.3.7/Symbol.html#method-i-match ),
  2. Very important (not really) cosmetic changes, like frozen_string_literal.
    What do you think, @akabiru ?

@coveralls
Copy link

coveralls commented Oct 3, 2018

Pull Request Test Coverage Report for Build 51

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 48: 0.0%
Covered Lines: 68
Relevant Lines: 68

💛 - Coveralls

module FakerBot
VERSION = '0.4.1'.freeze
VERSION = '0.4.1'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's bump the version here to 0.4.2 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -60,7 +60,7 @@ def all_descendants_with_methods
def search_descendants_matching_query
faker_descendants.each do |faker|
methods = faker.my_singleton_methods
matching = methods.select { |m| m.match?(/#{query}/i) }
matching = methods.select { |m| m.match(/#{query}/i) }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! 🏅

@kfpo kfpo force-pushed the feature/support-search-ruby-less-than-2-4 branch from cc183a8 to 33b619c Compare October 4, 2018 09:47
Copy link
Owner

@akabiru akabiru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! 👍

@akabiru akabiru merged commit 32b76ce into akabiru:master Oct 4, 2018
@kfpo
Copy link
Contributor Author

kfpo commented Oct 4, 2018

Thank you for this gem! 🙂

@akabiru
Copy link
Owner

akabiru commented Oct 4, 2018

Glad you found fakerbot useful and thank you for your contribution @kfpo ! 😄 Feel free to come back. 😉

@kfpo kfpo deleted the feature/support-search-ruby-less-than-2-4 branch October 7, 2018 20:06
@akabiru akabiru added the bug label Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants