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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2JmYTQwNDYyZDVkZGEwOTc1MmY1ZDFmZTI2MTNlOWY2NzAxODBjYg==
4
+ OTBkM2M3MzQyNjQ1MzM1YzM0MDQ2MDZlMzFmMTdkOGQyYTEyMmY1NQ==
5
5
  data.tar.gz: !binary |-
6
- OGMwZWZmMDY0YWJmMGJlYjcyMzk4ZDU1OWNlZTQ5MmQzNTQwNzJlMw==
6
+ YTJhNjJiN2UwMDJiOTllMzFhYzMyYzRkMjJiYTI0Y2E4ZTFjNWMyNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGZiYmUzZjE5ZGRhY2EyMDAwY2RkNGQ5NzMzY2ZmNjNmZjJiMzc0NzY5YWQz
10
- NDQ2MzUyYjBlMzdjM2M5ZTkxNjQzODQyMWVmNzA0ODU3ZmNjODgyNmY1Yjg1
11
- MTk0N2IxYjg5MzRiMTA1M2VkN2Y0NWNhODMyZGY4NmEyM2U1MTg=
9
+ MWY0OTk4YmJmYjY3MjkyZDdjMGI4NGFlY2RmMDQxOWJjY2I4YzViMmQ1ZWNi
10
+ MDJlYmQ4NTY2ODQ3YTBlYTYzNjQxNDE0YTA5ZTkxNmYyNDdhNjMwZDVjNWI2
11
+ MmU0ODJkYzUxMzAzNTI3OTFlOGU3MDFkMGFlZTA2YzJlOTQ5NjA=
12
12
  data.tar.gz: !binary |-
13
- ZGQ2YTg5OTM4MzBjNzQ2Zjk3ZWU2OTFlODQ3ZTFmZGZkNDdhYmJmZmViZTU5
14
- MjU4NmU2MWExNzcwYzJkMGY3N2FhYjk0YzJjMThlNGQ3ZDE1ZmY0MjUwNDAz
15
- Y2QwOWExNzJlMzdkYjViNWE0ZGRlNGU5NWE1ZmJiOTU0NzZlZjA=
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
@@ -1,3 +1,3 @@
1
1
  module Srchio
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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-02 00:00:00.000000000 Z
11
+ date: 2014-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty