pagerduty 4.0.0 → 4.0.1

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
  SHA256:
3
- metadata.gz: 5a28c0400ef717442b4cb3acdab94f93ab4ebb3f84463379ed70677b681f384b
4
- data.tar.gz: b958f49fd7a23616456aa0b1a83938967dd4fcb03ca815aee206c02550eb414b
3
+ metadata.gz: a795d82c3660da5c30081c2e4753524edfad166388db9ec0c149604945ff2219
4
+ data.tar.gz: a50d6952570001c10ec07e2a262ad7b727a1539bc56d85675551ce7a281899f0
5
5
  SHA512:
6
- metadata.gz: 49fdf0151d0463187d060956fa47701ae5ef80a79bbda8b634e0996dc477927d5734c788ed4c533c0c7b94e24479733e9968aa75258506a1f9efd18f4c251065
7
- data.tar.gz: 8673300cb3b8b1d1e1476df52dc7fa1493c480a3197e941b55a93fd4f81d72a316861f34e97c00f08eb21a4878185fe486e02e6805c01f3e6b5083797783f410
6
+ metadata.gz: f24dede2659fa0c7dda59193e384c96d1045ed827de7b65944cfdeb851a8880797f8f7909b8a06fafbc05fa615ec7d03a573026d3d394c2bf5edf7417108ce86
7
+ data.tar.gz: b26a1dd98ddaff9efc3f84226e6da693ffd10bc8593044a05f2a42fc6c650bdb18ae95d1bc78bcd204aa763b80496d8e7051b75a6564462a52585a7ac45451e3
data/CHANGELOG.md CHANGED
@@ -10,7 +10,24 @@ The format is based on [Keep a Changelog], and this project adheres to
10
10
 
11
11
  ## [Unreleased]
12
12
 
13
- [Unreleased]: https://github.com/envato/pagerduty/compare/v4.0.0...HEAD
13
+ [Unreleased]: https://github.com/envato/pagerduty/compare/v4.0.1...HEAD
14
+
15
+ ## [4.0.1] - 2024-02-17
16
+
17
+ ### Added
18
+
19
+ - Test on Ruby 3.2, and 3.3 in the CI build ([#84], [#85]).
20
+
21
+ ### Changed
22
+
23
+ - Updated authorship details ([#82]).
24
+ - Bump the Rubocop development dependency to version 1 ([#86]).
25
+
26
+ [4.0.1]: https://github.com/envato/pagerduty/compare/v4.0.0...v4.0.1
27
+ [#82]: https://github.com/envato/pagerduty/pull/82
28
+ [#84]: https://github.com/envato/pagerduty/pull/84
29
+ [#85]: https://github.com/envato/pagerduty/pull/85
30
+ [#86]: https://github.com/envato/pagerduty/pull/86
14
31
 
15
32
  ## [4.0.0] - 2022-02-14
16
33
 
@@ -62,7 +79,7 @@ The format is based on [Keep a Changelog], and this project adheres to
62
79
  [#73]: https://github.com/envato/pagerduty/pull/73
63
80
  [#74]: https://github.com/envato/pagerduty/pull/74
64
81
  [#75]: https://github.com/envato/pagerduty/pull/75
65
- [#78]: https://github.com/envato/pagerduty/pull/77
82
+ [#77]: https://github.com/envato/pagerduty/pull/77
66
83
  [#78]: https://github.com/envato/pagerduty/pull/78
67
84
  [#79]: https://github.com/envato/pagerduty/pull/79
68
85
  [#80]: https://github.com/envato/pagerduty/pull/80
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010 Envato, Charlie Somerville & Orien Madgwick
1
+ Copyright (c) 2010 Envato, Hailey Somerville & Orien Madgwick
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -176,9 +176,7 @@ module Pagerduty
176
176
  # @param (see Pagerduty::EventsApiV1#trigger)
177
177
  # @option (see Pagerduty::EventsApiV1#trigger)
178
178
  def trigger(description, options = {})
179
- if options.key?(:incident_key)
180
- raise ArgumentError, "incident_key provided"
181
- end
179
+ raise ArgumentError, "incident_key provided" if options.key?(:incident_key)
182
180
 
183
181
  options = options.merge(description: description)
184
182
  options[:incident_key] = @incident_key unless @incident_key.nil?
@@ -268,9 +266,7 @@ module Pagerduty
268
266
  event_type: event_type,
269
267
  )
270
268
  response = @transport.send_payload(args)
271
- unless response["status"] == "success"
272
- raise PagerdutyException.new(self, response, response["message"])
273
- end
269
+ raise PagerdutyException.new(self, response, response["message"]) unless response["status"] == "success"
274
270
 
275
271
  response
276
272
  end
@@ -269,9 +269,7 @@ module Pagerduty
269
269
  event_action: event_action,
270
270
  )
271
271
  response = @transport.send_payload(payload)
272
- unless response["status"] == "success"
273
- raise PagerdutyException.new(self, response, response["message"])
274
- end
272
+ raise PagerdutyException.new(self, response, response["message"]) unless response["status"] == "success"
275
273
 
276
274
  response
277
275
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pagerduty
4
- VERSION = "4.0.0"
4
+ VERSION = "4.0.1"
5
5
  end
data/lib/pagerduty.rb CHANGED
@@ -64,9 +64,7 @@ module Pagerduty
64
64
  # provided. Or if the provided api_version is unsupported.
65
65
  #
66
66
  def self.build(config)
67
- unless config.key?(:integration_key)
68
- raise ArgumentError, "integration_key not provided"
69
- end
67
+ raise ArgumentError, "integration_key not provided" unless config.key?(:integration_key)
70
68
  raise ArgumentError, "incident_key provided" if config.key?(:incident_key)
71
69
 
72
70
  version = config.fetch(:api_version) do
metadata CHANGED
@@ -1,75 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagerduty
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
- - Charlie Somerville
7
+ - Hailey Somerville
8
8
  - Orien Madgwick
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-02-14 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: bundler
16
- requirement: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - ">="
19
- - !ruby/object:Gem::Version
20
- version: '0'
21
- type: :development
22
- prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- version: '0'
28
- - !ruby/object:Gem::Dependency
29
- name: rake
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: '0'
35
- type: :development
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- version: '0'
42
- - !ruby/object:Gem::Dependency
43
- name: rspec-given
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - ">="
47
- - !ruby/object:Gem::Version
48
- version: '0'
49
- type: :development
50
- prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- version: '0'
56
- - !ruby/object:Gem::Dependency
57
- name: rubocop
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - "<"
61
- - !ruby/object:Gem::Version
62
- version: '0.77'
63
- type: :development
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - "<"
68
- - !ruby/object:Gem::Version
69
- version: '0.77'
12
+ date: 2024-02-17 00:00:00.000000000 Z
13
+ dependencies: []
70
14
  description: Provides a lightweight interface for calling the PagerDuty Events API
71
15
  email:
72
- - charlie@charliesomerville.com
16
+ - hailey@hailey.lol
73
17
  - _@orien.io
74
18
  executables: []
75
19
  extensions: []
@@ -88,10 +32,10 @@ licenses:
88
32
  - MIT
89
33
  metadata:
90
34
  bug_tracker_uri: https://github.com/envato/pagerduty/issues
91
- changelog_uri: https://github.com/envato/pagerduty/blob/v4.0.0/CHANGELOG.md
92
- documentation_uri: https://www.rubydoc.info/gems/pagerduty/4.0.0
35
+ changelog_uri: https://github.com/envato/pagerduty/blob/v4.0.1/CHANGELOG.md
36
+ documentation_uri: https://www.rubydoc.info/gems/pagerduty/4.0.1
93
37
  homepage_uri: https://github.com/envato/pagerduty
94
- source_code_uri: https://github.com/envato/pagerduty/tree/v4.0.0
38
+ source_code_uri: https://github.com/envato/pagerduty/tree/v4.0.1
95
39
  post_install_message:
96
40
  rdoc_options: []
97
41
  require_paths:
@@ -107,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
51
  - !ruby/object:Gem::Version
108
52
  version: '0'
109
53
  requirements: []
110
- rubygems_version: 3.3.7
54
+ rubygems_version: 3.5.6
111
55
  signing_key:
112
56
  specification_version: 4
113
57
  summary: PagerDuty Events API client library