panoptes-client 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6223043ae6d605ad20d4a9c7580d9eadf7039bd2
4
- data.tar.gz: 5a59a8f96eebeaadf037d901edd1932eed263b72
3
+ metadata.gz: 06b43114723894cc1ec09a791758625db2e642a9
4
+ data.tar.gz: e166ca0779531c6bbb1935cea63c2231259c331a
5
5
  SHA512:
6
- metadata.gz: 9bdbb9f52758526d90125265e9b71dc344c56c85eacd2441a22838564221a1d991266ece4ef77df0d48da7f9e3ddf2d760d4aef4f4c1c063603590cad8d5da68
7
- data.tar.gz: eee4e0eec28cffc2937c392b71f7f4ab07e8df858396169491cf934b9a82e7e7cb9fdd4e3eb66416784cb99838fba4fd96fc82d62189dc8ae67d746e3cc7e79d
6
+ metadata.gz: 196a96b8cf3bb082aaf1f3b6caba894a4438061d1c9d7159a75f72757ceb47bf6164fa79e3d6ad6db597aaabca2eed740e2a430681ba5b985f3f92a0e722656d
7
+ data.tar.gz: 193a6c461059bf56473ec15d6b276c39d63e9992c7c31f4a5503394da387e0db21b33c34413191828c0f06b4d290023551c491a5838adaf2cfef200edb2ef8fb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.2.4
2
+
3
+ * Add support for the new retirement reason field
4
+
1
5
  # 0.2.3
2
6
 
3
7
  * Add methods for creating project data exports
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Panoptes
2
2
  class Client
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  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.3
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-03-08 00:00:00.000000000 Z
11
+ date: 2016-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday