couchrest_model_search 0.0.3 → 0.0.4
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/.gitignore +1 -0
- data/.rvmrc +1 -0
- data/CHANGELOG +3 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +83 -0
- data/README.markdown +24 -0
- data/VERSION +1 -1
- data/couchrest_model_search.gemspec +13 -48
- data/lib/couchrest_model_search.rb +2 -2
- metadata +29 -46
- data/.document +0 -5
- data/README.rdoc +0 -26
- data/Rakefile +0 -59
- data/features/couchrest_model_search.feature +0 -9
- data/features/step_definitions/couchrest_model_search_steps.rb +0 -0
- data/features/support/env.rb +0 -4
    
        data/.gitignore
    CHANGED
    
    
    
        data/.rvmrc
    ADDED
    
    | @@ -0,0 +1 @@ | |
| 1 | 
            +
            rvm 1.8.7@couchrest_model_search --create
         | 
    
        data/CHANGELOG
    ADDED
    
    
    
        data/Gemfile
    ADDED
    
    
    
        data/Gemfile.lock
    ADDED
    
    | @@ -0,0 +1,83 @@ | |
| 1 | 
            +
            PATH
         | 
| 2 | 
            +
              remote: .
         | 
| 3 | 
            +
              specs:
         | 
| 4 | 
            +
                couchrest_model_search (0.0.3)
         | 
| 5 | 
            +
                  couchrest_model (~> 1.0.0)
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            GEM
         | 
| 8 | 
            +
              remote: http://rubygems.org/
         | 
| 9 | 
            +
              specs:
         | 
| 10 | 
            +
                abstract (1.0.0)
         | 
| 11 | 
            +
                actionpack (3.0.7)
         | 
| 12 | 
            +
                  activemodel (= 3.0.7)
         | 
| 13 | 
            +
                  activesupport (= 3.0.7)
         | 
| 14 | 
            +
                  builder (~> 2.1.2)
         | 
| 15 | 
            +
                  erubis (~> 2.6.6)
         | 
| 16 | 
            +
                  i18n (~> 0.5.0)
         | 
| 17 | 
            +
                  rack (~> 1.2.1)
         | 
| 18 | 
            +
                  rack-mount (~> 0.6.14)
         | 
| 19 | 
            +
                  rack-test (~> 0.5.7)
         | 
| 20 | 
            +
                  tzinfo (~> 0.3.23)
         | 
| 21 | 
            +
                activemodel (3.0.7)
         | 
| 22 | 
            +
                  activesupport (= 3.0.7)
         | 
| 23 | 
            +
                  builder (~> 2.1.2)
         | 
| 24 | 
            +
                  i18n (~> 0.5.0)
         | 
| 25 | 
            +
                activesupport (3.0.7)
         | 
| 26 | 
            +
                builder (2.1.2)
         | 
| 27 | 
            +
                couchrest (1.0.2)
         | 
| 28 | 
            +
                  json (~> 1.5.1)
         | 
| 29 | 
            +
                  mime-types (~> 1.15)
         | 
| 30 | 
            +
                  rest-client (~> 1.6.1)
         | 
| 31 | 
            +
                couchrest_model (1.0.0)
         | 
| 32 | 
            +
                  activemodel (~> 3.0.0)
         | 
| 33 | 
            +
                  couchrest (~> 1.0.1)
         | 
| 34 | 
            +
                  mime-types (~> 1.15)
         | 
| 35 | 
            +
                  railties (~> 3.0.0)
         | 
| 36 | 
            +
                  rspec (>= 2.0.0)
         | 
| 37 | 
            +
                  tzinfo (~> 0.3.22)
         | 
| 38 | 
            +
                cucumber (0.10.5)
         | 
| 39 | 
            +
                  builder (>= 2.1.2)
         | 
| 40 | 
            +
                  diff-lcs (>= 1.1.2)
         | 
| 41 | 
            +
                  gherkin (~> 2.4.0)
         | 
| 42 | 
            +
                  json (>= 1.4.6)
         | 
| 43 | 
            +
                  term-ansicolor (>= 1.0.5)
         | 
| 44 | 
            +
                diff-lcs (1.1.2)
         | 
| 45 | 
            +
                erubis (2.6.6)
         | 
| 46 | 
            +
                  abstract (>= 1.0.0)
         | 
| 47 | 
            +
                gherkin (2.4.0)
         | 
| 48 | 
            +
                  json (>= 1.4.6)
         | 
| 49 | 
            +
                i18n (0.5.0)
         | 
| 50 | 
            +
                json (1.5.1)
         | 
| 51 | 
            +
                mime-types (1.16)
         | 
| 52 | 
            +
                rack (1.2.3)
         | 
| 53 | 
            +
                rack-mount (0.6.14)
         | 
| 54 | 
            +
                  rack (>= 1.0.0)
         | 
| 55 | 
            +
                rack-test (0.5.7)
         | 
| 56 | 
            +
                  rack (>= 1.0)
         | 
| 57 | 
            +
                railties (3.0.7)
         | 
| 58 | 
            +
                  actionpack (= 3.0.7)
         | 
| 59 | 
            +
                  activesupport (= 3.0.7)
         | 
| 60 | 
            +
                  rake (>= 0.8.7)
         | 
| 61 | 
            +
                  thor (~> 0.14.4)
         | 
| 62 | 
            +
                rake (0.9.2)
         | 
| 63 | 
            +
                rest-client (1.6.3)
         | 
| 64 | 
            +
                  mime-types (>= 1.16)
         | 
| 65 | 
            +
                rspec (2.6.0)
         | 
| 66 | 
            +
                  rspec-core (~> 2.6.0)
         | 
| 67 | 
            +
                  rspec-expectations (~> 2.6.0)
         | 
| 68 | 
            +
                  rspec-mocks (~> 2.6.0)
         | 
| 69 | 
            +
                rspec-core (2.6.4)
         | 
| 70 | 
            +
                rspec-expectations (2.6.0)
         | 
| 71 | 
            +
                  diff-lcs (~> 1.1.2)
         | 
| 72 | 
            +
                rspec-mocks (2.6.0)
         | 
| 73 | 
            +
                term-ansicolor (1.0.5)
         | 
| 74 | 
            +
                thor (0.14.6)
         | 
| 75 | 
            +
                tzinfo (0.3.27)
         | 
| 76 | 
            +
             | 
| 77 | 
            +
            PLATFORMS
         | 
| 78 | 
            +
              ruby
         | 
| 79 | 
            +
             | 
| 80 | 
            +
            DEPENDENCIES
         | 
| 81 | 
            +
              couchrest_model_search!
         | 
| 82 | 
            +
              cucumber (~> 0.0)
         | 
| 83 | 
            +
              rspec (~> 2.0)
         | 
    
        data/README.markdown
    ADDED
    
    | @@ -0,0 +1,24 @@ | |
| 1 | 
            +
            # couchrest_model_search
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            Search integration for `couchrest_model` users that are using couchdb-lucene. 
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            ## Install
         | 
| 6 | 
            +
             | 
| 7 | 
            +
                $ gem install couchrest_model_search
         | 
| 8 | 
            +
              
         | 
| 9 | 
            +
            ## Usage
         | 
| 10 | 
            +
             | 
| 11 | 
            +
                class Article < CouchRest::Model::Base
         | 
| 12 | 
            +
                end
         | 
| 13 | 
            +
             | 
| 14 | 
            +
                @articles = Article.search "apple"  # search by keyword apple
         | 
| 15 | 
            +
                
         | 
| 16 | 
            +
                # you can also customize the search function.
         | 
| 17 | 
            +
                class CustomArticle < CouchRest::Model::Base
         | 
| 18 | 
            +
                  search_by :fulltext,
         | 
| 19 | 
            +
                            :index => %(
         | 
| 20 | 
            +
                               function(doc) {
         | 
| 21 | 
            +
                                 // ....
         | 
| 22 | 
            +
                               }
         | 
| 23 | 
            +
                            )
         | 
| 24 | 
            +
                end
         | 
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            0.0. | 
| 1 | 
            +
            0.0.4
         | 
| @@ -5,63 +5,28 @@ | |
| 5 5 |  | 
| 6 6 | 
             
            Gem::Specification.new do |s|
         | 
| 7 7 | 
             
              s.name = %q{couchrest_model_search}
         | 
| 8 | 
            -
              s.version =  | 
| 8 | 
            +
              s.version = File.read "VERSION"
         | 
| 9 9 |  | 
| 10 | 
            -
              s. | 
| 11 | 
            -
              s.authors = ["Dorren Chen"]
         | 
| 10 | 
            +
              s.authors = ["Dorren Chen", "Matt Parker"]
         | 
| 12 11 | 
             
              s.date = %q{2010-10-18}
         | 
| 13 | 
            -
              s.description = %q{Add search  | 
| 12 | 
            +
              s.description = %q{Add couchdb-lucene search support to CouchRest Model}
         | 
| 14 13 | 
             
              s.email = %q{dorrenchen@gmail.com}
         | 
| 15 14 | 
             
              s.extra_rdoc_files = [
         | 
| 16 15 | 
             
                "LICENSE",
         | 
| 17 | 
            -
                 "README. | 
| 18 | 
            -
              ]
         | 
| 19 | 
            -
              s.files = [
         | 
| 20 | 
            -
                ".document",
         | 
| 21 | 
            -
                 ".gitignore",
         | 
| 22 | 
            -
                 ".rspec",
         | 
| 23 | 
            -
                 "LICENSE",
         | 
| 24 | 
            -
                 "README.rdoc",
         | 
| 25 | 
            -
                 "Rakefile",
         | 
| 26 | 
            -
                 "VERSION",
         | 
| 27 | 
            -
                 "couchrest_model_search.gemspec",
         | 
| 28 | 
            -
                 "features/couchrest_model_search.feature",
         | 
| 29 | 
            -
                 "features/step_definitions/couchrest_model_search_steps.rb",
         | 
| 30 | 
            -
                 "features/support/env.rb",
         | 
| 31 | 
            -
                 "lib/couchrest_model_search.rb",
         | 
| 32 | 
            -
                 "spec/couchrest_model_search_spec.rb",
         | 
| 33 | 
            -
                 "spec/spec_helper.rb"
         | 
| 16 | 
            +
                 "README.markdown"
         | 
| 34 17 | 
             
              ]
         | 
| 18 | 
            +
              
         | 
| 19 | 
            +
              s.files         = `git ls-files`.split("\n")
         | 
| 20 | 
            +
              s.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")
         | 
| 21 | 
            +
              #s.executables   = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
         | 
| 22 | 
            +
              
         | 
| 35 23 | 
             
              s.homepage = %q{http://github.com/dorren/couchrest_model_search}
         | 
| 36 24 | 
             
              s.rdoc_options = ["--charset=UTF-8"]
         | 
| 37 25 | 
             
              s.require_paths = ["lib"]
         | 
| 38 | 
            -
              s. | 
| 39 | 
            -
              s.summary = %q{Add search function to CouchRest Model}
         | 
| 40 | 
            -
              s.test_files = [
         | 
| 41 | 
            -
                "spec/couchrest_model_search_spec.rb",
         | 
| 42 | 
            -
                 "spec/spec_helper.rb"
         | 
| 43 | 
            -
              ]
         | 
| 44 | 
            -
             | 
| 45 | 
            -
              if s.respond_to? :specification_version then
         | 
| 46 | 
            -
                current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
         | 
| 47 | 
            -
                s.specification_version = 3
         | 
| 26 | 
            +
              s.summary = %q{Add couchdb-lucene search support to CouchRest Model}
         | 
| 48 27 |  | 
| 49 | 
            -
             | 
| 50 | 
            -
             | 
| 51 | 
            -
             | 
| 52 | 
            -
                  s.add_development_dependency(%q<rspec>, [">= 2.0.0"])
         | 
| 53 | 
            -
                  s.add_development_dependency(%q<cucumber>, [">= 0"])
         | 
| 54 | 
            -
                else
         | 
| 55 | 
            -
                  s.add_dependency(%q<active_support>, [">= 3.0.0"])
         | 
| 56 | 
            -
                  s.add_dependency(%q<couchrest_model>, [">= 1.0.0.beta7"])
         | 
| 57 | 
            -
                  s.add_dependency(%q<rspec>, [">= 2.0.0"])
         | 
| 58 | 
            -
                  s.add_dependency(%q<cucumber>, [">= 0"])
         | 
| 59 | 
            -
                end
         | 
| 60 | 
            -
              else
         | 
| 61 | 
            -
                s.add_dependency(%q<active_support>, [">= 3.0.0"])
         | 
| 62 | 
            -
                s.add_dependency(%q<couchrest_model>, [">= 1.0.0.beta7"])
         | 
| 63 | 
            -
                s.add_dependency(%q<rspec>, [">= 2.0.0"])
         | 
| 64 | 
            -
                s.add_dependency(%q<cucumber>, [">= 0"])
         | 
| 65 | 
            -
              end
         | 
| 28 | 
            +
              s.add_dependency "couchrest_model", ["~> 1.0.0"]
         | 
| 29 | 
            +
              s.add_development_dependency "rspec", ["~> 2.0"]
         | 
| 30 | 
            +
              s.add_development_dependency "cucumber", ["~> 0.0"]
         | 
| 66 31 | 
             
            end
         | 
| 67 32 |  | 
| @@ -44,11 +44,11 @@ module CouchRest | |
| 44 44 |  | 
| 45 45 | 
             
                    def update_search_doc
         | 
| 46 46 | 
             
                      saved = stored_design_doc
         | 
| 47 | 
            -
                      if saved
         | 
| 47 | 
            +
                      if saved && saved["fulltext"] != design_doc["fulltext"]
         | 
| 48 48 | 
             
                        saved["fulltext"] = design_doc["fulltext"]
         | 
| 49 49 | 
             
                        saved.save
         | 
| 50 50 | 
             
                        saved
         | 
| 51 | 
            -
                       | 
| 51 | 
            +
                      elsif !saved
         | 
| 52 52 | 
             
                        design_doc.delete("_rev")
         | 
| 53 53 | 
             
                        design_doc.database = database
         | 
| 54 54 | 
             
                        design_doc.save
         | 
    
        metadata
    CHANGED
    
    | @@ -1,16 +1,17 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification 
         | 
| 2 2 | 
             
            name: couchrest_model_search
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            -
              hash:  | 
| 5 | 
            -
              prerelease:  | 
| 4 | 
            +
              hash: 23
         | 
| 5 | 
            +
              prerelease: 
         | 
| 6 6 | 
             
              segments: 
         | 
| 7 7 | 
             
              - 0
         | 
| 8 8 | 
             
              - 0
         | 
| 9 | 
            -
              -  | 
| 10 | 
            -
              version: 0.0. | 
| 9 | 
            +
              - 4
         | 
| 10 | 
            +
              version: 0.0.4
         | 
| 11 11 | 
             
            platform: ruby
         | 
| 12 12 | 
             
            authors: 
         | 
| 13 13 | 
             
            - Dorren Chen
         | 
| 14 | 
            +
            - Matt Parker
         | 
| 14 15 | 
             
            autorequire: 
         | 
| 15 16 | 
             
            bindir: bin
         | 
| 16 17 | 
             
            cert_chain: []
         | 
| @@ -19,69 +20,52 @@ date: 2010-10-18 00:00:00 -04:00 | |
| 19 20 | 
             
            default_executable: 
         | 
| 20 21 | 
             
            dependencies: 
         | 
| 21 22 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| 22 | 
            -
              name:  | 
| 23 | 
            +
              name: couchrest_model
         | 
| 23 24 | 
             
              prerelease: false
         | 
| 24 25 | 
             
              requirement: &id001 !ruby/object:Gem::Requirement 
         | 
| 25 26 | 
             
                none: false
         | 
| 26 27 | 
             
                requirements: 
         | 
| 27 | 
            -
                - -  | 
| 28 | 
            +
                - - ~>
         | 
| 28 29 | 
             
                  - !ruby/object:Gem::Version 
         | 
| 29 | 
            -
                    hash:  | 
| 30 | 
            +
                    hash: 23
         | 
| 30 31 | 
             
                    segments: 
         | 
| 31 | 
            -
                    -  | 
| 32 | 
            +
                    - 1
         | 
| 32 33 | 
             
                    - 0
         | 
| 33 34 | 
             
                    - 0
         | 
| 34 | 
            -
                    version:  | 
| 35 | 
            -
              type: : | 
| 35 | 
            +
                    version: 1.0.0
         | 
| 36 | 
            +
              type: :runtime
         | 
| 36 37 | 
             
              version_requirements: *id001
         | 
| 37 38 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| 38 | 
            -
              name:  | 
| 39 | 
            +
              name: rspec
         | 
| 39 40 | 
             
              prerelease: false
         | 
| 40 41 | 
             
              requirement: &id002 !ruby/object:Gem::Requirement 
         | 
| 41 42 | 
             
                none: false
         | 
| 42 43 | 
             
                requirements: 
         | 
| 43 | 
            -
                - -  | 
| 44 | 
            +
                - - ~>
         | 
| 44 45 | 
             
                  - !ruby/object:Gem::Version 
         | 
| 45 | 
            -
                    hash:  | 
| 46 | 
            +
                    hash: 3
         | 
| 46 47 | 
             
                    segments: 
         | 
| 47 | 
            -
                    -  | 
| 48 | 
            -
                    - 0
         | 
| 48 | 
            +
                    - 2
         | 
| 49 49 | 
             
                    - 0
         | 
| 50 | 
            -
                     | 
| 51 | 
            -
                    version: 1.0.0.beta7
         | 
| 50 | 
            +
                    version: "2.0"
         | 
| 52 51 | 
             
              type: :development
         | 
| 53 52 | 
             
              version_requirements: *id002
         | 
| 54 53 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| 55 | 
            -
              name:  | 
| 54 | 
            +
              name: cucumber
         | 
| 56 55 | 
             
              prerelease: false
         | 
| 57 56 | 
             
              requirement: &id003 !ruby/object:Gem::Requirement 
         | 
| 58 57 | 
             
                none: false
         | 
| 59 58 | 
             
                requirements: 
         | 
| 60 | 
            -
                - -  | 
| 59 | 
            +
                - - ~>
         | 
| 61 60 | 
             
                  - !ruby/object:Gem::Version 
         | 
| 62 | 
            -
                    hash:  | 
| 61 | 
            +
                    hash: 11
         | 
| 63 62 | 
             
                    segments: 
         | 
| 64 | 
            -
                    - 2
         | 
| 65 63 | 
             
                    - 0
         | 
| 66 64 | 
             
                    - 0
         | 
| 67 | 
            -
                    version:  | 
| 65 | 
            +
                    version: "0.0"
         | 
| 68 66 | 
             
              type: :development
         | 
| 69 67 | 
             
              version_requirements: *id003
         | 
| 70 | 
            -
            -  | 
| 71 | 
            -
              name: cucumber
         | 
| 72 | 
            -
              prerelease: false
         | 
| 73 | 
            -
              requirement: &id004 !ruby/object:Gem::Requirement 
         | 
| 74 | 
            -
                none: false
         | 
| 75 | 
            -
                requirements: 
         | 
| 76 | 
            -
                - - ">="
         | 
| 77 | 
            -
                  - !ruby/object:Gem::Version 
         | 
| 78 | 
            -
                    hash: 3
         | 
| 79 | 
            -
                    segments: 
         | 
| 80 | 
            -
                    - 0
         | 
| 81 | 
            -
                    version: "0"
         | 
| 82 | 
            -
              type: :development
         | 
| 83 | 
            -
              version_requirements: *id004
         | 
| 84 | 
            -
            description: Add search function to CouchRest Model, assuming you're using couchdb-lucene
         | 
| 68 | 
            +
            description: Add couchdb-lucene search support to CouchRest Model
         | 
| 85 69 | 
             
            email: dorrenchen@gmail.com
         | 
| 86 70 | 
             
            executables: []
         | 
| 87 71 |  | 
| @@ -89,19 +73,18 @@ extensions: [] | |
| 89 73 |  | 
| 90 74 | 
             
            extra_rdoc_files: 
         | 
| 91 75 | 
             
            - LICENSE
         | 
| 92 | 
            -
            - README. | 
| 76 | 
            +
            - README.markdown
         | 
| 93 77 | 
             
            files: 
         | 
| 94 | 
            -
            - .document
         | 
| 95 78 | 
             
            - .gitignore
         | 
| 96 79 | 
             
            - .rspec
         | 
| 80 | 
            +
            - .rvmrc
         | 
| 81 | 
            +
            - CHANGELOG
         | 
| 82 | 
            +
            - Gemfile
         | 
| 83 | 
            +
            - Gemfile.lock
         | 
| 97 84 | 
             
            - LICENSE
         | 
| 98 | 
            -
            - README. | 
| 99 | 
            -
            - Rakefile
         | 
| 85 | 
            +
            - README.markdown
         | 
| 100 86 | 
             
            - VERSION
         | 
| 101 87 | 
             
            - couchrest_model_search.gemspec
         | 
| 102 | 
            -
            - features/couchrest_model_search.feature
         | 
| 103 | 
            -
            - features/step_definitions/couchrest_model_search_steps.rb
         | 
| 104 | 
            -
            - features/support/env.rb
         | 
| 105 88 | 
             
            - lib/couchrest_model_search.rb
         | 
| 106 89 | 
             
            - spec/couchrest_model_search_spec.rb
         | 
| 107 90 | 
             
            - spec/spec_helper.rb
         | 
| @@ -135,10 +118,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 135 118 | 
             
            requirements: []
         | 
| 136 119 |  | 
| 137 120 | 
             
            rubyforge_project: 
         | 
| 138 | 
            -
            rubygems_version: 1. | 
| 121 | 
            +
            rubygems_version: 1.5.2
         | 
| 139 122 | 
             
            signing_key: 
         | 
| 140 123 | 
             
            specification_version: 3
         | 
| 141 | 
            -
            summary: Add search  | 
| 124 | 
            +
            summary: Add couchdb-lucene search support to CouchRest Model
         | 
| 142 125 | 
             
            test_files: 
         | 
| 143 126 | 
             
            - spec/couchrest_model_search_spec.rb
         | 
| 144 127 | 
             
            - spec/spec_helper.rb
         | 
    
        data/.document
    DELETED
    
    
    
        data/README.rdoc
    DELETED
    
    | @@ -1,26 +0,0 @@ | |
| 1 | 
            -
            = couchrest_model_search
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            This add search method calls to couchrest_model gem. Assuming you are using couchdb-lucene.
         | 
| 4 | 
            -
             | 
| 5 | 
            -
            == Install
         | 
| 6 | 
            -
              gem install couchrest_model_search
         | 
| 7 | 
            -
              
         | 
| 8 | 
            -
            == Usage
         | 
| 9 | 
            -
              class Article < CouchRest::Model::Base
         | 
| 10 | 
            -
              end
         | 
| 11 | 
            -
             | 
| 12 | 
            -
              # save design doc to couchdb if you have existing one.
         | 
| 13 | 
            -
              # by default, couchrest_model only update view_by functions.
         | 
| 14 | 
            -
              Article.update_search_doc    
         | 
| 15 | 
            -
             | 
| 16 | 
            -
              @articles = Article.search "apple"  # search by keyword apple
         | 
| 17 | 
            -
              
         | 
| 18 | 
            -
              # you can also customize the search function.
         | 
| 19 | 
            -
              class CustomArticle < CouchRest::Model::Base
         | 
| 20 | 
            -
                search_by :fulltext,
         | 
| 21 | 
            -
                          :index => %(
         | 
| 22 | 
            -
                             function(doc) {
         | 
| 23 | 
            -
                               // ....
         | 
| 24 | 
            -
                             }
         | 
| 25 | 
            -
                          )
         | 
| 26 | 
            -
              end
         | 
    
        data/Rakefile
    DELETED
    
    | @@ -1,59 +0,0 @@ | |
| 1 | 
            -
            require 'rubygems'
         | 
| 2 | 
            -
            require 'rake'
         | 
| 3 | 
            -
             | 
| 4 | 
            -
            begin
         | 
| 5 | 
            -
              require 'jeweler'
         | 
| 6 | 
            -
              Jeweler::Tasks.new do |gem|
         | 
| 7 | 
            -
                gem.name = "couchrest_model_search"
         | 
| 8 | 
            -
                gem.summary = %Q{Add search function to CouchRest Model}
         | 
| 9 | 
            -
                gem.description = %Q{Add search function to CouchRest Model, assuming you're using couchdb-lucene}
         | 
| 10 | 
            -
                gem.email = "dorrenchen@gmail.com"
         | 
| 11 | 
            -
                gem.homepage = "http://github.com/dorren/couchrest_model_search"
         | 
| 12 | 
            -
                gem.authors = ["Dorren Chen"]
         | 
| 13 | 
            -
                gem.add_development_dependency "active_support", ">=3.0.0"
         | 
| 14 | 
            -
                gem.add_development_dependency "couchrest_model", ">=1.0.0.beta7"
         | 
| 15 | 
            -
                gem.add_development_dependency "rspec", ">= 2.0.0"
         | 
| 16 | 
            -
                gem.add_development_dependency "cucumber", ">= 0"
         | 
| 17 | 
            -
                # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
         | 
| 18 | 
            -
              end
         | 
| 19 | 
            -
              Jeweler::GemcutterTasks.new
         | 
| 20 | 
            -
            rescue LoadError
         | 
| 21 | 
            -
              puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
         | 
| 22 | 
            -
            end
         | 
| 23 | 
            -
             | 
| 24 | 
            -
            # require 'spec/rake/rspectask'
         | 
| 25 | 
            -
            # Spec::Rake::SpecTask.new(:spec) do |spec|
         | 
| 26 | 
            -
            #   spec.libs << 'lib' << 'spec'
         | 
| 27 | 
            -
            #   spec.spec_files = FileList['spec/**/*_spec.rb']
         | 
| 28 | 
            -
            # end
         | 
| 29 | 
            -
            # 
         | 
| 30 | 
            -
            # Spec::Rake::SpecTask.new(:rcov) do |spec|
         | 
| 31 | 
            -
            #   spec.libs << 'lib' << 'spec'
         | 
| 32 | 
            -
            #   spec.pattern = 'spec/**/*_spec.rb'
         | 
| 33 | 
            -
            #   spec.rcov = true
         | 
| 34 | 
            -
            # end
         | 
| 35 | 
            -
            # 
         | 
| 36 | 
            -
            # task :spec => :check_dependencies
         | 
| 37 | 
            -
             | 
| 38 | 
            -
            begin
         | 
| 39 | 
            -
              require 'cucumber/rake/task'
         | 
| 40 | 
            -
              Cucumber::Rake::Task.new(:features)
         | 
| 41 | 
            -
             | 
| 42 | 
            -
              task :features => :check_dependencies
         | 
| 43 | 
            -
            rescue LoadError
         | 
| 44 | 
            -
              task :features do
         | 
| 45 | 
            -
                abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
         | 
| 46 | 
            -
              end
         | 
| 47 | 
            -
            end
         | 
| 48 | 
            -
             | 
| 49 | 
            -
            task :default => :spec
         | 
| 50 | 
            -
             | 
| 51 | 
            -
            require 'rake/rdoctask'
         | 
| 52 | 
            -
            Rake::RDocTask.new do |rdoc|
         | 
| 53 | 
            -
              version = File.exist?('VERSION') ? File.read('VERSION') : ""
         | 
| 54 | 
            -
             | 
| 55 | 
            -
              rdoc.rdoc_dir = 'rdoc'
         | 
| 56 | 
            -
              rdoc.title = "couchrest_model_search #{version}"
         | 
| 57 | 
            -
              rdoc.rdoc_files.include('README*')
         | 
| 58 | 
            -
              rdoc.rdoc_files.include('lib/**/*.rb')
         | 
| 59 | 
            -
            end
         | 
| 
            File without changes
         | 
    
        data/features/support/env.rb
    DELETED