- Railsにプルリクストを送るときに知っておくと便利なお作法集
- Railsにプルリクエストを送りたいけど何から始めたらいいのかわからない人向けの指針
お作法についてはRuby on Rails に貢献する方法 | Rails ガイドを参考にしています。
Railsのコードを読むには、最低限次の二つの知識があったほうがよいです
| #!/bin/sh | |
| echo "gem search -da ^${1}$" | |
| gem search -da ^${1}$ |
| # -*- coding: utf-8 -*- | |
| require 'voice_text_api' | |
| require 'tempfile' | |
| # https://github.com/tdtds/voice_text_api | |
| vt = VoiceTextAPI.new('YOUR_API_KEY') | |
| # wav = vt.tts('隣の客はよく柿食う客だ', :haruka, emotion: :happiness) | |
| wav = vt.tts('隣の客はよく柿食う客だ', :haruka, emotion: :anger, emotion_level: 2) |
| repositoryformatversion = 0 | |
| filemode = true | |
| bare = false | |
| logallrefupdates = true | |
| compression = 9 |
| 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" |
| # | |
| # 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) |
| hoge |
| 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. |
| require 'thread' | |
| hash = {} | |
| a = Thread.new do | |
| connection = 'A' | |
| hash[:a] = -> { puts connection } | |
| end |
お作法についてはRuby on Rails に貢献する方法 | Rails ガイドを参考にしています。
Railsのコードを読むには、最低限次の二つの知識があったほうがよいです