artofmission (Ryan Heneise)

Name
Ryan Heneise
Email
Website/Blog
http://www.artofmission.com
Company
Art of Mission, Inc.
Location
Round Rock, TX
Member Since
Feb 13, 2008 (about 1 year)

Following 13 githubbers and watching 112 repositories view all →

Public Repositories (22)

  • auto_html

    Rails plugin for transforming urls to appropriate resource (image, link, YouTube, Vimeo video,...)

    legend

    Forked from dejan/auto_html Tue Nov 10 05:50:34 -0800 2009

    Last updated Tue Nov 10 05:58:20 -0800 2009

  • completeness-fu

    Simple dsl for defining how to calculate how complete a model instance is (similar to LinkedIn pr...

    legend

    Forked from joshk/completeness-fu Thu Oct 29 03:28:42 -0700 2009

    Last updated Thu Oct 29 03:39:30 -0700 2009

  • money

    Leetsoft's Money library

    legend

    Forked from collectiveidea/money Wed Oct 21 17:56:51 -0700 2009

    Last updated Thu Oct 22 17:58:30 -0700 2009

  • highrise

    Ruby wrapper around Highrise API.

    legend

    Forked from tapajos/highrise Fri Nov 06 13:49:20 -0800 2009

    Last updated Thu Oct 15 09:34:02 -0700 2009

  • action_mailer_tls

    Gmail and ActionMailer

    legend

    Forked from openrain/action_mailer_tls Sat Oct 10 08:39:04 -0700 2009

    Last updated Sat Oct 10 08:56:44 -0700 2009

  • rails-footnotes

    Every Rails page has footnotes that gives information about your application and links back to yo...

    legend

    Forked from josevalim/rails-footnotes Thu May 28 13:53:46 -0700 2009

    Last updated Tue Sep 15 09:36:13 -0700 2009

  • invoicing

    Fork of Ept's Ruby invoicing framework gem, using Leetsoft's Money gem

    legend

    Forked from ept/invoicing Tue Oct 06 07:23:38 -0700 2009

    Last updated Thu Aug 27 03:43:47 -0700 2009

  • radiant-comments

    Radiant Comments

    legend

    Last updated Sun Aug 23 11:50:33 -0700 2009

  • oauth

    OAuth implementation for Ruby

    legend

    Forked from pelle/oauth Tue Aug 04 19:06:16 -0700 2009

    Last updated Mon Jul 27 17:10:48 -0700 2009

  • oauth

    OAuth implementation for Ruby

    legend

    Forked from pelle/oauth Tue Aug 04 19:06:16 -0700 2009

    Last updated Mon Jul 27 17:10:48 -0700 2009

  • passive_record

    PassiveRecord provides ActiveRecord-like behavior for static, non-database models.

    legend

    Last updated Wed Jul 22 18:12:32 -0700 2009

  • Donor-Tools-Consumer

    An example of how the Donor Tools API can be used

    legend

    Last updated Thu Jun 25 17:40:47 -0700 2009

  • will_paginate

    Most awesome pagination solution for Ruby

    legend

    Forked from mislav/will_paginate Tue May 19 05:28:25 -0700 2009

    Last updated Fri May 29 21:04:59 -0700 2009

  • active_merchant

    Active Merchant is a simple payment abstraction library used in and sponsored by Shopify. It is w...

    legend

    Forked from Shopify/active_merchant Thu Jun 04 22:54:45 -0700 2009

    Last updated Wed May 20 19:53:53 -0700 2009

  • requires-approval

    RequiresApproval allows objects to be marked as "published", "pending", "draft", "declined", "spa...

    legend

    Last updated Wed Dec 10 19:25:44 -0800 2008

  • delayed_job

    Database based asynchronously priority queue system -- Extracted from Shopify

    legend

    Forked from tobi/delayed_job Mon Dec 01 14:52:06 -0800 2008

    Last updated Tue Dec 02 15:51:32 -0800 2008

  • crossconnector

    Functional Blogging

    legend

    Last updated Mon Sep 15 10:01:21 -0700 2008

  • quickbooks_integration_plugin

    QuickBooks Integration Plugin

    legend

    Forked from zackchandler/quickbooks_integration_plugin Fri Aug 22 08:38:21 -0700 2008

    Last updated Fri Aug 22 08:38:24 -0700 2008

  • acts_as_quickbooks_model

    Simplying working with models that rely on parsing QuickBooks SDK qbXML messages

    legend

    Forked from zackchandler/acts_as_quickbooks_model Fri Aug 22 08:37:34 -0700 2008

    Last updated Fri Aug 22 08:37:38 -0700 2008

  • radiant-articles

    Blog-like articles for Radiant, outside the normal page structure.

    legend

    Last updated Fri Jul 25 13:32:07 -0700 2008

  • paperclip

    Paperclip File Management Plugin

    legend

    Forked from thoughtbot/paperclip Mon Jun 16 21:33:59 -0700 2008

    Last updated Wed Jun 18 08:13:45 -0700 2008

  • rolerequirement

    A limited-purpose authorization plugin for Rails apps.

    legend

    Last updated Mon Jun 16 07:40:50 -0700 2008

Public Activity feed

artofmission started watching jrallison/authlogic_oauth Thu Nov 12 16:38:53 -0800 2009
authlogic_oauth's description:
Authlogic OAuth is an extension of the Authlogic library to add OAuth support. OAuth can be used to allow users to login with their Twitter credentials.
artofmission started watching binarylogic/authlogic Thu Nov 12 16:38:34 -0800 2009
authlogic's description:
A clean, simple, and unobtrusive ruby authentication solution.
artofmission started watching kalasjocke/authlogic_facebook_connect Thu Nov 12 16:36:09 -0800 2009
authlogic_facebook_connect's description:
Extension of the Authlogic library to add Facebook Connect support built upon the excellent facebooker gem
artofmission started watching ncr/background-fu Wed Nov 11 07:19:23 -0800 2009
background-fu's description:
Running Long Background Tasks In Ruby On Rails Made Dead Simple
artofmission pushed to master at artofmission/auto_html Tue Nov 10 05:58:20 -0800 2009
HEAD is 6348b178fd5c7d568acf02cb45a070dd09b5df7a
artofmission forked dejan/auto_html Tue Nov 10 05:50:37 -0800 2009
Forked repository is at artofmission/auto_html
artofmission started watching dejan/auto_html Mon Nov 09 11:38:29 -0800 2009
auto_html's description:
Rails plugin for transforming urls to appropriate resource (image, link, YouTube, Vimeo video,...)
artofmission forked tapajos/highrise Fri Nov 06 13:49:20 -0800 2009
Forked repository is at artofmission/highrise
artofmission started watching sam-github/vpim Tue Nov 03 04:55:51 -0800 2009
vpim's description:
vCard and iCalendar support, the standard for exchange and storage of contact information and calendars
artofmission started watching jacobat/ruby-spreadsheet Mon Nov 02 12:22:06 -0800 2009
ruby-spreadsheet's description:
A mirror of the spreadsheet Ruby gem
artofmission started watching hmcgowan/roo Mon Nov 02 12:22:04 -0800 2009
roo's description:
Roo provides an interface to Open Office, Excel, and Google Spreadsheets.
artofmission started watching plataformatec/devise Thu Oct 29 12:05:19 -0700 2009
devise's description:
Flexible authentication solution for Rails with Warden
artofmission pushed to master at artofmission/completeness-fu Thu Oct 29 03:39:30 -0700 2009
HEAD is d6dadd73d0ab1ed69a285e231e8832ac82200fa7
  • artofmission committed d6dadd73:
    Added :url parameter to translations to make it easier to link checks to
artofmission deleted branch 4c37de8847cba206a0122f1926c2e87a817f8fc4 at artofmission/completeness-fu Thu Oct 29 03:38:47 -0700 2009
Deleted branch was at artofmission/completeness-fu/tree/4c37de8847cba206a0122f1926c2e87a817f8fc4
artofmission forked joshk/completeness-fu Thu Oct 29 03:28:43 -0700 2009
Forked repository is at artofmission/completeness-fu
artofmission commented on artofmission/money Fri Oct 23 06:47:52 -0700 2009
Comment in 60b5257:

This hack is the result of banging my head on the desk too many times. I needed something to work, pronto! Here's what happened:

In Donor Tools, a donation can have any currency, which is stored in the database as the currency's iso code like "USD". Each donation can have many Splits, and each split adds up to the donation total. For example, a donation for $100 may have two splits: $50 for General fund and $50 for Orphanage fund. Because each split has an amount, which needs to be treated as a money object, it needs to be aware of its parent's currency. So we delegate Split#currency to the Donation model. The problem with this is that Aggregations#reader_method calls #read_attribute to get the currency (used when setting up composed_of). Since #read_attribute only reads database table attributes, it was ignoring the delegated currency method in my Splits model. The quick fix was to change #read_attribute to #send, allowing composed_of to understand the delegated currency method, even though it's not a database attribute.

Here's what the diff looks like:

--- aggregations.rb
+++ (clipboard)
@@ -215,8 +215,8 @@
           module_eval do
             define_method(name) do |*args|
               force_reload = args.first || false
-              if (instance_variable_get("@#{name}").nil? || force_reload) && (!allow_nil || mapping.any? {|pair| !read_attribute(pair.first).nil? })
-                attrs = mapping.collect {|pair| read_attribute(pair.first)}
+              if (instance_variable_get("@#{name}").nil? || force_reload) && (!allow_nil || mapping.any? {|pair| !send(pair.first).nil? })
+                attrs = mapping.collect {|pair| send(pair.first)}
                 object = case constructor
                   when Symbol
                     class_name.constantize.send(constructor, *attrs)

I'm not sure if this deserves to be in Rails core or not, because it's kind of an edge case, and I don't know if using #send instead of #read_attribute has any other implications. If you think it's a worthwhile change, I'll put together some tests and submit a patch. Otherwise, I'll probably move this hack out of the plugin into my lib directory.

Thanks!

artofmission commented on artofmission/money Fri Oct 23 06:28:48 -0700 2009
Comment in 6733204:

I had to get this working in a hurry, so it's a bit haphazard. I agree about the dependency - it's easy to just plop that in for #number_with_delimiter. One way I suppose would be to implement an internal delimiter method, except that the ActiveSupport version is already set up to use I18N, which is important if you want your delimiter to be something other than a comma. I suppose we could leave this for the views to handle, except that I feel like the point of using the #format method is that the number should come out formatted as I want it, without any additional formatting necessary on the view side.

The other question I had was the best way to bundle the Currency model. In my app I originally had a currency table in my database, but that had a number of drawbacks. I decided to rip it out and go with the currency object you see here, and bundle it with the plugin, since that would make it more convenient to work with signs and iso_codes and such things. But I realize that the limitations of having the currency object bundled here may outweigh the benefits - i.e. no built-in conversion, requiring hard coding of new or defunct currencies (e.g. Zimbabwe Dollar), etc.

I really appreciate your feedback! Thanks for being proactive.

artofmission pushed to master at artofmission/money Thu Oct 22 17:58:31 -0700 2009
HEAD is 60b525710c9cd3d688e2b133eeddf32ad33e319c

2 commits »

artofmission started watching alex3t/rails_on_pg Thu Oct 22 16:49:53 -0700 2009
rails_on_pg's description:
PostgreSQL views, functions, triggers, foreign keys for rails migration
artofmission forked collectiveidea/money Wed Oct 21 17:56:54 -0700 2009
Forked repository is at artofmission/money
artofmission started watching joshk/completeness-fu Wed Oct 21 05:46:06 -0700 2009
completeness-fu's description:
Simple dsl for defining how to calculate how complete a model instance is (similar to LinkedIn profile completeness)
artofmission started watching collectiveidea/money Tue Oct 20 12:37:20 -0700 2009
money's description:
Leetsoft's Money library
artofmission started watching tapajos/highrise Mon Oct 12 18:00:52 -0700 2009
highrise's description:
Ruby wrapper around Highrise API.
artofmission pushed to master at artofmission/action_mailer_tls Sat Oct 10 08:56:44 -0700 2009
HEAD is ecf34d2bb7cf2f620c9508a60e29276b6a527c16
  • artofmission committed ecf34d2b:
    Removed authtype argument from #check_auth_args for compatibility with Rails 2.3.4.
artofmission forked openrain/action_mailer_tls Sat Oct 10 08:39:04 -0700 2009
Forked repository is at artofmission/action_mailer_tls
artofmission started watching harukizaemon/redhillonrails Thu Oct 08 05:58:57 -0700 2009
redhillonrails's description:
Once off never to be repeated copy of the UNSUPPORTED Rails plugins
artofmission started watching tsechingho/authlogic_bundle Thu Oct 08 05:56:25 -0700 2009
authlogic_bundle's description:
The authlogic/DA based authentication/authorization system supported via engines and template of rails.
artofmission started watching DocSavage/rails-authorization-plugin Thu Oct 08 05:54:53 -0700 2009
rails-authorization-plugin's description:
This plugin provides a flexible way to add authorization to Rails.
artofmission started watching thoughtbot/clearance Thu Oct 08 05:52:10 -0700 2009
clearance's description:
Rails authentication with email & password.
artofmission started watching justinfrench/formtastic Thu Oct 08 05:52:05 -0700 2009
formtastic's description:
A Rails form builder plugin with semantically rich and accessible markup. It's deliciously close to 1.0!
artofmission started watching JackDanger/wave Wed Oct 07 09:10:25 -0700 2009
wave's description:
Ruby client for Google Wave
artofmission started watching aflatter/money Tue Oct 06 07:28:36 -0700 2009
money's description:
Leetsoft's Money library
artofmission forked ept/invoicing Tue Oct 06 07:23:39 -0700 2009
Forked repository is at artofmission/invoicing
artofmission started watching ept/invoicing Tue Oct 06 07:22:25 -0700 2009
invoicing's description:
Ruby invoicing framework gem
artofmission started watching flyerhzm/bullet Fri Oct 02 08:16:52 -0700 2009
bullet's description:
A rails plugin/gem to kill N+1 queries and unused eager loading