weeler 1.5.2 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/app/models/settings.rb +1 -1
- data/lib/i18n/backend/weeler.rb +2 -2
- data/lib/weeler.rb +2 -2
- data/lib/weeler/version.rb +1 -1
- data/weeler.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44fc8a0f68fa0815dccb59bc304d2e16de9cd81f
|
4
|
+
data.tar.gz: bdda41f336d7afa53f9911be300726d26ff92db9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcee832c23b6156e03f903cc75023e9089993120e1085d09b2eb87268056a1c544c5d76470160d0681ac00eb620e8f9b3ba29a7913954710317e575969b7ffef
|
7
|
+
data.tar.gz: f28975eae77bed4026fd3cc0d77999d4f3ebf1c1005c3f6a0415d0af3fe2ae85995e47c850eb286664d1f8026c61709227c41c6f0978f6b2f8dc2c8fec046e56
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## 1.5.4
|
2
|
+
|
3
|
+
* Using RailsSettings::CachedSettings instead of RailsSettings::Base
|
4
|
+
|
5
|
+
## 1.5.3
|
6
|
+
|
7
|
+
* Rails depricated table exists, using data source exists instead
|
8
|
+
* Using RailsSettings::Base instead of RailsSettings::CachedSettings
|
9
|
+
|
1
10
|
## 1.5.2
|
2
11
|
|
3
12
|
* Added translation filter by created at
|
data/app/models/settings.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
class Settings < RailsSettings::CachedSettings
|
2
|
-
end
|
2
|
+
end
|
data/lib/i18n/backend/weeler.rb
CHANGED
@@ -57,7 +57,7 @@ module I18n
|
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
i18n_cache.write('UPDATED_AT', Settings.i18n_updated_at) if ActiveRecord::Base.connection.
|
60
|
+
i18n_cache.write('UPDATED_AT', Settings.i18n_updated_at) if ActiveRecord::Base.connection.data_source_exists?('settings')
|
61
61
|
end
|
62
62
|
|
63
63
|
protected
|
@@ -72,7 +72,7 @@ module I18n
|
|
72
72
|
|
73
73
|
def lookup_in_cache locale, key, scope = [], options = {}
|
74
74
|
# reload cache if cache timestamp differs from last translations update
|
75
|
-
reload_cache if ((!ActiveRecord::Base.connection.
|
75
|
+
reload_cache if ((!ActiveRecord::Base.connection.data_source_exists?('settings')) || i18n_cache.read('UPDATED_AT') != Settings.i18n_updated_at)
|
76
76
|
|
77
77
|
# log locale/key usage for statistics
|
78
78
|
if Settings.log_key_usage == 'true'
|
data/lib/weeler.rb
CHANGED
@@ -27,7 +27,7 @@ module Weeler
|
|
27
27
|
|
28
28
|
mattr_accessor :use_weeler_i18n
|
29
29
|
@@use_weeler_i18n = true
|
30
|
-
|
30
|
+
|
31
31
|
mattr_accessor :empty_translation_acts_like_missing
|
32
32
|
@@empty_translation_acts_like_missing = true
|
33
33
|
|
@@ -68,7 +68,7 @@ module Weeler
|
|
68
68
|
|
69
69
|
def self.setup
|
70
70
|
yield self
|
71
|
-
if Weeler.use_weeler_i18n == true && ActiveRecord::Base.connection.
|
71
|
+
if Weeler.use_weeler_i18n == true && ActiveRecord::Base.connection.data_source_exists?('weeler_translations')
|
72
72
|
require "i18n/weeler"
|
73
73
|
Weeler.static_sections.each do |key, section|
|
74
74
|
Weeler.static_menu_items << {name: key.to_s.capitalize, weeler_path: "static_sections/#{key}"}
|
data/lib/weeler/version.rb
CHANGED
data/weeler.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_dependency 'rails', '>= 4'
|
22
22
|
spec.add_dependency 'i18n'
|
23
|
-
spec.add_dependency 'rails-settings-cached'
|
23
|
+
spec.add_dependency 'rails-settings-cached', '~> 0.6.5'
|
24
24
|
spec.add_dependency 'globalize'
|
25
25
|
|
26
26
|
spec.add_dependency 'kaminari'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: weeler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artūrs Braučs
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-01-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -43,16 +43,16 @@ dependencies:
|
|
43
43
|
name: rails-settings-cached
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - "
|
46
|
+
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
48
|
+
version: 0.6.5
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - "
|
53
|
+
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
55
|
+
version: 0.6.5
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: globalize
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -543,7 +543,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
543
543
|
version: '0'
|
544
544
|
requirements: []
|
545
545
|
rubyforge_project:
|
546
|
-
rubygems_version: 2.
|
546
|
+
rubygems_version: 2.4.8
|
547
547
|
signing_key:
|
548
548
|
specification_version: 4
|
549
549
|
summary: CMS for weby.lv projects.
|