copy_tuner_client 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/README.md +10 -0
- data/lib/copy_tuner_client/rails.rb +7 -1
- data/lib/copy_tuner_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30f272ff0b61dbe196cda958e667b63c28506e1c
|
4
|
+
data.tar.gz: 98276bb8f63035e5c006e6a67747cd0a6b09eef7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 803b4c53de785e596477ecc8ebd7384cbe920abd671d6d9205a36366041cdce3d035590c40a617828f58a69828656d494bfa5f129878b3398a3ea943954ab718
|
7
|
+
data.tar.gz: 31367504b3b2af8003f49fd0b1611eb0f213754ea5e310a72391710dece4aab5373568045d44f5eecdcbd8184ffcef0de9bcba7fc9fad73c5f97903addb6b124
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -22,3 +22,13 @@ Development
|
|
22
22
|
$ bundle exec rake build # build gem to pkg/ dir
|
23
23
|
$ bundle exec rake install # install to local gem
|
24
24
|
$ bundle exec rake release # release gem to rubygems.org
|
25
|
+
|
26
|
+
## CopyTunerの翻訳ファイルをymlとして出力する
|
27
|
+
|
28
|
+
該当のRailsプロジェクトで下記のrakeを実行する
|
29
|
+
|
30
|
+
```
|
31
|
+
bundle exec rake copy_tuner:export
|
32
|
+
```
|
33
|
+
|
34
|
+
これで、`config/locales/copy_tuner.yml` に翻訳ファイルが作成されます。
|
@@ -6,7 +6,13 @@ module CopyTunerClient
|
|
6
6
|
def self.initialize
|
7
7
|
CopyTunerClient.configure(false) do |config|
|
8
8
|
config.environment_name = ::Rails.env
|
9
|
-
config.logger = ::Rails
|
9
|
+
config.logger = if defined?(::Rails::Console)
|
10
|
+
Logger.new('/dev/null')
|
11
|
+
elsif defined?(::Rails) && ::Rails.env.development?
|
12
|
+
Logger.new('log/copy_tuner.log')
|
13
|
+
else
|
14
|
+
::Rails.logger
|
15
|
+
end
|
10
16
|
config.framework = "Rails: #{::Rails::VERSION::STRING}"
|
11
17
|
config.middleware = ::Rails.configuration.middleware
|
12
18
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: copy_tuner_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SonicGarden
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|