tml 5.6.3 → 5.6.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: 0b28ce58d9d3fe39e6cef50feaa40f95d7c8085b
4
- data.tar.gz: 45486d668ce805a7da21a2c68737e8d3cde136dc
3
+ metadata.gz: 28b79b000f32fc2506faf178e1ee5aa2698d658d
4
+ data.tar.gz: b73c45a3564d1ed704d5e93ea4d7ea34325a8ad4
5
5
  SHA512:
6
- metadata.gz: cd3fd07ed74dff0535f06ca7d0c0add72c8e88846d6007980eda941707b82090a2137d151a9b1ca6d2d3693a8f283a34a41bba43f5c102307e017e70efd2ef7f
7
- data.tar.gz: b1d30eae76286ae3d64c0ab0c4f3904cf56125098239d86a1b1310bd7ce07958c692e25ad471efe4f1865c010eec7e7f817c21630749f0450d9e1a0bf36dacd0
6
+ metadata.gz: c46fef311a0a7aab52e62a254792292e7dce66d9db03c2e809bd44b45a4c9d3287807642814d24273073c34299da2d158b5c66e8cff12eb1c248b3b6df80ac52
7
+ data.tar.gz: 275625ecae6e94b25f8dba5687a92bad91fd43b73211e4013822e123bc79094ef0e6c5b7bfb4c2cedd129a955bbcabce12a20623b6a0cbeef33a41d476632f5d
@@ -242,13 +242,7 @@ class Tml::Application < Tml::Base
242
242
  source.reset_cache
243
243
  end
244
244
 
245
- if Tml.config.disable_async_keys_registration
246
- api_client.post('sources/register_keys', {:source_keys => params.to_json})
247
- else
248
- Thread.new do
249
- api_client.post('sources/register_keys', {:source_keys => params.to_json})
250
- end
251
- end
245
+ api_client.post('sources/register_keys', {:source_keys => params.to_json})
252
246
  rescue Tml::Exception => e
253
247
  Tml.logger.error('Failed to register missing translation keys...')
254
248
  Tml.logger.error(e)
data/lib/tml/config.rb CHANGED
@@ -75,7 +75,7 @@ module Tml
75
75
  # The class can be extended with a different implementation, as long as the interface is supported
76
76
  class Config
77
77
  # Configuration Attributes
78
- attr_accessor :enabled, :locale, :default_level, :format, :application, :postoffice, :context_rules, :logger, :cache, :default_tokens, :localization, :disable_async_keys_registration
78
+ attr_accessor :enabled, :locale, :default_level, :format, :application, :postoffice, :context_rules, :logger, :cache, :default_tokens, :localization
79
79
  attr_accessor :auto_init, :source_separator, :domain
80
80
 
81
81
  # Used by Rails and Sinatra extensions
data/lib/tml/version.rb CHANGED
@@ -31,7 +31,7 @@
31
31
  #++
32
32
 
33
33
  module Tml
34
- VERSION = '5.6.3'
34
+ VERSION = '5.6.4'
35
35
 
36
36
  def self.full_version
37
37
  "tml-ruby v#{Tml::VERSION} (Faraday v#{Faraday::VERSION})"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tml
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.6.3
4
+ version: 5.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Berkovich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-13 00:00:00.000000000 Z
11
+ date: 2017-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday