README.md in gitlab-elasticsearch-git-0.0.9 vs README.md in gitlab-elasticsearch-git-0.0.10
- old
+ new
@@ -13,40 +13,27 @@
## Installation
Add this line to your application's Gemfile:
``` ruby
-gem 'elasticsearch-git', '~> 0.0.5'
+gem 'gitlab-elasticsearch-git', require 'elasticsearch-git'
-# or
-
-gem 'elasticsearch-git', github: 'zzet/elasticsearch-git', ref: 'last_ref'
```
-And then execute:
-
-``` bash
-$ bundle
-```
-
-Or install it yourself as:
-
-``` bash
-$ gem install elasticsearch-git
-```
-
## Usage
``` ruby
class Repository
include Elasticsearch::Git::Repository
def repository_id
project.id
end
- repository_for_indexing '/path/to/your/repo'
+ def path_to_repo
+ '/path/to/your/repo'
+ end
end
Repository.__elasticsearch__.create_index! force: true
repo = Repository.new
@@ -329,13 +316,9 @@
{:name=>"Andrey Kumanyaev",
:email=>"me@zzet.org",
:time=>2014-02-15 14:28:43 +0400},
:message=>"first commit\n"}]}
```
-
-## TODO
-
- * Add Exceptions handlers for indexing (Error connections and timeouts)
## Contributing
1. Fork it ( http://github.com/zzet/elasticsearch-git/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)