bcms_google_mini_search 1.3.1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. data/Gemfile +1 -1
  2. data/README.markdown +14 -10
  3. data/app/assets/javascripts/bcms_google_mini_search/application.js +15 -0
  4. data/app/assets/stylesheets/bcms_google_mini_search/application.css +13 -0
  5. data/app/controllers/bcms_google_mini_search/application_controller.rb +4 -0
  6. data/app/helpers/bcms_google_mini_search/application_helper.rb +4 -0
  7. data/app/portlets/google_mini_search_engine_portlet.rb +1 -1
  8. data/app/portlets/search_box_portlet.rb +1 -1
  9. data/app/views/portlets/google_mini_search_engine/render.html.erb +1 -1
  10. data/app/views/portlets/search_box/render.html.erb +1 -1
  11. data/config/routes.rb +2 -0
  12. data/db/demo/data.rb +97 -0
  13. data/db/demo/page_partials/_footer.html.erb +6 -0
  14. data/db/demo/page_partials/_header.html.erb +24 -0
  15. data/db/demo/page_templates/home_page.html.erb +49 -0
  16. data/db/demo/page_templates/sub_page.html.erb +37 -0
  17. data/lib/bcms_google_mini_search/version.rb +1 -1
  18. data/lib/tasks/bcms_google_mini_search_tasks.rake +4 -0
  19. data/release_notes.txt +5 -0
  20. data/test/bcms_google_mini_search_test.rb +7 -0
  21. data/test/test_helper.rb +10 -13
  22. metadata +40 -28
  23. data/.gitignore +0 -12
  24. data/.rvmrc +0 -1
  25. data/Rakefile +0 -10
  26. data/app/views/layouts/templates/default.html.erb +0 -17
  27. data/app/views/layouts/templates/default.html.erb.html.erb +0 -17
  28. data/bcms_google_mini_search.gemspec +0 -33
  29. data/doc/sample_clustering_result.xml +0 -39
  30. data/lib/tasks/.gitkeep +0 -0
  31. data/public/stylesheets/.gitkeep +0 -0
  32. data/test/performance/browsing_test.rb +0 -9
  33. data/vendor/plugins/.gitkeep +0 -0
data/Gemfile CHANGED
@@ -2,6 +2,6 @@ source 'http://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- gem "mysql2", '0.2.18'
5
+ gem "mysql2"
6
6
  gem "mocha", '0.9.12', :group => :test, :require=>false
7
7
 
@@ -21,16 +21,22 @@ Note: This module assume the BrowserCMS web site owner has access to their own G
21
21
  themselves or a third party service.
22
22
 
23
23
  ## A. Instructions
24
- There are two basic steps to setting up this module:
24
+
25
+ Installing this module is done much like other BrowserCMS modules:
26
+
27
+ ```
28
+ $ rails g cms:install bcms_google_mini_search
29
+ ```
30
+
31
+ After that, you will need to to:
25
32
 
26
33
  1. Configure your Google Mini to crawl your site.
27
- 2. Install the module and configure it to point to your Google Mini server.
34
+ 2. Configure the module to point to your Google Mini server.
28
35
 
29
- These instructions assume the Mini is already set up and running.
36
+ These instructions assume the Mini or Google Search Appliance is already set up and running.
30
37
 
31
38
  ### B. Configuring Google Mini
32
- Configuring the mini include three basic steps, configuring it to crawl your site, creating a collection which limits
33
- what is returned to just your site, and creating a front end, which allows you to submit search queries.
39
+ Configuring the mini include three basic steps, configuring it to crawl your site, creating a collection which limits what is returned to just your site, and creating a front end, which allows you to submit search queries.
34
40
 
35
41
  #### B.1. Configuring the crawler
36
42
  1. Log into your search appliance (i.e. http://google.mini.mysite.com), and enter your account username/password.
@@ -59,8 +65,8 @@ the Mini's default search UI, you can click the 'Test Center' link in the upper
59
65
  collection and front end by name, and submit queries.
60
66
 
61
67
  ### C. Configuring the BrowserCMS Google Mini Search Module
62
- These instructions assume you have successfully installed the bcms_google_mini_search module into your project. To make
63
- the module work, you will have to configure two portlets.
68
+
69
+ To make the module work, you will have to configure two portlets.
64
70
 
65
71
  1. In your sitemap, create a new section called 'Search', with a path '/search'.
66
72
  2. Create a page called 'Search Results', with a path '/search/search-results'.
@@ -74,6 +80,4 @@ the module work, you will have to configure two portlets.
74
80
  10. Set the 'Search Engine Name' field to the exact same name as the portlet in step C.3 above (i.e. Google Mini Search Engine)
75
81
  11. Save the portlet
76
82
 
77
- At this point, you can test the search by entering in a term to the Search Box portlet. If its working, it should call
78
- the Search Results page and display the same results as what you see in the Mini 'Test Center'. You can style the HTML in
79
- the template to tweak how your search results will work.
83
+ At this point, you can test the search by entering in a term to the Search Box portlet. If its working, it should call the Search Results page and display the same results as what you see in the Mini 'Test Center'. You can style the HTML in the template to tweak how your search results will work.
@@ -0,0 +1,15 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // the compiled file.
9
+ //
10
+ // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
+ // GO AFTER THE REQUIRES BELOW.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require_tree .
@@ -0,0 +1,13 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ *= require_self
12
+ *= require_tree .
13
+ */
@@ -0,0 +1,4 @@
1
+ module BcmsGoogleMiniSearch
2
+ class ApplicationController < ActionController::Base
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module BcmsGoogleMiniSearch
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -1,4 +1,4 @@
1
- class GoogleMiniSearchEnginePortlet < Portlet
1
+ class GoogleMiniSearchEnginePortlet < Cms::Portlet
2
2
 
3
3
  enable_template_editor true
4
4
 
@@ -1,4 +1,4 @@
1
- class SearchBoxPortlet < Portlet
1
+ class SearchBoxPortlet < Cms::Portlet
2
2
 
3
3
  def render
4
4
  @search_engine = GoogleMiniSearchEnginePortlet.find_by_name(@portlet.search_engine_name)
@@ -24,7 +24,7 @@ For '<%= @results.query %>', found <%= @results.results_count %> results. <br/>
24
24
  <ul class="search_results">
25
25
  <% @results.each do |result|%>
26
26
  <li>
27
- <%= result.number %> <%= link_to result.title, result.url, :class=>"search_result_title" %><br />
27
+ <%= result.number %> <%= link_to result.title.try(:html_safe), result.url, :class=>"search_result_title" %><br />
28
28
  <span class="search_result_description"><%= result.description.try(:html_safe) %></span> <br />
29
29
  <span class="search_result_url"><%= result.url %></span> -
30
30
  <span class="search_result_size"><%= result.size %></span>
@@ -1,4 +1,4 @@
1
- <% form_tag @search_engine.path, :method=>'GET' do %>
1
+ <%= form_tag @search_engine.path, :method=>'GET' do %>
2
2
  <%= text_field_tag 'query', params[:query] %>
3
3
  <%= submit_tag 'Go' %>
4
4
  <% end %>
@@ -0,0 +1,2 @@
1
+ BcmsGoogleMiniSearch::Engine.routes.draw do
2
+ end
@@ -0,0 +1,97 @@
1
+ # Load up data that was created in load seed data migration
2
+ User.current = User.first(:conditions => {:login => 'cmsadmin'})
3
+ root_section = Section.root.first
4
+ home_page = Page.first(:conditions => {:name => "Home"})
5
+
6
+ # Apply new templates to core pages
7
+ home_page.template_file_name = "home_page.html.erb"
8
+ home_page.hidden = true
9
+ home_page.publish_on_save = true
10
+ home_page.save!
11
+
12
+ # Fill out a sample site map
13
+
14
+ # Main Menu
15
+ create_section(:docs, :name => "Documentation", :parent => root_section, :path => "/documentation")
16
+ create_section(:downloads, :name => "Downloads", :parent => root_section, :path => "/downloads")
17
+ create_section(:contribute, :name => "Contribute", :parent => root_section, :path => "/contribute")
18
+ create_section(:support, :name => "Support", :parent => root_section, :path => "/support")
19
+
20
+ create_page(:support, :name => "Support", :path => "/support", :section => sections(:support), :template_file_name => "sub_page.html.erb")
21
+ create_page(:forums, :name => "Forums", :path => "/support/forums", :section => sections(:support), :template_file_name => "sub_page.html.erb")
22
+ create_page(:docs, :name => "Documentation", :path => "/documentation", :section => sections(:docs), :template_file_name => "sub_page.html.erb")
23
+ create_page(:api, :name => "API", :path => "/documentation/api", :section => sections(:docs), :template_file_name => "sub_page.html.erb")
24
+ create_page(:downloads, :name => "Downloads", :path => "/downloads", :section => sections(:downloads), :template_file_name => "sub_page.html.erb")
25
+ create_page(:gems, :name => "Building a Gem", :path => "/downloads/gems", :section => sections(:downloads), :template_file_name => "sub_page.html.erb")
26
+ create_page(:contribute, :name => "Contribute", :path => "/contribute", :section => sections(:contribute), :template_file_name => "sub_page.html.erb")
27
+ create_page(:github, :name => "Using Github", :path => "/contribute/github", :section => sections(:contribute), :template_file_name => "sub_page.html.erb")
28
+
29
+ # Utility Nav
30
+ create_section(:util, :name => "Utility Nav", :parent => root_section, :path => "/util_nav", :hidden => true)
31
+ create_link(:home, :name => "Home", :url => "/", :section => sections(:util))
32
+ create_page(:demo, :name => "Demo", :path => "/util_nav/demo", :section => sections(:util), :template_file_name => "sub_page.html.erb")
33
+ create_page(:contact_us, :name => "Contact Us", :path => "/util_nav/contact_us", :section => sections(:util), :template_file_name => "sub_page.html.erb")
34
+ create_page(:about, :name => "About Us", :path => "/util_nav/about_us", :section => sections(:util), :template_file_name => "sub_page.html.erb")
35
+
36
+ # Footer Nav
37
+ create_section(:footer, :name => "Footer Nav", :parent => root_section, :path => "/footer_nav", :hidden => true)
38
+ create_page(:demo, :name => "Site Map", :path => "/footer_nav/site_map", :section => sections(:footer), :template_file_name => "sub_page.html.erb")
39
+ create_page(:contribute, :name => "Privacy Policy", :path => "/footer_nav/privacy_policy", :section => sections(:footer), :template_file_name => "sub_page.html.erb")
40
+ create_link(:contact_us, :name => "Contact Us", :url => "/footer_nav/contact_us", :section => sections(:footer))
41
+ create_page(:our_office, :name => "Our Office", :path => "/footer_nav/our_office", :section => sections(:footer), :template_file_name => "sub_page.html.erb")
42
+
43
+ # Marks sections as visiable to everyone
44
+ Group.all.each{|g| g.sections = Section.all }
45
+
46
+ # Populate the pages with some content.
47
+
48
+ welcome_content = "<p>Thank you for trying out this demo site. BrowserCMS is a open source content management system, written in Ruby on Rails.
49
+ It's designed to be approachable for non-technical users, while allowing designers and developers to productively create
50
+ great looking sites which feature dynamic functionality</p>
51
+ <p>This demo site uses a theme (Blue Steel) with two templates (Home and Sub),
52
+ along with a sample sitemap containing several pages and sections. The template shows how to use the core Template API, which allows
53
+ designers to create maintainable pages with no limits on layout.
54
+ </p>"
55
+
56
+ create_html_block(:welcome, :name => "Welcome to BrowserCMS", :content => welcome_content, :publish_on_save => true)
57
+ home_page.create_connector(html_blocks(:welcome), "main")
58
+
59
+
60
+ login = "<p>In order to create or edit content, you will need to log into BrowserCMS.</p>
61
+ <p><a href='/cms'>Login here</a>.</p>
62
+ <p>Enter the following:</p><ul>
63
+ <li>Username: cmsadmin</li><li>Password: cmsadmin</li></ul>"
64
+ create_html_block(:login, :name => "Login", :content=>login, :connect_to_page_id => home_page.id, :connect_to_container => "side_bar_1")
65
+
66
+ features = "<p>Here is a list of some of the features that BrowserCMS sports.</p>
67
+ <ul>
68
+ <li>100% Web Based Interface</li>
69
+ <li>Group Based Permissions</li>
70
+ <li>Rich Text Editing</li>
71
+ <li>Flexible Design Templates</li>
72
+ </ul>
73
+ "
74
+ create_html_block(:features, :name => "Features", :content=>features, :connect_to_page_id => home_page.id, :connect_to_container => "side_bar_2")
75
+
76
+
77
+ create_html_block(:sidebar, :name => "Sidebar", :content => "<ul><li><a href=\"/\">Home</a></li><li><a href=\"/about\">About Us</a></li></ul>", :publish_on_save => true)
78
+ create_html_block(:about_us, :name => "About Us", :content => "We are super fantastic", :publish_on_save => true)
79
+
80
+ pages(:about).create_connector(html_blocks(:about_us), "main")
81
+
82
+ create_dynamic_portlet(:recently_updated_pages,
83
+ :name => 'Recently Updated Pages',
84
+ :code => "@pages = Page.all(:order => 'updated_at desc', :limit => 3)",
85
+ :template => <<-TEMPLATE
86
+ <h2>Recent Updates</h2>
87
+ <ul>
88
+ <% @pages.each do |page| %><li>
89
+ <%= page.name %>
90
+ </li><% end %>
91
+ </ul>
92
+ TEMPLATE
93
+ )
94
+
95
+ # Publish all Pages
96
+ Page.all.each{|p| p.publish! }
97
+ Link.all.each{|l| l.publish! }
@@ -0,0 +1,6 @@
1
+ <div id="footer" class="nav wrapper">
2
+ <div>
3
+ <p>&copy; 1998-2009 BrowserMedia, LLC. All Rights Reserved</p>
4
+ <a href="/footer_nav/site_map">Site Map</a><span>|</span><a href="/footer_nav/privacy_policy">Privacy Policy</a><span>|</span><a href="">Contact Us</a><span>|</span><a href="/footer_nav/our_office">Our Office</a>
5
+ </div>
6
+ </div>
@@ -0,0 +1,24 @@
1
+ <div id="content">
2
+ <div id="upper_nav" class="nav">
3
+ <div>
4
+ <a href="/">Home</a><span>|</span>
5
+ <a href="/util_nav/demo">Demo</a><span>|</span>
6
+ <a href="/util_nav/contact_us">Contact Us</a><span>|</span>
7
+ <a href="/util_nav/about_us">About Us</a>
8
+ </div>
9
+ </div>
10
+ <div style="clear: both;"></div>
11
+ <div id="header" class="wrapper">
12
+ <a href="/"><%= image_tag "/themes/blue_steel/images/logo.jpg", :alt=>"logo"%></a>
13
+ <div id="header_text">
14
+ <h1>BrowserCMS 3.0</h1>
15
+ <p>
16
+ The newly redesigned BrowserCMS 3.0 is an easy, affordable<br />
17
+ way to control, edit, and organize website content.
18
+ </p>
19
+ </div>
20
+ </div>
21
+ <div style="clear: both;"></div>
22
+ <div id="mid_nav" class="nav wrapper">
23
+ <%= render_menu :from_top => 0, :depth => 1%>
24
+ </div>
@@ -0,0 +1,49 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
5
+ <meta http-equiv="Content-Style-Type" content="text/css" />
6
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
7
+ <title><%= page_title %></title>
8
+ <%= yield :html_head %>
9
+ <%= stylesheet_link_tag "/themes/blue_steel/stylesheets/style" %>
10
+ <style type="text/css">
11
+ #broad {
12
+ margin-right: 10px;
13
+ width: 635px;
14
+ # height: 520px;
15
+ }
16
+ #broad div.main_wrapper {
17
+ margin: 10px;
18
+ border: 1px solid #CCCCCC;
19
+ height: 237px;
20
+ }
21
+ </style>
22
+ </head>
23
+ <body>
24
+ <%= cms_toolbar %>
25
+ <%= render :partial => "partials/header"%>
26
+ <div id="main">
27
+ <div id="broad" class="wrapper">
28
+ <%= image_tag "/themes/blue_steel/images/splash.jpg", :alt=>"Splash!", :id=>"splash"%>
29
+ <div class="main_wrapper">
30
+ <h2>Welcome to BrowserCMS 3.0</h2>
31
+ <%= container :main %>
32
+ </div>
33
+ </div>
34
+ <div id="narrow" class="wrapper">
35
+ <div class="page_highlight main_wrapper">
36
+ <h3>Login</h3>
37
+ <%= container :side_bar_1 %>
38
+ </div>
39
+ <div class="page_highlight main_wrapper">
40
+ <h3>Features</h3>
41
+ <%= container :side_bar_2 %>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ <div style="clear: both;"></div>
46
+ <%= render :partial => "partials/footer" %>
47
+ </div>
48
+ </body>
49
+ </html>
@@ -0,0 +1,37 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
5
+ <meta http-equiv="Content-Style-Type" content="text/css" />
6
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
7
+ <title><%= page_title %></title>
8
+ <%= yield :html_head %>
9
+ <%= stylesheet_link_tag "/themes/blue_steel/stylesheets/style" %>
10
+ </head>
11
+ <body>
12
+ <%= cms_toolbar %>
13
+ <%= render :partial => "partials/header"%>
14
+ <div id="main">
15
+ <div id="sub_nav" class="nav wrapper">
16
+ <%# Sub Menus: Developers can dynamically render menus for subsections.
17
+ # Here we show all pages/sections starting one level down from the top of the site.
18
+ # All children of the top level section will be shown here in a list. %>
19
+ <%= render_menu :from_top => 1, :depth => 2 %>
20
+ </div>
21
+ <div id="broad" class="wrapper">
22
+ <%# This demonstrates how breadcrumbs can be automatically generated by using helpers.
23
+ # The style of the breadcrumbs is controlled via CSS, which turns the ul/li into horizontal breadcrumbs with separaters. %>
24
+ <!-- Commented out as we don't have styles/design for this yet.
25
+ <%= render_breadcrumbs %>
26
+ -->
27
+ <div class="main_wrapper">
28
+ <h2><%= page_title %></h2>
29
+ <%= container :main %>
30
+ </div>
31
+ </div>
32
+ </div>
33
+ <div style="clear: both;"></div>
34
+ <%= render :partial => "partials/footer" %>
35
+ </div>
36
+ </body>
37
+ </html>
@@ -1,3 +1,3 @@
1
1
  module BcmsGoogleMiniSearch
2
- VERSION = "1.3.1"
2
+ VERSION = "1.4.0"
3
3
  end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :bcms_google_mini_search do
3
+ # # Task goes here
4
+ # end
@@ -1,3 +1,8 @@
1
+ v1.4.0
2
+ ======
3
+
4
+ * Make compatible with CMS v3.5.x
5
+
1
6
  v1.3.1
2
7
  ======
3
8
 
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class BcmsGoogleMiniSearchTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, BcmsGoogleMiniSearch
6
+ end
7
+ end
@@ -1,18 +1,15 @@
1
+ # Configure Rails Environment
1
2
  ENV["RAILS_ENV"] = "test"
2
- require File.expand_path('../../config/environment', __FILE__)
3
- # require 'test/unit'
4
- require 'rails/test_help'
5
3
 
6
- require "rexml/document"
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
7
6
 
8
- class ActiveSupport::TestCase
9
- # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
10
- #
11
- # Note: You'll currently still have to declare fixtures explicitly in integration tests
12
- # -- they do not yet inherit this setting
13
- fixtures :all
7
+ Rails.backtrace_cleaner.remove_silencers!
14
8
 
15
- # Add more helper methods to be used by all tests here...
16
- end
17
- require 'mocha'
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
18
11
 
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcms_google_mini_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,19 +9,30 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-03 00:00:00.000000000Z
12
+ date: 2012-05-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: browsercms
16
- requirement: &70256812077540 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ~>
19
+ - - <
20
20
  - !ruby/object:Gem::Version
21
- version: 3.3.0
21
+ version: 3.6.0
22
+ - - ! '>='
23
+ - !ruby/object:Gem::Version
24
+ version: 3.5.0.rc2
22
25
  type: :runtime
23
26
  prerelease: false
24
- version_requirements: *70256812077540
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - <
31
+ - !ruby/object:Gem::Version
32
+ version: 3.6.0
33
+ - - ! '>='
34
+ - !ruby/object:Gem::Version
35
+ version: 3.5.0.rc2
25
36
  description: A Google Appliance module for BrowserCMS. Used to display search results
26
37
  from a Google Mini/Search Appliance on a site.
27
38
  email: github@browsermedia.com
@@ -30,43 +41,44 @@ extensions: []
30
41
  extra_rdoc_files:
31
42
  - README.markdown
32
43
  files:
33
- - .gitignore
34
- - .rvmrc
35
- - COPYRIGHT.txt
36
- - GPL.txt
37
- - Gemfile
38
- - LICENSE.txt
39
- - README.markdown
40
- - Rakefile
44
+ - app/assets/javascripts/bcms_google_mini_search/application.js
45
+ - app/assets/stylesheets/bcms_google_mini_search/application.css
46
+ - app/controllers/bcms_google_mini_search/application_controller.rb
47
+ - app/helpers/bcms_google_mini_search/application_helper.rb
41
48
  - app/models/search_result.rb
42
49
  - app/portlets/google_mini_search_engine_portlet.rb
43
50
  - app/portlets/search_box_portlet.rb
44
- - app/views/layouts/templates/default.html.erb
45
- - app/views/layouts/templates/default.html.erb.html.erb
46
51
  - app/views/portlets/google_mini_search_engine/_form.html.erb
47
52
  - app/views/portlets/google_mini_search_engine/render.html.erb
48
53
  - app/views/portlets/search_box/_form.html.erb
49
54
  - app/views/portlets/search_box/render.html.erb
50
- - bcms_google_mini_search.gemspec
51
- - doc/sample_clustering_result.xml
52
- - lib/bcms_google_mini_search.rb
55
+ - config/routes.rb
56
+ - db/demo/data.rb
57
+ - db/demo/page_partials/_footer.html.erb
58
+ - db/demo/page_partials/_header.html.erb
59
+ - db/demo/page_templates/home_page.html.erb
60
+ - db/demo/page_templates/sub_page.html.erb
53
61
  - lib/bcms_google_mini_search/engine.rb
54
62
  - lib/bcms_google_mini_search/gsa.rb
55
63
  - lib/bcms_google_mini_search/routes.rb
56
64
  - lib/bcms_google_mini_search/version.rb
57
- - lib/generators/bcms_google_mini_search/install/USAGE
65
+ - lib/bcms_google_mini_search.rb
58
66
  - lib/generators/bcms_google_mini_search/install/install_generator.rb
59
- - lib/tasks/.gitkeep
60
- - public/stylesheets/.gitkeep
67
+ - lib/generators/bcms_google_mini_search/install/USAGE
68
+ - lib/tasks/bcms_google_mini_search_tasks.rake
69
+ - README.markdown
70
+ - Gemfile
71
+ - LICENSE.txt
72
+ - COPYRIGHT.txt
73
+ - GPL.txt
61
74
  - release_notes.txt
62
- - test/performance/browsing_test.rb
75
+ - test/bcms_google_mini_search_test.rb
63
76
  - test/test_helper.rb
64
77
  - test/unit/gsa_test.rb
65
78
  - test/unit/helpers/search_engine_helper_test.rb
66
79
  - test/unit/portlets/google_mini_search_engine_portlet_test.rb
67
80
  - test/unit/portlets/search_box_portlet_test.rb
68
81
  - test/unit/search_result_test.rb
69
- - vendor/plugins/.gitkeep
70
82
  homepage: http://github.com/browsermedia/bcms_google_mini_search
71
83
  licenses: []
72
84
  post_install_message:
@@ -82,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
82
94
  version: '0'
83
95
  segments:
84
96
  - 0
85
- hash: -1846199177349674308
97
+ hash: 2286671756515373392
86
98
  required_rubygems_version: !ruby/object:Gem::Requirement
87
99
  none: false
88
100
  requirements:
@@ -91,15 +103,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
103
  version: '0'
92
104
  segments:
93
105
  - 0
94
- hash: -1846199177349674308
106
+ hash: 2286671756515373392
95
107
  requirements: []
96
108
  rubyforge_project: bcms_google_mini_search
97
- rubygems_version: 1.8.15
109
+ rubygems_version: 1.8.24
98
110
  signing_key:
99
111
  specification_version: 3
100
112
  summary: A Google Mini Search Module for BrowserCMS
101
113
  test_files:
102
- - test/performance/browsing_test.rb
114
+ - test/bcms_google_mini_search_test.rb
103
115
  - test/test_helper.rb
104
116
  - test/unit/gsa_test.rb
105
117
  - test/unit/helpers/search_engine_helper_test.rb
data/.gitignore DELETED
@@ -1,12 +0,0 @@
1
- coverage/**/*
2
- .DS_Store
3
- log/*.log
4
- tmp/**/*
5
- db/*.sqlite3
6
- db/schema.rb
7
- *.gem
8
- .dotest
9
- tmp/restart.txt
10
- public/cache
11
- .idea/*
12
- Gemfile.lock
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm use 1.9.2@rails3.0
data/Rakefile DELETED
@@ -1,10 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
- require 'rake'
6
-
7
- BcmsGoogleMiniSearch::Application.load_tasks
8
-
9
- require 'bundler'
10
- Bundler::GemHelper.install_tasks
@@ -1,17 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
5
- <title><%= page_title %></title>
6
- <%= yield :html_head %>
7
- </head>
8
- <body style="margin: 0; padding: 0; text-align: center;">
9
- <%= cms_toolbar %>
10
- <div id="wrapper" style="width: 700px; margin: 0 auto; text-align: left; padding: 30px">
11
- Breadcrumbs: <%= render_breadcrumbs %>
12
- Main Menu: <%= render_menu %>
13
- <h1><%= page_title %></h1>
14
- <%= container :main %>
15
- </div>
16
- </body>
17
- </html>
@@ -1,17 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
5
- <title><%= page_title %></title>
6
- <%= yield :html_head %>
7
- </head>
8
- <body style="margin: 0; padding: 0; text-align: center;">
9
- <%= cms_toolbar %>
10
- <div id="wrapper" style="width: 700px; margin: 0 auto; text-align: left; padding: 30px">
11
- Breadcrumbs: <%= render_breadcrumbs %>
12
- Main Menu: <%= render_menu %>
13
- <h1><%= page_title %></h1>
14
- <%= container :main %>
15
- </div>
16
- </body>
17
- </html>
@@ -1,33 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "bcms_google_mini_search/version"
4
-
5
- Gem::Specification.new do |s|
6
- s.name = "bcms_google_mini_search"
7
- s.version = BcmsGoogleMiniSearch::VERSION
8
- s.authors = ["BrowserMedia"]
9
- s.email = %q{github@browsermedia.com}
10
- s.homepage = %q{http://github.com/browsermedia/bcms_google_mini_search}
11
- s.description = %q{A Google Appliance module for BrowserCMS. Used to display search results from a Google Mini/Search Appliance on a site.}
12
- s.summary = %q{A Google Mini Search Module for BrowserCMS}
13
- s.extra_rdoc_files = [
14
- "README.markdown"
15
- ]
16
- s.rdoc_options = ["--charset=UTF-8"]
17
- s.rubyforge_project = "bcms_google_mini_search"
18
-
19
- s.files = `git ls-files`.split("\n")
20
- # Exclude files required for the 'dummy' Rails app
21
- s.files -= Dir['config/**/*', 'public/**/*', 'config.ru', 'db/**/*', 'script/**/*',
22
- 'app/controllers/application_controller.rb',
23
- 'app/helpers/application_helper.rb',
24
- 'app/layouts/templates/**/*'
25
-
26
- ]
27
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
28
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
29
- s.require_paths = ["lib"]
30
- s.add_dependency(%q<browsercms>, ["~> 3.3.0"])
31
- end
32
-
33
-
@@ -1,39 +0,0 @@
1
- <?xml version="1.0"?>
2
- <toplevel>
3
- <Response>
4
- <algorithm data="Concepts"/>
5
- <t_cluster int="95"/>
6
- <cluster>
7
- <gcluster>
8
- <label data="nonalcoholic fatty liver disease"/>
9
- </gcluster>
10
- <gcluster>
11
- <label data="advanced liver disease"/>
12
- </gcluster>
13
- <gcluster>
14
- <label data="liver disease patients"/>
15
- </gcluster>
16
- <gcluster>
17
- <label data="chronic liver disease"/>
18
- </gcluster>
19
- <gcluster>
20
- <label data="patients nonalcoholic fatty liver"/>
21
- </gcluster>
22
- <gcluster>
23
- <label data="end stage liver disease"/>
24
- </gcluster>
25
- <gcluster>
26
- <label data="cholestatic liver disease"/>
27
- </gcluster>
28
- <gcluster>
29
- <label data="patients advanced liver disease"/>
30
- </gcluster>
31
- <gcluster>
32
- <label data="safe patients advanced liver"/>
33
- </gcluster>
34
- <gcluster>
35
- <label data="model end stage liver"/>
36
- </gcluster>
37
- </cluster>
38
- </Response>
39
- </toplevel>
File without changes
File without changes
@@ -1,9 +0,0 @@
1
- require 'test_helper'
2
- require 'rails/performance_test_help'
3
-
4
- # Profiling results for each test method are written to tmp/performance.
5
- class BrowsingTest < ActionDispatch::PerformanceTest
6
- def test_homepage
7
- get '/'
8
- end
9
- end
File without changes