pagerduty_tools 0.3.9 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +6 -13
- data/bin/oncall-email.rb +1 -3
- data/bin/pagerduty_history.rb +1 -3
- data/bin/pagerduty_oncall.rb +1 -3
- data/bin/pagerduty_summary.rb +1 -3
- data/lib/pagerduty_tools/version.rb +1 -1
- data/pagerduty_tools.gemspec +1 -0
- metadata +27 -16
data/README.md
CHANGED
@@ -13,24 +13,17 @@ the previous rotation:
|
|
13
13
|
Several changes to PagerDuty's site have broken parts of these tools. I'm
|
14
14
|
currently working on repairing them and on making the tools into a gem. Status
|
15
15
|
as of this writing is that the `bin/pagerduty_oncall.rb` script is working and
|
16
|
-
the others are not. The gem
|
16
|
+
the others are not. The gem has been published and installs correctly.
|
17
17
|
|
18
18
|
## Installing ##
|
19
19
|
|
20
|
-
Ruby 1.
|
20
|
+
Ruby 1.9 is required. Run:
|
21
21
|
|
22
|
-
|
22
|
+
$ gem install pagerduty_tools
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
now:
|
28
|
-
|
29
|
-
$ gem install bundler
|
30
|
-
|
31
|
-
Then install required gems via Bundler:
|
32
|
-
|
33
|
-
$ bundle install
|
24
|
+
The scripts provided by the gem will be in the gem executable directory. If this
|
25
|
+
isn't already in your path, run `gem environment | grep "EXECUTABLE DIRECTORY"`
|
26
|
+
and put the result into your path.
|
34
27
|
|
35
28
|
The scripts log into the PagerDuty site when first run. Your email address
|
36
29
|
will be used to find associated PagerDuty accounts, and you can choose the
|
data/bin/oncall-email.rb
CHANGED
@@ -19,10 +19,8 @@
|
|
19
19
|
# Original script contributed by Jeffrey Wescott
|
20
20
|
# (https://github.com/binaryfeed). Thanks!
|
21
21
|
|
22
|
-
require '
|
23
|
-
require 'bundler/setup'
|
22
|
+
require 'psych'
|
24
23
|
require 'net/smtp'
|
25
|
-
|
26
24
|
require 'optparse'
|
27
25
|
|
28
26
|
lib = File.expand_path(File.join(File.dirname(__FILE__), '../lib'))
|
data/bin/pagerduty_history.rb
CHANGED
@@ -14,9 +14,7 @@
|
|
14
14
|
# See the License for the specific language governing permissions and
|
15
15
|
# limitations under the License.
|
16
16
|
|
17
|
-
require '
|
18
|
-
require 'bundler/setup'
|
19
|
-
|
17
|
+
require 'psych'
|
20
18
|
require 'hpricot'
|
21
19
|
|
22
20
|
lib = File.expand_path(File.join(File.dirname(__FILE__), '../lib'))
|
data/bin/pagerduty_oncall.rb
CHANGED
@@ -24,9 +24,7 @@
|
|
24
24
|
# PagerDuty login cookies will be stored at ~/.pagerduty-cookies, so you
|
25
25
|
# should only need to enter login credentials on the first run.
|
26
26
|
|
27
|
-
require '
|
28
|
-
require 'bundler/setup'
|
29
|
-
|
27
|
+
require 'psych'
|
30
28
|
require 'nokogiri'
|
31
29
|
require 'optparse'
|
32
30
|
|
data/bin/pagerduty_summary.rb
CHANGED
data/pagerduty_tools.gemspec
CHANGED
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.add_development_dependency "bundler", "~> 1.0"
|
25
25
|
s.add_development_dependency "fuubar"
|
26
26
|
|
27
|
+
s.add_runtime_dependency "psych", "~> 1.2"
|
27
28
|
s.add_runtime_dependency "chronic", "~> 0.6"
|
28
29
|
s.add_runtime_dependency "highline", "~> 1.6"
|
29
30
|
s.add_runtime_dependency "json", "~> 1.6"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pagerduty_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-11-11 00:00:00.
|
12
|
+
date: 2011-11-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
16
|
-
requirement: &
|
16
|
+
requirement: &70319177489840 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '1.0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70319177489840
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: fuubar
|
27
|
-
requirement: &
|
27
|
+
requirement: &70319177489460 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,21 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70319177489460
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: psych
|
38
|
+
requirement: &70319177488920 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '1.2'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70319177488920
|
36
47
|
- !ruby/object:Gem::Dependency
|
37
48
|
name: chronic
|
38
|
-
requirement: &
|
49
|
+
requirement: &70319177488360 !ruby/object:Gem::Requirement
|
39
50
|
none: false
|
40
51
|
requirements:
|
41
52
|
- - ~>
|
@@ -43,10 +54,10 @@ dependencies:
|
|
43
54
|
version: '0.6'
|
44
55
|
type: :runtime
|
45
56
|
prerelease: false
|
46
|
-
version_requirements: *
|
57
|
+
version_requirements: *70319177488360
|
47
58
|
- !ruby/object:Gem::Dependency
|
48
59
|
name: highline
|
49
|
-
requirement: &
|
60
|
+
requirement: &70319177487820 !ruby/object:Gem::Requirement
|
50
61
|
none: false
|
51
62
|
requirements:
|
52
63
|
- - ~>
|
@@ -54,10 +65,10 @@ dependencies:
|
|
54
65
|
version: '1.6'
|
55
66
|
type: :runtime
|
56
67
|
prerelease: false
|
57
|
-
version_requirements: *
|
68
|
+
version_requirements: *70319177487820
|
58
69
|
- !ruby/object:Gem::Dependency
|
59
70
|
name: json
|
60
|
-
requirement: &
|
71
|
+
requirement: &70319177487280 !ruby/object:Gem::Requirement
|
61
72
|
none: false
|
62
73
|
requirements:
|
63
74
|
- - ~>
|
@@ -65,10 +76,10 @@ dependencies:
|
|
65
76
|
version: '1.6'
|
66
77
|
type: :runtime
|
67
78
|
prerelease: false
|
68
|
-
version_requirements: *
|
79
|
+
version_requirements: *70319177487280
|
69
80
|
- !ruby/object:Gem::Dependency
|
70
81
|
name: mechanize
|
71
|
-
requirement: &
|
82
|
+
requirement: &70319177486620 !ruby/object:Gem::Requirement
|
72
83
|
none: false
|
73
84
|
requirements:
|
74
85
|
- - ~>
|
@@ -76,10 +87,10 @@ dependencies:
|
|
76
87
|
version: '2.0'
|
77
88
|
type: :runtime
|
78
89
|
prerelease: false
|
79
|
-
version_requirements: *
|
90
|
+
version_requirements: *70319177486620
|
80
91
|
- !ruby/object:Gem::Dependency
|
81
92
|
name: nokogiri
|
82
|
-
requirement: &
|
93
|
+
requirement: &70319177481260 !ruby/object:Gem::Requirement
|
83
94
|
none: false
|
84
95
|
requirements:
|
85
96
|
- - ~>
|
@@ -87,7 +98,7 @@ dependencies:
|
|
87
98
|
version: '1.5'
|
88
99
|
type: :runtime
|
89
100
|
prerelease: false
|
90
|
-
version_requirements: *
|
101
|
+
version_requirements: *70319177481260
|
91
102
|
description: Set of libraries and command-line tools to make better use of PagerDuty.
|
92
103
|
email:
|
93
104
|
- marc@precipice.org
|