tml-rails 5.4.4 → 5.4.5

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: eeb08682e2c3c58967aa3c628db739fc31e886cc
4
- data.tar.gz: ba57cb204ffd903faa32f15b5dd9e820576f1e97
3
+ metadata.gz: f3676748ce4f93018dd2a75c7990cea547c0e663
4
+ data.tar.gz: 6a5235f0a7f3881acff7b34538783f9aa9fa7260
5
5
  SHA512:
6
- metadata.gz: 89c01c00e8936399a4b6f9c68a773e85472e774c2e63426290cc144c369dbaffe3b643adbeed343e97edb52441362e9b39031a27c76e1aeb1a9100071e08d669
7
- data.tar.gz: 6c9c6046409bb86aa957a9ed75c1aa47035542295b75fc78154cf0278ec2356cbdd106b375c36376bf9dc9efdbef8385b445dcb51a99c2ec0317fed5af605988
6
+ metadata.gz: b7fd3487544b74d680dfae6192372054969f515811018d93f5babd483c6a82bf37238e83652b32401e76ac84f07f8557ab1d5b264f110077bc93b9f8590f0d8d
7
+ data.tar.gz: 15a714c0c4ef2ba37858618b2802c30f882fa024010fa1d051b745ee02448ec756ac03f3a0ccd3d2fee169b3a79a58df0fcf553afb6ef0a0b8555332b65febc2
data/lib/tasks/tml.rake CHANGED
@@ -51,14 +51,14 @@ namespace :tml do
51
51
  ## Shared Cache Management
52
52
  ##########################################
53
53
 
54
- desc 'upgrades shared translation cache'
54
+ desc 'Upgrades shared translation cache'
55
55
  task :upgrade => :environment do
56
56
  Tml.cache.upgrade_version
57
57
  end
58
58
 
59
- desc 'warms up dynamic cache'
59
+ desc 'Warms up dynamic cache'
60
60
  task :warmup => :environment do
61
- Tml.cache.warmup
61
+ Tml.cache.warmup(ENV['version'], ENV['path'])
62
62
  end
63
63
  end
64
64
 
@@ -67,20 +67,22 @@ namespace :tml do
67
67
  ## Local Cache Management
68
68
  ##########################################
69
69
 
70
- desc 'downloads local file cache'
70
+ desc 'Downloads local file cache'
71
71
  task :download => :environment do
72
- Tml.cache.download
72
+ cache_path = ENV['path'] || Tml.cache.default_cache_path
73
+ version = ENV['version']
74
+ Tml.cache.download(cache_path, version)
73
75
  end
74
76
 
75
- desc 'rolls back to the previous version'
77
+ desc 'Rolls back to the previous version'
76
78
  task :rollback => :environment do
77
- raise "Not yet supported"
79
+ raise 'Not yet supported'
78
80
  # Tml.cache.rollback
79
81
  end
80
82
 
81
- desc 'rolls up to the next version'
83
+ desc 'Rolls up to the next version'
82
84
  task :rollup => :environment do
83
- raise "Not yet supported"
85
+ raise 'Not yet supported'
84
86
  # Tml.cache.rollup
85
87
  end
86
88
  end
@@ -252,7 +252,7 @@ module TmlRails
252
252
 
253
253
  # provides the locale of the language
254
254
  def tml_lang_attribute_tag(lang = tml_current_language)
255
- return "lang='en-US'" if Tml.config.disabled?
255
+ return "lang='en'" if Tml.config.disabled?
256
256
  "lang='#{lang.locale}'".html_safe
257
257
  end
258
258
 
@@ -30,5 +30,5 @@
30
30
  #++
31
31
 
32
32
  module TmlRails
33
- VERSION = '5.4.4'
33
+ VERSION = '5.4.5'
34
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tml-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.4
4
+ version: 5.4.5
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-17 00:00:00.000000000 Z
11
+ date: 2016-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails