find require calls from string using regexp
Match require statements in a string. Returns an array of matching require statements. Each match is an object with line number, variable name, and module name. Statements in code comments are ignored.
Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.
Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.
A better opn. Reuse the same tab on Chrome for 👨💻.
Express style path to RegExp utility
Match balanced character pairs, like "{" and "}"
Convert globs to regular expressions
A regular expression to match all Emoji-only symbols as per the Unicode Standard.
Fast Javascript text diff
a glob matcher in javascript
Rich matchers inspired by Hamcrest. Useful for generating helpful assertion failure messages in tests.
Simple, expected, and deterministic best-match sorting of an array in JavaScript
Provides metadata and conversions from repository urls for GitHub, Bitbucket and GitLab
A simple function to check whether a mimetype matches the specified mimetype (with wildcard support)
Match balanced character pairs, like "{" and "}"
npm package for https://github.com/google/diff-match-patch
Dependency-free request URI matcher
RegExp Match Indices polyfill
Match human-quality input to potential matches by edit distance.
Better streaming static file server with Range and conditional-GET support
Match BCP 47 language tags with language ranges per RFC 4647
Like JSONStream, but using Minipass streams
Regular expression for matching ANSI escape codes
Safe, atomic, transparent multi-file text rewrites — regex / Rhai script / tree-sitter modes, two-phase commit with rollback, agent-friendly JSON output.
Engine behind the recast CLI: regex / Rhai script / tree-sitter rewrites, atomic two-phase commit, schema-locked JSON output.
The Diff Match and Patch libraries offer robust algorithms to perform the operations required for synchronizing plain text.
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.
The Polyglot library allows a Ruby module to register a loader for the file type associated with a filename extension, and it augments 'require' to find and load matching files.
Validate Ruby data structures against JSON Schema definitions with support for type checking, required properties, pattern matching, numeric ranges, enums, and array validation.
In IRB, fzzrqr will browse your gem path and find the closest match to what you require.
A doorman for your Rack application. Checks if REMOTE_USER matches the subdomain. Requires some authentication means to set REMOTE_USER.
== FEATURES/PROBLEMS: * Partial string matching * The algorithm is not particularly performant == SYNOPSIS: require 'goto_string' s = %w(goto_string is a small library that implements a substring matching and ranking algorithm. The matching and ranking is similar to that found in Quicksilver or TextMate) GotoString::Matcher.match('string', s) #=> [["goto_string", "goto_string", 0.679259259259259, [["string", 5]]], ["substring", "substring", 0.461481481481481, [["s", 0], ["tring", 4]]]] An array is returned which contains one entry for each match. Matches are ordered by rank. Each match is itself an array, containing the following elements: [ "original candidate", "matched string", rank, [["substring_1", offset], ["substring_2", offset], ... ] ] You can optionally pass a block to the match method which will get each candidate passed to it. The return value of the block is what will be used for matching. This is so you can pass in arrays of complex objects as candidates: GotoString::Matcher.match( "goto", Project.find(:all) ) do |p| p.name end The resulting matches will contain a reference to the matched string (the project name) as well as the project (the original candidate) == REQUIREMENTS: * None
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.
Easily visualize progress of any Ruby task. A drop in replacement for Array.each. Output uses different colors for successes/failured, allowing to easily check status of every task. Every line is trimmed/padded to match the terminal width. There is also a possiblity to change item name during processing. Transactions for ActiveRecord are also handled if required.
== A soundcloud player written in Ruby with Ncurses for user interface and mpg123 for playback. Requires the mpg123 executable to be present in the PATH. == Usage * lists recently uploaded tracks from soundcloud cloudruby * lists all tracks that matches the keyword (here 'wearecastor') cloudruby wearecastor * also works with the direct soundcloud URL cloudruby http://soundcloud.com/crassmix/feint-clockwork-hearts-crass
An asciidoctor extension that generates List of Figures, List of Tables, List of Listings, and List of Examples. Works with HTML5 (xref links) and asciidoctor-pdf (dot-leader style matching the ToC, optional ToC integration, PDF bookmarks). Compatible with asciidoctor-lists macro syntax. No hardcoded anchors required — IDs are auto-generated.
Creates the following tables: Users Roles Permissions ControllerFilters Implements a devise authentication strategy already configured. Makes available an 'authorized_to? method in application controller that returns true if the users permissions match the given permissions/list of permissions. Implements whitelisting of all requests. Every http request needs to have an associated ControllerFilter. If the filter exists, then the current_user's permissions must satisfy the permissions required by the filter.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.