tml 4.3.7 → 4.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c126c7ef27932c28af74a43593a02fcea2d2685
4
- data.tar.gz: 0d0dee6459bfad414a1f7fd21863c2c66a239aac
3
+ metadata.gz: 48d0f38ec48a97068f472083a436e475acc64755
4
+ data.tar.gz: 8877fd7031ff8471a4ea36ed5996c6773d5526c9
5
5
  SHA512:
6
- metadata.gz: 8d99bae348d5a7e966c2f1e8b31a8605dff79c54abc6de099761488c42598ff83f4cfe258628e07f9bf3c5fdb41c7c72fbbf2366f5df16d54ebfc2b23fc205d6
7
- data.tar.gz: f1cd165767e09da195f1fefff6f5d538003fc19d7248e4095b1408f4c6a045922cc80545c2731e043b015de392f1c1a3cdb7e226277be15abc1da07a8c31671f
6
+ metadata.gz: 5350c4b99a3301d8534832ba3baf7c0481200ffbf6be6d85180a4c3a93439114be7fd8307a038a357905678371fff099247fa8e561f8504424fccea45f37216a
7
+ data.tar.gz: c9861cf3b9ed4c8b416e0a97630005643bfe011e4e02c815f79821705e869a50a5a911f83ce95a562d4ecf12f36aaf573bfe81d17c308f9d5742ca348ec29d3a
@@ -45,7 +45,8 @@ class Tml::Application < Tml::Base
45
45
  end
46
46
 
47
47
  def fetch
48
- update_attributes(api_client.get('applications/current', {:definition => true}, {:cache_key => self.class.cache_key}))
48
+ data = api_client.get('applications/current', {:definition => true}, {:cache_key => self.class.cache_key})
49
+ update_attributes(data) if data
49
50
  rescue Tml::Exception => ex
50
51
  Tml.logger.error("Failed to load application: #{ex}")
51
52
  self
data/lib/tml/language.rb CHANGED
@@ -138,7 +138,7 @@ class Tml::Language < Tml::Base
138
138
  params[:tokens] ||= {}
139
139
  params[:tokens][:viewing_user] ||= Tml.session.current_user
140
140
 
141
- if Tml.config.disabled? or self.locale == translation_key.locale
141
+ if Tml.config.disabled? or self.locale == translation_key.locale or application.nil?
142
142
  return translation_key.substitute_tokens(
143
143
  params[:label],
144
144
  params[:tokens],
data/lib/tml/version.rb CHANGED
@@ -30,5 +30,5 @@
30
30
  #++
31
31
 
32
32
  module Tml
33
- VERSION = '4.3.7'
33
+ VERSION = '4.3.8'
34
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tml
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.7
4
+ version: 4.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Berkovich