Ruby ORM for Amazon’s DynamoDB. NOTE: This post has been updated for version 3 of dynamoid! For version 1.3.x use the 1-3-stable branch README. Installation Installing Dynamoid is pretty simple. First include the Gem in your Gemfile: gem 'dynamoid', '~> 2' Prerequisities Dynamoid depends on the aws-sdk, and this is tested on the current version of aws-sdk (~> 3), rails (>= 4).
Properly Implement ActiveRecord Transactions Provides a method, transaction_wrapper at the class and instance levels that can be used instead of ActiveRecord#transaction. Enables you to do transactions properly, with custom rescues and retry, including with or without locking. Installation Add this line to your application’s Gemfile: gem 'activerecord-transactionable' And then execute: $ bundle Or install it yourself as: $ gem install activerecord-transactionable Usage class Car < ActiveRecord::Base include Activerecord::Transactionable # Note lowercase "r" in Activerecord (different namespace than rails' module) validates_presence_of :name end When creating, saving, deleting within the transaction make sure to use the bang methods (!
“development” is not always the best name for the local environment rails_env_local, where a rails environment for local development can be anything it desires. Even a butterfly. Tell your DevOps friends. Rails Guides has more information on the Rails initialization routines. You can easily accomplish what this gem does in a few lines of code. … But are you going to write specs for code in your config/boot.rb file? Really?
Introducing a new RubyGem celluloid-io-pg-listener (on github) Allows you to asynchronously LISTEN for Postgresql NOTIFY messages and do something with the payloads. Sure! It should work if you just run bin/setup from the root directory of the gem, then you can follow along the examples in the readme. All the data about db setup and structure is located in the spec/apps directory.
Why Should You Use flag_shih_tzu
What is it? See the what is it post. Why should you use it? No migrations needed for new boolean attributes Avoids ALTER TABLE when adding a new boolean field to a model, which can be important for very large tables Only the one integer column needs to be indexed The index is actually meaningful, unlike a boolean column index Bitwise operations are fast, indexes are even faster, and you can use either one Adds scopes to easily access collections of records with specific fields Chained scopes to combine sql for different bit fields for maximum performance Provides condition builder methods for each bit field so you can construct your own custom SQL with the correct bit field values for the list.
Gets the Rails flash object working with page cacheing. This gem is no longer maintained. Please consider switching to unobtrusive_flash!
Allows you to customize (and normalize the length of!) the text and color used to write the log level to your logs. This gem is no longer maintained. “error” can become red and say “noo”. “info” can become white and say “meh”. “debug” can become blue and say “wat”. Or whatever you want…
An endlessly customizable development toolbar added to your website. Successor of ye olde rack-bug. This gem is no longer maintained.
Rack Middleware that injects things into the response body. This gem is no longer maintained.