srchio 0.0.1 → 0.0.2

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
- NThhN2Y1YTU2ODUwODdlNGQ0YzY3ZDcyYzU2OWQzOGIzNjM4OTQxNw==
4
+ N2JmYTQwNDYyZDVkZGEwOTc1MmY1ZDFmZTI2MTNlOWY2NzAxODBjYg==
5
5
  data.tar.gz: !binary |-
6
- ZGY1N2M4NWI3MWZmMGFlNDk1ZGMxYzIxNTljNmUxMWRkYjg0OWRjNg==
6
+ OGMwZWZmMDY0YWJmMGJlYjcyMzk4ZDU1OWNlZTQ5MmQzNTQwNzJlMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- M2VkZDM5OWQ1NzRiYzMwN2RmM2FkMzhkYTU1NmY5Yzk1MjJkZjk3NmJlZWUy
10
- ZjY2NmY3ZGJmOTY3ZGU4ZTgzZGIxYTFkOTBkYWE4Njk2ZTIzZjg0NTkwMmJk
11
- NjRmYzdhNGVmNmQ1ODQ5ZjYwZDZlNGQ1ZGY4MTViZGIxMDA3YTg=
9
+ MGZiYmUzZjE5ZGRhY2EyMDAwY2RkNGQ5NzMzY2ZmNjNmZjJiMzc0NzY5YWQz
10
+ NDQ2MzUyYjBlMzdjM2M5ZTkxNjQzODQyMWVmNzA0ODU3ZmNjODgyNmY1Yjg1
11
+ MTk0N2IxYjg5MzRiMTA1M2VkN2Y0NWNhODMyZGY4NmEyM2U1MTg=
12
12
  data.tar.gz: !binary |-
13
- YmQ4Mjg3MWZmNzUyODM4Yzk5YWEyYTQxODhiZGE3NDg3NjQyZGQyYTJlODhj
14
- YWY4ODQ0MGE2YTcxYjVjNjNjNDc1Y2YzZGNkNWMxMWJmYjMxYjdmODU1NDZi
15
- ODFhMWZiMGUxMTMzZDZjMzIzYzQ3MGQ3YTdhOGJkZmIwZDllNWU=
13
+ ZGQ2YTg5OTM4MzBjNzQ2Zjk3ZWU2OTFlODQ3ZTFmZGZkNDdhYmJmZmViZTU5
14
+ MjU4NmU2MWExNzcwYzJkMGY3N2FhYjk0YzJjMThlNGQ3ZDE1ZmY0MjUwNDAz
15
+ Y2QwOWExNzJlMzdkYjViNWE0ZGRlNGU5NWE1ZmJiOTU0NzZlZjA=
data/lib/srchio/client.rb CHANGED
@@ -126,6 +126,10 @@ options:
126
126
  raise ArgumentError, "Opts must contain at least one of: :query, :body, :title, :tags, :remote_id, :id"
127
127
  end
128
128
 
129
+ if opts[:tags].is_a?(Array)
130
+ opts[:tags] = opts[:tags].join(",")
131
+ end
132
+
129
133
  Srchio::Response.new(self.class.get("/api/searchers/#{searcher_id}/search", :query => opts))
130
134
  end
131
135
  end
@@ -1,3 +1,3 @@
1
1
  module Srchio
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
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.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Lawver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-30 00:00:00.000000000 Z
11
+ date: 2014-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty