sensu-plugins-datadog 0.0.1.alpha.1 → 0.0.1.alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE +1 -1
- data/README.md +18 -1
- data/lib/sensu-plugins-datadog.rb +1 -1
- metadata +21 -16
- metadata.gz.sig +0 -0
- data/.gitignore +0 -18
- data/.rubocop.yml +0 -24
- data/.travis.yml +0 -18
- data/CONTRIBUTING.md +0 -153
- data/Gemfile +0 -4
- data/Rakefile +0 -40
- data/Vagrantfile +0 -32
- data/certs/sensu-plugins.pem +0 -21
- data/sensu-plugins-datadog.gemspec +0 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3b6e78fea844cfa1e75a3b5a08f948f0d37c44b
|
4
|
+
data.tar.gz: 6dba20ae2fff6ed8c438b1603e0dab13cf80ee39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b93f7b72a02a1ef89a5731be1606ec9f6362b31bd86fa30e87a9401ee4a61278bd9a4df24cc125c5289e2e765ac3ac2c8c3e8b1032ed279d32e172459c1b0f68
|
7
|
+
data.tar.gz: d67059fa7ef41e4523efbf08749f8ffc6eb77c24e3dbff43b9bcffb3a8f655ce353f0d7d7de01e6cee82b48966a68109f6e61a9fb71757a0b41128b606f633c5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -5,3 +5,11 @@
|
|
5
5
|
* pinned dependencies
|
6
6
|
* built against 1.9.3, 2.0, 2.1
|
7
7
|
* cryptographically signed
|
8
|
+
|
9
|
+
### 0.0.1-alpha.2
|
10
|
+
|
11
|
+
* bump Vagrant to Chef 6.6
|
12
|
+
* update LICENSE and gemspec authors
|
13
|
+
* update README
|
14
|
+
* add required Ruby version *>= 1.9.3*
|
15
|
+
* add test/spec_help.rb
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
## Sensu-Plugins-Datadog
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-datadog.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-datadog)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/sensu-plugins-datadog.svg)](http://badge.fury.io/rb/sensu-plugins-datadog)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-datadog/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-datadog)
|
6
|
+
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-datadog/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-datadog)
|
4
7
|
|
5
8
|
## Functionality
|
6
9
|
```json
|
@@ -13,10 +16,24 @@
|
|
13
16
|
}
|
14
17
|
```
|
15
18
|
## Files
|
16
|
-
|
19
|
+
|
20
|
+
#### bin/datadog-metrics.rb
|
21
|
+
Send metrics to datadog
|
22
|
+
|
23
|
+
#### bin/datadog-notification.rb
|
24
|
+
Send event data to datadog
|
17
25
|
|
18
26
|
## Installation
|
19
27
|
|
28
|
+
Add the public key (if you haven’t already) as a trusted certificate
|
29
|
+
|
30
|
+
```
|
31
|
+
gem cert --add <(curl -Ls https://raw.githubusercontent.com/sensu-plugins/sensu-plugins.github.io/master/certs/sensu-plugins.pem)
|
32
|
+
gem install <gem> -P MediumSecurity
|
33
|
+
```
|
34
|
+
|
35
|
+
You can also download the key from /certs/ within each repository.
|
36
|
+
|
20
37
|
`gem install sensu-plugins-datadog`
|
21
38
|
|
22
39
|
Add *sensu-plugins-datadog* to your Gemfile, manifest, cookbook, etc
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-datadog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.alpha.
|
4
|
+
version: 0.0.1.alpha.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Yieldbot, Inc. and contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
|
31
31
|
HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2015-01
|
33
|
+
date: 2015-02-01 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: datadog
|
@@ -60,6 +60,20 @@ dependencies:
|
|
60
60
|
- - '='
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: 1.1.0
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: codeclimate-test-reporter
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
63
77
|
- !ruby/object:Gem::Dependency
|
64
78
|
name: rubocop
|
65
79
|
requirement: !ruby/object:Gem::Requirement
|
@@ -166,21 +180,12 @@ executables:
|
|
166
180
|
extensions: []
|
167
181
|
extra_rdoc_files: []
|
168
182
|
files:
|
169
|
-
- .gitignore
|
170
|
-
- .rubocop.yml
|
171
|
-
- .travis.yml
|
172
|
-
- CHANGELOG.md
|
173
|
-
- CONTRIBUTING.md
|
174
|
-
- Gemfile
|
175
|
-
- LICENSE
|
176
|
-
- README.md
|
177
|
-
- Rakefile
|
178
|
-
- Vagrantfile
|
179
183
|
- bin/datadog-metrics.rb
|
180
184
|
- bin/datadog-notification.rb
|
181
|
-
- certs/sensu-plugins.pem
|
182
185
|
- lib/sensu-plugins-datadog.rb
|
183
|
-
-
|
186
|
+
- LICENSE
|
187
|
+
- README.md
|
188
|
+
- CHANGELOG.md
|
184
189
|
homepage: https://github.com/sensu-plugins/sensu-plugins-datadog
|
185
190
|
licenses:
|
186
191
|
- MIT
|
@@ -193,7 +198,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
193
198
|
requirements:
|
194
199
|
- - '>='
|
195
200
|
- !ruby/object:Gem::Version
|
196
|
-
version:
|
201
|
+
version: 1.9.3
|
197
202
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
198
203
|
requirements:
|
199
204
|
- - '>'
|
metadata.gz.sig
CHANGED
Binary file
|
data/.gitignore
DELETED
data/.rubocop.yml
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
|
2
|
-
MethodLength:
|
3
|
-
Max: 200
|
4
|
-
|
5
|
-
LineLength:
|
6
|
-
Max: 160
|
7
|
-
|
8
|
-
FileName:
|
9
|
-
Enabled: false
|
10
|
-
|
11
|
-
PerceivedComplexity:
|
12
|
-
Enabled: false
|
13
|
-
|
14
|
-
CyclomaticComplexity:
|
15
|
-
Enabled: false
|
16
|
-
|
17
|
-
ClassLength:
|
18
|
-
Enabled: false
|
19
|
-
|
20
|
-
IfUnlessModifier:
|
21
|
-
Enabled: false
|
22
|
-
|
23
|
-
RegexpLiteral:
|
24
|
-
Enabled: false
|
data/.travis.yml
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
cache:
|
3
|
-
- bundler
|
4
|
-
install:
|
5
|
-
- bundle install
|
6
|
-
rvm:
|
7
|
-
- 1.9.3
|
8
|
-
- 2.0
|
9
|
-
- 2.1
|
10
|
-
notifications:
|
11
|
-
email:
|
12
|
-
recipients:
|
13
|
-
- mattjones@yieldbot.com
|
14
|
-
on_success: change
|
15
|
-
on_failure: always
|
16
|
-
|
17
|
-
script:
|
18
|
-
- 'bundle exec rake default'
|
data/CONTRIBUTING.md
DELETED
@@ -1,153 +0,0 @@
|
|
1
|
-
|
2
|
-
If you have a new plugin or handler, send a pull request! Don't be afraid on pushing your PR with non-ruby code. Just let someone from [team](https://github.com/sensu?tab=members) know. Maybe we can help you to rewrite your check to Ruby or even invent something completely new to test your work. Just don't hesitate to contact us.
|
3
|
-
|
4
|
-
## Naming Conventions
|
5
|
-
|
6
|
-
Please format the names of scripts using dashes to separate words and with an
|
7
|
-
extension (`.rb`, `.sh`, etc), and make sure they are `chmod +x`'d.
|
8
|
-
Extensions are unfortunately necessary for Sensu to be able to directly
|
9
|
-
exec plugins and handlers on Windows.
|
10
|
-
|
11
|
-
## Coding Style
|
12
|
-
|
13
|
-
When developing your plugins please use the [sensu plugin class](https://github.com/sensu/sensu-plugin). This will ensure that all plugins have an identical run structure.
|
14
|
-
|
15
|
-
When using options please use the following structure. At the very least your option needs to include a description to assist the user with configuration and deployment.
|
16
|
-
|
17
|
-
```ruby
|
18
|
-
option :port,
|
19
|
-
short: '-p PORT',
|
20
|
-
long: '--port PORT',
|
21
|
-
description: 'Port',
|
22
|
-
default: '1234'
|
23
|
-
```
|
24
|
-
|
25
|
-
Each plugin, handler, mutator, extension should use the following standard header
|
26
|
-
|
27
|
-
```ruby
|
28
|
-
#! /usr/bin/env ruby
|
29
|
-
#
|
30
|
-
# <script name>
|
31
|
-
#
|
32
|
-
# DESCRIPTION:
|
33
|
-
#
|
34
|
-
# OUTPUT:
|
35
|
-
# plain text, metric data, etc
|
36
|
-
#
|
37
|
-
# PLATFORMS:
|
38
|
-
# Linux, Windows, BSD, Solaris, etc
|
39
|
-
#
|
40
|
-
# DEPENDENCIES:
|
41
|
-
# gem: sensu-plugin
|
42
|
-
# gem: <?>
|
43
|
-
#
|
44
|
-
# USAGE:
|
45
|
-
#
|
46
|
-
# NOTES:
|
47
|
-
#
|
48
|
-
# LICENSE:
|
49
|
-
# <your name> <your email>
|
50
|
-
# Released under the same terms as Sensu (the MIT license); see LICENSE
|
51
|
-
# for details.
|
52
|
-
#
|
53
|
-
```
|
54
|
-
|
55
|
-
## Documentation
|
56
|
-
|
57
|
-
All documentation will be handled by [RDoc](https://github.com/rdoc/rdoc) and we are using the default rdoc markup at this time. A brief introduction RDoc markup can be found [here](http://docs.seattlerb.org/rdoc/RDoc/Markup.html). All scripts should have as much documentation coverage as possible, ideally 100%. You can test your coverage by installing RDoc locally and running
|
58
|
-
|
59
|
-
```shell
|
60
|
-
rdoc -C <filename>
|
61
|
-
```
|
62
|
-
|
63
|
-
The output will tell you how much coverage you have without spending the time building the docs.
|
64
|
-
|
65
|
-
Documentation can always be made better, if you would like to contribute to it, have at it and submit a PR.
|
66
|
-
|
67
|
-
## Dependency Managment
|
68
|
-
|
69
|
-
Dependencies (ruby gems, packages, etc) and other requirements should
|
70
|
-
be declared in the header of the plugin/handler file. Try to use the standard library or the same dependencies as other plugins to keep the stack as small as possible. If you have questions about using a specific gem feel free to ask.
|
71
|
-
|
72
|
-
All scripts should contain the following dependency to ensure full compatibility.
|
73
|
-
|
74
|
-
## Vagrant Box
|
75
|
-
|
76
|
-
There is a Vagrantfile in each repo with shell provisioning that will setup the major versions of Ruby and a sensu gemset for each if you wish to use it. To get started install [Vagrant](https://www.vagrantup.com/) then type *vagrant up* in the root directory of the repo. Once it is up type *vagrant ssh* to remote into the box and then *cd /vagrant && bundle install* to set all necessary dependencies.
|
77
|
-
|
78
|
-
The box currently defaults to Ruby 2.1.4 but has 1.9.3 and 2.0.0 installed as well. See the file comments for further details.
|
79
|
-
|
80
|
-
## Testing
|
81
|
-
|
82
|
-
### Linting
|
83
|
-
Only pull requests passing lint/tests will be merged.
|
84
|
-
|
85
|
-
Rubocop is used to lint the style of the ruby plugins. This is done to standardize the style used within these plugins, and ensure high quality code. Most current rules are currently in effect. No linting is done on Ruby code prior to version 2x. See the `.travis.yml` and `Rakefile` in each repository for specific details as the tasks may vary between repo.
|
86
|
-
|
87
|
-
Ruby 1.9.2 and 1.8.7 support has been dropped, the plugins may still function with these versions but no tests will be run against them nor will code, such as hashes, be specifically written or enforced to ensure backwards compatibility.
|
88
|
-
|
89
|
-
You can test rubocop compliance for yourself by installing the gem and running `rubocop` from the command line.
|
90
|
-
Running `rubocop -a` will attempt to autocorrect any issues, saving yourself considerable time in large files.
|
91
|
-
|
92
|
-
If it truly makes sense for your code to violate a rule you can disable that rule with your code by either using
|
93
|
-
|
94
|
-
```ruby
|
95
|
-
# rubocop:disable <rule>, <rule>
|
96
|
-
```
|
97
|
-
|
98
|
-
at the end of the line in violation or
|
99
|
-
|
100
|
-
```ruby
|
101
|
-
rubocop:disable <rule>, <rule>
|
102
|
-
<code block>
|
103
|
-
rubocop:enable <rule>, <rule>
|
104
|
-
```
|
105
|
-
|
106
|
-
If you use either of these methods please mention in the PR as this should be kept to an absolute minimum at times, but can be necessary, especially concerning method length and complexity.
|
107
|
-
|
108
|
-
### Rspec
|
109
|
-
|
110
|
-
Currently we have RSpec3 as a [test framework](https://github.com/sensu/sensu-plugin-spec). Please add coverage for your check. Checks will not be considered production grade and stable until they have complete coverage.
|
111
|
-
|
112
|
-
You can use the included Vagrantfile for easy testing. All necessary versions of Ruby can be installed with their own dedicated gem sets using RVM. Just boot up the machine and drop into /vagrant and execute
|
113
|
-
|
114
|
-
```ruby
|
115
|
-
rake default
|
116
|
-
```
|
117
|
-
|
118
|
-
to run all specs and rubocop tests. RSpec tests are currently run against 2.0, and 2.1. There are currently no plans to support 1.8.x or test against 1.9.2 and 1.9.3.
|
119
|
-
|
120
|
-
This is little bit hard almost impossible for non-ruby checks. Let someone from [team](https://github.com/sensu?tab=members) know and maybe can can help.
|
121
|
-
|
122
|
-
## Issue and Pull Request Submissions
|
123
|
-
|
124
|
-
If you see something wrong or come across a bug please open up an issue. Try to include as much data in the issue as possible. If you feel the issue is critical than tag a core member and we will respond as soon as is feasible.
|
125
|
-
|
126
|
-
When submitting a pull request please follow the guidelines below for the quickest possible merge. These not only make our lives easier, but also keep the repo and commit history as clean as possible.
|
127
|
-
|
128
|
-
* When at all possible do a ```git pull --rebase``` both before you start working on the repo and then before you commit. This will help ensure you have the most up to date codebase, Rubocop rules, and documentation. It will also go along way towards cutting down or eliminating(hopefully) annoying merge commits.
|
129
|
-
*
|
130
|
-
|
131
|
-
If you wish to track the status of your PR or issue, check out our [waffle.io](https://waffle.io/sensu/sensu-community-plugins). This single location will allow contributors to stay on top of interwinding issues more effectively.
|
132
|
-
|
133
|
-
Please do not not abandon your pull request, only you can help us merge it. We will wait for feedback from you on your pull request for up to one month. A lack of feedback in one month may require you to re-open your pull request.
|
134
|
-
|
135
|
-
## Technical Debt
|
136
|
-
|
137
|
-
For those who don't deal with or understand technical debt, it is debt incurred when designing or developing software. All the #FIXME, #HACK, etc littered through a script add up over time, this is your technical debt.
|
138
|
-
|
139
|
-
### Technical Debt Levels
|
140
|
-
|
141
|
-
**YELLOW**
|
142
|
-
|
143
|
-
* simple issues that require basic Ruby and no more than 4 hours to fix
|
144
|
-
|
145
|
-
**ORANGE**
|
146
|
-
|
147
|
-
* these may require 4 - 8 hours but still only a basic or intermediate Ruby skillset
|
148
|
-
|
149
|
-
**RED**
|
150
|
-
|
151
|
-
* may require 8+ hours or some domain specific Ruby skills such as Amazon, or Elastic Search
|
152
|
-
|
153
|
-
In order to quantify it and see what we actually have there is a rake task *calculate_debt*. In order to run it you will need an auth token and write access to the repo.
|
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
2
|
-
require 'rspec/core/rake_task'
|
3
|
-
require 'rubocop/rake_task'
|
4
|
-
require 'github/markup'
|
5
|
-
require 'redcarpet'
|
6
|
-
require 'yard'
|
7
|
-
require 'yard/rake/yardoc_task'
|
8
|
-
|
9
|
-
desc 'Don\'t run Rubocop for unsupported versions'
|
10
|
-
begin
|
11
|
-
if RUBY_VERSION >= '2.0.0'
|
12
|
-
args = [:spec, :make_bin_executable, :yard, :rubocop]
|
13
|
-
else
|
14
|
-
args = [:spec, :make_bin_executable, :yard]
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
YARD::Rake::YardocTask.new do |t|
|
19
|
-
OTHER_PATHS = %w()
|
20
|
-
t.files = ['lib/**/*.rb', 'bin/**/*.rb', OTHER_PATHS]
|
21
|
-
t.options = %w(--markup-provider=redcarpet --markup=markdown --main=README.md --files CHANGELOG.md,CONTRIBUTING.md)
|
22
|
-
end
|
23
|
-
|
24
|
-
Rubocop::RakeTask.new
|
25
|
-
|
26
|
-
RSpec::Core::RakeTask.new(:spec) do |r|
|
27
|
-
r.pattern = FileList['**/**/*_spec.rb']
|
28
|
-
end
|
29
|
-
|
30
|
-
# desc 'Calculate technical debt'
|
31
|
-
# task :calculate_debt do
|
32
|
-
# `/usr/bin/env ruby scripts/tech_debt.rb`
|
33
|
-
# end
|
34
|
-
|
35
|
-
desc 'Make all plugins executable'
|
36
|
-
task :make_bin_executable do
|
37
|
-
`chmod -R +x bin/*`
|
38
|
-
end
|
39
|
-
|
40
|
-
task default: args
|
data/Vagrantfile
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
# -*- mode: ruby -*-
|
2
|
-
# vi: set ft=ruby :
|
3
|
-
|
4
|
-
VAGRANTFILE_API_VERSION = '2'
|
5
|
-
|
6
|
-
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
7
|
-
|
8
|
-
config.vm.box = 'chef/centos-6.5'
|
9
|
-
config.vm.box_download_checksum = true
|
10
|
-
config.vm.box_download_checksum_type = 'md5'
|
11
|
-
config.vm.hostname = 'sensu-plugins-dev'
|
12
|
-
|
13
|
-
script = <<EOF
|
14
|
-
sudo yum update -y
|
15
|
-
sudo yum groupinstall -y development
|
16
|
-
sudo yum install -y vim nano
|
17
|
-
sudo yum install -y ImagicMagic ImageMagick-devel mysql-devel # needed for bundle install
|
18
|
-
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
|
19
|
-
curl -L get.rvm.io | bash -s stable
|
20
|
-
source /home/vagrant/.rvm/scripts/rvm
|
21
|
-
rvm reload
|
22
|
-
rvm install 1.9.3
|
23
|
-
rvm install 2.1.4
|
24
|
-
rvm install 2.0.0
|
25
|
-
rvm use 1.9.3@sensu_plugins --create
|
26
|
-
rvm use 2.0.0@sensu_plugins --create
|
27
|
-
rvm use 2.1.4@sensu_plugins --create
|
28
|
-
rvm use 2.1.4@sensu_plugins --default
|
29
|
-
EOF
|
30
|
-
|
31
|
-
config.vm.provision 'shell', inline: script, privileged: false
|
32
|
-
end
|
data/certs/sensu-plugins.pem
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
-----BEGIN CERTIFICATE-----
|
2
|
-
MIIDgDCCAmigAwIBAgIBATANBgkqhkiG9w0BAQUFADBDMRIwEAYDVQQDDAltYXR0
|
3
|
-
am9uZXMxGDAWBgoJkiaJk/IsZAEZFgh5aWVsZGJvdDETMBEGCgmSJomT8ixkARkW
|
4
|
-
A2NvbTAeFw0xNTAxMjgyMTAyNTFaFw0xNjAxMjgyMTAyNTFaMEMxEjAQBgNVBAMM
|
5
|
-
CW1hdHRqb25lczEYMBYGCgmSJomT8ixkARkWCHlpZWxkYm90MRMwEQYKCZImiZPy
|
6
|
-
LGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyTSzVYnO
|
7
|
-
CLgyrIyT1mBQakArQyW8xhi6MlDqyzXHJGeERT790U6EgoBVeS4XoK0ptFZNR8Tf
|
8
|
-
zko0w+Nv47TarSCgkPOaxY+mxWnAVR10dOmfeLr7huiMyps+YD56/EF2FqQ3jf/+
|
9
|
-
qohENfKD91qy1ieEy+Fn7Pf74ltbNKUdkb9a9eFXQ0DQ4ip5vik7DzjQkUTj4lca
|
10
|
-
k6ArwnmHX4YDhZoYtrQJ8jVktN0/+NtA40M5qkCYHNe5tUW25b/tKVYuioxG6b2Z
|
11
|
-
oIzaZxRLxf6HVAWpCVRT/F5+/yjigkX4u++eYacfLGleXQzoK7BL65vHGMJygWEE
|
12
|
-
0TKGqFOrl/L0AQIDAQABo38wfTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV
|
13
|
-
HQ4EFgQUEf6a8Td7MrSZc8ImbLFZAENPbz0wIQYDVR0RBBowGIEWbWF0dGpvbmVz
|
14
|
-
QHlpZWxkYm90LmNvbTAhBgNVHRIEGjAYgRZtYXR0am9uZXNAeWllbGRib3QuY29t
|
15
|
-
MA0GCSqGSIb3DQEBBQUAA4IBAQBbzXAYA3BVGw8DZ0YYoY1VHPNEcH5qPIApmHO8
|
16
|
-
rvSmuUT0yMEi7u00H/5uHRFf4LleGT/+sTdyXKsNPGT9kdRuQEgwi+vf7Zfvd8aX
|
17
|
-
UF/+4VkEYf/8rV8Ere6u2QaWPgApdMV6JjKr1fAwCTd8AuGXNaWItiPPMseSQzLJ
|
18
|
-
JKP4hVvbc1d+oS925B1lcBiqn2aYvElbyNAVmQPywNNqkWmvtlqj9ZVJfV5HQLdu
|
19
|
-
8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
|
20
|
-
HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
|
21
|
-
-----END CERTIFICATE-----
|
@@ -1,41 +0,0 @@
|
|
1
|
-
lib = File.expand_path('../lib', __FILE__)
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
if RUBY_VERSION < '2.0.0'
|
6
|
-
require 'sensu-plugins-datadog'
|
7
|
-
else
|
8
|
-
require_relative 'lib/sensu-plugins-datadog'
|
9
|
-
end
|
10
|
-
|
11
|
-
pvt_key = '~/.ssh/gem-private_key.pem'
|
12
|
-
|
13
|
-
Gem::Specification.new do |s|
|
14
|
-
s.name = 'sensu-plugins-datadog'
|
15
|
-
s.version = SensuPluginsDatadog::VERSION
|
16
|
-
s.authors = ['Sonian, Inc. and contributors']
|
17
|
-
s.email = '<sensu-users@googlegroups.com>'
|
18
|
-
s.homepage = 'https://github.com/sensu-plugins/sensu-plugins-datadog'
|
19
|
-
s.summary = 'Datadog handlers Sensu'
|
20
|
-
s.description = 'Datadog handlers Sensu'
|
21
|
-
s.license = 'MIT'
|
22
|
-
s.date = Date.today.to_s
|
23
|
-
s.files = `git ls-files -z`.split("\x0")
|
24
|
-
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
25
|
-
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
26
|
-
s.require_paths = ['lib']
|
27
|
-
s.cert_chain = ['certs/sensu-plugins.pem']
|
28
|
-
s.signing_key = File.expand_path(pvt_key) if $PROGRAM_NAME =~ /gem\z/
|
29
|
-
s.platform = Gem::Platform::RUBY
|
30
|
-
|
31
|
-
s.add_runtime_dependency 'datadog', '0.1.0.alpha'
|
32
|
-
s.add_runtime_dependency 'sensu-plugin', '1.1.0'
|
33
|
-
|
34
|
-
s.add_development_dependency 'rubocop', '~> 0.17.0'
|
35
|
-
s.add_development_dependency 'rspec', '~> 3.1'
|
36
|
-
s.add_development_dependency 'bundler', '~> 1.7'
|
37
|
-
s.add_development_dependency 'rake', '~> 10.0'
|
38
|
-
s.add_development_dependency 'github-markup'
|
39
|
-
s.add_development_dependency 'redcarpet'
|
40
|
-
s.add_development_dependency 'yard'
|
41
|
-
end
|