Skip to content

Commit

Permalink
Make generator work.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols committed Sep 7, 2011
1 parent 536583b commit 7174f34
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
8 changes: 0 additions & 8 deletions lib/generators/refinerycms_search_generator.rb

This file was deleted.

10 changes: 10 additions & 0 deletions lib/generators/search_generator.rb
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,10 @@
require 'refinery/generators'

module Refinery
class SearchGenerator < ::Refinery::Generators::EngineInstaller

source_root File.expand_path('../../../', __FILE__)
engine_name "search"

end
end
2 changes: 2 additions & 0 deletions lib/refinerycms-search.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,5 @@
require File.expand_path('../generators/search_generator', __FILE__)

module Refinery module Refinery
module Search module Search
class Engine < Rails::Engine class Engine < Rails::Engine
Expand Down
9 changes: 8 additions & 1 deletion refinerycms-search.gemspec
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,7 @@
Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = %q{refinerycms-search} s.name = %q{refinerycms-search}
s.version = %q{2.0.0} s.version = %q{2.0.0}
s.date = %q{2011-08-23} s.date = %q{2011-09-07}
s.summary = %q{Extra search handling for Refinery CMS} s.summary = %q{Extra search handling for Refinery CMS}
s.description = %q{Provides extra functionality for searching your frontend website using Refinery CMS.} s.description = %q{Provides extra functionality for searching your frontend website using Refinery CMS.}
s.homepage = %q{http://refinerycms.com} s.homepage = %q{http://refinerycms.com}
Expand Down Expand Up @@ -33,8 +33,15 @@ Gem::Specification.new do |s|
'config/locales/bg.yml', 'config/locales/bg.yml',
'config/locales/en.yml', 'config/locales/en.yml',
'config/routes.rb', 'config/routes.rb',
'db',
'db/migrate',
'db/migrate/01_create_search_page.rb',
'db/seeds',
'db/seeds/refinerycms_search.rb',
'lib', 'lib',
'lib/gemspec.rb', 'lib/gemspec.rb',
'lib/generators',
'lib/generators/search_generator.rb',
'lib/refinerycms-search.rb', 'lib/refinerycms-search.rb',
'readme.md', 'readme.md',
'refinerycms-search.gemspec' 'refinerycms-search.gemspec'
Expand Down

0 comments on commit 7174f34

Please sign in to comment.