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 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 builds and installs.
16
+ the others are not. The gem has been published and installs correctly.
17
17
 
18
18
  ## Installing ##
19
19
 
20
- Ruby 1.8.7 or later is required.
20
+ Ruby 1.9 is required. Run:
21
21
 
22
- First, clone the GitHub repo:
22
+ $ gem install pagerduty_tools
23
23
 
24
- $ git clone git://github.com/precipice/pagerduty-tools.git
25
-
26
- If you don't already have [Bundler](http://gembundler.com/) installed, do that
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 'rubygems'
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'))
@@ -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 'rubygems'
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'))
@@ -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 'rubygems'
28
- require 'bundler/setup'
29
-
27
+ require 'psych'
30
28
  require 'nokogiri'
31
29
  require 'optparse'
32
30
 
@@ -19,9 +19,7 @@
19
19
  # Gathers information about incidents and alerts during a PagerDuty
20
20
  # rotation, and reports on them.
21
21
 
22
- require 'rubygems'
23
- require 'bundler/setup'
24
-
22
+ require 'psych'
25
23
  require 'date'
26
24
  require 'json'
27
25
  require 'nokogiri'
@@ -1,6 +1,6 @@
1
1
 
2
2
  module PagerdutyTools
3
3
  unless defined?(VERSION)
4
- VERSION = "0.3.9"
4
+ VERSION = "0.4.0"
5
5
  end
6
6
  end
@@ -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.3.9
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.000000000Z
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: &70288580025160 !ruby/object:Gem::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: *70288580025160
24
+ version_requirements: *70319177489840
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: fuubar
27
- requirement: &70288580024780 !ruby/object:Gem::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: *70288580024780
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: &70288580017660 !ruby/object:Gem::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: *70288580017660
57
+ version_requirements: *70319177488360
47
58
  - !ruby/object:Gem::Dependency
48
59
  name: highline
49
- requirement: &70288580016820 !ruby/object:Gem::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: *70288580016820
68
+ version_requirements: *70319177487820
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: json
60
- requirement: &70288580016340 !ruby/object:Gem::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: *70288580016340
79
+ version_requirements: *70319177487280
69
80
  - !ruby/object:Gem::Dependency
70
81
  name: mechanize
71
- requirement: &70288580015880 !ruby/object:Gem::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: *70288580015880
90
+ version_requirements: *70319177486620
80
91
  - !ruby/object:Gem::Dependency
81
92
  name: nokogiri
82
- requirement: &70288580015400 !ruby/object:Gem::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: *70288580015400
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