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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de79b5861cd1aafdf13952a2cfe8ac8a24784646
4
- data.tar.gz: 31d8084e19e0e46852360a0e594b6876285ed739
3
+ metadata.gz: 30f272ff0b61dbe196cda958e667b63c28506e1c
4
+ data.tar.gz: 98276bb8f63035e5c006e6a67747cd0a6b09eef7
5
5
  SHA512:
6
- metadata.gz: e971aa783b8e8522b2db81c5d78b369908697d0101d1b2d412c9af52f73063de5b8c26fdaae676efdf5e1f0454e0e0c468129d08e65471571438f8756634c2db
7
- data.tar.gz: 1d3a227b8566d7e58d33268f80ce44f91ccf1b5415ea4d3a07d3d77b856261d1707998c4a1e0eca609bb374c1f869f17f1ab7ac51fa5867aeae84f326fb863d1
6
+ metadata.gz: 803b4c53de785e596477ecc8ebd7384cbe920abd671d6d9205a36366041cdce3d035590c40a617828f58a69828656d494bfa5f129878b3398a3ea943954ab718
7
+ data.tar.gz: 31367504b3b2af8003f49fd0b1611eb0f213754ea5e310a72391710dece4aab5373568045d44f5eecdcbd8184ffcef0de9bcba7fc9fad73c5f97903addb6b124
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.3.4
2
+ - Use Logger to /dev/null as default when rails console
3
+
1
4
  ## 0.3.3
2
5
  - Add config.locales. (#24)
3
6
  - Fix initialization order bug. (#25)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- copy_tuner_client (0.3.3)
4
+ copy_tuner_client (0.3.4)
5
5
  i18n (>= 0.5.0)
6
6
  json
7
7
 
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.logger
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
@@ -1,6 +1,6 @@
1
1
  module CopyTunerClient
2
2
  # Client version
3
- VERSION = '0.3.3'.freeze
3
+ VERSION = '0.3.4'.freeze
4
4
 
5
5
  # API version being used to communicate with the server
6
6
  API_VERSION = '2.0'.freeze
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.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-02-10 00:00:00.000000000 Z
11
+ date: 2017-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n