srchio 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/srchio/client.rb +1 -0
- data/lib/srchio/result.rb +2 -1
- data/lib/srchio/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTBkM2M3MzQyNjQ1MzM1YzM0MDQ2MDZlMzFmMTdkOGQyYTEyMmY1NQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTJhNjJiN2UwMDJiOTllMzFhYzMyYzRkMjJiYTI0Y2E4ZTFjNWMyNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWY0OTk4YmJmYjY3MjkyZDdjMGI4NGFlY2RmMDQxOWJjY2I4YzViMmQ1ZWNi
|
10
|
+
MDJlYmQ4NTY2ODQ3YTBlYTYzNjQxNDE0YTA5ZTkxNmYyNDdhNjMwZDVjNWI2
|
11
|
+
MmU0ODJkYzUxMzAzNTI3OTFlOGU3MDFkMGFlZTA2YzJlOTQ5NjA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODZkYzZmMjU0YmYxOTVkMDM1ZjRjZTdiNTY0MDA5NmZlNDlmZDJlZDVjOWFj
|
14
|
+
MzQ3M2U0ZjBhZDJkODc4NjM0MzkxZDYzYTIwZmQxZjc0ZjdkNTc0ZWE4YjI0
|
15
|
+
NDM3Mjk1YmJmYzZjZThlMjM2YTg0ZTJhMTRjYmE0NTI1YjZkNTA=
|
data/lib/srchio/client.rb
CHANGED
@@ -84,6 +84,7 @@ options:
|
|
84
84
|
* :body: required, the body of the document
|
85
85
|
* :tags: optional, the list of tags for the document.
|
86
86
|
* :remote_id: optional, but recommended, the id of the document in your system.
|
87
|
+
* :created: optional - the timestamp for the record.
|
87
88
|
=end
|
88
89
|
def add_document(opts={})
|
89
90
|
raise ArgumentError, ":title is required" if opts[:title].nil?
|
data/lib/srchio/result.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Srchio
|
2
2
|
class Result
|
3
|
-
attr_accessor :title, :highlight, :url, :tags, :remote_id, :index_id
|
3
|
+
attr_accessor :title, :highlight, :url, :tags, :remote_id, :index_id, :created
|
4
4
|
|
5
5
|
def initialize(result={})
|
6
6
|
@title = result['title']
|
@@ -9,6 +9,7 @@ module Srchio
|
|
9
9
|
@tags = result['tags']
|
10
10
|
@remote_id = result['remote_id']
|
11
11
|
@index_id = result['index_id']
|
12
|
+
@created = result['created']
|
12
13
|
end
|
13
14
|
end
|
14
15
|
end
|
data/lib/srchio/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: srchio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Lawver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|