-
The new rake task assets:clean removes precompiled assets. [fxn]
-
Application and plugin generation run bundle install unless
--skip-gemfile
or--skip-bundle
. [fxn] -
Fixed database tasks for jdbc* adapters #jruby [Rashmi Yadav]
-
Template generation for jdbcpostgresql #jruby [Vishnu Atrai]
This file contains 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
/** | |
* Detect if the browser can play MP3 audio using native HTML5 Audio. | |
* Invokes the callack function with first parameter is the boolean success | |
* value; if that value is false, a second error parameter is passed. This error | |
* is either HTMLMediaError or some other DOMException or Error object. | |
* Note the callback is likely to be invoked asynchronously! | |
* @param {function(boolean, Object|undefined)} callback | |
*/ | |
function canPlayAudioMP3(callback){ | |
try { |
This file contains 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
#!/usr/bin/env ruby | |
# ffcurl | |
# | |
# This curl that automatically uses your firefox cookies. Use it like you would normally | |
# use curl. Report bugs to [email protected]. Or better yet, fork it from: | |
# | |
# http://gist.github.com/393140 | |
# | |
# Also for webkit/safari: http://gist.github.com/393141 |
This file contains 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
#!/usr/bin/env ruby | |
# sfcurl | |
# | |
# This curl that automatically uses your safari/webkit cookies. Use it like you would | |
# normally use curl. Report bugs to [email protected]. Or better yet, fork it from: | |
# | |
# http://gist.github.com/gists/393141 | |
# | |
# Also for firefox: http://gist.github.com/393140 |
This file contains 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 'rbtree' | |
class Req | |
attr_accessor :path, :time, :requires, :exception | |
def initialize(path) | |
@path = path | |
@requires = [] | |
@time = 0 | |
end |
This file contains 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
#!/bin/sh | |
echo "Building Titanium Mobile" | |
[[ ! -f ~/Code/Mobile/titanium_mobile ]] && mkdir -p ~/Code/Mobile/titanium_mobile | |
cd ~/Code/Mobile/titanium_mobile | |
git pull origin master | |
case "$1" in | |
iphone) | |
scons -Q iphone=1 | |
;; |
This file contains 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 Edition < ActiveRecord::Base | |
scope :published, where(arel_table[:published_at].not_eq(nil)) | |
scope :generated, where(arel_table[:generated_at].not_eq(nil)) | |
scope :available, published.generated | |
end | |
class Magazine < ActiveRecord::Base | |
# This is where #merge works its magic, by allowing you to merge scopes from other models. | |
scope :with_available_editions, includes(:editions).merge(Edition.available) | |
end |
This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.
You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf
using homebrew.
In your Gemfile add:
group :development, :test do
gem 'micro_migrations', :git => '[email protected]:33e9f92c229eb808a4fa.git'
end
You might want to add something like this to the Rakefile of apps that use a gem that uses micro_migrations:
ENV['SCHEMA'] = "#{Gem.loaded_specs['your-gem-name'].full_gem_path}/db/schema.rb"
In your Gemfile add:
group :development, :test do
gem 'micro_migrations', :git => '[email protected]:33e9f92c229eb808a4fa.git'
end
You might want to add something like this to the Rakefile of apps that use a gem that uses micro_migrations:
ENV['SCHEMA'] = "#{Gem.loaded_specs['your-gem-name'].full_gem_path}/db/schema.rb"
OlderNewer