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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0164943fae7683d08ea5fad001e6ebea17af7524
4
- data.tar.gz: 1d58093c6b70649b7877ed41425641d4330e065b
2
+ SHA256:
3
+ metadata.gz: 8dbc9c23955ddbec1d3d5d97d54bbbae4a7ebb95daecbb0ef0a0f579249303b9
4
+ data.tar.gz: 7c9a40200d5f494945ea09ca0d1915e4fd31e2c890f3145155d4b9355f195f21
5
5
  SHA512:
6
- metadata.gz: 1ef62a628733a0cc02994789eb80ac7fbb7685c038c21595f82c897dafef17a53b5287af0ef52ad702104dd655aefd7a3517cab10f159fa401552e85c1eb610d
7
- data.tar.gz: da5ae3770b892d4ce644d05b2c5a830b38007d19fcee3931dfc4f23454755afb3b1dde71b163a9c225b6ea606a9d33026d5c629a0e90b6ec70fbaed6ff1b320f
6
+ metadata.gz: 34b67d774b87ed6d165239c3617cd2e99ac3bcefacbefb369bca243758ecab129cd1fe2c50533b28a96b196aa0308b817a80dab88915e7cd0ac56f00ccd66172
7
+ data.tar.gz: d6a312ee4ba7a98085cf6a352d5781ffe78224e2f1c1ab413b199bfbea618ea753e69bd4be418339c3c40f72afe1efe08649b5f8b47c81b48fbbd7f823919e9b
@@ -4,9 +4,14 @@ AllCops:
4
4
  - bin/**/*
5
5
  - vendor/**/*
6
6
 
7
- Style/AccessModifierIndentation:
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/TrailingComma:
31
+ Style/TrailingCommaInArguments:
32
+ EnforcedStyleForMultiline: comma
33
+
34
+ Style/TrailingCommaInArrayLiteral:
35
+ EnforcedStyleForMultiline: comma
36
+
37
+ Style/TrailingCommaInHashLiteral:
27
38
  EnforcedStyleForMultiline: comma
@@ -2,8 +2,8 @@ language: ruby
2
2
  sudo: false
3
3
  cache: bundler
4
4
  rvm:
5
- - 2.3.0
6
- - 2.2.4
7
- - 2.1.8
8
- - 2.0.0
9
- - 1.9.3
5
+ - 2.5.0
6
+ - 2.4.3
7
+ - 2.3.6
8
+ - 2.2.9
9
+ - 2.1.10
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require "bundler/gem_tasks"
2
2
  require "rspec/core/rake_task"
3
3
  require "rubocop/rake_task"
4
4
 
5
- task default: [:spec, :rubocop]
5
+ task default: %i[spec rubocop]
6
6
 
7
7
  RSpec::Core::RakeTask.new(:spec) do |t|
8
8
  t.verbose = false
@@ -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
- fail ArgumentError, "incident_key is nil" if incident_key.nil?
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
- fail PagerdutyException.new(self, response, response["message"])
106
+ raise PagerdutyException.new(self, response, response["message"])
107
107
  end
108
108
  end
109
109
 
@@ -1,13 +1,13 @@
1
- # encoding: utf-8
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
@@ -1,3 +1,3 @@
1
1
  class Pagerduty
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1".freeze
3
3
  end
@@ -1,5 +1,5 @@
1
- # encoding: utf-8
2
- lib = File.expand_path("../lib", __FILE__)
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 = <<-MSG
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
- MSG
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", "0.34.2"
31
+ gem.add_development_dependency "rubocop"
32
32
  end
@@ -1,4 +1,4 @@
1
- # encoding: utf-8
1
+
2
2
  require "spec_helper"
3
3
 
4
4
  describe Pagerduty::HttpTransport do
@@ -1,4 +1,4 @@
1
- # encoding: utf-8
1
+
2
2
  require "spec_helper"
3
3
 
4
4
  describe Pagerduty do
@@ -1,5 +1,5 @@
1
- # encoding: utf-8
2
- Dir[File.expand_path("../support/**/*.rb", __FILE__)].each { |f| require f }
1
+
2
+ Dir[File.expand_path("support/**/*.rb", __dir__)].each { |f| require f }
3
3
 
4
4
  Warnings.silenced do
5
5
  require "rspec/given"
@@ -4,7 +4,8 @@ module Warnings
4
4
  end
5
5
 
6
6
  def self.with_flag(flag)
7
- old_verbose, $VERBOSE = $VERBOSE, flag
7
+ old_verbose = $VERBOSE
8
+ $VERBOSE = flag
8
9
  yield
9
10
  ensure
10
11
  $VERBOSE = old_verbose
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.0
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: 2016-01-18 00:00:00.000000000 Z
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.34.2
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.34.2
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
- If upgrading to pagerduty 2.0.0 please note the API changes:
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.5.1
130
+ rubygems_version: 2.7.6
132
131
  signing_key:
133
132
  specification_version: 4
134
133
  summary: Pagerduty Integration API client library