pagerduty-sdk 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -0
- data/Rakefile +11 -0
- data/lib/pagerduty/models/escalationpolicies.rb +2 -1
- data/pagerduty-sdk.gemspec +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9a3e841c8a49716d4a1fcd2a637c97cdfa2a9eb
|
4
|
+
data.tar.gz: b99104fc5790dfca35321a1ccbe2381bf2248166
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1f7bc4d0c27b6730e3044513bf4140ec98ac4ce7830b009a805f42d72e9402d724083978ff0500b502bc36384717517331a8591f76aa4973aceaf4e5706bbb2
|
7
|
+
data.tar.gz: 714a20c32a41b86d925ccff56a9f074e2839525802ef4f6d943cd9ec94573c68d64f63f4f0a262fabaddc7dcd5eb64c93a316cea2cf5720f854bcc02d38aa63c
|
data/README.md
CHANGED
@@ -18,6 +18,21 @@ appreciated!
|
|
18
18
|
gem install pagerduty-sdk
|
19
19
|
```
|
20
20
|
|
21
|
+
### Building/Installing a local gem
|
22
|
+
|
23
|
+
Rake tasks to build and install the gem:
|
24
|
+
|
25
|
+
```
|
26
|
+
rake buildgem
|
27
|
+
rake installgem
|
28
|
+
```
|
29
|
+
|
30
|
+
Or in one fell swoop
|
31
|
+
|
32
|
+
```
|
33
|
+
rake gem
|
34
|
+
```
|
35
|
+
|
21
36
|
## Usage
|
22
37
|
```ruby
|
23
38
|
require 'pagerduty'
|
data/Rakefile
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
desc "Build gem file"
|
2
|
+
task :buildgem do
|
3
|
+
sh "gem build pagerduty-sdk.gemspec"
|
4
|
+
end
|
5
|
+
desc "Install local gem file"
|
6
|
+
task :installgem do
|
7
|
+
sh "gem install pagerduty-sdk"
|
8
|
+
end
|
9
|
+
|
10
|
+
desc "Build and install local gem file"
|
11
|
+
task :gem => [ :buildgem, :installgem ]
|
@@ -96,7 +96,8 @@ class EscalationPolicy < Pagerduty
|
|
96
96
|
def delete
|
97
97
|
res = curl({
|
98
98
|
uri: "https://#@@subdomain.pagerduty.com/api/v1/escalation_policies/#{self.id}",
|
99
|
-
method: 'DELETE'
|
99
|
+
method: 'DELETE',
|
100
|
+
raw_response: true
|
100
101
|
})
|
101
102
|
|
102
103
|
res.code == '204' ? 'Successfully deleted policy' : JSON.parse(res.body)
|
data/pagerduty-sdk.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'pagerduty/pagerduty'
|
|
6
6
|
|
7
7
|
Gem::Specification.new do |gem|
|
8
8
|
gem.name = "pagerduty-sdk"
|
9
|
-
gem.version = '1.0.
|
9
|
+
gem.version = '1.0.6'
|
10
10
|
gem.authors = ["Alfred Moreno"]
|
11
11
|
gem.email = ["kryptek@gmail.com"]
|
12
12
|
gem.description = %q{An SDK for Pagerduty's API}
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
19
|
gem.require_paths = ["lib"]
|
20
20
|
|
21
|
-
gem.add_dependency '
|
21
|
+
gem.add_dependency 'activesupport'
|
22
22
|
gem.add_dependency 'json'
|
23
23
|
gem.add_dependency 'virtus'
|
24
24
|
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pagerduty-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alfred Moreno
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -62,6 +62,7 @@ files:
|
|
62
62
|
- ".gitignore"
|
63
63
|
- LICENSE
|
64
64
|
- README.md
|
65
|
+
- Rakefile
|
65
66
|
- lib/pagerduty.rb
|
66
67
|
- lib/pagerduty/core.rb
|
67
68
|
- lib/pagerduty/models/agent.rb
|
@@ -111,9 +112,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
112
|
version: '0'
|
112
113
|
requirements: []
|
113
114
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.0
|
115
|
+
rubygems_version: 2.3.0
|
115
116
|
signing_key:
|
116
117
|
specification_version: 4
|
117
118
|
summary: An SDK for communication with the entire Pagerduty API
|
118
119
|
test_files: []
|
119
|
-
has_rdoc:
|