quill-api-client 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,9 +4,9 @@ class Quill::ActivitySession < Quill::BaseModel
4
4
  def find
5
5
  if anonymous && id.blank?
6
6
  persist
7
- else
8
- api.activity_sessions.find(id)
9
7
  end
8
+
9
+ api.activity_sessions.find(id)
10
10
  end
11
11
 
12
12
  def activity
@@ -6,12 +6,16 @@ module Quill
6
6
  end
7
7
 
8
8
  def activity_sessions
9
- Client::Endpoint.new(self, "activity_sessions", {"attributes"=>{"percentage"=>nil, "time_spent"=>nil, "state"=>nil, "completed_at"=>nil, "data"=>{}, "temporary"=>nil, "activity_uid"=>nil}, "readonly_attributes"=>{"anonymous"=>nil}, "access"=>{"list"=>["all"], "read"=>["all"], "update"=>["owner", "admin"], "create"=>["all"], "destroy"=>["owner", "admin"]}})
9
+ Client::Endpoint.new(self, "activity_sessions", {"attributes"=>{"percentage"=>nil, "time_spent"=>nil, "state"=>nil, "completed_at"=>nil, "data"=>{}, "temporary"=>nil, "activity_uid"=>nil, "anonymous"=>nil}, "access"=>{"list"=>["all"], "read"=>["all"], "update"=>["owner", "admin"], "create"=>["all"], "destroy"=>["owner", "admin"]}})
10
10
  end
11
11
 
12
12
  def me
13
13
  Client::Endpoint.new(self, "me", {"attributes"=>{"role"=>nil}, "options"=>{"singular"=>true}, "access"=>nil})
14
14
  end
15
15
 
16
+ def ping
17
+ Client::Endpoint.new(self, "ping", {"attributes"=>{"session_id"=>nil, "status"=>nil}, "options"=>{"singular"=>true}, "access"=>{"read"=>["all"], "update"=>["owner", "admin"], "create"=>["user"], "destroy"=>["owner", "admin"]}})
18
+ end
19
+
16
20
  end
17
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quill-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-17 00:00:00.000000000 Z
12
+ date: 2014-02-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth2
16
- requirement: &70241324344980 !ruby/object:Gem::Requirement
16
+ requirement: &70201592454540 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70241324344980
24
+ version_requirements: *70201592454540
25
25
  description: Wrapper to Quill API
26
26
  email: quinn@tastehoneyco.com
27
27
  executables: []