This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
λ rake osx_deps | |
brew list cairo | |
/usr/local/Cellar/cairo/1.10.2/bin/cairo-trace | |
/usr/local/Cellar/cairo/1.10.2/include/cairo/ (13 files) | |
/usr/local/Cellar/cairo/1.10.2/lib/libcairo-gobject.2.dylib | |
/usr/local/Cellar/cairo/1.10.2/lib/libcairo-script-interpreter.2.dylib | |
/usr/local/Cellar/cairo/1.10.2/lib/libcairo.2.dylib | |
/usr/local/Cellar/cairo/1.10.2/lib/cairo/ (3 files) | |
/usr/local/Cellar/cairo/1.10.2/lib/pkgconfig/ (12 files) | |
/usr/local/Cellar/cairo/1.10.2/lib/ (6 other files) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
λ rake | |
gcc -I. -c -oshoes/app.o -Wall -I/usr/include -I/usr/local/Cellar/pixman/0.20.2/include/pixman-1 -I/usr/X11/include/cairo -I/usr/X11/include -I/usr/X11/include/freetype2 -I/usr/X11/include/libpng15 -D_REENTRANT -I/usr/local/Cellar/pango/1.28.4/include/pango-1.0 -I/usr/local/Cellar/glib/2.28.8/include/glib-2.0 -I/usr/local/Cellar/glib/2.28.8/lib/glib-2.0/include -I/usr/local/Cellar/gettext/0.18.1.1/include -I/usr/local/Cellar/glib/2.28.8/include -I/Users/philcrissman/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/x86_64-darwin11.0.0 -I/Users/philcrissman/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I/Users/philcrissman/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/x86_64-darwin11.0.0 -O -DRUBY_1_9 -DSHOES_QUARTZ -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -fpascal-strings -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -x objective- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if CAIRO_HAS_QUARTZ_SURFACE | |
#include <ApplicationServices/ApplicationServices.h> | |
CAIRO_BEGIN_DECLS | |
cairo_public cairo_surface_t * | |
cairo_quartz_surface_create (cairo_format_t format, | |
unsigned int width, | |
unsigned int height); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jruby-1.6.3 :002 > require 'lib/ord' | |
=> true | |
jruby-1.6.3 :003 > [1,2,3,4,5] | |
=> [1, 2, 3, 4, 5] | |
jruby-1.6.3 :004 > a = [1,2,3,4,5] | |
=> [1, 2, 3, 4, 5] | |
jruby-1.6.3 :005 > a.third | |
=> 3 | |
jruby-1.6.3 :006 > a.fourth | |
=> 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Rakefile b/Rakefile | |
index 7192a5e..60b130e 100644 | |
--- a/Rakefile | |
+++ b/Rakefile | |
@@ -1,7 +1,7 @@ | |
require 'rubygems' | |
require 'rake' | |
require 'rake/clean' | |
-require_relative 'platform/skel' | |
+# require_relative 'platform/skel' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'rake' | |
require 'rake/clean' | |
# require_relative 'platform/skel' | |
require 'fileutils' | |
require 'find' | |
require 'yaml' | |
include FileUtils | |
APP = YAML.load_file(File.join(ENV['APP'] || ".", "app.yaml")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Invalid gemspec in [/Users/philcrissman/.rvm/gems/ruby-1.9.2-p290@shoes/specifications/gherkin-2.4.11.gemspec]: invalid date format in specification: "2011-08-17 00:00:00.000000000Z" | |
Invalid gemspec in [/Users/philcrissman/.rvm/gems/ruby-1.9.2-p290@shoes/specifications/gherkin-2.4.14.gemspec]: invalid date format in specification: "2011-08-20 00:00:00.000000000Z" | |
Invalid gemspec in [/Users/philcrissman/.rvm/gems/ruby-1.9.2-p290@shoes/specifications/gherkin-2.4.16.gemspec]: invalid date format in specification: "2011-08-25 00:00:00.000000000Z" | |
Invalid gemspec in [/Users/philcrissman/.rvm/gems/ruby-1.9.2-p290@shoes/specifications/gherkin-2.4.18.gemspec]: invalid date format in specification: "2011-09-05 00:00:00.000000000Z" | |
Invalid gemspec in [/Users/philcrissman/.rvm/gems/ruby-1.9.2-p290@shoes/specifications/shoes-cucumber-0.0.1.gemspec]: invalid date format in specification: "2011-08-19 00:00:00.000000000Z" | |
Invalid gemspec in [/Users/philcrissman/.rvm/gems/ruby-1.9.2-p290@shoes/specifications/webrobots-0.0.11 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Wordpress | |
def acts_as_wordpress(options) | |
if ::Rails.env == "development" | |
establish_connection :wordpress_dev | |
elsif ::Rails.env == "test" | |
establish_connection :wordpress_test | |
elsif ::Rails.env == "production" | |
establish_connection :wordpress_production |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> # on a model, works fine. | |
> Voucher.destroy_all(:user_id => nil) | |
=> # works as expected; returns an array of the records it destroyed, and said records have been deleted. | |
> # on a collection: | |
> wv.voucher_restrictions.destroy_all(:restriction_id => 108) | |
=> ArgumentError: wrong number of arguments (1 for 0) | |
> # but... this works: | |
> wv.voucher_restrictions.where(:restriction_id => 108).destroy_all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ActiveMerchant | |
module Billing | |
class CreditCard | |
extend ActiveModel::Naming | |
include ActiveModel::Conversion | |
def persisted? | |
false | |
end |