pseng_ekg_client 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pseng_ekg/client/logs.rb +27 -0
- data/lib/pseng_ekg/version.rb +1 -1
- data/lib/pseng_ekg_client.rb +2 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f41cf7a8f2a22ac3e4e002130b81e98077d583fd
|
4
|
+
data.tar.gz: c7dfe681956a7cec5a2686d839f2712b51bd9f00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ac0c69b47237d8df23974a99c122c5eef33f98196ff189811740659a195e16af6c75abc8fa7a210b6c3fbc829da572e6ca66faa2576d2747bd9a7ca3bd8ce5e
|
7
|
+
data.tar.gz: 382ae678e833e464edb6cf6ac82483d91f7ad1531c05f12474b3ddae981a038ed2609e35dfe543155c3436d1d215750f4bf4d23ab8be4adf5af8f3acf302a0ae
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module PsengEkg
|
2
|
+
class Client
|
3
|
+
module Logs
|
4
|
+
|
5
|
+
def log_index(task_id, params = {})
|
6
|
+
self.class.get("/api/v1/tasks/#{task_id}/logs.json", query: params)
|
7
|
+
end
|
8
|
+
|
9
|
+
def log_show(task_id, log_id, params = {})
|
10
|
+
self.class.get("/api/v1/tasks/#{task_id}/logs/#{log_id}.json", query: params)
|
11
|
+
end
|
12
|
+
|
13
|
+
def log_create(task_id, params = {})
|
14
|
+
self.class.post("/api/v1/tasks/#{task_id}/logs.json", query: params)
|
15
|
+
end
|
16
|
+
|
17
|
+
def log_update(task_id, log_id, params = {})
|
18
|
+
self.class.put("/api/v1/tasks/#{task_id}.json", query: params)
|
19
|
+
end
|
20
|
+
|
21
|
+
def log_destroy(task_id, params = {})
|
22
|
+
self.class.destroy("/api/v1/tasks/#{task_id}.json", query: params)
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/pseng_ekg/version.rb
CHANGED
data/lib/pseng_ekg_client.rb
CHANGED
@@ -3,6 +3,7 @@ require "pseng_ekg/version"
|
|
3
3
|
require "pseng_ekg/client/applications"
|
4
4
|
require "pseng_ekg/client/tasks"
|
5
5
|
require "pseng_ekg/client/errors"
|
6
|
+
require "pseng_ekg/client/logs"
|
6
7
|
require 'httmultiparty'
|
7
8
|
|
8
9
|
module PsengEkg
|
@@ -11,6 +12,7 @@ module PsengEkg
|
|
11
12
|
include Applications
|
12
13
|
include Tasks
|
13
14
|
include Errors
|
15
|
+
include Logs
|
14
16
|
|
15
17
|
attr_accessor :logger
|
16
18
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pseng_ekg_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Tanner
|
@@ -91,6 +91,7 @@ files:
|
|
91
91
|
- Rakefile
|
92
92
|
- lib/pseng_ekg/client/applications.rb
|
93
93
|
- lib/pseng_ekg/client/errors.rb
|
94
|
+
- lib/pseng_ekg/client/logs.rb
|
94
95
|
- lib/pseng_ekg/client/tasks.rb
|
95
96
|
- lib/pseng_ekg/engine.rb
|
96
97
|
- lib/pseng_ekg/version.rb
|