tl;dr IdotabaのGemfileは"全プレ"になりました。ご笑納ください。→ Gemfile
rebuild.fmのep36でお知らせさせていただきました、Idobataの最新版Gemfileプレゼントをお届けいたします。 過日はIdobata会議01への多数のご参加ありがとうございました。おかげさまで盛況なミートアップとなりました。 (当日会場を提供いただいたEngine Yardさまのブログにて、Idobata会議01当日の様子がまとめられています。ありがとうございます!)
| # rubocop v0.35.0 から inherit_gem という機能が増えたので gem にしました | |
| # https://github.com/onk/onkcop | |
| inherit_gem: | |
| onkcop: "config/rubocop.yml" |
tl;dr IdotabaのGemfileは"全プレ"になりました。ご笑納ください。→ Gemfile
rebuild.fmのep36でお知らせさせていただきました、Idobataの最新版Gemfileプレゼントをお届けいたします。 過日はIdobata会議01への多数のご参加ありがとうございました。おかげさまで盛況なミートアップとなりました。 (当日会場を提供いただいたEngine Yardさまのブログにて、Idobata会議01当日の様子がまとめられています。ありがとうございます!)
June 7-8, 2013
Web site: http://reddotrubyconf.com/ Twitter: http://twitter.com/reddotrubyconf
Ping me @cheeaun on Twitter if you found some awesome stuff for #rdrc. This gist will be updated whenever there's new stuff.
Previously, on RedDotRubyConf 2012
HP ProLiant MicroServer http://h50146.www5.hp.com/products/servers/proliant/micro/
CPU model name: AMD Turion(tm) II Neo N40L Dual-Core Processor
CPU MHz: 800.000
| #!/usr/bin/env ruby | |
| spec_hits = [] | |
| checks = { | |
| '_spec\.rb$' => ['focus:[:space:]*true'], | |
| '\.rb$' => ['binding\.pry', 'debugger'] | |
| } | |
| # Find the names of all the filenames that have been (A)dded (C)opied or (M)odified | |
| filenames = `git diff --cached --name-only --diff-filter=ACM`.split("\n") |
| # config/initializers/i18n_exception_handler.rb | |
| I18n.exception_handler = ->(exception, locale, key, options) do | |
| if exception.is_a?(I18n::MissingTranslation) | |
| Rails.logger.warn exception.message if Rails.env.development? | |
| key.to_s.split('.').last.humanize | |
| else | |
| raise exception | |
| end | |
| end |
| class Attachment < ActiveRecord::Base | |
| belongs_to :attachable, :polymorphic => true | |
| mount_uploader :item, AttachmentUploader | |
| # background the storage of files to AWS and processing | |
| # makes for fast uploads! | |
| store_in_background :item | |
| attr_accessible :item | |
| before_save :update_attachment_attributes |
基礎知識
読み物系
| require 'rubygems' | |
| require 'bundler' | |
| Bundler.require | |
| require './application' | |
| namespace :assets do | |
| desc 'compile assets' | |
| task :compile => [:compile_js, :compile_css] do | |
| end |