Sha256: 76b75b3407bd050c5192bb27100fd75b08dac56cb1cbb4671470a2844a348fb7

Contents?: true

Size: 1.55 KB

Versions: 17

Compression:

Stored size: 1.55 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'
  config.html_escape = true

  # 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://cdn.polyfill.io/v2/polyfill.min.js"></script>
```

[Polyfill service](https://cdn.polyfill.io/v2/docs/)

Development
=================

## クライアント用コード

`src`以下を編集してください。
`app/assets/*`を直接編集したらダメよ!

```
$ yarn dev   # 開発時
$ yarn build   # ビルド
```


## Spec

### default spec

```
$ bundle exec rspec
```

## 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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
copy_tuner_client-0.18.0 README.md
copy_tuner_client-0.17.1 README.md
copy_tuner_client-0.16.3 README.md
copy_tuner_client-0.16.2 README.md
copy_tuner_client-0.16.1 README.md
copy_tuner_client-0.16.0 README.md
copy_tuner_client-0.15.1 README.md
copy_tuner_client-0.15.0 README.md
copy_tuner_client-0.14.2 README.md
copy_tuner_client-0.14.1 README.md
copy_tuner_client-0.14.0 README.md
copy_tuner_client-0.13.6 README.md
copy_tuner_client-0.13.5 README.md
copy_tuner_client-0.13.3 README.md
copy_tuner_client-0.13.2 README.md
copy_tuner_client-0.13.1 README.md
copy_tuner_client-0.13.0 README.md