rearmed_rails - A collection of helpful methods and monkey patches for Rails

  •        5

The difference between this library and others is that all monkey patching is performed in an opt-in way because you shouldnt be using methods that you dont know about. Run rails g rearmed_rails:setup to create a settings files in config/initializers/rearmed_rails.rb where you can opt-in to the monkey patches available in the library. Set these values to true if you want to enable the applicable monkey patch.

https://github.com/westonganger/rearmed_rails

Tags
Implementation
License
Platform

   




Related Projects

time_math2 - Small library for operations with time steps (like "next day", "floor to hour" and so on)

  •    Ruby

TimeMath2 is a small, no-dependencies library attempting to make time arithmetics easier. It provides you with simple, easy-to-remember API, without any monkey-patching of core Ruby classes, so it can be used alongside Rails or without it, for any purpose. TimeMath is the best name I know for the task library does, yet it is already taken. So, with no other thoughts I came with the ugly solution.

rewire - Easy monkey-patching for node.js unit tests

  •    Javascript

Please note: The current version of rewire is only compatible with CommonJS modules. See Limitations. rewire acts exactly like require. With just one difference: Your module will now export a special setter and getter for private variables.

monkey - Monkey patching in Go

  •    Go

Actual arbitrary monkeypatching for Go. Yes really. It's not possible through regular language constructs, but we can always bend computers to our will! Monkey implements monkeypatching by rewriting the running executable at runtime and inserting a jump to the function you want called instead. This is as unsafe as it sounds and I don't recommend anyone do it outside of a testing environment.

kahlan - :heavy_check_mark: PHP Test Framework for Freedom, Truth, and Justice

  •    PHP

Kahlan is a full-featured Unit & BDD test framework a la RSpec/JSpec which uses a describe-it syntax and moves testing in PHP one step forward. Kahlan lets you stub or monkey patch your code directly like in Ruby or JavaScript without any required PECL-extensions.

kickoff_tailwind - A rapid Rails 6 application template for personal use bundled with Tailwind CSS

  •    HTML

A rapid Rails 6 application template for personal use. This particular template utilizes Tailwind CSS, a utility-first CSS framework for rapid UI development. Tailwind depends on Webpack so this also comes bundled with webpacker support.


ProjectTemplate - A template utility for R projects that provides a skeletal project.

  •    R

The ProjectTemplate package lets you automatically build a directory for a new R project with a standardized subdirectory structure. Using this structure, ProjectTemplate automates data and package loading. The hope is that standardized data loading, automatic importing of best practice packages, integrated unit testing and useful nudges towards keeping a cleanly organized codebase will improve the quality of R coding. The inspiration comes from the rails command from Ruby on Rails, which initializes a new Rails project with the proper skeletal structure automatically. Also, ProjectTemplate follows Rails's approach of preferring convention over configuration: the automatic data and library loading as well as the automatic testing work easily because assumptions are made about the directory structure and naming conventions used in your code. You can customize your codebase however you'd like, but you will have to edit the ProjectTemplate loading functions to use your conventions instead of the defaults.

counter_culture - Turbo-charged counter caches for your Rails app.

  •    Ruby

Tested against Ruby 2.2.5 and 2.3.1 and against the latest patch releases of Rails 3.2, 4.0, 4.1, 4.2, 5.0 and 5.1. Note that the column must be NOT NULL and have a default of zero for this gem to work correctly.

ProjectTemplate - A template utility for R projects that provides a skeletal project.

  •    R

The ProjectTemplate package lets you automatically build a directory for a new R project with a standardized subdirectory structure. Using this structure, ProjectTemplate automates data and package loading. The hope is that standardized data loading, automatic importing of best practice packages, integrated unit testing and useful nudges towards keeping a cleanly organized codebase will improve the quality of R coding. The inspiration comes from the rails command from Ruby on Rails, which initializes a new Rails project with the proper skeletal structure automatically. Also, ProjectTemplate follows Rails's approach of preferring convention over configuration: the automatic data and library loading as well as the automatic testing work easily because assumptions are made about the directory structure and naming conventions used in your code. You can customize your codebase however you'd like, but you will have to edit the ProjectTemplate loading functions to use your conventions instead of the defaults.

ultramysql

  •    C

A fast MySQL driver written in pure C/C++ for Python. Compatible with gevent through monkey patching.

UI7Kit - Backport flat-style UIKit from iOS7 to iOS5+

  •    Objective-C

UI7Kit is a GUI toolkit which can backport flat-style UIKit from iOS7 to iOS5/iOS6. Additionally, UI7Kit can also be used to patch legacy UIKit to UI7Kit in runtime. NOTE: This project is not mature yet and is being refined. You may come across some bugs or unexpected behaviors for complex real-world product.

resque-status - resque-status is an extension to the resque queue system that provides simple trackable jobs

  •    Ruby

resque-status is an extension to the resque queue system that provides simple trackable jobs. resque-status provides a set of simple classes that extend resque's default functionality (with 0% monkey patching) to give apps a way to track specific job instances and their status. It achieves this by giving job instances UUID's and allowing the job instances to report their status from within their iterations.

ultramysql - A fast MySQL driver written in pure C/C++ for Python

  •    C

A fast MySQL driver written in pure C/C++ for Python. Compatible with gevent through monkey patching.

minitest-reporters - :page_with_curl: Create customizable MiniTest output formats.

  •    Ruby

Death to haphazard monkey-patching! Extend Minitest through simple hooks. This will swap out the Minitest runner to the custom one used by minitest-reporters and use the correct reporters for Textmate, Rubymine, and the console. If you would like to write your own reporter, just include Minitest::Reporter and override the methods you'd like. Take a look at the provided reporters for examples.

anycable - Polyglot replacement for Ruby WebSocket servers with Action Cable protocol

  •    Ruby

AnyCable allows you to use any WebSocket server (written in any language) as a replacement for your Ruby server (such as Faye, ActionCable, etc). AnyCable uses ActionCable protocol, so you can use ActionCable JavaScript client without any monkey-patching.

wrapt - A Python module for decorators, wrappers and monkey patching.

  •    Python

The aim of the wrapt module is to provide a transparent object proxy for Python, which can be used as the basis for the construction of function wrappers and decorator functions. The wrapt module focuses very much on correctness. It therefore goes way beyond existing mechanisms such as functools.wraps() to ensure that decorators preserve introspectability, signatures, type checking abilities etc. The decorators that can be constructed using this module will work in far more scenarios than typical decorators and provide more predictable and consistent behaviour.

Groovy Monkey

  •    Java

Groovy Monkey is a Utility for Eclipse that enables you to create scripts in Groovy, Beanshell, Python or Ruby to run directly in Eclipse. This tool can be used to Eclipse API exploration, automation scripts, and rapid plugin prototyping.

handlebars_assets - Use handlebars.js templates with the Rails asset pipeline.

  •    Ruby

@AlexRiedler has made some larger changes to this repository for going forward; If you have existing monkey patches they may not work, and the configuration schema has changed slightly to handle multiple extensions for the same compilation pipeline. My pull request to allow / in partials was pulled into Handlebars. The hack that converted partial names to underscored paths (shared/_time -> _shared_time) is no longer necessary and has been removed. You should change all the partial references in your app when upgrading from a version prior to v0.9.0.

flutie - View helpers for Rails applications

  •    Ruby

Flutie provides some utility view helpers for use with Rails applications. There are helpers for setting a page title and for generating body classes.

wicked_pdf - PDF generator (from HTML) plugin for Ruby on Rails

  •    Ruby

Wicked PDF uses the shell utility wkhtmltopdf to serve a PDF file to a user from HTML. In other words, rather than dealing with a PDF generation DSL of some sort, you simply write an HTML view as you would normally, then let Wicked PDF take care of the hard stuff. to config/initializers/mime_types.rb in older versions of Rails.






We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.