pagerduty 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +13 -2
- data/.travis.yml +5 -5
- data/Rakefile +1 -1
- data/lib/pagerduty.rb +2 -2
- data/lib/pagerduty/http_transport.rb +3 -3
- data/lib/pagerduty/version.rb +1 -1
- data/pagerduty.gemspec +5 -5
- data/spec/pagerduty/http_transport_spec.rb +1 -1
- data/spec/pagerduty_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- data/spec/support/warnings.rb +2 -1
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8dbc9c23955ddbec1d3d5d97d54bbbae4a7ebb95daecbb0ef0a0f579249303b9
|
4
|
+
data.tar.gz: 7c9a40200d5f494945ea09ca0d1915e4fd31e2c890f3145155d4b9355f195f21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34b67d774b87ed6d165239c3617cd2e99ac3bcefacbefb369bca243758ecab129cd1fe2c50533b28a96b196aa0308b817a80dab88915e7cd0ac56f00ccd66172
|
7
|
+
data.tar.gz: d6a312ee4ba7a98085cf6a352d5781ffe78224e2f1c1ab413b199bfbea618ea753e69bd4be418339c3c40f72afe1efe08649b5f8b47c81b48fbbd7f823919e9b
|
data/.rubocop.yml
CHANGED
@@ -4,9 +4,14 @@ AllCops:
|
|
4
4
|
- bin/**/*
|
5
5
|
- vendor/**/*
|
6
6
|
|
7
|
-
|
7
|
+
Layout/AccessModifierIndentation:
|
8
8
|
EnforcedStyle: outdent
|
9
9
|
|
10
|
+
Metrics/BlockLength:
|
11
|
+
Enabled: true
|
12
|
+
Exclude:
|
13
|
+
- spec/**/*
|
14
|
+
|
10
15
|
Style/BlockDelimiters:
|
11
16
|
Exclude:
|
12
17
|
- spec/**/*
|
@@ -23,5 +28,11 @@ Style/SpecialGlobalVars:
|
|
23
28
|
Style/StringLiterals:
|
24
29
|
EnforcedStyle: double_quotes
|
25
30
|
|
26
|
-
Style/
|
31
|
+
Style/TrailingCommaInArguments:
|
32
|
+
EnforcedStyleForMultiline: comma
|
33
|
+
|
34
|
+
Style/TrailingCommaInArrayLiteral:
|
35
|
+
EnforcedStyleForMultiline: comma
|
36
|
+
|
37
|
+
Style/TrailingCommaInHashLiteral:
|
27
38
|
EnforcedStyleForMultiline: comma
|
data/.travis.yml
CHANGED
data/Rakefile
CHANGED
data/lib/pagerduty.rb
CHANGED
@@ -83,7 +83,7 @@ class Pagerduty
|
|
83
83
|
# @raise [ArgumentError] If incident_key is nil
|
84
84
|
#
|
85
85
|
def get_incident(incident_key)
|
86
|
-
|
86
|
+
raise ArgumentError, "incident_key is nil" if incident_key.nil?
|
87
87
|
PagerdutyIncident.new(
|
88
88
|
service_key,
|
89
89
|
incident_key,
|
@@ -103,7 +103,7 @@ protected
|
|
103
103
|
|
104
104
|
def ensure_success(response)
|
105
105
|
unless response["status"] == "success"
|
106
|
-
|
106
|
+
raise PagerdutyException.new(self, response, response["message"])
|
107
107
|
end
|
108
108
|
end
|
109
109
|
|
@@ -1,13 +1,13 @@
|
|
1
|
-
|
1
|
+
|
2
2
|
require "json"
|
3
3
|
require "net/https"
|
4
4
|
|
5
5
|
class Pagerduty
|
6
6
|
# @api private
|
7
7
|
class HttpTransport
|
8
|
-
HOST = "events.pagerduty.com"
|
8
|
+
HOST = "events.pagerduty.com".freeze
|
9
9
|
PORT = 443
|
10
|
-
PATH = "/generic/2010-04-15/create_event.json"
|
10
|
+
PATH = "/generic/2010-04-15/create_event.json".freeze
|
11
11
|
|
12
12
|
def initialize(options = {})
|
13
13
|
@options = options
|
data/lib/pagerduty/version.rb
CHANGED
data/pagerduty.gemspec
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
lib = File.expand_path("
|
1
|
+
|
2
|
+
lib = File.expand_path("lib", __dir__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
4
|
require "pagerduty/version"
|
5
5
|
|
@@ -14,10 +14,10 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.homepage = "http://github.com/envato/pagerduty"
|
15
15
|
gem.license = "MIT"
|
16
16
|
|
17
|
-
gem.post_install_message =
|
17
|
+
gem.post_install_message = %(
|
18
18
|
If upgrading to pagerduty 2.0.0 please note the API changes:
|
19
19
|
https://github.com/envato/pagerduty#upgrading-to-version-200
|
20
|
-
|
20
|
+
)
|
21
21
|
|
22
22
|
gem.files = `git ls-files`.split($/)
|
23
23
|
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|
@@ -28,5 +28,5 @@ https://github.com/envato/pagerduty#upgrading-to-version-200
|
|
28
28
|
gem.add_development_dependency "bundler"
|
29
29
|
gem.add_development_dependency "rake"
|
30
30
|
gem.add_development_dependency "rspec-given"
|
31
|
-
gem.add_development_dependency "rubocop"
|
31
|
+
gem.add_development_dependency "rubocop"
|
32
32
|
end
|
data/spec/pagerduty_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/spec/support/warnings.rb
CHANGED
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: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charlie Somerville
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-03-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -71,16 +71,16 @@ dependencies:
|
|
71
71
|
name: rubocop
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0
|
76
|
+
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 0
|
83
|
+
version: '0'
|
84
84
|
description: Provides a lightweight interface for calling the PagerDuty Integration
|
85
85
|
API
|
86
86
|
email:
|
@@ -110,9 +110,8 @@ homepage: http://github.com/envato/pagerduty
|
|
110
110
|
licenses:
|
111
111
|
- MIT
|
112
112
|
metadata: {}
|
113
|
-
post_install_message:
|
114
|
-
|
115
|
-
https://github.com/envato/pagerduty#upgrading-to-version-200
|
113
|
+
post_install_message: "\nIf upgrading to pagerduty 2.0.0 please note the API changes:\nhttps://github.com/envato/pagerduty#upgrading-to-version-200\n
|
114
|
+
\ "
|
116
115
|
rdoc_options: []
|
117
116
|
require_paths:
|
118
117
|
- lib
|
@@ -128,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
127
|
version: '0'
|
129
128
|
requirements: []
|
130
129
|
rubyforge_project:
|
131
|
-
rubygems_version: 2.
|
130
|
+
rubygems_version: 2.7.6
|
132
131
|
signing_key:
|
133
132
|
specification_version: 4
|
134
133
|
summary: Pagerduty Integration API client library
|