cellect-client 0.0.6 → 0.0.7
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/lib/cellect/client/connection.rb +4 -4
- data/lib/cellect/version.rb +1 -1
- data/spec/client/connection_spec.rb +2 -2
- 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: aa613e71bf121890b018f0a6d738b4a4882d5548
|
4
|
+
data.tar.gz: e9d91db66e59cf82c2d17aff465493933c772838
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9dea858e333ec11796df53a7521b269df50004a7fd2072cb33fcbdacf8bfb7967539b4b82b5201ad48863dbdcb78c835e819c83cb9b54273ca703e6d7febbd1
|
7
|
+
data.tar.gz: b8244dd21f8889e2f4d7ee443bb3b2c894af4fd6f8295d4ee2d30f94f6697f19c8e9acbae4847dcfa7d046b5b17f7da1b7a1d126a381222cf2110d357198c1a5
|
@@ -22,12 +22,12 @@ module Cellect
|
|
22
22
|
broadcast :put, "/workflows/#{ workflow_id }/remove", querystring(subject_id: id, group_id: group_id)
|
23
23
|
end
|
24
24
|
|
25
|
-
def load_user(
|
26
|
-
send_http host, :post, "/workflows/#{ workflow_id }/users/#{
|
25
|
+
def load_user(user_id: user_id, host: host, workflow_id: workflow_id)
|
26
|
+
send_http host, :post, "/workflows/#{ workflow_id }/users/#{ user_id }/load"
|
27
27
|
end
|
28
28
|
|
29
|
-
def add_seen(
|
30
|
-
send_http host, :put, "/workflows/#{ workflow_id }/users/#{ user_id }/add_seen", querystring(subject_id:
|
29
|
+
def add_seen(subject_id: subject_id, user_id: user_id, host: host, workflow_id: workflow_id)
|
30
|
+
send_http host, :put, "/workflows/#{ workflow_id }/users/#{ user_id }/add_seen", querystring(subject_id: subject_id)
|
31
31
|
end
|
32
32
|
|
33
33
|
def get_subjects(user_id: user_id, host: host, workflow_id: workflow_id, limit: limit, group_id: group_id)
|
data/lib/cellect/version.rb
CHANGED
@@ -53,12 +53,12 @@ module Cellect::Client
|
|
53
53
|
|
54
54
|
it 'should load users' do
|
55
55
|
should_send action: :post, url: 'workflows/random/users/123/load', to: 1
|
56
|
-
connection.load_user 123, host: '1', workflow_id: 'random'
|
56
|
+
connection.load_user user_id: 123, host: '1', workflow_id: 'random'
|
57
57
|
end
|
58
58
|
|
59
59
|
it 'should add seen subjects' do
|
60
60
|
should_send action: :put, url: 'workflows/random/users/123/add_seen?subject_id=456', to: 1
|
61
|
-
connection.add_seen 456, host: '1', user_id: 123, workflow_id: 'random'
|
61
|
+
connection.add_seen subject_id: 456, host: '1', user_id: 123, workflow_id: 'random'
|
62
62
|
end
|
63
63
|
|
64
64
|
it 'should get subjects' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cellect-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Parrish
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|