pagerduty 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/pagerduty.rb CHANGED
@@ -21,7 +21,7 @@ class Pagerduty
21
21
  end
22
22
 
23
23
  def trigger(description, details = {})
24
- resp = api_call("trigger", description, details = {})
24
+ resp = api_call("trigger", description, details)
25
25
  throw PagerdutyException.new(self, resp) unless resp["status"] == "success"
26
26
 
27
27
  PagerdutyIncident.new @service_key, resp["incident_key"]
@@ -63,14 +63,14 @@ class PagerdutyIncident < Pagerduty
63
63
  end
64
64
 
65
65
  def acknowledge(description, details = {})
66
- resp = api_call("acknowledge", description, details = {})
66
+ resp = api_call("acknowledge", description, details)
67
67
  throw PagerdutyException.new(self, resp) unless resp["status"] == "success"
68
68
 
69
69
  self
70
70
  end
71
71
 
72
72
  def resolve(description, details = {})
73
- resp = api_call("resolve", description, details = {})
73
+ resp = api_call("resolve", description, details)
74
74
  throw PagerdutyException.new(self, resp) unless resp["status"] == "success"
75
75
 
76
76
  self
@@ -1,3 +1,3 @@
1
1
  class Pagerduty
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagerduty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-18 00:00:00.000000000 Z
12
+ date: 2012-10-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json