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
** Invoke version (first_time) | |
** Execute version | |
Setting version to 0.3.0.854 | |
** Invoke tag (first_time) | |
** Execute tag | |
Tagged v0.3.0.854 | |
** Invoke release_notes (first_time) | |
** Execute release_notes | |
** Invoke beta:archive (first_time) | |
** Invoke beta:build |
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
#improved example | |
require 'spec_helper' | |
describe Card do | |
subject do | |
Card.new(card_type) | |
end | |
describe "#value" do | |
context "Two of Hearts" do |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>DVTConsoleDebuggerInputTextColor</key> | |
<string>0 0 0 1</string> | |
<key>DVTConsoleDebuggerInputTextFont</key> | |
<string>Menlo-Bold - 11.0</string> | |
<key>DVTConsoleDebuggerOutputTextColor</key> | |
<string>0 0 0 1</string> |
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
group :development, :test do | |
gem 'capybara' | |
gem 'rspec' | |
gem 'rspec-rails' | |
gem 'autotest' | |
gem 'autotest-rails' | |
gem 'cucumber' | |
gem 'cucumber-rails' | |
gem 'database_cleaner' | |
gem 'pickler' |
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
VCR.config do |c| | |
c.cassette_library_dir = 'fixtures/cassettes' | |
c.stub_with :webmock | |
end | |
class VCRSavonTest < Test::Unit::TestCase | |
def setup | |
path = File.expand_path("../fixtures/cassettes", __FILE__) | |
`rm -rf #{path}` | |
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
[~/cool-app (master)]$ bundle install | |
Fetching source index for http://rubygems.org/ | |
Using rake (0.8.7) | |
Using ZenTest (4.4.0) | |
Using abstract (1.0.0) | |
Using activesupport (3.0.1) | |
Using builder (2.1.2) | |
Using i18n (0.4.2) | |
Using activemodel (3.0.1) | |
Using erubis (2.6.6) |
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 CompressedRequests | |
def initialize(app) | |
@app = app | |
end | |
def call(env) | |
if env['REQUEST_METHOD'] =~ /(POST|PUT)/ | |
if env.keys.include? 'HTTP_CONTENT_ENCODING' | |
input = env['rack.input'].read |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" | |
assembly="YOUR_ASSEMBLY" | |
namespace="YOUR_NAMESPACE"> | |
<class name="Foo" table="foos"> | |
<id name="id"> | |
<generator class="identity"/> | |
</id> | |
<property name="Bar" not-null="true"/> | |
</class> |
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
public static string Pluralize(this string str) | |
{ | |
if(str.EndsWith("s")) | |
return str + "es"; | |
return str + "s"; | |
} |
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
// Customize the appearance of table view cells. | |
- (UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath *)indexPath { | |
static NSString *CellIdentifier = @"Cell"; | |
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; | |
if (cell == nil) { | |
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease]; | |
cell.opaque = NO; | |
cell.textLabel.backgroundColor = [UIColor clearColor]; |