common_indexer 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -8
- data/lib/common_indexer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1a9fecdbf7f2fc69bc396780a18870cf644fbf57d3d2cc8a58d8ce288916660
|
4
|
+
data.tar.gz: a0308434a2594a856fd864dabfbd45f6c3dd193f3373e37bc415b505071694c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4ef48902ee9fcda97963a124914786ccc780a848cf875be093211418330a1e7227e9f1e978239c574bdedee69fbc550a5944a4369ed0313e0c64bf2adcc6bc1
|
7
|
+
data.tar.gz: 755eb2c497f8a52098635f22f8c5018bcf170a35940ccbb7e71a51c9bb3d0f5647eb5cb25fc6998f128dfa2638c421f81293f62b1864af9e0dc3c75653c52489
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Indexes metadata into a central AWS Elasticsearch instance. The gem indexes base
|
|
8
8
|
Add this line to your application's Gemfile:
|
9
9
|
|
10
10
|
```ruby
|
11
|
-
gem 'common_indexer'
|
11
|
+
gem 'common_indexer'
|
12
12
|
```
|
13
13
|
|
14
14
|
And then execute:
|
@@ -18,7 +18,7 @@ And then execute:
|
|
18
18
|
Or install it yourself as:
|
19
19
|
|
20
20
|
$ gem install common_indexer
|
21
|
-
|
21
|
+
|
22
22
|
## Configuration
|
23
23
|
|
24
24
|
Add `common_indexer` to the appropriate Rails config file (e.g. `config/settings.yml`, `config/settings/development.yml`):
|
@@ -51,13 +51,13 @@ Include the CommonIndexer into your model that you want to index with `include :
|
|
51
51
|
```ruby
|
52
52
|
class Example < ActiveFedora::Base
|
53
53
|
include ::CommonIndexer::Base
|
54
|
-
|
54
|
+
|
55
55
|
property :title, ::RDF::URI('http://example.org/ns#title')
|
56
56
|
property :creator, ::RDF::URI('http://example.org/ns#creator')
|
57
|
-
|
57
|
+
|
58
58
|
def to_common_index
|
59
|
-
{
|
60
|
-
title: title,
|
59
|
+
{
|
60
|
+
title: title,
|
61
61
|
creator: creator
|
62
62
|
}
|
63
63
|
end
|
@@ -72,8 +72,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
72
72
|
|
73
73
|
## Contributing
|
74
74
|
|
75
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
75
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/nulib/common_indexer.
|
76
76
|
|
77
77
|
## License
|
78
78
|
|
79
|
-
The gem is available as open source under the terms of the [
|
79
|
+
The gem is available as open source under the terms of the [Apache License, Version 2.0](https://opensource.org/licenses/Apache-2.0).
|