- run: bundle exec rspec --format json --out rspec.json
- run:
name: Create CircleCI Test Summary
when: always
command: |
gem install circleci-test_report
circleci-test_report -f rspec.json -o /tmp/test-results/rspec.xml
class YourController < ApplicationController
after_action :change_charset_to_sjis, only: [:index]
def index
end
private
def change_charset_to_sjis
SELECT
requesting_ps.user AS requesting_user,
requesting_ps.host AS requesting_host,
requesting_ps.db AS requesting_db,
requesting_lock.lock_mode AS requesting_lock_mode,
requesting_lock.lock_type AS requesting_lock_type,
requesting_lock.lock_table AS requesting_lock_table,
requesting_lock.lock_index AS requesting_lock_index,
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
default: &default | |
adapter: mysql2 | |
encoding: utf8mb4 | |
charset: utf8mb4 | |
collation: utf8mb4_general_ci | |
pool: 5 | |
username: your_name | |
password: your_password | |
variables: | |
sql_mode: 'STRICT_ALL_TABLES' |
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
machine: | |
post: | |
- sudo service mongodb stop | |
- sudo service postgresql stop | |
- sudo service couchdb stop | |
- sudo service zookeeper stop | |
- sudo -u rabbitmq rabbitmqctl stop |
React.jsを使いたいRailsおじさんがJavaScriptライブラリをそれっぽく管理しながら入門する
を試したらエラーになったのでメモ
http://ppworks.hatenablog.jp/entry/2015/08/10/212937
下記が必要でした。
%heroku buildpacks:set https://github.com/heroku/heroku-buildpack-ruby
# urlが変更されるまで待つ
# 登録ボタンをクリックして登録処理が完了すると画面遷移する場合などで画面遷移するまで待つようにできる
# 例) wait_for_url_change { click_on '登録' }
# 登録して画面遷移が終わるまでwait_for_url_changeでsleepされる
def wait_for_url_change(timeout_sec = 3)
current_path = page.current_path
yield
http://swks.sakura.ne.jp/wars/kifusave/ のサイトを使って棋譜を表示
javascript:window.location.href = 'http://swks.sakura.ne.jp/wars/kifu/' + window.location.href.split('/')[4] + '.kif'