extend native require to handle array inputs based on node-resolve
Replace `Array.from` by `require('array-from')`.
Replace `Array.find` by `require('array-find')`.
Which kind of Typed Array is this JavaScript value? Works cross-realm, without `instanceof`, and despite Symbol.toStringTag.
Is this value a JS ArrayBuffer?
A simple list of possible Typed Array names.
Is this value a JS SharedArrayBuffer?
Robustly get the byte offset of a Typed Array
`Array.prototype.concat`, but made safe by ignoring Symbol.isConcatSpreadable
Robustly get the byte length of a Typed Array
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
Get the ArrayBuffer out of a TypedArray, robustly.
Robustly get the length of a Typed Array
Is this value a JS Typed Array? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.
#### how to use ``` // or import const splitArray = require('array-utils-split');
Parse postgres array columns
Run an array of functions in parallel
Minimal async jobs utility library, with streams support
A JavaScript text diff implementation.
Lodash modular utilities.
very fast object redaction
Guarantees an array back
Matches strings against configurable strings, globs, regular expressions, and/or functions
Put a bunch of emitted events in an array, for testing.
manage blank elements of Array objects.(Rails is not required, but ActiveSupport is required.
Validate Ruby data structures against JSON Schema definitions with support for type checking, required properties, pattern matching, numeric ranges, enums, and array validation.
Adds methods for Hash: - symbolize_keys - recursive_symbolize_keys Array: - to_csv (requires FasterCSV gem if ruby 1.8) - select_with_index - to_auto_complete_list - active_record_type_condition_rendering
* match_each * match_enum * match_in_order require 'rubygems' require 'spec' require 'gregwebs-rspec_multi_matchers' describe 'array of ones' do it 'should be all ones' do [1,2,3].should each { |n| n.should == 1 } end end =begin output 'array of ones should fail on 2' FAILED line: 14 item 1: 2 expected: 1, got: 2 (using ==) =end As expected, the output shows expected and got fields line is the line number of the expectiation inside the block the item line gives the index of the item being yielded to the block, and the item itself
Generate a grid based heatmap from a 2d array using rmagick. Requires ImageMagick. Work in progress.
An array that is restricted to instances of one class. Added to_s and to_a methods, as well as map and collect methods. require 'restrictedarray'
Scalpel is a sentence segmentation tool for Ruby. It allows you to split a text into an array of sentences. It is simple, lightweight, blazing fast and does not require any domain-specific training. It works well even in the face of ill-formatted texts.
Required is a utility to require all files in a directory. Why would one want to require a whole bunch of files at once? I have used this gem on 2 projects to: - require dozens of jar files when working on a JRuby project - pull in all files before running code coverage (rcov), to find code that is otherwise dead/untouched Options for required include the ability to recursively descend through subdirectories, include/exclude files based on pattern matching, and to specify the order of requires based on filename. An array of all the files that were loaded is returned. Quick example: require 'required' required "some/path/to/dir" See the README for more examples, and description of options.
This gem provides functionality to check if the applicant's skills match at least 60% of the required skills. Note: all input skills must be array.
Paramoid is a gem that extends Rails Strong Parameters, allowing to declare complex params structures with a super cool DSL, supporting required params, default values, groups, arrays and more.
A very simple gem that adds some methods to some Ruby standard classes, e.g. <array>.include_any?, <array>.delete_random, etc. Simply require the gem ( require "more_ruby" ) and the additional methods will be available. # New instance methods # ## Array :all_instance_of?, :all_kind_of?, :av, :delete_random, :include_any?, :insert_flat, :mean, :modulo_fetch, :peach, :random, :random_index, :random_insert, :random_move, :stringify_all_values_deep, :sum, :wrap_fetch ## Float :format_with_thousands_delimiter, :signif ## Hash :all_keys, :all_values, :delete_random, :peach, :random_key, :random_pair, :random_value, :remove_empty_fields, :sort_deep, :stringify_all_values_deep, :strip_hash_of_keys, :to_a_deep, :to_xml ## Integer :digit_count, :format_with_thousands_delimiter, :num_to_letter, :signif ## NilClass :empty? ## Numeric :format_with_thousands_delimiter ## String :append, :camelcase, :camelcase_to_snakecase, :capitalize_all, :capitalize_first_letter_only, :escape, :escape_whitespace, :extract_values_from_xml_string, :formatted_number, :index_of_last_capital, :invert_case, :is_hex?, :is_integer?, :join, :pascalcase, :prefix_lines, :random_case, :snakecase, :snakecase_and_downcase, :to_bool, :unindent ## Time :is_after?, :is_before?, :is_within?, :remove_subseconds # New singleton methods # ## FalseClass :maybe?, :random ## File :basename_no_ext ## TrueClass :maybe?, :random
Simple-ish enumberable-simplifier. Useful for APIs like Twitter, etc If you have a hash or an array or something that quacks like one, you can do stuff example: require 'dot_notation' h = {a: {b: {c: [{d: 'hi'}]}}} h.extend(DotNotation) h.dot('a.b.c.0.d') #=> 'hi' h.dot('a.b.c.foo.bar.bz.whatever.124.whocares') #=> nil
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.