Logo Rails Bling
Logo Inverted Logo
  • Blog Setup
    • How I Go
    • How I Go Again
    • My Git Hooks
  • Clojure Thoughts
    • Clojourner in a Foreign Land
  • Decentralized Git
    • Give Up Github
    • Put the D in DVCS
  • Development Process
    • How to Agile
  • Local Development Setup
    • Upgrade to El Capitan
    • Upgrade to Catalina
    • Catalina Fresh Install
  • Ruby Thoughts
    • Fix Nokogiri Warning
  • RubyGems
    • Current List
    • Repair Old Gem (Part 1)
    • Repair Bundler (Part 2)
    • Upgrade RSpec (Part 3)
    • Upgrade Autotest (Part 4)
    • Rakefile & RuboCop LTS (Part 5)
Hero Image
subdomain-fu

Subdomain linking and routing for Rails This gem is no longer maintained. written by Michael Bleigh, maintained by myself.

December 6, 2015 Read
Hero Image
Introducing strict_states

Provides content_tag_for method signature to create customizable and logic-gated labels from objects. Also includes a presenter base class to allow any Ruby web framework to create logic around HTML tags. I’ll put something here soon.

November 9, 2015 Read
Hero Image
Introducing rspec-pending_for

Mark specs pending or skipped for specific Ruby engine (e.g. MRI or JRuby) / version combinations. Easiest to just show you: it("blah is blah") do pending_for(engine: "rbx") pending_for(engine: "ruby", versions: "2.1.5") pending_for(engine: "jruby", versions: "2.2.2", reason: "due to a bug in Ruby") pending_for(engine: "ruby", versions: "2.0.0", reason: "because I don't have the time") expect("blah").to eq "blah" end Installation Add this line to your application’s Gemfile: gem 'rspec-pending_for' And then execute:

October 22, 2015 Read
Hero Image
The Why and How of celluloid-io-pg-listener

LISTEN for Postgresql NOTIFY messages; Asynchronously process payloads celluloid-io-pg-listener (on github) Why? At Trumaker & Co we had a distributed data problem. Two data stores that needed to be kept synchronized, in real time, with inserts and updates allowed on both sides. There wasn’t a good solution available for that, so I did a lot of research and built celluloid-io-pg-listener to solve the problem. How? The data stores are both PostgreSQL databases living in different namespaces (i.

October 6, 2015 Read
Hero Image
Introducing status_tag

Provides content_tag_for method signature to create customizable and logic-gated labels from objects. Also includes a presenter base class to allow any Ruby web framework to create logic around HTML tags. I’ll put something here soon.

August 24, 2015 Read
Hero Image
FLOSS Ruby Projects

I have been writing RubyGems since 2008, and Rails plugins since 2005. Contributions to the community Along the way I have contributed to many projects, including rails’ active-record (PR #20921), annotate_models (PR #473), hashie (PR #313, PR #314, PR #315, PR #316, and PR #318), git-reflow (PR #155, and PR #159), memoist (PR #33), month (PR #7), neography (PR #74 and PR #104), masonry-rails (PR #14), zues-parallel_tests (PR #28), rusen (PR #5, and PR #6), gem-release (PR #37 and PR #38), gem-dependent (PR #11), RubyGems Guides (PR #211), sidekiq-unique-jobs (PR #194), keep-a-changelog (PR #224), rchardet (PR #28), clearance (PR #769), wwtd (PR #48), capistrano-ssh-doctor (PR #11), google-drive-ruby (PR #282), subroutine (PR #4), clockwork (PR #14), ruby toolbox catalog (PR #12), amazon-awis (PR #2), and appraisal (PR #128).

August 15, 2015 Read
Hero Image
react-rails-benchmark_renderer

A reference implementation of a custom React renderer for Rails. Adds benchmarking info to Rails logs for parity with Rails view rendering benchmarking. I’ll put something here soon.

June 21, 2015 Read
Hero Image
Introducing each_in_batches

Performance Measured and Tuned Batch Processing of Records with Blocks in Rails. EachInBatches (Originally BolingForBatches) NOTE: I am resurrecting this code because I still have this recurring need, and Rail’s native batching doesn’t cut mustard. It is some of my most ancient code, and it isn’t pretty, but I hope to improve it over time. I often need to execute really large computations on really large data sets. I usually end up writing a rake task to do it, which calls methods in my models.

June 18, 2015 Read
Hero Image
Introducing destination_errors

Collect errors from multiple objects on a single object, especially useful with the Form Object Presenter Pattern. I’ll put something here soon.

April 8, 2015 Read
Hero Image
Introducing letter_group

Organize data results from raw sql queries (as with PGresult, or Dossier) intelligently. I’ll put something here soon.

April 8, 2015 Read
Hero Image
controller_validator

This Gem Is No Longer Maintained

November 20, 2014 Read
Hero Image
Maintaining flag_shih_tzu

Bit Fields for Active Record What is a bit field? https://en.wikipedia.org/wiki/Bit_field What is a bitwise operation? https://en.wikipedia.org/wiki/Bitwise_operation flag_shih_tzu supports both :bit_operator and :in_list query modes, but only :in_list can will utilize a database index. What does it look like? class Lead < ActiveRecord::Base include FlagShihTzu has_flags 1 => :warm_up_email_sent, 2 => :follow_up_call_made, 3 => :final_email_sent, 4 => :appointment_scheduled, 5 => :not_interested, # You can specify use any integer column to use for flags!

August 6, 2013 Read
  • ««
  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • »
  • »»
Navigation
  • About
  • Skills
  • Experience
  • Projects
Contact me:
  • peter.boling a@t gmail.com
  • +1-925-252-5351

Toha Theme Logo Toha (tweaked by @pboling)
© 2024 Peter Boling
CC BY-SA 4.0
Powered by Hugo Logo