tml 5.4.7 → 5.4.8

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: b3daac32c1fdc810ab4a5963f0b3bf5d68aa26b3
4
- data.tar.gz: cd541295614d470d6e1848bf754e52bbb5183026
3
+ metadata.gz: 66299fedc0ad670424b3c099d816feca815f25cc
4
+ data.tar.gz: a3511b6492de5957d70cf7abdc70f44b7b87491e
5
5
  SHA512:
6
- metadata.gz: c2c5082eb35b13f3b90346d0f7f693c25203e0b26eedf41b6505f7a4a549890faf7cce9b894b99fe5dae193333e656ff1170c9e2a019c4423ea4cde273740b9a
7
- data.tar.gz: 504588a80163b36e7a9b26c307c4410f34a54a8e6407876219fef939ab1cff25c3be161b717766b51eaaa38f5088289337e475039bb131b8fd1f8dfe9b206d2e
6
+ metadata.gz: 31bad9591d26cdeb58bf2ecb8c0720ba728f966c6f29b743665476e3ce807163bbe875262dcf9647145d9fc74b7e182099accdc1b658d67073e28592431583ad
7
+ data.tar.gz: 521afb4459fa5d718f957a94f3839634f6894e00b754248b8c09592388e2fd04c0d25fc5e8738072e4fc600c81163776e00020215f5d85ce1043fb14db7511a9
data/lib/tml/cache.rb CHANGED
@@ -95,10 +95,14 @@ module Tml
95
95
  Tml.logger.warn("#{cache_name} - #{msg}")
96
96
  end
97
97
 
98
+ def namespace=(value)
99
+ @namespace = value
100
+ end
101
+
98
102
  # namespace of each cache key
99
103
  def namespace
100
104
  return '#' if Tml.config.disabled?
101
- Tml.config.cache[:namespace] || Tml.config.application[:key][0..5]
105
+ @namespace || Tml.config.cache[:namespace] || Tml.config.application[:key][0..5]
102
106
  end
103
107
 
104
108
  # versioned name of cache key
data/lib/tml/session.rb CHANGED
@@ -49,6 +49,7 @@ module Tml
49
49
  token = opts[:access_token] || opts[:token] || Tml.config.application[:token]
50
50
 
51
51
  Tml.cache.reset_version
52
+ Tml.cache.namespace = opts[:namespace]
52
53
 
53
54
  self.current_user = opts[:user]
54
55
  self.current_source = opts[:source] || 'index'
data/lib/tml/version.rb CHANGED
@@ -31,7 +31,7 @@
31
31
  #++
32
32
 
33
33
  module Tml
34
- VERSION = '5.4.7'
34
+ VERSION = '5.4.8'
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.4.7
4
+ version: 5.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Berkovich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-13 00:00:00.000000000 Z
11
+ date: 2016-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday