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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c15ba40cca20c5d3626eb17a6d7c1a0c4be92cd8
4
- data.tar.gz: 3d28777651a138f7f37ecc1f666fff29b4727bf6
3
+ metadata.gz: f41cf7a8f2a22ac3e4e002130b81e98077d583fd
4
+ data.tar.gz: c7dfe681956a7cec5a2686d839f2712b51bd9f00
5
5
  SHA512:
6
- metadata.gz: 462376cf7cc256bb55c23ad243ddf37b2a59d76f2d324eae24c8eceff10d12d30ff2c761b400cc38a983ea15d939c9803276a7fcf255c47c0d937f04dacb6c7d
7
- data.tar.gz: b948643bedf9f7590613ea1d7d062de9d5c5c00ce0ec4e5aae795d47faf6b5bdfa67280c356b10c7db6aca34817812acec525e4d5001460803ca12f5bff90bb0
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
@@ -1,3 +1,3 @@
1
1
  module PsengEkg
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
3
3
  end
@@ -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.11
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