refinerycms-acts-as-indexed 2.0.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +1 -0
- data.tar.gz.sig +3 -0
- data/app/decorators/models/refinery/page_decorator.rb +14 -2
- data/app/decorators/models/refinery/user_decorator.rb +2 -2
- data/app/views/refinery/acts_as_indexed/admin/_search.html.erb +10 -5
- data/lib/refinerycms-acts-as-indexed.rb +1 -0
- metadata +51 -9
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee6ff388c069aed9d005437f928f5b688f7d76ff
|
4
|
+
data.tar.gz: d9fc6b48cc155a3961ffaceebfb0da1c943fd8bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c68e5c5a2bfb41a3b906d2a770df4b2846341e4bc5ab74ae92dbe9e98dd921e47679e335ae735f8f324848d3a343cdccd7e336b22b349d233047f143f43a7a31
|
7
|
+
data.tar.gz: 528899bf5cf61df9a25c16058a62b165fcc704e2352f3f6733576e1b7855be0349b54b7bdb1e047ccd93f900a150fb2ec2680cf11d9af3c9428f66bdddb7f095
|
checksums.yaml.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
�uÔ�;Ig�g$���=������g/��m��Gr�=�J�)l䧒Z�*UZ���� �*���.H�D��0"j��6ǽԹ�SbA����<�=�sǑX����?�I��i����՛� /1s�"��^Y����]���B
|
data.tar.gz.sig
ADDED
@@ -1,15 +1,27 @@
|
|
1
1
|
require 'acts_as_indexed'
|
2
|
+
require 'stringex_lite'
|
2
3
|
|
3
4
|
begin
|
4
5
|
Refinery::Page.class_eval do
|
5
6
|
# Docs for acts_as_indexed https://github.com/dougal/acts_as_indexed
|
6
|
-
acts_as_indexed :fields => [:
|
7
|
-
:menu_title, :browser_title, :
|
7
|
+
acts_as_indexed :fields => [:ascii_title, :meta_description,
|
8
|
+
:menu_title, :browser_title, :ascii_all_page_part_content]
|
8
9
|
|
9
10
|
# Used to index all the content on this page so it can be easily searched.
|
10
11
|
def all_page_part_content
|
11
12
|
parts.map(&:body).join " "
|
12
13
|
end
|
14
|
+
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
def ascii_title
|
19
|
+
self.title.try(&:to_ascii)
|
20
|
+
end
|
21
|
+
|
22
|
+
def ascii_all_page_part_content
|
23
|
+
self.all_page_part_content.try(&:to_ascii)
|
24
|
+
end
|
13
25
|
end
|
14
26
|
rescue NameError
|
15
27
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
require 'acts_as_indexed'
|
2
2
|
|
3
3
|
begin
|
4
|
-
Refinery::User.class_eval do
|
4
|
+
Refinery::Authentication::Devise::User.class_eval do
|
5
5
|
# Docs for acts_as_indexed http://github.com/dougal/acts_as_indexed
|
6
6
|
acts_as_indexed :fields => [:username, :email]
|
7
7
|
end
|
8
8
|
rescue NameError
|
9
|
-
end
|
9
|
+
end
|
@@ -1,7 +1,12 @@
|
|
1
1
|
<form method='GET' action='<%= url %>' class='search_form'>
|
2
|
-
<%= text_field :search, nil, :
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
<%= text_field :search, nil, id: 'search', type: 'search',
|
3
|
+
name: 'search',
|
4
|
+
value: params[:search],
|
5
|
+
title: t('help', scope: 'refinery.admin.search.input', query: h(params[:search])).html_safe,
|
6
|
+
placeholder: t('placeholder', scope: 'refinery.admin.search.input', query: h(params[:search])).html_safe
|
7
|
+
%>
|
8
|
+
<%= hidden_field :visual_editor, nil, name: 'visual_editor', id: nil, value: true if params[:visual_editor].presence %>
|
9
|
+
<%= hidden_field :dialog, nil, name: 'dialog', id: nil, value: true if from_dialog? %>
|
10
|
+
<%= hidden_field :callback, nil, name: 'callback', id: nil, value: @callback if @callback.presence %>
|
11
|
+
<%= submit_tag t('button_text', scope: 'refinery.admin.search'), name: nil %>
|
7
12
|
</form>
|
metadata
CHANGED
@@ -1,30 +1,58 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-acts-as-indexed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Arndt
|
8
8
|
- Uģis Ozols
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
|
-
cert_chain:
|
12
|
-
|
11
|
+
cert_chain:
|
12
|
+
- |
|
13
|
+
-----BEGIN CERTIFICATE-----
|
14
|
+
MIIDhjCCAm6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBNMQ0wCwYDVQQDDARnZW1z
|
15
|
+
MREwDwYKCZImiZPyLGQBGRYBcDEVMBMGCgmSJomT8ixkARkWBWFybmR0MRIwEAYK
|
16
|
+
CZImiZPyLGQBGRYCaW8wHhcNMTYwNjEwMDMwNjQyWhcNMTcwNjEwMDMwNjQyWjBN
|
17
|
+
MQ0wCwYDVQQDDARnZW1zMREwDwYKCZImiZPyLGQBGRYBcDEVMBMGCgmSJomT8ixk
|
18
|
+
ARkWBWFybmR0MRIwEAYKCZImiZPyLGQBGRYCaW8wggEiMA0GCSqGSIb3DQEBAQUA
|
19
|
+
A4IBDwAwggEKAoIBAQDMLLiiRX/NrRDQxcNO/bPNe51IhKeyACDjTTx0VGCG696t
|
20
|
+
qdD23FjUrAYuQTW5P7Auh9qdcCnvPHJSwf31m+EGTshy/hcNYz2k/mrbwAfdytv3
|
21
|
+
GAR+sFnMYtWvVQNeHBWXIaYMiSDP0WtbT6QqQx3SuA6ZpXNXD1dbm64MzHgMHqXP
|
22
|
+
uHnLf2s0VCnTLorPH2J6CO5Y+Sx+IBqJi9/nO2oEEIXQCQRLgRevHk+TovDisW5V
|
23
|
+
OMEPX7fo29R5J2T7mjkNLGJ5Ae1KiU9A60LsMco37HMWE8DM90pg1ues5tg6MfJT
|
24
|
+
yuX4N0rJWdIC5ciHDsyJ4pi21s8fdUulk0YmJALDAgMBAAGjcTBvMAkGA1UdEwQC
|
25
|
+
MAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBSqXg48+kmcdOxIrkZhhgSV1flD1jAa
|
26
|
+
BgNVHREEEzARgQ9nZW1zQHAuYXJuZHQuaW8wGgYDVR0SBBMwEYEPZ2Vtc0BwLmFy
|
27
|
+
bmR0LmlvMA0GCSqGSIb3DQEBBQUAA4IBAQBSSS4nOXpPPMdAK4ApGHxbzS+/u77p
|
28
|
+
V8gLBJX4hKMpbMNmdI+n6YsqvG6kMljgYBamucfrAkKdmHWn9ydST3o8RQAcYxS8
|
29
|
+
bz49gD3c4Nm4P6eEVKFmebO9/MoiM7rMb0lk/xH1drtey/9ulohrg8Dz+BoQJ+9T
|
30
|
+
m2lJzojOU7w461lPVZtKlDlseu68KvEQ2AdUBBa1b6w3S/EFkcdhErOT7dyQpePI
|
31
|
+
+wsbjPvdIWsjWQMn6MasZYIVTnenwP2jg+z9HSNxW0NL2vZx8VabpsWGWfrb+koj
|
32
|
+
rE1h12GTgwaC3r9FOkdnSpClgPYAzTTCJ8kD74qO2zC9pGegrUXdWFM6
|
33
|
+
-----END CERTIFICATE-----
|
34
|
+
date: 2016-06-10 00:00:00.000000000 Z
|
13
35
|
dependencies:
|
14
36
|
- !ruby/object:Gem::Dependency
|
15
37
|
name: refinerycms-core
|
16
38
|
requirement: !ruby/object:Gem::Requirement
|
17
39
|
requirements:
|
18
|
-
- - "
|
40
|
+
- - ">="
|
19
41
|
- !ruby/object:Gem::Version
|
20
42
|
version: 3.0.0
|
43
|
+
- - "<"
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '5.0'
|
21
46
|
type: :runtime
|
22
47
|
prerelease: false
|
23
48
|
version_requirements: !ruby/object:Gem::Requirement
|
24
49
|
requirements:
|
25
|
-
- - "
|
50
|
+
- - ">="
|
26
51
|
- !ruby/object:Gem::Version
|
27
52
|
version: 3.0.0
|
53
|
+
- - "<"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '5.0'
|
28
56
|
- !ruby/object:Gem::Dependency
|
29
57
|
name: acts_as_indexed
|
30
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,16 +73,30 @@ dependencies:
|
|
45
73
|
requirements:
|
46
74
|
- - "~>"
|
47
75
|
- !ruby/object:Gem::Version
|
48
|
-
version: 2.0
|
76
|
+
version: '2.0'
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '2.0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: stringex
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - "~>"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 2.5.2
|
49
91
|
type: :runtime
|
50
92
|
prerelease: false
|
51
93
|
version_requirements: !ruby/object:Gem::Requirement
|
52
94
|
requirements:
|
53
95
|
- - "~>"
|
54
96
|
- !ruby/object:Gem::Version
|
55
|
-
version: 2.
|
97
|
+
version: 2.5.2
|
56
98
|
description: An extension to handle the integration of Refinery CMS and ActsAsIndexed
|
57
|
-
email:
|
99
|
+
email: gems@p.arndt.io
|
58
100
|
executables: []
|
59
101
|
extensions: []
|
60
102
|
extra_rdoc_files: []
|
@@ -93,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
135
|
version: '0'
|
94
136
|
requirements: []
|
95
137
|
rubyforge_project:
|
96
|
-
rubygems_version: 2.4
|
138
|
+
rubygems_version: 2.6.4
|
97
139
|
signing_key:
|
98
140
|
specification_version: 4
|
99
141
|
summary: Refinery CMS ActsAsIndexed integration plugin
|
metadata.gz.sig
ADDED
Binary file
|