pseng_ekg_client 0.1.10 → 0.1.11
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/applications.rb +1 -1
- data/lib/pseng_ekg/client/errors.rb +27 -0
- data/lib/pseng_ekg/client/tasks.rb +3 -3
- data/lib/pseng_ekg/engine.rb +3 -0
- data/lib/pseng_ekg/version.rb +1 -1
- data/lib/pseng_ekg_client.rb +8 -2
- data/pseng_ekg_client.gemspec +1 -0
- metadata +19 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c15ba40cca20c5d3626eb17a6d7c1a0c4be92cd8
|
4
|
+
data.tar.gz: 3d28777651a138f7f37ecc1f666fff29b4727bf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 462376cf7cc256bb55c23ad243ddf37b2a59d76f2d324eae24c8eceff10d12d30ff2c761b400cc38a983ea15d939c9803276a7fcf255c47c0d937f04dacb6c7d
|
7
|
+
data.tar.gz: b948643bedf9f7590613ea1d7d062de9d5c5c00ce0ec4e5aae795d47faf6b5bdfa67280c356b10c7db6aca34817812acec525e4d5001460803ca12f5bff90bb0
|
@@ -15,7 +15,7 @@ module PsengEkg
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def application_update(applictation_id, params = {})
|
18
|
-
self.class.
|
18
|
+
self.class.put("/api/v1/applications/#{application_id}.json", query: params)
|
19
19
|
end
|
20
20
|
|
21
21
|
def application_destroy(applictation_id, params = {})
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module PsengEkg
|
2
|
+
class Client
|
3
|
+
module Errors
|
4
|
+
|
5
|
+
def error_index(task_id, params = {})
|
6
|
+
self.class.get("/api/v1/tasks/#{task_id}/errors.json", query: params)
|
7
|
+
end
|
8
|
+
|
9
|
+
def error_show(task_id, error_id, params = {})
|
10
|
+
self.class.get("/api/v1/tasks/#{task_id}/errors/#{error_id}.json", query: params)
|
11
|
+
end
|
12
|
+
|
13
|
+
def error_create(task_id, params = {})
|
14
|
+
self.class.post("/api/v1/tasks/#{task_id}/errors.json", query: params)
|
15
|
+
end
|
16
|
+
|
17
|
+
def error_update(task_id, error_id, params = {})
|
18
|
+
self.class.put("/api/v1/tasks/#{task_id}.json", query: params)
|
19
|
+
end
|
20
|
+
|
21
|
+
def error_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
|
@@ -14,11 +14,11 @@ module PsengEkg
|
|
14
14
|
self.class.post("/api/v1/applications/#{application_id}/tasks.json", query: params)
|
15
15
|
end
|
16
16
|
|
17
|
-
def task_update(
|
18
|
-
self.class.
|
17
|
+
def task_update(application_id, task_id, params = {})
|
18
|
+
self.class.put("/api/v1/applications/#{application_id}/tasks/#{task_id}.json", query: params)
|
19
19
|
end
|
20
20
|
|
21
|
-
def task_destroy(
|
21
|
+
def task_destroy(application_id, task_id, params = {})
|
22
22
|
self.class.destroy("/api/v1/applications/#{application_id}/tasks/#{task_id}.json", query: params)
|
23
23
|
end
|
24
24
|
|
data/lib/pseng_ekg/version.rb
CHANGED
data/lib/pseng_ekg_client.rb
CHANGED
@@ -1,16 +1,22 @@
|
|
1
|
+
require 'pseng_ekg/engine'
|
1
2
|
require "pseng_ekg/version"
|
2
3
|
require "pseng_ekg/client/applications"
|
3
4
|
require "pseng_ekg/client/tasks"
|
4
|
-
require
|
5
|
+
require "pseng_ekg/client/errors"
|
6
|
+
require 'httmultiparty'
|
5
7
|
|
6
8
|
module PsengEkg
|
7
9
|
class Client
|
8
|
-
include
|
10
|
+
include HTTMultiParty
|
9
11
|
include Applications
|
10
12
|
include Tasks
|
13
|
+
include Errors
|
14
|
+
|
15
|
+
attr_accessor :logger
|
11
16
|
|
12
17
|
def initialize(base_uri)
|
13
18
|
self.class.base_uri base_uri
|
19
|
+
@logger = ::Logger.new("#{Rails.root}/log/pseng_ekg.log")
|
14
20
|
end
|
15
21
|
end
|
16
22
|
end
|
data/pseng_ekg_client.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Tanner
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.13.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: httmultiparty
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.3.10
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.3.10
|
69
83
|
description: This gem is used to push status updates to long running processes for
|
70
84
|
Instructure Professional Services
|
71
85
|
email:
|
@@ -76,7 +90,9 @@ extra_rdoc_files: []
|
|
76
90
|
files:
|
77
91
|
- Rakefile
|
78
92
|
- lib/pseng_ekg/client/applications.rb
|
93
|
+
- lib/pseng_ekg/client/errors.rb
|
79
94
|
- lib/pseng_ekg/client/tasks.rb
|
95
|
+
- lib/pseng_ekg/engine.rb
|
80
96
|
- lib/pseng_ekg/version.rb
|
81
97
|
- lib/pseng_ekg_client.rb
|
82
98
|
- pseng_ekg_client.gemspec
|
@@ -101,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
117
|
version: '0'
|
102
118
|
requirements: []
|
103
119
|
rubyforge_project:
|
104
|
-
rubygems_version: 2.
|
120
|
+
rubygems_version: 2.4.5
|
105
121
|
signing_key:
|
106
122
|
specification_version: 4
|
107
123
|
summary: Post data to allow monitoring of processes
|