indextank 1.0.10 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ directory = File.expand_path(File.dirname(__FILE__))
5
5
  require File.join(directory, 'indextank', 'client')
6
6
 
7
7
  module IndexTank
8
- VERSION = "1.0.10"
8
+ VERSION = "1.0.11"
9
9
 
10
10
  def self.setup_connection(url)
11
11
  @conn = Faraday::Connection.new(:url => url) do |builder|
@@ -11,8 +11,13 @@ module IndexTank
11
11
  @metadata = metadata
12
12
  end
13
13
 
14
- def add
15
- response = @conn.put('')
14
+ def add( options = {} )
15
+ options = {:public_search => false}.merge(options)
16
+
17
+ response = @conn.put do |req|
18
+ req.url ""
19
+ req.body = options.to_json
20
+ end
16
21
  case response.status
17
22
  when 201
18
23
  true
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: indextank
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 10
10
- version: 1.0.10
9
+ - 11
10
+ version: 1.0.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Santiago Perez