-
新しいrakeタスク assets:clean はプリコンパイルされたアセットを削除する。
-
--skip-gemfile
や--skip-bundle
なしでの、アプリケーションとプラグインのソース生成は、bundle installを走らせる -
jdbc*アダプターにとってのデータベースタスクを修正した
-
jdbcpostgresqlにとってのテンプレート生成
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
def make_sites(options = {}) | |
times = options[:times] ? options[:times] : 50 | |
users = options[:users] ? options[:users] : User.all | |
times.times do |t| | |
n = Site.new | |
begin | |
n.user = users.sample | |
n.hostname = "siteno#{t}" | |
n.save | |
puts t |
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
source 'https://rubygems.org' | |
gem 'rails', '3.2.1' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
group :development, :test do | |
gem 'sqlite3' | |
gem 'heroku' |
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 | |
# coding: utf-8 | |
require 'rubygems' | |
require 'open-uri' | |
require 'json' | |
require 'thor' | |
class Tumblr < Thor | |
desc "get_photos [BASE_HOSTNAME] [API_KEY]", "Download all photos by selected base-hostname (api-key required)" |
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
## Rails 3.2.1 (January 26, 2012) ## | |
* No changes. |
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
## Rails 3.2.1 (January 26, 2012) ## | |
* No changes. |
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
# Herodu Dev Center Doc: | |
# http://devcenter.heroku.com/articles/memcache | |
# Dalli gem heroku url: | |
# https://github.com/mperham/dalli | |
####################### | |
# Local Setup memcached | |
####################### | |
sudo port install memcached |
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
## Rails 3.2.0 (January 20, 2012) ## | |
* Upgrade mail version to 2.4.0 *ML* | |
* Remove Old ActionMailer API *Josh Kalderimis* |
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
$ = jQuery | |
class Bucket | |
constructor: (@name = "__root__", @children = {}, @actions = {}) -> | |
getCallbacks: (actions...) -> | |
callbacks = [] | |
Array::push.apply(callbacks, @actions[action] || []) for action in actions | |
return callbacks |
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
module Resque::Rails | |
class Railtie < Rails::Railtie | |
initializer 'resque.set_config' do | |
Resque.redis ||= 'localhost:6379' | |
end | |
rake_tasks do | |
require 'resque/tasks' | |
task "resque:setup" => :environment | |
end |