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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c98396176a76952715e9a1203ea004442199318b
4
- data.tar.gz: 13ee7b572ecbb6bae3c24f91c5e8e8c89697ee15
3
+ metadata.gz: c9a3e841c8a49716d4a1fcd2a637c97cdfa2a9eb
4
+ data.tar.gz: b99104fc5790dfca35321a1ccbe2381bf2248166
5
5
  SHA512:
6
- metadata.gz: 51d72e865797501c95b3624847d919bc8e71981422373be73d73c337947b938ad76f1a903e835347ff35ae1733573daf4a486a0711c218a9d93f8fa11a9ae228
7
- data.tar.gz: e082cf18dcac158bb1fbf60333dc6ef3fc8a39d8a489e9379faf69a34d1593c95531919fe07b47d6cea5a691c662afc392e77da2bffe8f7578255fa18fc76798
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'
@@ -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)
@@ -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.5'
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 'active_support'
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.5
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: 2013-11-03 00:00:00.000000000 Z
11
+ date: 2014-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: active_support
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.2
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: