facets
facets copied to clipboard
Ruby Facets
...refinements and patching. See the README for more complete explanation.
In my Rails project, when I upgraded `tzinfo` to 1.2.7 it caused this error whenever I tried to boot the app: ``` facets/lib/core/facets/enumerable/recursively.rb:19:in `private': undefined method `untaint' for class `Enumerable::Recursor'...
Please could you answer about [setup](https://github.com/rubyworks/setup) gem?
Using `Math.percentile` sometimes fails for a high percentile. Example: ``` require 'facets/math/percentile' Math.percentile([1,2,3], 90) NoMethodError: undefined method `-' for nil:NilClass from /Users/michael/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/facets-3.1.0/lib/standard/facets/math/percentile.rb:33:in `percentile' from (irb):4 from /Users/michael/.rbenv/versions/2.3.6/bin/irb:11:in `' ```
Some build dependencies use Facets, so Facets can't be tested 100% cleanly when these dependencies are loaded by Bundler. Need to make sure this doesn't happen by A) getting rid...
```bash hotel_app [master~1●] % bundle exec rails c Traceback (most recent call last): 61: from bin/rails:9:in `' 60: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:324:in `require' 59: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:291:in `load_dependency' 58: from /hotel/hotel_app/vendor/gem/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:324:in `block in...
Hey developers, in our project we use facets and RSpec. Rspec has [an awesome feature](https://relishapp.com/rspec/rspec-mocks/v/3-2/docs/setting-constraints/matching-arguments) to check if a function was called **with** parameters like `expect(dbl).to receive(:foo).with(1, anything, /bar/)` Unfortunately...
@trans hello I have a questions on some of your gems, could you answer by email on them?
Requiring facets in test-unit unit tests causes invalid assertions to pass. See the below code reference ``` require 'test/unit' require 'facets' class TestExample < Test::Unit::TestCase def test_hash assert_equal({'name' => 'left'},...
I got the "can't modify frozen String" error when I use the `--enable-frozen-string-literal` Ruby option. It is because that `Module#attr_setter` method does not support frozen-string-literal. You can see the same...