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 +4 -4
- data/lib/tasks/tml.rake +11 -9
- data/lib/tml_rails/extensions/action_view_extension.rb +1 -1
- data/lib/tml_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3676748ce4f93018dd2a75c7990cea547c0e663
|
4
|
+
data.tar.gz: 6a5235f0a7f3881acff7b34538783f9aa9fa7260
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 '
|
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 '
|
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 '
|
70
|
+
desc 'Downloads local file cache'
|
71
71
|
task :download => :environment do
|
72
|
-
Tml.cache.
|
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 '
|
77
|
+
desc 'Rolls back to the previous version'
|
76
78
|
task :rollback => :environment do
|
77
|
-
raise
|
79
|
+
raise 'Not yet supported'
|
78
80
|
# Tml.cache.rollback
|
79
81
|
end
|
80
82
|
|
81
|
-
desc '
|
83
|
+
desc 'Rolls up to the next version'
|
82
84
|
task :rollup => :environment do
|
83
|
-
raise
|
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
|
255
|
+
return "lang='en'" if Tml.config.disabled?
|
256
256
|
"lang='#{lang.locale}'".html_safe
|
257
257
|
end
|
258
258
|
|
data/lib/tml_rails/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2016-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|