refinerycms-solr 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/Gemfile +73 -0
- data/LICENSE.txt +22 -0
- data/README.md +21 -0
- data/Rakefile +21 -0
- data/app/decorators/models/refinery/image_decorator.rb +10 -0
- data/app/decorators/models/refinery/page_decorator.rb +14 -0
- data/app/decorators/models/refinery/resource_decorator.rb +10 -0
- data/app/decorators/models/refinery/user_decorator.rb +10 -0
- data/app/views/refinery/admin/_search.html.erb +1 -0
- data/app/views/refinery/admin/_search_header.html.erb +1 -0
- data/app/views/refinery/solr/admin/_search.html.erb +7 -0
- data/app/views/refinery/solr/admin/_search_header.html.erb +4 -0
- data/config/sunspot.yml +22 -0
- data/contributing.md +17 -0
- data/lib/refinery/solr.rb +12 -0
- data/lib/refinery/solr/active_record.rb +13 -0
- data/lib/refinery/solr/engine.rb +13 -0
- data/lib/refinery/solr/version.rb +18 -0
- data/lib/refinerycms-solr.rb +3 -0
- data/refinery-solr.gemspec +27 -0
- data/script/rails +5 -0
- data/spec/features/refinery/solr/admin/search_spec.rb +78 -0
- data/spec/spec_helper.rb +38 -0
- data/tasks/rspec.rake +4 -0
- data/tasks/solr.rake +18 -0
- metadata +142 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 58fedbbc7513a9f2ea42d0cdcebf80ef698d196a
|
4
|
+
data.tar.gz: 8e5ac08f6b4d259f7c71babd70969aca4bfc26e9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d1f57102957a664e57da02c499df583f7c04330a4b19b16bf819a7cdfe7f558eb0616e9c32ca2beb4defd561519925bf48536efc0fdef6cc3e0b04f77a313290
|
7
|
+
data.tar.gz: 9815a35cdfacd8f67f05669dc1313e750fcca86ad9c14caf55f2785af4745bdc46b4a914121aa0fada37c2ea2f8c044518c548a54e68b3fc29a9fe905ffad265
|
data/.gitignore
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gemspec
|
4
|
+
|
5
|
+
git 'git://github.com/refinery/refinerycms.git', :branch => 'master' do
|
6
|
+
gem 'refinerycms'
|
7
|
+
|
8
|
+
group :development, :test do
|
9
|
+
gem 'refinerycms-testing'
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
group :development, :test do
|
14
|
+
require 'rbconfig'
|
15
|
+
|
16
|
+
# Database Configuration
|
17
|
+
unless ENV['TRAVIS']
|
18
|
+
gem 'activerecord-jdbcsqlite3-adapter', :platform => :jruby
|
19
|
+
gem 'sqlite3', :platform => :ruby
|
20
|
+
end
|
21
|
+
|
22
|
+
if !ENV['TRAVIS'] || ENV['DB'] == 'mysql'
|
23
|
+
gem 'activerecord-jdbcmysql-adapter', :platform => :jruby
|
24
|
+
gem 'jdbc-mysql', '= 5.1.13', :platform => :jruby
|
25
|
+
gem 'mysql2', :platform => :ruby
|
26
|
+
end
|
27
|
+
|
28
|
+
if !ENV['TRAVIS'] || ENV['DB'] == 'postgresql'
|
29
|
+
gem 'activerecord-jdbcpostgresql-adapter', :platform => :jruby
|
30
|
+
gem 'pg', :platform => :ruby
|
31
|
+
end
|
32
|
+
|
33
|
+
platforms :mswin, :mingw do
|
34
|
+
gem 'win32console'
|
35
|
+
gem 'rb-fchange', '~> 0.0.5'
|
36
|
+
gem 'rb-notifu', '~> 0.0.4'
|
37
|
+
end
|
38
|
+
|
39
|
+
platforms :ruby do
|
40
|
+
unless ENV['TRAVIS']
|
41
|
+
if RbConfig::CONFIG['target_os'] =~ /darwin/i
|
42
|
+
gem 'rb-fsevent', '>= 0.3.9'
|
43
|
+
gem 'growl', '~> 1.0.3'
|
44
|
+
end
|
45
|
+
if RbConfig::CONFIG['target_os'] =~ /linux/i
|
46
|
+
gem 'rb-inotify', '>= 0.5.1'
|
47
|
+
gem 'libnotify', '~> 0.1.3'
|
48
|
+
gem 'therubyracer', '~> 0.9.9'
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
platforms :jruby do
|
54
|
+
unless ENV['TRAVIS']
|
55
|
+
if RbConfig::CONFIG['target_os'] =~ /darwin/i
|
56
|
+
gem 'growl', '~> 1.0.3'
|
57
|
+
end
|
58
|
+
if RbConfig::CONFIG['target_os'] =~ /linux/i
|
59
|
+
gem 'rb-inotify', '>= 0.5.1'
|
60
|
+
gem 'libnotify', '~> 0.1.3'
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# Refinery/rails should pull in the proper versions of these
|
67
|
+
group :assets do
|
68
|
+
gem 'sass-rails'
|
69
|
+
gem 'uglifier'
|
70
|
+
end
|
71
|
+
|
72
|
+
gem "protected_attributes"
|
73
|
+
gem 'jquery-rails'
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Jeff Chaput
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# Refinery::Solr
|
2
|
+
|
3
|
+
Refinery CMS and Solr plugin.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'refinery-solr', '~> 1.0.0'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install refinery-solr
|
18
|
+
|
19
|
+
## Contributing
|
20
|
+
|
21
|
+
See [contributing.md](contributing.md)
|
data/Rakefile
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
begin
|
3
|
+
require 'bundler/setup'
|
4
|
+
rescue LoadError
|
5
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
|
+
end
|
7
|
+
|
8
|
+
ENGINE_PATH = File.dirname(__FILE__)
|
9
|
+
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
|
10
|
+
|
11
|
+
if File.exists?(APP_RAKEFILE)
|
12
|
+
load 'rails/tasks/engine.rake'
|
13
|
+
end
|
14
|
+
|
15
|
+
require "refinerycms-testing"
|
16
|
+
Refinery::Testing::Railtie.load_dummy_tasks(ENGINE_PATH)
|
17
|
+
|
18
|
+
load File.expand_path('../tasks/rspec.rake', __FILE__)
|
19
|
+
load File.expand_path('../tasks/solr.rake', __FILE__)
|
20
|
+
|
21
|
+
task :default => :spec
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'sunspot_rails'
|
2
|
+
|
3
|
+
begin
|
4
|
+
Refinery::Page.class_eval do
|
5
|
+
searchable do
|
6
|
+
text :title, :meta_description, :menu_title, :browser_title
|
7
|
+
|
8
|
+
text :all_page_part_content do
|
9
|
+
parts.map { |part| part.body }
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
rescue NameError
|
14
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render 'refinery/solr/admin/search', local_assigns if defined?(Refinery::Solr::Engine) %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render 'refinery/solr/admin/search_header', local_assigns if defined?(Refinery::Solr::Engine) %>
|
@@ -0,0 +1,7 @@
|
|
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 :wymeditor, nil, :name => 'wymeditor', :id => nil, :value => true if params[:wymeditor].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 %>
|
7
|
+
</form>
|
data/config/sunspot.yml
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
production:
|
2
|
+
solr:
|
3
|
+
hostname: localhost
|
4
|
+
port: 8983
|
5
|
+
log_level: WARNING
|
6
|
+
path: /solr/production
|
7
|
+
# read_timeout: 2
|
8
|
+
# open_timeout: 0.5
|
9
|
+
|
10
|
+
development:
|
11
|
+
solr:
|
12
|
+
hostname: localhost
|
13
|
+
port: 8982
|
14
|
+
log_level: INFO
|
15
|
+
path: /solr/development
|
16
|
+
|
17
|
+
test:
|
18
|
+
solr:
|
19
|
+
hostname: localhost
|
20
|
+
port: 8981
|
21
|
+
log_level: WARNING
|
22
|
+
path: /solr/test
|
data/contributing.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# Contribution Guidelines #
|
2
|
+
|
3
|
+
## Running tests ##
|
4
|
+
|
5
|
+
Always run tests first. Quick start for tests (requires a dummy application) :
|
6
|
+
|
7
|
+
bundle install
|
8
|
+
bundle exec rake refinery:solr:dummy_app
|
9
|
+
bundle exec rake spec
|
10
|
+
|
11
|
+
## Making a pull request ##
|
12
|
+
|
13
|
+
If you'd like to submit a pull request please adhere to the following:
|
14
|
+
|
15
|
+
1. Your code *must* be tested. Please TDD your code!
|
16
|
+
2. Two-spaces instead of tabs
|
17
|
+
3. General Rails/Ruby naming conventions for files and classes
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require "active_record"
|
2
|
+
|
3
|
+
module ActiveRecord
|
4
|
+
module Solr
|
5
|
+
def with_query(query)
|
6
|
+
results = self.name.constantize.search { fulltext query }.results
|
7
|
+
ids = results.inject([]) {|ids, record| ids << record.id}
|
8
|
+
self.where(id: ids)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
ActiveRecord::Base.extend ActiveRecord::Solr
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Refinery
|
2
|
+
module Solr
|
3
|
+
class Version
|
4
|
+
@major = 1
|
5
|
+
@minor = 0
|
6
|
+
@tiny = 1
|
7
|
+
@build = nil
|
8
|
+
|
9
|
+
class << self
|
10
|
+
attr_reader :major, :minor, :tiny, :build
|
11
|
+
|
12
|
+
def to_s
|
13
|
+
[@major, @minor, @tiny, @build].compact.join('.')
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'refinery/solr/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "refinerycms-solr"
|
8
|
+
spec.version = Refinery::Solr::Version.to_s
|
9
|
+
spec.authors = ["Jeff Chaput"]
|
10
|
+
spec.email = ["jfc@artkeep.net"]
|
11
|
+
spec.description = %q{An extension to handle the integration of Refinery CMS and Solr}
|
12
|
+
spec.summary = %q{Refinery CMS Solr plugin}
|
13
|
+
spec.homepage = "http://open.ixmedia.com"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
|
24
|
+
spec.add_dependency 'refinerycms-core', '~> 3.0.0.dev'
|
25
|
+
spec.add_dependency 'sunspot_rails', '~> 2.1.0'
|
26
|
+
spec.add_dependency 'sunspot_solr', '~> 2.1.0'
|
27
|
+
end
|
data/script/rails
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
module Refinery
|
4
|
+
describe "search" do
|
5
|
+
refinery_login_with :refinery_user
|
6
|
+
|
7
|
+
shared_examples "no result search" do
|
8
|
+
it "returns no results" do
|
9
|
+
fill_in "search", :with => "yada yada"
|
10
|
+
click_button "Search"
|
11
|
+
page.should have_content("Sorry, no results found")
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
describe "images extension" do
|
16
|
+
let!(:image) { FactoryGirl.create(:image) }
|
17
|
+
before do
|
18
|
+
visit refinery.admin_images_path
|
19
|
+
end
|
20
|
+
|
21
|
+
it "returns found image" do
|
22
|
+
fill_in "search", :with => "beach"
|
23
|
+
click_button "Search"
|
24
|
+
|
25
|
+
within ".actions" do
|
26
|
+
page.should have_selector("a[href$='#{image.image_name}']")
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
it_behaves_like "no result search"
|
31
|
+
end
|
32
|
+
|
33
|
+
describe "resources extension" do
|
34
|
+
before do
|
35
|
+
FactoryGirl.create(:resource)
|
36
|
+
visit refinery.admin_resources_path
|
37
|
+
end
|
38
|
+
|
39
|
+
it "returns found resource" do
|
40
|
+
fill_in "search", :with => "refinery"
|
41
|
+
click_button "Search"
|
42
|
+
page.should have_content("Refinery Is Awesome.txt")
|
43
|
+
end
|
44
|
+
|
45
|
+
it_behaves_like "no result search"
|
46
|
+
end
|
47
|
+
|
48
|
+
describe "pages extension" do
|
49
|
+
before do
|
50
|
+
FactoryGirl.create(:page, :title => "Ugis Ozols")
|
51
|
+
visit refinery.admin_pages_path
|
52
|
+
end
|
53
|
+
|
54
|
+
it "returns found page" do
|
55
|
+
fill_in "search", :with => "ugis"
|
56
|
+
click_button "Search"
|
57
|
+
page.should have_content("Ugis Ozols")
|
58
|
+
end
|
59
|
+
|
60
|
+
it_behaves_like "no result search"
|
61
|
+
end
|
62
|
+
|
63
|
+
describe "users extension" do
|
64
|
+
before do
|
65
|
+
FactoryGirl.create(:user, :username => "ugis")
|
66
|
+
visit refinery.admin_users_path
|
67
|
+
end
|
68
|
+
|
69
|
+
it "returns found user" do
|
70
|
+
fill_in "search", :with => "ugis"
|
71
|
+
click_button "Search"
|
72
|
+
page.should have_content("ugis")
|
73
|
+
end
|
74
|
+
|
75
|
+
it_behaves_like "no result search"
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
|
3
|
+
# Configure Rails Environment
|
4
|
+
ENV["RAILS_ENV"] ||= 'test'
|
5
|
+
|
6
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
7
|
+
|
8
|
+
require 'rspec/rails'
|
9
|
+
require 'capybara/rspec'
|
10
|
+
|
11
|
+
Rails.backtrace_cleaner.remove_silencers!
|
12
|
+
|
13
|
+
RSpec.configure do |config|
|
14
|
+
config.mock_with :rspec
|
15
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
16
|
+
config.filter_run :focus => true
|
17
|
+
config.run_all_when_everything_filtered = true
|
18
|
+
|
19
|
+
config.before(:suite) do
|
20
|
+
system "bundle exec rake -f #{File.expand_path("../dummy/Rakefile", __FILE__)} sunspot:solr:start"
|
21
|
+
sleep 2
|
22
|
+
end
|
23
|
+
|
24
|
+
config.after(:suite) do
|
25
|
+
system "bundle exec rake -f #{File.expand_path("../dummy/Rakefile", __FILE__)} sunspot:solr:stop"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
# set javascript driver for capybara
|
30
|
+
Capybara.javascript_driver = :selenium
|
31
|
+
|
32
|
+
# Requires supporting files with custom matchers and macros, etc,
|
33
|
+
# in ./support/ and its subdirectories including factories.
|
34
|
+
([Rails.root.to_s] | ::Refinery::Plugins.registered.pathnames).map{|p|
|
35
|
+
Dir[File.join(p, 'spec', 'support', '**', '*.rb').to_s]
|
36
|
+
}.flatten.sort.each do |support_file|
|
37
|
+
require support_file
|
38
|
+
end
|
data/tasks/rspec.rake
ADDED
data/tasks/solr.rake
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
namespace :refinery do
|
2
|
+
namespace :solr do
|
3
|
+
desc 'Generates a dummy app for testing'
|
4
|
+
task :dummy_app do
|
5
|
+
system 'bundle exec rake refinery:testing:dummy_app'
|
6
|
+
system "cd #{dummy_app_path} && bundle exec rails generate sunspot_rails:install"
|
7
|
+
|
8
|
+
File.open(File.join(dummy_app_path, 'config', 'sunspot.yml'), 'w') do |config|
|
9
|
+
config.puts "development:\n solr:\n hostname: localhost\n port: 8982\n log_level: WARNING\n path: /solr/development\n\ntest:\n solr:\n hostname: localhost\n port: 8982\n log_level: WARNING\n path: /solr/test"
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
def dummy_app_path
|
15
|
+
Refinery::Testing::Railtie.target_extension_path.join('spec', 'dummy')
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,142 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: refinerycms-solr
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jeff Chaput
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-09-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: refinerycms-core
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.0.0.dev
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.0.0.dev
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sunspot_rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.1.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.1.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sunspot_solr
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.1.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.1.0
|
83
|
+
description: An extension to handle the integration of Refinery CMS and Solr
|
84
|
+
email:
|
85
|
+
- jfc@artkeep.net
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- .gitignore
|
91
|
+
- Gemfile
|
92
|
+
- LICENSE.txt
|
93
|
+
- README.md
|
94
|
+
- Rakefile
|
95
|
+
- app/decorators/models/refinery/image_decorator.rb
|
96
|
+
- app/decorators/models/refinery/page_decorator.rb
|
97
|
+
- app/decorators/models/refinery/resource_decorator.rb
|
98
|
+
- app/decorators/models/refinery/user_decorator.rb
|
99
|
+
- app/views/refinery/admin/_search.html.erb
|
100
|
+
- app/views/refinery/admin/_search_header.html.erb
|
101
|
+
- app/views/refinery/solr/admin/_search.html.erb
|
102
|
+
- app/views/refinery/solr/admin/_search_header.html.erb
|
103
|
+
- config/sunspot.yml
|
104
|
+
- contributing.md
|
105
|
+
- lib/refinery/solr.rb
|
106
|
+
- lib/refinery/solr/active_record.rb
|
107
|
+
- lib/refinery/solr/engine.rb
|
108
|
+
- lib/refinery/solr/version.rb
|
109
|
+
- lib/refinerycms-solr.rb
|
110
|
+
- refinery-solr.gemspec
|
111
|
+
- script/rails
|
112
|
+
- spec/features/refinery/solr/admin/search_spec.rb
|
113
|
+
- spec/spec_helper.rb
|
114
|
+
- tasks/rspec.rake
|
115
|
+
- tasks/solr.rake
|
116
|
+
homepage: http://open.ixmedia.com
|
117
|
+
licenses:
|
118
|
+
- MIT
|
119
|
+
metadata: {}
|
120
|
+
post_install_message:
|
121
|
+
rdoc_options: []
|
122
|
+
require_paths:
|
123
|
+
- lib
|
124
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
125
|
+
requirements:
|
126
|
+
- - '>='
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '0'
|
129
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
requirements: []
|
135
|
+
rubyforge_project:
|
136
|
+
rubygems_version: 2.0.2
|
137
|
+
signing_key:
|
138
|
+
specification_version: 4
|
139
|
+
summary: Refinery CMS Solr plugin
|
140
|
+
test_files:
|
141
|
+
- spec/features/refinery/solr/admin/search_spec.rb
|
142
|
+
- spec/spec_helper.rb
|