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
# -*- mode: ruby -*- | |
def main | |
if npm_installed? | |
list = npm_list | |
DATA.to_a.map(&:chomp).select {|l| | |
l.size > 0 | |
}.each {|pkg| | |
if list.include?(pkg) |
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 'find' | |
map "/#{Sinatra::Sprockets.config.prefix}" do | |
env = Sinatra::Sprockets.environment | |
installed_assets = Bundler.definition.resolve.select {|e| | |
e.name =~ /^rails-assets/ | |
}.map {|e| | |
spec = e.instance_variable_get(:@specification) | |
[spec.name, spec.version].join('-') |
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
/node_modules | |
*.map | |
/bower_components |
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
<html> | |
<head> | |
<?= javascript_include_tag(); ?> | |
<?= stylesheet_include_tag(); ?> | |
</head> | |
<body> | |
<p>body</p> | |
</body> | |
</html> |
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
Rake::TestTask.new do |t| | |
test_files = FileList['test/**/*_test.rb'] | |
test_files -= FileList['test/**/*_request_test.rb'] unless ENV['FORCE_REQUEST'] | |
t.test_files = test_files | |
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
require "rake/testtask" | |
Rake::TestTask.new do |t| | |
t.description = nil | |
t.pattern = 'spec/**/*_spec.rb' | |
end | |
desc 'start server and do spec and cleanup' | |
task :spec => :test do | |
Process.kill(:INT, @pid) |
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
ical2gcalがGoogle Calendar API v3対応したよ | |
AndroidWearドヤぁ | |
モデリングしてますか? | |
Riemoh | |
RubyKaigiとYAPC::Asia | |
俺とDockerfileとtDiaryとKubernets | |
Webの歴史をふり返る | |
EngineYard触ってみた | |
5分でわかるオブジェクト指向 | |
ライフゲーム最後まで作ってみました |
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
command:test | |
system(__DIR__.'/../../vendor/bin/phpunit'); | |
command:untracked | |
system('git ls-files -o --exclude-per-directory=.gitignore'); |
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
wkhtmltopdf -O landscape -s Letter http://localhost:9090/print pdf.pdf |
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 allow_concurrency? | |
if config.allow_concurrency.nil? | |
config.cache_classes && config.eager_load | |
else | |
config.allow_concurrency | |
end | |
end |
OlderNewer