rocket_cms 0.11.4 → 0.11.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: cd9d67da6d12826aca2c4ffd9863c5d00eb16653
4
- data.tar.gz: 40194c2f62ab15b3dfca40ab20c88f44879ffde8
3
+ metadata.gz: a97ff759324e6fae31050031ba5e19c30df9d597
4
+ data.tar.gz: 18b02e11213d16fbba0eaa2efee88874eeb79bd9
5
5
  SHA512:
6
- metadata.gz: aef492e4723a69d6c154cd33a535da685cc70c4c2acc80061a78471dfd926bf8a118da69068cbcad2a1ae31083e7ff62b33f3add971d37f3a0f3c2837074b4ba
7
- data.tar.gz: 8e5ecaedd7df3f391854032cdcf44ee8be93459ccd4b687d2019c295ac37c2c23a40674c9ab25ee0e97ef02d86acbf0689e57738d711415ede6904976a644b25
6
+ metadata.gz: 4fdf4a12de024bdc2470457756957c6e9fca71e04bc4b805f515b9a1257b04061fd88c9e40adffdfd8c7da076cfc506b1ac9eb0998603cf7d7be16f6500060fc
7
+ data.tar.gz: a0d1093abd7d50ad8611e47c33afa41e8573d554decad106065c651a6caed2d8cc0710644e275e1929fc668cb2a004860274cdabd1758fc18780f4c2edc5c322
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_cms (0.11.4)
4
+ rocket_cms (0.11.5)
5
5
  addressable
6
6
  coffee-rails
7
7
  devise
@@ -81,7 +81,7 @@ GEM
81
81
  warden (~> 1.2.3)
82
82
  erubis (2.7.0)
83
83
  execjs (2.6.0)
84
- font-awesome-rails (4.5.0.1)
84
+ font-awesome-rails (4.6.1.0)
85
85
  railties (>= 3.2, < 5.1)
86
86
  glebtv-simple_captcha (0.6.7)
87
87
  globalid (0.3.6)
@@ -162,12 +162,12 @@ GEM
162
162
  activesupport (= 4.2.6)
163
163
  rake (>= 0.8.7)
164
164
  thor (>= 0.18.1, < 2.0)
165
- rake (11.1.1)
165
+ rake (11.1.2)
166
166
  remotipart (1.2.1)
167
167
  responders (2.1.2)
168
168
  railties (>= 4.2.0, < 5.1)
169
169
  safe_yaml (1.0.4)
170
- sass (3.4.21)
170
+ sass (3.4.22)
171
171
  sass-rails (5.0.4)
172
172
  railties (>= 4.0.0, < 5.0)
173
173
  sass (~> 3.1)
@@ -184,7 +184,7 @@ GEM
184
184
  smart_excerpt (0.1.5)
185
185
  activesupport
186
186
  htmlentities
187
- sprockets (3.5.2)
187
+ sprockets (3.6.0)
188
188
  concurrent-ruby (~> 1.0)
189
189
  rack (> 1, < 3)
190
190
  sprockets-rails (3.0.4)
@@ -7,17 +7,24 @@ module RocketCMS
7
7
  @results = []
8
8
  else
9
9
  if RocketCMS.mongoid?
10
- @results = Mongoid::Search.search({
10
+ @results = Mongoid::Elasticsearch.search({
11
11
  body: {
12
12
  query: {
13
13
  query_string: {
14
- query: Mongoid::Search::Utils.clean(params[:query])
14
+ query: Mongoid::Elasticsearch::Utils.clean(params[:query])
15
15
  }
16
16
  },
17
17
  highlight: {
18
+ require_field_match: false,
18
19
  fields: {
19
- name: {},
20
- content: {}
20
+ name: {
21
+ number_of_fragments: 1,
22
+ size_of_fragments: 120
23
+ },
24
+ content: {
25
+ number_of_fragments: 1,
26
+ size_of_fragments: 220
27
+ }
21
28
  }
22
29
  }
23
30
  }},
@@ -19,8 +19,8 @@ module RocketCMS::Search
19
19
  }
20
20
  },
21
21
  index_mapings: {
22
- name: {type: 'string', boost: 10, analyzer: 'my_analyzer'},
23
- content: {type: 'string', boost: 1, analyzer: 'my_analyzer'},
22
+ name: {type: 'string', analyzer: 'my_analyzer'},
23
+ content: {type: 'string', analyzer: 'my_analyzer'},
24
24
  }
25
25
  })
26
26
  else
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.11.4"
2
+ VERSION = "0.11.5"
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.4
4
+ version: 0.11.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-24 00:00:00.000000000 Z
11
+ date: 2016-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler