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.
Files changed (57) hide show
  1. data/{MIT-LICENSE → LICENSE} +0 -0
  2. data/README.rdoc +41 -7
  3. data/Rakefile +1 -2
  4. data/VERSION +1 -1
  5. data/examples/bigindex.yml +0 -0
  6. data/init.rb +1 -27
  7. data/install.rb +0 -0
  8. data/lib/big_index.rb +5 -6
  9. data/lib/big_index/adapters.rb +3 -3
  10. data/lib/big_index/adapters/abstract_adapter.rb +0 -0
  11. data/lib/big_index/adapters/solr_adapter.rb +0 -0
  12. data/lib/big_index/index_field.rb +0 -0
  13. data/lib/big_index/repository.rb +0 -0
  14. data/lib/big_index/resource.rb +47 -58
  15. data/lib/big_index/support.rb +1 -1
  16. data/lib/big_index/support/assertions.rb +0 -0
  17. data/lib/big_index/tasks.rb +3 -0
  18. data/lib/bigindex.rb +0 -0
  19. data/lib/tasks/bigindex.rake +50 -0
  20. data/rails/init.rb +0 -0
  21. data/spec/connections/activerecord/activerecord.yml +0 -0
  22. data/spec/connections/activerecord/connection.rb +0 -0
  23. data/spec/connections/bigindex.yml +0 -0
  24. data/spec/connections/bigrecord/bigrecord.yml +0 -0
  25. data/spec/connections/bigrecord/connection.rb +1 -1
  26. data/spec/connections/bigrecord/migrations/20090706182535_add_animals_table.rb +0 -0
  27. data/spec/connections/bigrecord/migrations/20090706190623_add_books_table.rb +0 -0
  28. data/spec/connections/bigrecord/migrations/20090706193019_add_companies_table.rb +0 -0
  29. data/spec/connections/bigrecord/migrations/20090706194512_add_employees_table.rb +0 -0
  30. data/spec/connections/bigrecord/migrations/20090706195741_add_zoos_table.rb +0 -0
  31. data/spec/debug.log +8154 -0
  32. data/spec/lib/activerecord/animal.rb +0 -0
  33. data/spec/lib/activerecord/book.rb +0 -0
  34. data/spec/lib/activerecord/novel.rb +0 -0
  35. data/spec/lib/bigrecord/animal.rb +0 -0
  36. data/spec/lib/bigrecord/book.rb +0 -0
  37. data/spec/lib/bigrecord/novel.rb +0 -0
  38. data/spec/spec.opts +0 -0
  39. data/spec/spec_helper.rb +2 -5
  40. data/spec/unit/adapters/abstract_adapter_spec.rb +0 -0
  41. data/spec/unit/adapters/adapter_shared_spec.rb +0 -0
  42. data/spec/unit/adapters/solr_adapter_spec.rb +0 -0
  43. data/spec/unit/bigindex_setup_spec.rb +0 -0
  44. data/spec/unit/index_shared_spec.rb +0 -1
  45. data/spec/unit/index_spec.rb +0 -0
  46. data/spec/unit/inherited_class_spec.rb +0 -0
  47. data/tasks/gem.rb +1 -1
  48. data/tasks/rdoc.rb +0 -0
  49. data/tasks/spec.rb +4 -4
  50. data/vendor/solr.rb +0 -0
  51. data/vendor/solr/adapter_methods.rb +0 -0
  52. data/vendor/solr/adapter_methods/search_results.rb +0 -0
  53. data/vendor/solr/adapter_methods/solr_result.rb +0 -0
  54. data/vendor/solr/base.rb +0 -0
  55. metadata +22 -21
  56. data/generators/bigindex/bigindex_generator.rb +0 -17
  57. data/generators/bigindex/templates/bigindex.rake +0 -3
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -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.parent + "lib/big_index"
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
@@ -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
 
File without changes
File without changes
@@ -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["MIT-LICENSE","README.rdoc"].to_a
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"
File without changes
@@ -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 = Pathname.glob((ROOT + 'spec/unit/**/*_spec.rb').to_s).map{|f| f.to_s}
6
- integration_specs = Pathname.glob((ROOT + 'spec/integration/**/*_spec.rb').to_s).map{|f| f.to_s}
7
- all_specs = Pathname.glob((ROOT + 'spec/**/*_spec.rb').to_s).map{|f| f.to_s}
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, Pathname.glob(files.to_s).map{|f| f.to_s}, rcov)
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}
File without changes
File without changes
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.0
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 00:00:00 -04:00
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
- - MIT-LICENSE
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
- - MIT-LICENSE
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/lib/bigrecord/book.rb
128
- - spec/lib/bigrecord/animal.rb
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/connection.rb
139
- - spec/connections/activerecord/connection.rb
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
@@ -1,3 +0,0 @@
1
- namespace :bigrecord do
2
-
3
- end