- Methods should be sorted alphabeticaly
class Plop| options = { | |
| option_1: a, | |
| option_2: blabla, | |
| option_3: blablablablablabla, | |
| option_4: bblablablablablablablabla, | |
| option_5: bblablablabla | |
| } | |
| local_var.method_with_hash_and_block(mandatory_param, options) do |v| | |
| d = v.bla |
| group :production do | |
| gem 'unicorn' | |
| end |
| [advice] | |
| # Hides command hints in basic `git status`. | |
| statusHints = false | |
| # Hides any warning when checking out a commit by hash instead of branch. | |
| detachedHead = false | |
| [alias] | |
| # Shows the commit hash on 6 chars to match `git log`. | |
| # -s suppresses the author name and timestamp from the output. | |
| blame = blame --abbrev=6 -s |
| # tweaking the Ruby GC to speed up tests | |
| export RUBY_GC_MALLOC_LIMIT=90000000 | |
| export RUBY_FREE_MIN=200000 | |
| # chruby | |
| source /usr/local/opt/chruby/share/chruby/chruby.sh | |
| source /usr/local/opt/chruby/share/chruby/auto.sh | |
| RUBIES=(/usr/local/rubies/*) | |
| chruby $(cat ~/.ruby-version) |
| # _plugins/redcarpet_rouge.rb | |
| require 'redcarpet' | |
| require 'rouge' | |
| require 'rouge/plugins/redcarpet' | |
| module Jekyll | |
| class RedcarpetRouge < Converter | |
| safe true | |
| priority :high |
| fr: | |
| admin: | |
| js: | |
| true: Vrai | |
| false: Faux | |
| is_present: Est présent | |
| is_blank: Est vide | |
| date: Date ... | |
| between_and_: Entre le ... et le ... | |
| today: "Aujourd'hui" |
| ruby_version = '2.3.1' | |
| def yes!(statement) | |
| !!(ask("#{statement} [yes]") =~ /^(y(es)?)?$/) | |
| end | |
| project_name = @app_name.parameterize | |
| doing_tests = yes!('Do you plan on writing tests?') |
| source 'https://rubygems.org' | |
| gem 'rails', '4.2.1' | |
| gem 'pg' | |
| gem 'sass-rails', '~> 5.0' | |
| gem 'uglifier', '>= 1.3.0' | |
| gem 'coffee-rails', '~> 4.1.0' | |
| gem 'jquery-rails' | |
| gem 'rspec-rails' |