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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3552504797528a7ed91dd23b839d5b1c06c4a1c
4
- data.tar.gz: fb36338d293616130d18ef4cedc4b9dd12aeafb0
3
+ metadata.gz: ee6ff388c069aed9d005437f928f5b688f7d76ff
4
+ data.tar.gz: d9fc6b48cc155a3961ffaceebfb0da1c943fd8bf
5
5
  SHA512:
6
- metadata.gz: 6cdedc5ce1e775dde702d52588225e2938925ac0e54295db360b3a250871af0f196cf86fd83ed74d82ddd96bc5fd2173692ace34f757a08e84d4df78948c65af
7
- data.tar.gz: 7c166368e9457b834ab807c83ebf6f2e585916158f30392857ba976be4959b1dd7b077aeb9616b98c43b97bfc034662bae4a2e262b9cf4609d0ae269af0757ea
6
+ metadata.gz: c68e5c5a2bfb41a3b906d2a770df4b2846341e4bc5ab74ae92dbe9e98dd921e47679e335ae735f8f324848d3a343cdccd7e336b22b349d233047f143f43a7a31
7
+ data.tar.gz: 528899bf5cf61df9a25c16058a62b165fcc704e2352f3f6733576e1b7855be0349b54b7bdb1e047ccd93f900a150fb2ec2680cf11d9af3c9428f66bdddb7f095
@@ -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
@@ -0,0 +1,3 @@
1
+ -x������i�&��L�51iy_Zv����) �ji�~�2C��;�<
2
+ ���I�J����1]�:�d~q`
3
+ �aC��
@@ -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 => [:title, :meta_description,
7
- :menu_title, :browser_title, :all_page_part_content]
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, :id => 'search', :type => 'search', :name => 'search', :value => params[:search], :title => t('search_input_notice', :scope => 'refinery.admin.search') %>
3
- <%= hidden_field :visual_editor, nil, :name => 'visual_editor', :id => nil, :value => true if params[:visual_editor].presence %>
4
- <%= hidden_field :dialog, nil, :name => 'dialog', :id => nil, :value => true if from_dialog? %>
5
- <%= hidden_field :callback, nil, :name => 'callback', :id => nil, :value => @callback if @callback.presence %>
6
- <%= submit_tag t('button_text', :scope => 'refinery.admin.search'), :name => nil %>
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>
@@ -1,3 +1,4 @@
1
1
  require 'acts_as_indexed'
2
+ require 'stringex_lite'
2
3
  require 'refinerycms-core'
3
4
  require 'refinery/acts_as_indexed'
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: 2.0.1
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
- date: 2015-01-27 00:00:00.000000000 Z
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.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.0.0
97
+ version: 2.5.2
56
98
  description: An extension to handle the integration of Refinery CMS and ActsAsIndexed
57
- email: info@refinerycms.com
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.5
138
+ rubygems_version: 2.6.4
97
139
  signing_key:
98
140
  specification_version: 4
99
141
  summary: Refinery CMS ActsAsIndexed integration plugin
Binary file