panoptes-client 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/panoptes/client/subjects.rb +4 -2
- data/lib/panoptes/client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 06b43114723894cc1ec09a791758625db2e642a9
|
|
4
|
+
data.tar.gz: e166ca0779531c6bbb1935cea63c2231259c331a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 196a96b8cf3bb082aaf1f3b6caba894a4438061d1c9d7159a75f72757ceb47bf6164fa79e3d6ad6db597aaabca2eed740e2a430681ba5b985f3f92a0e722656d
|
|
7
|
+
data.tar.gz: 193a6c461059bf56473ec15d6b276c39d63e9992c7c31f4a5503394da387e0db21b33c34413191828c0f06b4d290023551c491a5838adaf2cfef200edb2ef8fb
|
data/CHANGELOG.md
CHANGED
|
@@ -7,11 +7,13 @@ module Panoptes
|
|
|
7
7
|
# @param workflow_id [Integer] the ID of a workflow
|
|
8
8
|
# @param subject_id [Integer] the ID of a subject associated with that workflow (through one of the assigned subject_sets)
|
|
9
9
|
# @return nothing
|
|
10
|
-
def retire_subject(workflow_id, subject_id)
|
|
10
|
+
def retire_subject(workflow_id, subject_id, reason: nil)
|
|
11
11
|
post("/workflows/#{workflow_id}/retired_subjects", {
|
|
12
12
|
admin: true,
|
|
13
|
-
subject_id: subject_id
|
|
13
|
+
subject_id: subject_id,
|
|
14
|
+
retirement_reason: reason
|
|
14
15
|
})
|
|
16
|
+
true
|
|
15
17
|
end
|
|
16
18
|
end
|
|
17
19
|
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.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marten Veldthuis
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-05-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|