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 +8 -8
- data/lib/srchio/client.rb +4 -0
- 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
|
+
N2JmYTQwNDYyZDVkZGEwOTc1MmY1ZDFmZTI2MTNlOWY2NzAxODBjYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGMwZWZmMDY0YWJmMGJlYjcyMzk4ZDU1OWNlZTQ5MmQzNTQwNzJlMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGZiYmUzZjE5ZGRhY2EyMDAwY2RkNGQ5NzMzY2ZmNjNmZjJiMzc0NzY5YWQz
|
10
|
+
NDQ2MzUyYjBlMzdjM2M5ZTkxNjQzODQyMWVmNzA0ODU3ZmNjODgyNmY1Yjg1
|
11
|
+
MTk0N2IxYjg5MzRiMTA1M2VkN2Y0NWNhODMyZGY4NmEyM2U1MTg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
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.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:
|
11
|
+
date: 2014-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|