Permalink
Browse files

convert gemspec to ruby format

  • Loading branch information...
jkraemer committed Aug 2, 2010
1 parent f7b6d99 commit fb2d5ed29d6a99310af29cca724a89b9a5586f8b
Showing with 57 additions and 273 deletions.
  1. +57 −273 acts_as_ferret.gemspec
View
@@ -1,277 +1,61 @@
---- !ruby/object:Gem::Specification
-name: acts_as_ferret
-version: !ruby/object:Gem::Version
- prerelease: false
- segments:
- - 0
- - 4
- - 8
- - rails3
- version: 0.4.8.rails3
-platform: ruby
-authors:
-- Jens Kraemer
-autorequire:
-bindir: bin
-cert_chain: []
+Gem::Specification.new do |s|
-date: 2010-07-13 14:10:00 +02:00
-default_executable: aaf_install
-dependencies:
-- !ruby/object:Gem::Dependency
- name: ferret
- prerelease: false
- requirement: &id001 !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- segments:
- - 0
- version: "0"
- type: :runtime
- version_requirements: *id001
-description: Rails plugin that adds powerful full text search capabilities to ActiveRecord models.
-email: jk@jkraemer.net
-executables:
-- aaf_install
-extensions: []
+ s.name = 'acts_as_ferret'
+ s.version = '0.4.8.rails3'
+ s.authors = ['Jens Kraemer']
+ s.summary = 'acts_as_ferret - Ferret based full text search for any ActiveRecord model'
+ s.description = 'Rails plugin that adds powerful full text search capabilities to ActiveRecord models.'
+ s.email = 'jk@jkraemer.net'
+ s.homepage = 'http://github.com/jkraemer/acts_as_ferret'
+ s.rubyforge_project = 'acts_as_ferret'
+
+ s.bindir = 'bin'
+ s.executables = ['aaf_install']
+ s.default_executable = 'aaf_install'
+ s.require_paths = ["lib"]
+
+
+ s.platform = Gem::Platform::RUBY
+ s.required_ruby_version = '>=1.8'
+ s.rubygems_version = '1.3.6'
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency('ferret', [">= 0.11.6"])
+ else
+ s.add_dependency('ferret', [">= 0.11.6"])
+ end
+ else
+ s.add_dependency('ferret', [">= 0.11.6"])
+ end
+
-extra_rdoc_files: []
+ s.has_rdoc = true
+ s.rdoc_options = ["--charset=UTF-8"]
-files:
-- acts_as_ferret.gemspec
-- bin
-- bin/aaf_install
-- config
-- config/ferret_server.yml
-- doc
-- doc/demo
-- doc/demo/app
-- doc/demo/app/controllers
-- doc/demo/app/controllers/admin
-- doc/demo/app/controllers/admin/backend_controller.rb
-- doc/demo/app/controllers/admin_area_controller.rb
-- doc/demo/app/controllers/application.rb
-- doc/demo/app/controllers/contents_controller.rb
-- doc/demo/app/controllers/searches_controller.rb
-- doc/demo/app/helpers
-- doc/demo/app/helpers/admin
-- doc/demo/app/helpers/admin/backend_helper.rb
-- doc/demo/app/helpers/application_helper.rb
-- doc/demo/app/helpers/content_helper.rb
-- doc/demo/app/helpers/search_helper.rb
-- doc/demo/app/models
-- doc/demo/app/models/comment.rb
-- doc/demo/app/models/content.rb
-- doc/demo/app/models/content_base.rb
-- doc/demo/app/models/search.rb
-- doc/demo/app/models/shared_index1.rb
-- doc/demo/app/models/shared_index2.rb
-- doc/demo/app/models/special_content.rb
-- doc/demo/app/models/stats.rb
-- doc/demo/app/views
-- doc/demo/app/views/admin
-- doc/demo/app/views/admin/backend
-- doc/demo/app/views/admin/backend/search.rhtml
-- doc/demo/app/views/contents
-- doc/demo/app/views/contents/_form.rhtml
-- doc/demo/app/views/contents/edit.rhtml
-- doc/demo/app/views/contents/index.rhtml
-- doc/demo/app/views/contents/new.rhtml
-- doc/demo/app/views/contents/show.rhtml
-- doc/demo/app/views/layouts
-- doc/demo/app/views/layouts/application.html.erb
-- doc/demo/app/views/searches
-- doc/demo/app/views/searches/_content.html.erb
-- doc/demo/app/views/searches/search.html.erb
-- doc/demo/config
-- doc/demo/config/boot.rb
-- doc/demo/config/database.yml
-- doc/demo/config/environment.rb
-- doc/demo/config/environments
-- doc/demo/config/environments/development.rb
-- doc/demo/config/environments/production.rb
-- doc/demo/config/environments/test.rb
-- doc/demo/config/ferret_server.yml
-- doc/demo/config/lighttpd.conf
-- doc/demo/config/routes.rb
-- doc/demo/db
-- doc/demo/db/development_structure.sql
-- doc/demo/db/migrate
-- doc/demo/db/migrate/001_initial_migration.rb
-- doc/demo/db/migrate/002_add_type_to_contents.rb
-- doc/demo/db/migrate/003_create_shared_index1s.rb
-- doc/demo/db/migrate/004_create_shared_index2s.rb
-- doc/demo/db/migrate/005_special_field.rb
-- doc/demo/db/migrate/006_create_stats.rb
-- doc/demo/db/schema.sql
-- doc/demo/doc
-- doc/demo/doc/howto.txt
-- doc/demo/doc/README_FOR_APP
-- doc/demo/public
-- doc/demo/public/.htaccess
-- doc/demo/public/404.html
-- doc/demo/public/500.html
-- doc/demo/public/dispatch.cgi
-- doc/demo/public/dispatch.fcgi
-- doc/demo/public/dispatch.rb
-- doc/demo/public/favicon.ico
-- doc/demo/public/images
-- doc/demo/public/images/rails.png
-- doc/demo/public/index.html
-- doc/demo/public/robots.txt
-- doc/demo/public/stylesheets
-- doc/demo/public/stylesheets/scaffold.css
-- doc/demo/Rakefile
-- doc/demo/README
-- doc/demo/README_DEMO
-- doc/demo/script
-- doc/demo/script/about
-- doc/demo/script/breakpointer
-- doc/demo/script/console
-- doc/demo/script/destroy
-- doc/demo/script/ferret_server
-- doc/demo/script/generate
-- doc/demo/script/performance
-- doc/demo/script/performance/benchmarker
-- doc/demo/script/performance/profiler
-- doc/demo/script/plugin
-- doc/demo/script/process
-- doc/demo/script/process/inspector
-- doc/demo/script/process/reaper
-- doc/demo/script/process/spawner
-- doc/demo/script/process/spinner
-- doc/demo/script/runner
-- doc/demo/script/server
-- doc/demo/test
-- doc/demo/test/fixtures
-- doc/demo/test/fixtures/comments.yml
-- doc/demo/test/fixtures/contents.yml
-- doc/demo/test/fixtures/remote_contents.yml
-- doc/demo/test/fixtures/shared_index1s.yml
-- doc/demo/test/fixtures/shared_index2s.yml
-- doc/demo/test/functional
-- doc/demo/test/functional/admin
-- doc/demo/test/functional/admin/backend_controller_test.rb
-- doc/demo/test/functional/contents_controller_test.rb
-- doc/demo/test/functional/searches_controller_test.rb
-- doc/demo/test/smoke
-- doc/demo/test/smoke/drb_smoke_test.rb
-- doc/demo/test/smoke/process_stats.rb
-- doc/demo/test/test_helper.rb
-- doc/demo/test/unit
-- doc/demo/test/unit/comment_test.rb
-- doc/demo/test/unit/content_test.rb
-- doc/demo/test/unit/ferret_result_test.rb
-- doc/demo/test/unit/multi_index_test.rb
-- doc/demo/test/unit/remote_index_test.rb
-- doc/demo/test/unit/shared_index1_test.rb
-- doc/demo/test/unit/shared_index2_test.rb
-- doc/demo/test/unit/sort_test.rb
-- doc/demo/test/unit/special_content_test.rb
-- doc/demo/vendor
-- doc/demo/vendor/plugins
-- doc/demo/vendor/plugins/will_paginate
-- doc/demo/vendor/plugins/will_paginate/init.rb
-- doc/demo/vendor/plugins/will_paginate/lib
-- doc/demo/vendor/plugins/will_paginate/lib/will_paginate
-- doc/demo/vendor/plugins/will_paginate/lib/will_paginate/collection.rb
-- doc/demo/vendor/plugins/will_paginate/lib/will_paginate/core_ext.rb
-- doc/demo/vendor/plugins/will_paginate/lib/will_paginate/finder.rb
-- doc/demo/vendor/plugins/will_paginate/lib/will_paginate/view_helpers.rb
-- doc/demo/vendor/plugins/will_paginate/LICENSE
-- doc/demo/vendor/plugins/will_paginate/Rakefile
-- doc/demo/vendor/plugins/will_paginate/README
-- doc/demo/vendor/plugins/will_paginate/test
-- doc/demo/vendor/plugins/will_paginate/test/array_pagination_test.rb
-- doc/demo/vendor/plugins/will_paginate/test/boot.rb
-- doc/demo/vendor/plugins/will_paginate/test/console
-- doc/demo/vendor/plugins/will_paginate/test/finder_test.rb
-- doc/demo/vendor/plugins/will_paginate/test/fixtures
-- doc/demo/vendor/plugins/will_paginate/test/fixtures/admin.rb
-- doc/demo/vendor/plugins/will_paginate/test/fixtures/companies.yml
-- doc/demo/vendor/plugins/will_paginate/test/fixtures/company.rb
-- doc/demo/vendor/plugins/will_paginate/test/fixtures/developer.rb
-- doc/demo/vendor/plugins/will_paginate/test/fixtures/developers_projects.yml
-- doc/demo/vendor/plugins/will_paginate/test/fixtures/project.rb
-- doc/demo/vendor/plugins/will_paginate/test/fixtures/projects.yml
-- doc/demo/vendor/plugins/will_paginate/test/fixtures/replies.yml
-- doc/demo/vendor/plugins/will_paginate/test/fixtures/reply.rb
-- doc/demo/vendor/plugins/will_paginate/test/fixtures/schema.sql
-- doc/demo/vendor/plugins/will_paginate/test/fixtures/topic.rb
-- doc/demo/vendor/plugins/will_paginate/test/fixtures/topics.yml
-- doc/demo/vendor/plugins/will_paginate/test/fixtures/user.rb
-- doc/demo/vendor/plugins/will_paginate/test/fixtures/users.yml
-- doc/demo/vendor/plugins/will_paginate/test/helper.rb
-- doc/demo/vendor/plugins/will_paginate/test/lib
-- doc/demo/vendor/plugins/will_paginate/test/lib/activerecord_test_connector.rb
-- doc/demo/vendor/plugins/will_paginate/test/lib/load_fixtures.rb
-- doc/demo/vendor/plugins/will_paginate/test/pagination_test.rb
-- doc/monit-example
-- doc/README.win32
-- init.rb
-- install.rb
-- lib
-- lib/acts_as_ferret.rb
-- lib/acts_as_ferret/act_methods.rb
-- lib/acts_as_ferret/blank_slate.rb
-- lib/acts_as_ferret/bulk_indexer.rb
-- lib/acts_as_ferret/class_methods.rb
-- lib/acts_as_ferret/ferret_extensions.rb
-- lib/acts_as_ferret/ferret_find_methods.rb
-- lib/acts_as_ferret/ferret_result.rb
-- lib/acts_as_ferret/index.rb
-- lib/acts_as_ferret/instance_methods.rb
-- lib/acts_as_ferret/local_index.rb
-- lib/acts_as_ferret/more_like_this.rb
-- lib/acts_as_ferret/multi_index.rb
-- lib/acts_as_ferret/rdig_adapter.rb
-- lib/acts_as_ferret/remote_functions.rb
-- lib/acts_as_ferret/remote_index.rb
-- lib/acts_as_ferret/remote_multi_index.rb
-- lib/acts_as_ferret/search_results.rb
-- lib/acts_as_ferret/without_ar.rb
-- lib/acts_as_ferret/server/server.rb
-- lib/acts_as_ferret/server/config.rb
-- lib/acts_as_ferret/server/unix_daemon.rb
-- LICENSE
-- rakefile
-- README
-- recipes
-- recipes/aaf_recipes.rb
-- script
-- script/ferret_server
-- tasks
-- tasks/ferret.rake
-has_rdoc: true
-homepage: http://github.com/jkraemer/acts_as_ferret
-licenses: []
-
-post_install_message:
-rdoc_options: []
-
-require_paths:
-- lib
-required_ruby_version: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- segments:
- - 0
- version: "0"
-required_rubygems_version: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- segments:
- - 0
- version: "0"
-requirements: []
-
-rubyforge_project: acts_as_ferret
-rubygems_version: 1.3.6
-signing_key:
-specification_version: 3
-summary: acts_as_ferret - Ferret based full text search for any ActiveRecord model
-test_files: []
+ s.extra_rdoc_files = [
+ 'LICENSE',
+ 'README'
+ ]
+ s.test_files = Dir['test/**/*rb']
+ s.files = [
+ 'bin/*',
+ 'config/*',
+ 'doc/**/*',
+ 'recipes/*',
+ 'script/*',
+ 'tasks/*',
+ 'lib/**/*rb'
+ ].map{|p| Dir[p]}.flatten +
+ [
+ 'acts_as_ferret.gemspec',
+ 'init.rb',
+ 'install.rb',
+ 'README',
+ 'LICENSE',
+ ]
+
+end

0 comments on commit fb2d5ed

Please sign in to comment.