http://gihyo.jp/news/report/01/rubykaigi2011/0001?page=4
これによって,他のサービスがユーザの概念について知らなくてお開発に専念できるという利点から話を始めました。
http://gihyo.jp/news/report/01/rubykaigi2011/0001?page=4
これによって,他のサービスがユーザの概念について知らなくてお開発に専念できるという利点から話を始めました。
if system( 'which jshint4r > /dev/null' ) | |
desc "jshint" | |
task :jshint do | |
exit system( 'jshint4r -c config/jshint.yml -r compilation' ) | |
end | |
end |
src: | |
- 'public/javascripts/**/*.js' | |
excludes: | |
- 'public/javascripts/**/*.min.js' | |
- 'public/javascripts/**/*.pack.js' | |
options: | |
asi: true |
if ( typeof $.mobile == 'undefined' ) { | |
// PC | |
$(document).ready(function() { | |
// | |
}); | |
} else { | |
// Mobile | |
$('[data-role=page]').live('pagecreate', function() { | |
// | |
}); |
before_filter :default_format_to_html | |
def default_format_to_html | |
accept = request.headers['HTTP_ACCEPT'] | |
if params[:format].nil? and | |
(accept.nil? or !accept.include?('text/html')) | |
request.format = 'html' | |
end | |
end |
desc 'list svn untracked files' | |
task 'svn-untracked' do | |
excludes = File.read( File.dirname(__FILE__) + '/.gitignore' ).lines.map(&:chomp) | |
list = Rake::FileList[`svn stat --ignore-externals | awk '$1 == "?" {print $NF}'`.lines.map(&:chomp)] | |
excludes.each { |ex| | |
list.exclude( ex ) | |
} | |
puts list.select { |e| | |
File.file?( e ) |
#! /bin/sh | |
XARGS_NO_RUN='' | |
if [ `uname` = 'Linux' ]; then XARGS_NO_RUN='--no-run-if-empty'; fi | |
find PATH CONDITIONS | xargs $XARGS_NO_RUN COMMAND |
# -*- mode: ruby -*- | |
source :rubygems | |
gem 'guard-shell' | |
gem 'guard-livereload' |
# -*- mode: ruby -*- | |
guard :livereload do | |
watch( /\.js$/ ) { '/' } | |
end |
put .rake file as lib/tasks/spec.rake |