panoptes-client 0.2.10 → 0.2.11

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: 8b42f62d37eb1a50015790632a89f95a5a9c8c77
4
- data.tar.gz: 8dc5e61b91806a4682245cbbdc34d31341af84c0
3
+ metadata.gz: 9622c3e163c36d3f9821e09785c928afce042c0b
4
+ data.tar.gz: 7cc2927055373703c9fa1256907ae8c38a458970
5
5
  SHA512:
6
- metadata.gz: 4fad2ac7cf6b18b902a25b0709f074098af409c8c847cd5ca982b2db6011c50480d60d50ce09de182432836cfe270f3ac57d1410deffe6d034e2264c2baeb96a
7
- data.tar.gz: 6f22b537da4417bf7eb7e6b70df39454f84e9a9a52bfa10fba36d8248714a7fd84399c45be722d1ace5d462b5ab7eb41688269705556471129736088d95f253f
6
+ metadata.gz: 868b77dca3a27b49036aebb65337d5d0ff3e4a6e5d8372360e40ffdf99dfad9a611aea664f9c73d1c54c7a4f5adb7bcc0a271dbb3420e5620723d343c17eff57
7
+ data.tar.gz: 4fc0c8955701d5fafd0c986146b83777ff05cfed4164d571ec32e8d5a75139bceeabb772a26f82b5e583f00476038c5a7373477850602b35dda65e413b25d1a2
@@ -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/collections'
5
6
  require 'panoptes/client/comments'
6
7
  require 'panoptes/client/discussions'
7
8
  require 'panoptes/client/me'
@@ -9,6 +10,7 @@ require 'panoptes/client/projects'
9
10
  require 'panoptes/client/subject_sets'
10
11
  require 'panoptes/client/subjects'
11
12
  require 'panoptes/client/user_groups'
13
+ require 'panoptes/client/version'
12
14
  require 'panoptes/client/workflows'
13
15
 
14
16
  module Panoptes
@@ -23,6 +25,8 @@ module Panoptes
23
25
  include Panoptes::Client::Discussions
24
26
  include Panoptes::Client::Comments
25
27
 
28
+ include Panoptes::Client::Collections
29
+
26
30
  include Panoptes::Client::Cellect
27
31
 
28
32
  class GenericError < StandardError; end
@@ -0,0 +1,9 @@
1
+ module Panoptes
2
+ class Client
3
+ module Collections
4
+ def add_subjects_to_collection(collection_id, subject_ids)
5
+ panoptes.post("/collections/#{collection_id}/links/subjects",subjects: subject_ids)
6
+ end
7
+ end
8
+ end
9
+ end
@@ -1,5 +1,5 @@
1
1
  module Panoptes
2
2
  class Client
3
- VERSION = "0.2.10".freeze
3
+ VERSION = "0.2.11".freeze
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.10
4
+ version: 0.2.11
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-10-12 00:00:00.000000000 Z
11
+ date: 2017-02-07 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/collections.rb
150
151
  - lib/panoptes/client/comments.rb
151
152
  - lib/panoptes/client/discussions.rb
152
153
  - lib/panoptes/client/me.rb