siilar 1.0.0.pre → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/siilar/client/search.rb +10 -0
- data/lib/siilar/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5dbbfc5c08063dc61515f786262fe8496a5a4eb
|
4
|
+
data.tar.gz: 41142d35c7c0aba195ef7f1d5b8650df24772ca4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fcda4f6aabbecd98c063feee28120537830147176678b18dc5f5f8ee66586bf611d3e53c92ec0e11f542a639fbc3e41438ddcf0551071966da1c17324357075
|
7
|
+
data.tar.gz: 5e27cb0e3c5c0b785564bbba90a4c515c978ec29afbe24190137fe8e55521b5ee4ed0073b60e97d9848d232dca195bf41264f23e534bb5bbf63d088bb1de9be9
|
data/lib/siilar/client/search.rb
CHANGED
@@ -11,6 +11,16 @@ module Siilar
|
|
11
11
|
|
12
12
|
response.map { |r| Struct::Track.new(r) }
|
13
13
|
end
|
14
|
+
|
15
|
+
# Search for a track from external ids
|
16
|
+
#
|
17
|
+
# @see http://api.siilar.com/1.0/doc/search-and-analyze#search-from-external
|
18
|
+
def similar_from_external(query = {})
|
19
|
+
options = { query: query }
|
20
|
+
response = client.get('1.0/search-from-external', options)
|
21
|
+
|
22
|
+
response.map { |r| Struct::Track.new(r) }
|
23
|
+
end
|
14
24
|
end
|
15
25
|
end
|
16
26
|
end
|
data/lib/siilar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: siilar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mehdi Lahmam
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -110,9 +110,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: '0'
|
111
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
|
-
- - "
|
113
|
+
- - ">="
|
114
114
|
- !ruby/object:Gem::Version
|
115
|
-
version:
|
115
|
+
version: '0'
|
116
116
|
requirements: []
|
117
117
|
rubyforge_project:
|
118
118
|
rubygems_version: 2.4.5
|