cellect-client 0.0.6 → 0.0.7

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: 8d448a374ace74bd7bd7d19df1af369446ccc13e
4
- data.tar.gz: 2abee2c7e1334107a6fe00fa2c24bc684db5eed4
3
+ metadata.gz: aa613e71bf121890b018f0a6d738b4a4882d5548
4
+ data.tar.gz: e9d91db66e59cf82c2d17aff465493933c772838
5
5
  SHA512:
6
- metadata.gz: b39539587809b17605c5eb3f24961473d1411985a65d46c903cd936ef80d2b7e0a38d8f7a57cecd593442f1a88a1e2ee7a2ea3df5768b3b190778b63a80bd0b9
7
- data.tar.gz: f18e1d343e353733fe18ffd30c0995c8fc1166e8b9b87e5e45696512a1a88aa2f81733631134a1ac55db935927598c628f6f98d5a32aca7990f571fcee258356
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(id, host: host, workflow_id: workflow_id)
26
- send_http host, :post, "/workflows/#{ workflow_id }/users/#{ id }/load"
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(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: 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)
@@ -1,3 +1,3 @@
1
1
  module Cellect
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
@@ -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.6
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-02 00:00:00.000000000 Z
11
+ date: 2014-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler