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
$("#my-template").expand({ | |
"$h2": "Cooking with Crowley", | |
"$.content p.excerpt": "Step 1, light the grill. Step 2..." | |
}) |
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
$("#my-template").expand({ | |
name: "Cooking with Crowley", | |
author: { name: "Shawn Crowley" } | |
}) |
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
$("#my-template").expand({ | |
name: "Cooking with Crowley", | |
content: "Step 1, light the grill. Step 2..." | |
}) |
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
$("#my-template").expand({ | |
content: "Step 1, light the grill. Step 2...", | |
comments: ["Sounds delicious!", "What next?!?"] | |
}) |
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
$("#my-template").expand({ | |
name: { "@href": "http://atomicobject.com/pages/Shawn+Crowley" } | |
}) |
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
page.should have_css("#main-nav") | |
page.should have_css(".posts .post", text: "Angry capybara") | |
page.should have_css(".post .comments", count: 2) |
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
--- | |
application: | |
env: production | |
web: | |
context: / | |
environment: | |
BUNDLE_WITHOUT: "development:test" |
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
15:47:17,172 ERROR [STDERR] Could not find ZenTest-4.5.0 in any of the sources | |
15:47:17,172 ERROR [STDERR] Try running `bundle install`. |
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
source "http://rubygems.org" | |
source "http://rubygems.torquebox.org" | |
gem "rails", "3.0.7" | |
gem "jruby-openssl", "0.7.3" | |
gem "haml", "3.0.25" | |
gem "compass", "0.10.6" | |
gem "compass-susy-plugin", "0.8.1" | |
gem "mongoid", "2.0.0.rc.7" |
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 FirePoll | |
# @param [String] msg a custom message raised when polling fails | |
# @param [Numeric] seconds number of seconds to poll | |
# @yield a block that determines whether polling should continue | |
# @yieldreturn false if polling should continue | |
# @yieldreturn true if polling is complete | |
# @raise [RuntimeError] when polling fails | |
# @return [void] | |
# @since 1.0.0 | |
def poll(msg=nil, seconds=2.0) |