rocket_cms 0.11.5 → 0.11.7

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: a97ff759324e6fae31050031ba5e19c30df9d597
4
- data.tar.gz: 18b02e11213d16fbba0eaa2efee88874eeb79bd9
3
+ metadata.gz: e2fc8bfe778da8b1d13841783aba1c8484656ef0
4
+ data.tar.gz: 43d78affecec0f888270ea14bad035ac62834864
5
5
  SHA512:
6
- metadata.gz: 4fdf4a12de024bdc2470457756957c6e9fca71e04bc4b805f515b9a1257b04061fd88c9e40adffdfd8c7da076cfc506b1ac9eb0998603cf7d7be16f6500060fc
7
- data.tar.gz: a0d1093abd7d50ad8611e47c33afa41e8573d554decad106065c651a6caed2d8cc0710644e275e1929fc668cb2a004860274cdabd1758fc18780f4c2edc5c322
6
+ metadata.gz: fd235011829b66610a997f9e4b4fc4ea3f8bdbdeb7b85c24bd7c0c285e41505ed1cba9e8cb3988d9c3b6bcaedf313ee0ee34081232da6a7a43b17a7527335be7
7
+ data.tar.gz: 4d1266716f6829cf0cdcec168412e2c3e1f66d36418d8560d9fddc6901ab69269bb8ad6ae0a55f884b255927beb00fdd9292ca9441cca7b991d038dc894f9c09
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_cms (0.11.5)
4
+ rocket_cms (0.11.7)
5
5
  addressable
6
6
  coffee-rails
7
7
  devise
@@ -72,12 +72,11 @@ GEM
72
72
  execjs
73
73
  coffee-script-source (1.10.0)
74
74
  concurrent-ruby (1.0.1)
75
- devise (3.5.6)
75
+ devise (4.0.1)
76
76
  bcrypt (~> 3.0)
77
77
  orm_adapter (~> 0.1)
78
- railties (>= 3.2.6, < 5)
78
+ railties (>= 4.1.0, < 5.1)
79
79
  responders
80
- thread_safe (~> 0.1)
81
80
  warden (~> 1.2.3)
82
81
  erubis (2.7.0)
83
82
  execjs (2.6.0)
@@ -16,7 +16,12 @@ module RsLocalizeable
16
16
  if RocketCMS.mongoid?
17
17
  pages = pages.where(:"name.#{I18n.locale}".exists => true)
18
18
  elsif RocketCMS.active_record?
19
- pages = pages.where(["EXIST(name_translations, ?) = TRUE AND name_translations -> ? != ''", I18n.locale, I18n.locale])
19
+ if defined?(JsonbTranslate)
20
+
21
+ pages = pages.where(["(name_translations -> ?)::text != ''", I18n.locale])
22
+ elsif defined?(HstoreTranslate)
23
+ pages = pages.where(["EXIST(name_translations, ?) = TRUE AND name_translations -> ? != ''", I18n.locale, I18n.locale])
24
+ end
20
25
  end
21
26
  pages.sorted.to_a
22
27
  end
@@ -1,2 +1,2 @@
1
- - values = form.object.class.send(field.method_name).values.map { |v| [t("enumerize.#{form.object.class.name.downcase}.#{field.method_name}.#{v}", default: t("enumerize.defaults.#{field.method_name}.#{v}")), v] }
1
+ - values = form.object.class.send(field.method_name).values.map { |v| [t("enumerize.#{form.object.class.name.underscore}.#{field.method_name}.#{v}", default: t("enumerize.defaults.#{field.method_name}.#{v}")), v] }
2
2
  = form.collection_check_boxes field.method_name, values, :last, :first, {}, {} { |i| i.label( class: 'checkbox' ) { i.check_box + i.text } }
@@ -1,2 +1,2 @@
1
- - values = form.object.class.send(field.method_name).values.map { |v| [t("enumerize.#{form.object.class.name.downcase}.#{field.method_name}.#{v}", default: t("enumerize.defaults.#{field.method_name}.#{v}")), v] }
1
+ - values = form.object.class.send(field.method_name).values.map { |v| [t("enumerize.#{form.object.class.name.underscore}.#{field.method_name}.#{v}", default: t("enumerize.defaults.#{field.method_name}.#{v}")), v] }
2
2
  = form.collection_radio_buttons field.method_name, values, :last, :first, {}, {} { |i| i.label(class: 'radio') { i.radio_button + i.text } }
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.11.5"
2
+ VERSION = "0.11.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.5
4
+ version: 0.11.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-18 00:00:00.000000000 Z
11
+ date: 2016-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler