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 'test/unit' | |
| module Stuff | |
| def self.included(base) | |
| base.extend Stuff::ClassMethods | |
| end | |
| module ClassMethods | |
| def foo | |
| 'foo' |
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
| backtrace must be Array of String | |
| /Users/scott/.rvm/gems/ruby-1.9.2-p0@bundler1/gems/rspec-1.3.1/lib/spec/mocks/message_expectation.rb:214:in `rescue in verify_messages_received' | |
| /Users/scott/.rvm/gems/ruby-1.9.2-p0@bundler1/gems/rspec-1.3.1/lib/spec/mocks/message_expectation.rb:209:in `verify_messages_received' | |
| /Users/scott/.rvm/gems/ruby-1.9.2-p0@bundler1/gems/rspec-1.3.1/lib/spec/mocks/proxy.rb:226:in `block in verify_expectations' | |
| /Users/scott/.rvm/gems/ruby-1.9.2-p0@bundler1/gems/rspec-1.3.1/lib/spec/mocks/proxy.rb:226:in `map' | |
| /Users/scott/.rvm/gems/ruby-1.9.2-p0@bundler1/gems/rspec-1.3.1/lib/spec/mocks/proxy.rb:226:in `verify_expectations' | |
| /Users/scott/.rvm/gems/ruby-1.9.2-p0@bundler1/gems/rspec-1.3.1/lib/spec/mocks/proxy.rb:79:in `verify' | |
| /Users/scott/.rvm/gems/ruby-1.9.2-p0@bundler1/gems/rspec-1.3.1/lib/spec/mocks/methods.rb:76:in `rspec_verify' | |
| /Users/scott/.rvm/gems/ruby-1.9.2-p0@bundler1/gems/rspec-1.3.1/lib/spec/mocks/space.rb:10:in `block in verify_all' | |
| /Users/scott/.rvm/gems/ruby-1.9.2-p0@bundl |
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
| <% form_for Thing.new do |f| %> | |
| <%= f.text_field :combined %> | |
| <input type="submit" value="Create" /> | |
| <% end %> |
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
| # File activesupport/lib/active_support/core_ext/class/attribute_accessors.rb, line 28 | |
| def cattr_reader(*syms) | |
| options = syms.extract_options! | |
| syms.each do |sym| | |
| class_eval( unless defined? @@#{sym} @@#{sym} = nil end def self.#{sym} @@#{sym} end, __FILE__, __LINE__ + 1) | |
| unless options[:instance_reader] == false | |
| class_eval( def #{sym} @@#{sym} end, __FILE__, __LINE__ + 1) | |
| end | |
| end |
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
| 1/2 c butter | |
| 1 1/4 lb grated sweet potato | |
| 2 1/2 T packed brown sugar | |
| 1/4 t salt | |
| 1/4 c tequila | |
| juice of 2 limes | |
| In a cast iron skillet: | |
| * melt butter | |
| * stir in sweet potatoes, pat into even layer |
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
| scott@blah aproject[master*]$ gem --version | |
| 1.8.5 | |
| scott@baldyak aproject[master*]$ bundle exec spec spec/models/some_spec.rb | |
| NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. | |
| Gem.source_index called from /Users/scott/.rvm/gems/ruby-1.8.7-p334@project/gems/bundler-1.0.10/lib/bundler/shared_helpers.rb:3. | |
| NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. | |
| Gem.source_index called from /Users/scott/.rvm/gems/ruby-1.8.7-p334@project/gems/bundler-1.0.10/lib/bundler/source.rb:162. | |
| NOTE: Gem::SourceIndex#each is deprecated with no replacement. It will be removed on or after 2011-11-01. | |
| Gem::SourceIndex#each called from /Users/scott/.rvm/gems/ruby-1.8.7-p334@project/gems/bundler-1.0.10/lib/bundler/source.rb:162. | |
| NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. |
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 'coffee_script' | |
| require 'rake/clean' | |
| def coffee_to_js(coffee) | |
| File.join(BUILDDIR, File.dirname(coffee.split('/')[1..-1].join('/')), File.basename(coffee).ext('js')) | |
| end | |
| JSFILE = 'app.js' | |
| JSPATH = "_attachments/js/app/#{JSFILE}" | |
| COFFEE = FileList['coffeescript/**/*.coffee'] |
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
| database: | |
| port: 3306 | |
| username: '' | |
| prefix: '' | |
| hostname: '' | |
| cleanser: | |
| age: 14d | |
| deletes-per-operation: 20000 | |
| type: H2 | |
| password: '' |
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
| enable-messages-help: true | |
| broadcast-snoop-target: '[Everyone]' | |
| broadcast-reload-target: '[Operators]' | |
| broadcast-break-target: '[Everyone]' | |
| enable-messages-error: true | |
| enable-messages-user: true | |
| enable-messages-owner: false | |
| enable-messages-admin: true | |
| enable-protection-doors: true | |
| default-door-timer: 0 |
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
| // Add this to your ~/Library/Application Support/Propane/unsupported/caveatPatchor.js | |
| var nyanForNyan = true; | |
| if (nyanForNyan) { | |
| Campfire.NyanForNyan = Class.create({ | |
| initialize: function(chat) { | |
| this.chat = chat; | |
| }, |