A long-lived project that still receives updates
Client for the CopyTuner copy management service
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0
~> 6.1
>= 0

Runtime

>= 0.5.0
>= 0
 Project Readme

CopyTuner Client

Build Status

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

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