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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b8cd8b7b95cfe121c07afc7f56dc1d6fdee85e1
4
- data.tar.gz: c1404cb0ae5ddd0b5f9036db969916b83395daf5
3
+ metadata.gz: c15ba40cca20c5d3626eb17a6d7c1a0c4be92cd8
4
+ data.tar.gz: 3d28777651a138f7f37ecc1f666fff29b4727bf6
5
5
  SHA512:
6
- metadata.gz: 73c6e675408d43b505f18c92210b40d297e196ad03bf10eb4d820e28b3e85497f67afd643f872940702b0ee2f997eaa68705bb767e76bb1eac62aa9f1fdc412a
7
- data.tar.gz: df0043e1e737c124a4a0f79c60e9bc8c256b01ab4e7a1fe1a3485de0b042e5485451c57bb35a740967a2e883d94fb45daf3c1b373ca9d6419ef169bfaf523d4a
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.patch("/api/v1/applications/#{application_id}.json", query: params)
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(applictation_id, task_id, params = {})
18
- self.class.patch("/api/v1/applications/#{application_id}/tasks/#{task_id}.json", query: params)
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(applictation_id, task_id, params = {})
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
 
@@ -0,0 +1,3 @@
1
+ module PsengEkg
2
+ class Engine < Rails::Engine; end
3
+ end
@@ -1,3 +1,3 @@
1
1
  module PsengEkg
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
@@ -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 'httparty'
5
+ require "pseng_ekg/client/errors"
6
+ require 'httmultiparty'
5
7
 
6
8
  module PsengEkg
7
9
  class Client
8
- include HTTParty
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
@@ -25,4 +25,5 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency "rake", "~> 10.0"
26
26
  spec.add_development_dependency "rspec", '~> 3.0'
27
27
  spec.add_dependency 'httparty', '0.13.1'
28
+ spec.add_dependency 'httmultiparty', '0.3.10'
28
29
  end
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.10
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-22 00:00:00.000000000 Z
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.2.3
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