panoptes-client 0.2.11 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/panoptes/client.rb +2 -0
- data/lib/panoptes/client/classifications.rb +13 -0
- data/lib/panoptes/client/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e656704fd4bf65904864c26d3279f2f54ac6e804
|
4
|
+
data.tar.gz: f638ade168a1d478ee158ef9370550f20b382a97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4ac84c5a4d00cf1a53957c565926272f172e386646b014710aa8a65d74829130cc79b7c222b31e65e3231f418ccdde5b02b7aea84b66c19b8499c4a5d688c30
|
7
|
+
data.tar.gz: 406e7301bc183492bb84ded6de51efbc8fb915b61c09944e67037a48d368eeca3fc1c058e3f338ba399d5d3301cdc5ce5b93c20fcf00e88e26e6d53d0dec03f9
|
data/lib/panoptes/client.rb
CHANGED
@@ -2,6 +2,7 @@ require 'panoptes/endpoints/json_api_endpoint'
|
|
2
2
|
require 'panoptes/endpoints/json_endpoint'
|
3
3
|
|
4
4
|
require 'panoptes/client/cellect'
|
5
|
+
require 'panoptes/client/classifications'
|
5
6
|
require 'panoptes/client/collections'
|
6
7
|
require 'panoptes/client/comments'
|
7
8
|
require 'panoptes/client/discussions'
|
@@ -26,6 +27,7 @@ module Panoptes
|
|
26
27
|
include Panoptes::Client::Comments
|
27
28
|
|
28
29
|
include Panoptes::Client::Collections
|
30
|
+
include Panoptes::Client::Classifications
|
29
31
|
|
30
32
|
include Panoptes::Client::Cellect
|
31
33
|
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Panoptes
|
2
|
+
class Client
|
3
|
+
module Classifications
|
4
|
+
def get_subject_classifications(subject_id, workflow_id)
|
5
|
+
panoptes.get("/classifications/project", {
|
6
|
+
admin: true,
|
7
|
+
workflow_id: workflow_id,
|
8
|
+
subject_id: subject_id
|
9
|
+
})
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: panoptes-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marten Veldthuis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -147,6 +147,7 @@ files:
|
|
147
147
|
- lib/panoptes-client.rb
|
148
148
|
- lib/panoptes/client.rb
|
149
149
|
- lib/panoptes/client/cellect.rb
|
150
|
+
- lib/panoptes/client/classifications.rb
|
150
151
|
- lib/panoptes/client/collections.rb
|
151
152
|
- lib/panoptes/client/comments.rb
|
152
153
|
- lib/panoptes/client/discussions.rb
|