- Railsにプルリクストを送るときに知っておくと便利なお作法集
- Railsにプルリクエストを送りたいけど何から始めたらいいのかわからない人向けの指針
お作法についてはRuby on Rails に貢献する方法 | Rails ガイドを参考にしています。
Railsのコードを読むには、最低限次の二つの知識があったほうがよいです
| # ここに with の定義を書く |
| begin | |
| require "bundler/inline" | |
| rescue LoadError => e | |
| $stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
| raise e | |
| end | |
| gemfile(true) do | |
| source "https://rubygems.org" | |
| gem "rails", github: 'rails/rails' |
お作法についてはRuby on Rails に貢献する方法 | Rails ガイドを参考にしています。
Railsのコードを読むには、最低限次の二つの知識があったほうがよいです
| require 'thread' | |
| hash = {} | |
| a = Thread.new do | |
| connection = 'A' | |
| hash[:a] = -> { puts connection } | |
| end |
| begin | |
| require 'bundler/inline' | |
| rescue LoadError => e | |
| $stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
| raise e | |
| end | |
| gemfile(true) do | |
| source 'https://rubygems.org' | |
| # Activate the gem you are reporting the issue against. |
| begin | |
| require 'bundler/inline' | |
| rescue LoadError => e | |
| $stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
| raise e | |
| end | |
| gemfile(true) do | |
| source 'https://rubygems.org' | |
| # Activate the gem you are reporting the issue against. |
| hoge |
| # | |
| # brew install imagemagick exiftool | |
| # | |
| system('convert -size 128x128 xc:blue test.jpg') | |
| file_size = 1_048_576 - 448 | |
| ascii = ('a'..'z').to_a + ('A'..'Z').to_a + ('0'..'9').to_a | |
| File.open('random.txt', 'w') do |file| | |
| file.write(file_size.times.map { ascii.sample }.join) |
| test: | |
| pre: | |
| - "export PULL_REQUEST_ID=`bundle exec prid willnet/savanna` && if [ $PULL_REQUEST_ID ]; then cd .. && git clone git@github.com:willnet/savanna.git for_pronto && cd for_pronto && git checkout -b ${CIRCLE_BRANCH} remotes/origin/${CIRCLE_BRANCH} && bundle install && PULL_REQUEST_ID=`bundle exec prid willnet/savanna` bundle exec pronto run -c master -f github_pr && cd ../savanna; else echo 'current branch is not pull request'; fi" |
| repositoryformatversion = 0 | |
| filemode = true | |
| bare = false | |
| logallrefupdates = true | |
| compression = 9 |