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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ee10f8516518e8f94a7a070769705e9be3afc60
4
- data.tar.gz: b80f390824beaeea1843dc6c0b66c05a9687ce52
3
+ metadata.gz: 44fc8a0f68fa0815dccb59bc304d2e16de9cd81f
4
+ data.tar.gz: bdda41f336d7afa53f9911be300726d26ff92db9
5
5
  SHA512:
6
- metadata.gz: 8c13922970253df07730ad789829b39da9a2f4ec4475e8e1f164c5eb832e7cda2e36bcc7904c9ce485bad0a1d1f2c49ed6592843a47388eb8d683c07ec8cfdc6
7
- data.tar.gz: 7e03858fac241b529ae823933720d13054f257c28f3c17ea0c43fd008327499e1946cfd1e43b8a7e88d118fb3095c4da54ef1eb7aadb885dc93df4a72c0b9309
6
+ metadata.gz: dcee832c23b6156e03f903cc75023e9089993120e1085d09b2eb87268056a1c544c5d76470160d0681ac00eb620e8f9b3ba29a7913954710317e575969b7ffef
7
+ data.tar.gz: f28975eae77bed4026fd3cc0d77999d4f3ebf1c1005c3f6a0415d0af3fe2ae85995e47c850eb286664d1f8026c61709227c41c6f0978f6b2f8dc2c8fec046e56
@@ -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
@@ -1,2 +1,2 @@
1
1
  class Settings < RailsSettings::CachedSettings
2
- end
2
+ end
@@ -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.table_exists?('settings')
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.table_exists?('settings')) || i18n_cache.read('UPDATED_AT') != Settings.i18n_updated_at)
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'
@@ -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.table_exists?('weeler_translations')
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}"}
@@ -2,7 +2,7 @@ module Weeler
2
2
  module VERSION
3
3
  MAJOR = 1
4
4
  MINOR = 5
5
- TINY = 2
5
+ TINY = 4
6
6
  PRE = nil
7
7
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
8
8
  end
@@ -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.2
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: 2016-04-05 00:00:00.000000000 Z
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: '0'
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: '0'
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.6.2
546
+ rubygems_version: 2.4.8
547
547
  signing_key:
548
548
  specification_version: 4
549
549
  summary: CMS for weby.lv projects.