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 'pathname' | |
module ThumbleMonks | |
class Tastic # Formerly Rake::Static | |
def initialize(app, options={}) | |
@app = app |
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
{% assign vendorname = [] %} | |
{% for product in collections.all.products %} | |
{% if vendorname != product.vendor %} | |
<div class="thumb"> | |
<div class="thumb"><a href="{{product.url}}"><img src="{{ product.featured_image | product_img_url: 'medium' }}" alt="{{ product.title }}"/></a> | |
<h3><a href="{{product.url}}">{{product.vendor | link_to_vendor}}</a></h3> | |
</div> | |
<br /> |
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
{block:Posts} | |
{block:Text} | |
{block:Title} | |
<h3><a href="{Permalink}">{Title}</a></h3> | |
{/block:Title} | |
{Body} | |
{/block:Text} | |
{block:Photo} |
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
*** LOCAL GEMS *** | |
actionmailer (2.3.5, 2.3.2, 2.2.2) | |
actionpack (2.3.5, 2.3.2, 2.2.2) | |
active_presenter (1.2.0, 0.0.6, 0.0.5) | |
activerecord (2.3.5, 2.3.2, 2.2.2) | |
activeresource (2.3.5, 2.3.2, 2.2.2) | |
activesupport (2.3.5, 2.3.2, 2.2.2) | |
acts_as_markup (1.3.3, 1.3.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
(in /usr/local/projects/law-mo-tron) | |
** Invoke default (first_time) | |
** Invoke test (first_time) | |
** Execute test | |
** Invoke test:units (first_time) | |
** Invoke db:test:prepare (first_time) | |
** Invoke db:abort_if_pending_migrations (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
** Execute db:abort_if_pending_migrations |
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
/opt/ruby-enterprise-1.8.6-20081205/bin/ruby -I"lib:test" "/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/account_test.rb" "test/unit/address_test.rb" "test/unit/attachment_test.rb" "test/unit/blog_post_test.rb" "test/unit/category_test.rb" "test/unit/helpers/admin/lawyers_helper_test.rb" "test/unit/lawyer_test.rb" "test/unit/news_item_test.rb" "test/unit/office_test.rb" "test/unit/page_test.rb" "test/unit/practice_area_test.rb" "test/unit/user_test.rb" | |
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/gems/1.8/gems/nokogiri-1.4.0/lib/nokogiri/xml/builder.rb:272: warning: parenthesize argument(s) for future version | |
[DEPRECATION] should_change(expression, options) is deprecated. Use should_change(description, options) { code } instead. | |
[DEPRECATION] should_change(expression, options) is deprecated. Use should_change(description, options) { code } instead. | |
[DEPRECATION] should_not_change(expression) is deprecated. Use should_not_change(description) { c |
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
class ShopifyCollection | |
require 'feedzirra' | |
require 'hpricot' | |
BASE_URI = "http://shop.thepostfamily.com/collections/" | |
def initialize(url) | |
@feed = Feedzirra::Feed.fetch_and_parse(BASE_URI + url + ".atom") | |
@entries = @feed.entries | |
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
class Test::Unit::TestCase | |
def self.should_be_denied | |
should "have error message to login" do | |
assert_contain "You must be logged in" | |
end | |
should "redirect to login" do | |
assert_equal login_url, current_url | |
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
function showCategory(){ $(this).find("span").animate({top:"0px"}, 200); } | |
function hideCateogry() { $(this).find("span").animate({top:"30px"}, 200); } | |
function loadContent(content) { moveAboveTop(); $('#content').load(content,'',showNewContent()); } | |
function showNewContent() { $('#content').show('normal'); } | |
function setWindowLocationHash(url) { window.location.hash = url.substr(0,url.length-5); } | |
function moveAboveTop() { | |
if ( window.location.hash.length > 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
x* Test that email notifications from staging/production are working. | |
# Groups | |
x* Site admin's should be able to see all groups & be omnipotent (D) | |
# Email Notifications: | |
x* Link directly to a message in the site | |
x* Preview who the message is from & first few lines of message (D) | |
# Messages (N) |