Sha256: 300a91f838af97c8696cf147b85a8cc3cdcd455a8d8689cb4e9bde89464eb968
Contents?: true
Size: 1.68 KB
Versions: 1
Compression:
Stored size: 1.68 KB
Contents
CopyTuner Client ================= [![Build Status](https://travis-ci.org/SonicGarden/copy-tuner-ruby-client.svg?branch=master)](https://travis-ci.org/SonicGarden/copy-tuner-ruby-client) ## Getting started Add it to your Gemfile ``` gem 'copy_tuner_client' ``` Create config/initializers/copy_tuner.rb ``` CopyTunerClient.configure do |config| config.api_key = 'YOUR-API-KEY' config.host = 'COPY-TUNER-HOST-NAME' # I18n keys and messages will be sent to server if the locale matches config.locales = [:ja, :en] end ``` ## CopyTunerの翻訳ファイルをymlとして出力する 該当のRailsプロジェクトで下記のrakeを実行する ``` bundle exec rake copy_tuner:export ``` これで、`config/locales/copy_tuner.yml` に翻訳ファイルが作成されます。 ## IE等のレガシーブラウザ対応が必要な場合 以下のスクリプトタグを追加する。(必要なpolyfillを個別に読み込んでも可) ``` <script src="https://ft-polyfill-service.herokuapp.com/v2/polyfill.min.js"></script> ``` [Polyfill service](https://cdn.polyfill.io/v2/docs/) Development ================= ## Spec ### default spec $ bundle exec rake ### Appraisal for Multi Version Rails spec $ bundle exec appraisal install $ bundle exec rake appraisal ## release gem $ bundle exec rake build # build gem to pkg/ dir $ bundle exec rake install # install to local gem $ bundle exec rake release # release gem to rubygems.org ## CoffeeScript ``` $ npm run watch # Watch files for changes, rerunning the specified command when any file is updated. $ npm run build # Compile a .coffee script into a .js JavaScript file of the same name. ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
copy_tuner_client-0.4.1 | README.md |