bigindex 0.1.0 → 0.1.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.
- data/{MIT-LICENSE → LICENSE} +0 -0
- data/README.rdoc +41 -7
- data/Rakefile +1 -2
- data/VERSION +1 -1
- data/examples/bigindex.yml +0 -0
- data/init.rb +1 -27
- data/install.rb +0 -0
- data/lib/big_index.rb +5 -6
- data/lib/big_index/adapters.rb +3 -3
- data/lib/big_index/adapters/abstract_adapter.rb +0 -0
- data/lib/big_index/adapters/solr_adapter.rb +0 -0
- data/lib/big_index/index_field.rb +0 -0
- data/lib/big_index/repository.rb +0 -0
- data/lib/big_index/resource.rb +47 -58
- data/lib/big_index/support.rb +1 -1
- data/lib/big_index/support/assertions.rb +0 -0
- data/lib/big_index/tasks.rb +3 -0
- data/lib/bigindex.rb +0 -0
- data/lib/tasks/bigindex.rake +50 -0
- data/rails/init.rb +0 -0
- data/spec/connections/activerecord/activerecord.yml +0 -0
- data/spec/connections/activerecord/connection.rb +0 -0
- data/spec/connections/bigindex.yml +0 -0
- data/spec/connections/bigrecord/bigrecord.yml +0 -0
- data/spec/connections/bigrecord/connection.rb +1 -1
- data/spec/connections/bigrecord/migrations/20090706182535_add_animals_table.rb +0 -0
- data/spec/connections/bigrecord/migrations/20090706190623_add_books_table.rb +0 -0
- data/spec/connections/bigrecord/migrations/20090706193019_add_companies_table.rb +0 -0
- data/spec/connections/bigrecord/migrations/20090706194512_add_employees_table.rb +0 -0
- data/spec/connections/bigrecord/migrations/20090706195741_add_zoos_table.rb +0 -0
- data/spec/debug.log +8154 -0
- data/spec/lib/activerecord/animal.rb +0 -0
- data/spec/lib/activerecord/book.rb +0 -0
- data/spec/lib/activerecord/novel.rb +0 -0
- data/spec/lib/bigrecord/animal.rb +0 -0
- data/spec/lib/bigrecord/book.rb +0 -0
- data/spec/lib/bigrecord/novel.rb +0 -0
- data/spec/spec.opts +0 -0
- data/spec/spec_helper.rb +2 -5
- data/spec/unit/adapters/abstract_adapter_spec.rb +0 -0
- data/spec/unit/adapters/adapter_shared_spec.rb +0 -0
- data/spec/unit/adapters/solr_adapter_spec.rb +0 -0
- data/spec/unit/bigindex_setup_spec.rb +0 -0
- data/spec/unit/index_shared_spec.rb +0 -1
- data/spec/unit/index_spec.rb +0 -0
- data/spec/unit/inherited_class_spec.rb +0 -0
- data/tasks/gem.rb +1 -1
- data/tasks/rdoc.rb +0 -0
- data/tasks/spec.rb +4 -4
- data/vendor/solr.rb +0 -0
- data/vendor/solr/adapter_methods.rb +0 -0
- data/vendor/solr/adapter_methods/search_results.rb +0 -0
- data/vendor/solr/adapter_methods/solr_result.rb +0 -0
- data/vendor/solr/base.rb +0 -0
- metadata +22 -21
- data/generators/bigindex/bigindex_generator.rb +0 -17
- data/generators/bigindex/templates/bigindex.rake +0 -3
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
    
        data/spec/lib/bigrecord/book.rb
    CHANGED
    
    | 
            File without changes
         | 
    
        data/spec/lib/bigrecord/novel.rb
    CHANGED
    
    | 
            File without changes
         | 
    
        data/spec/spec.opts
    CHANGED
    
    | 
            File without changes
         | 
    
        data/spec/spec_helper.rb
    CHANGED
    
    | @@ -1,11 +1,8 @@ | |
| 1 1 | 
             
            require 'pathname'
         | 
| 2 2 | 
             
            require 'rubygems'
         | 
| 3 | 
            -
            gem 'rspec', '~>1.2'
         | 
| 4 3 | 
             
            require 'spec'
         | 
| 5 4 |  | 
| 6 | 
            -
             | 
| 7 | 
            -
            SPEC_ROOT = Pathname(__FILE__).dirname.expand_path
         | 
| 8 | 
            -
             | 
| 5 | 
            +
            SPEC_ROOT = File.expand_path(File.join(File.dirname(__FILE__))) + '/'
         | 
| 9 6 |  | 
| 10 7 | 
             
            # Now we'll initialize the ORM connection
         | 
| 11 8 | 
             
            begin
         | 
| @@ -17,7 +14,7 @@ rescue LoadError | |
| 17 14 | 
             
            end
         | 
| 18 15 |  | 
| 19 16 | 
             
            # Now we can require BigIndex
         | 
| 20 | 
            -
            require SPEC_ROOT | 
| 17 | 
            +
            require SPEC_ROOT + "../lib/big_index"
         | 
| 21 18 |  | 
| 22 19 | 
             
            CONFIGURATION_FILE_OPTIONS = YAML.load(File.new(File.dirname(__FILE__) + '/connections/bigindex.yml')).freeze
         | 
| 23 20 | 
             
            BigIndex.configurations = CONFIGURATION_FILE_OPTIONS
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| @@ -9,7 +9,6 @@ describe "a model with BigIndex::Resource", :shared => true do | |
| 9 9 | 
             
                @model_class.should respond_to(:index_configuration=)
         | 
| 10 10 |  | 
| 11 11 | 
             
                # Verifying the index setup methods
         | 
| 12 | 
            -
                @model_class.should respond_to(:add_index_field)
         | 
| 13 12 | 
             
                @model_class.should respond_to(:index)
         | 
| 14 13 | 
             
                @model_class.should respond_to(:rebuild_index)
         | 
| 15 14 |  | 
    
        data/spec/unit/index_spec.rb
    CHANGED
    
    | 
            File without changes
         | 
| 
            File without changes
         | 
    
        data/tasks/gem.rb
    CHANGED
    
    | @@ -9,7 +9,7 @@ begin | |
| 9 9 | 
             
                gemspec.summary = "A Rails plugin that drops into models and provides indexing functionality. Uses an adapter/repository pattern inspired by Datamapper to abstract the actual indexer used in the background, and exposes the model to a simple indexing API."
         | 
| 10 10 | 
             
                gemspec.description = "A Rails plugin that drops into models and provides indexing functionality."
         | 
| 11 11 | 
             
                gemspec.files = FileList["{examples,generators,lib,rails,spec,tasks,vendor}/**/*","init.rb","install.rb","Rakefile","VERSION"].to_a
         | 
| 12 | 
            -
                gemspec.extra_rdoc_files = FileList[" | 
| 12 | 
            +
                gemspec.extra_rdoc_files = FileList["LICENSE","README.rdoc"].to_a
         | 
| 13 13 |  | 
| 14 14 | 
             
                gemspec.add_development_dependency "rspec"
         | 
| 15 15 | 
             
                gemspec.add_dependency "solr-ruby", ">= 0.0.7"
         | 
    
        data/tasks/rdoc.rb
    CHANGED
    
    | 
            File without changes
         | 
    
        data/tasks/spec.rb
    CHANGED
    
    | @@ -2,13 +2,13 @@ desc "Run #{DATA_STORES.join(" and ")} specs" | |
| 2 2 | 
             
            task :spec => DATA_STORES.map{|store| "spec:#{store}" }
         | 
| 3 3 |  | 
| 4 4 | 
             
            namespace :spec do
         | 
| 5 | 
            -
              unit_specs        =  | 
| 6 | 
            -
              integration_specs =  | 
| 7 | 
            -
              all_specs         =  | 
| 5 | 
            +
              unit_specs        = Dir[(ROOT + 'spec/unit/**/*_spec.rb')].map{|f| f.to_s}
         | 
| 6 | 
            +
              integration_specs = Dir[(ROOT + 'spec/integration/**/*_spec.rb')].map{|f| f.to_s}
         | 
| 7 | 
            +
              all_specs         = Dir[(ROOT + 'spec/**/*_spec.rb')].map{|f| f.to_s}
         | 
| 8 8 |  | 
| 9 9 | 
             
              def run_spec(name, adapter, files, rcov)
         | 
| 10 10 | 
             
                if (files.class == String)
         | 
| 11 | 
            -
                  return run_spec(name, adapter,  | 
| 11 | 
            +
                  return run_spec(name, adapter, Dir[files.to_s].map{|f| f.to_s}, rcov)
         | 
| 12 12 | 
             
                else
         | 
| 13 13 | 
             
                  Spec::Rake::SpecTask.new(name) do |t|
         | 
| 14 14 | 
             
                    t.spec_opts << File.open("spec/spec.opts").readlines.map{|x| x.chomp}
         | 
    
        data/vendor/solr.rb
    CHANGED
    
    | 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
| 
            File without changes
         | 
    
        data/vendor/solr/base.rb
    CHANGED
    
    | 
            File without changes
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification 
         | 
| 2 2 | 
             
            name: bigindex
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            -
              version: 0.1. | 
| 4 | 
            +
              version: 0.1.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors: 
         | 
| 7 7 | 
             
            - openplaces.org
         | 
| @@ -9,7 +9,7 @@ autorequire: | |
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 11 |  | 
| 12 | 
            -
            date: 2009-10- | 
| 12 | 
            +
            date: 2009-10-27 00:00:00 -04:00
         | 
| 13 13 | 
             
            default_executable: 
         | 
| 14 14 | 
             
            dependencies: 
         | 
| 15 15 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| @@ -39,14 +39,12 @@ executables: [] | |
| 39 39 | 
             
            extensions: []
         | 
| 40 40 |  | 
| 41 41 | 
             
            extra_rdoc_files: 
         | 
| 42 | 
            -
            -  | 
| 42 | 
            +
            - LICENSE
         | 
| 43 43 | 
             
            - README.rdoc
         | 
| 44 44 | 
             
            files: 
         | 
| 45 45 | 
             
            - Rakefile
         | 
| 46 46 | 
             
            - VERSION
         | 
| 47 47 | 
             
            - examples/bigindex.yml
         | 
| 48 | 
            -
            - generators/bigindex/bigindex_generator.rb
         | 
| 49 | 
            -
            - generators/bigindex/templates/bigindex.rake
         | 
| 50 48 | 
             
            - init.rb
         | 
| 51 49 | 
             
            - install.rb
         | 
| 52 50 | 
             
            - lib/big_index.rb
         | 
| @@ -58,7 +56,9 @@ files: | |
| 58 56 | 
             
            - lib/big_index/resource.rb
         | 
| 59 57 | 
             
            - lib/big_index/support.rb
         | 
| 60 58 | 
             
            - lib/big_index/support/assertions.rb
         | 
| 59 | 
            +
            - lib/big_index/tasks.rb
         | 
| 61 60 | 
             
            - lib/bigindex.rb
         | 
| 61 | 
            +
            - lib/tasks/bigindex.rake
         | 
| 62 62 | 
             
            - rails/init.rb
         | 
| 63 63 | 
             
            - spec/connections/activerecord/activerecord.yml
         | 
| 64 64 | 
             
            - spec/connections/activerecord/connection.rb
         | 
| @@ -70,6 +70,7 @@ files: | |
| 70 70 | 
             
            - spec/connections/bigrecord/migrations/20090706193019_add_companies_table.rb
         | 
| 71 71 | 
             
            - spec/connections/bigrecord/migrations/20090706194512_add_employees_table.rb
         | 
| 72 72 | 
             
            - spec/connections/bigrecord/migrations/20090706195741_add_zoos_table.rb
         | 
| 73 | 
            +
            - spec/debug.log
         | 
| 73 74 | 
             
            - spec/lib/activerecord/animal.rb
         | 
| 74 75 | 
             
            - spec/lib/activerecord/book.rb
         | 
| 75 76 | 
             
            - spec/lib/activerecord/novel.rb
         | 
| @@ -93,7 +94,7 @@ files: | |
| 93 94 | 
             
            - vendor/solr/adapter_methods/search_results.rb
         | 
| 94 95 | 
             
            - vendor/solr/adapter_methods/solr_result.rb
         | 
| 95 96 | 
             
            - vendor/solr/base.rb
         | 
| 96 | 
            -
            -  | 
| 97 | 
            +
            - LICENSE
         | 
| 97 98 | 
             
            - README.rdoc
         | 
| 98 99 | 
             
            has_rdoc: true
         | 
| 99 100 | 
             
            homepage: http://www.bigrecord.org
         | 
| @@ -124,24 +125,24 @@ signing_key: | |
| 124 125 | 
             
            specification_version: 3
         | 
| 125 126 | 
             
            summary: A Rails plugin that drops into models and provides indexing functionality. Uses an adapter/repository pattern inspired by Datamapper to abstract the actual indexer used in the background, and exposes the model to a simple indexing API.
         | 
| 126 127 | 
             
            test_files: 
         | 
| 127 | 
            -
            - spec/ | 
| 128 | 
            -
            - spec/ | 
| 129 | 
            -
            - spec/lib/bigrecord/novel.rb
         | 
| 130 | 
            -
            - spec/lib/activerecord/book.rb
         | 
| 131 | 
            -
            - spec/lib/activerecord/animal.rb
         | 
| 132 | 
            -
            - spec/lib/activerecord/novel.rb
         | 
| 133 | 
            -
            - spec/connections/bigrecord/migrations/20090706194512_add_employees_table.rb
         | 
| 128 | 
            +
            - spec/connections/activerecord/connection.rb
         | 
| 129 | 
            +
            - spec/connections/bigrecord/connection.rb
         | 
| 134 130 | 
             
            - spec/connections/bigrecord/migrations/20090706182535_add_animals_table.rb
         | 
| 135 131 | 
             
            - spec/connections/bigrecord/migrations/20090706190623_add_books_table.rb
         | 
| 136 | 
            -
            - spec/connections/bigrecord/migrations/20090706195741_add_zoos_table.rb
         | 
| 137 132 | 
             
            - spec/connections/bigrecord/migrations/20090706193019_add_companies_table.rb
         | 
| 138 | 
            -
            - spec/connections/bigrecord/ | 
| 139 | 
            -
            - spec/connections/ | 
| 133 | 
            +
            - spec/connections/bigrecord/migrations/20090706194512_add_employees_table.rb
         | 
| 134 | 
            +
            - spec/connections/bigrecord/migrations/20090706195741_add_zoos_table.rb
         | 
| 135 | 
            +
            - spec/lib/activerecord/animal.rb
         | 
| 136 | 
            +
            - spec/lib/activerecord/book.rb
         | 
| 137 | 
            +
            - spec/lib/activerecord/novel.rb
         | 
| 138 | 
            +
            - spec/lib/bigrecord/animal.rb
         | 
| 139 | 
            +
            - spec/lib/bigrecord/book.rb
         | 
| 140 | 
            +
            - spec/lib/bigrecord/novel.rb
         | 
| 140 141 | 
             
            - spec/spec_helper.rb
         | 
| 141 | 
            -
            - spec/unit/index_spec.rb
         | 
| 142 | 
            -
            - spec/unit/index_shared_spec.rb
         | 
| 143 | 
            -
            - spec/unit/bigindex_setup_spec.rb
         | 
| 144 | 
            -
            - spec/unit/inherited_class_spec.rb
         | 
| 145 | 
            -
            - spec/unit/adapters/solr_adapter_spec.rb
         | 
| 146 142 | 
             
            - spec/unit/adapters/abstract_adapter_spec.rb
         | 
| 147 143 | 
             
            - spec/unit/adapters/adapter_shared_spec.rb
         | 
| 144 | 
            +
            - spec/unit/adapters/solr_adapter_spec.rb
         | 
| 145 | 
            +
            - spec/unit/bigindex_setup_spec.rb
         | 
| 146 | 
            +
            - spec/unit/index_shared_spec.rb
         | 
| 147 | 
            +
            - spec/unit/index_spec.rb
         | 
| 148 | 
            +
            - spec/unit/inherited_class_spec.rb
         | 
| @@ -1,17 +0,0 @@ | |
| 1 | 
            -
            # This generator bootstraps a Rails project for use with Bigindex
         | 
| 2 | 
            -
            class BigindexGenerator < Rails::Generator::Base
         | 
| 3 | 
            -
             
         | 
| 4 | 
            -
              def initialize(runtime_args, runtime_options = {})
         | 
| 5 | 
            -
                require File.join(File.dirname(__FILE__), "..", "..", "install.rb")
         | 
| 6 | 
            -
                Dir.mkdir('lib/tasks') unless File.directory?('lib/tasks')
         | 
| 7 | 
            -
                super
         | 
| 8 | 
            -
              end
         | 
| 9 | 
            -
             
         | 
| 10 | 
            -
              def manifest
         | 
| 11 | 
            -
                record do |m|
         | 
| 12 | 
            -
                  m.directory 'lib/tasks'
         | 
| 13 | 
            -
                  m.file 'bigindex.rake', 'lib/tasks/bigindex.rake'
         | 
| 14 | 
            -
                end
         | 
| 15 | 
            -
              end
         | 
| 16 | 
            -
             
         | 
| 17 | 
            -
            end
         |