sensu-plugins-victorops 0.0.1.alpha.2 → 0.0.1

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: e6f057377b67673ea42adf5b5e395e11fb5eaa02
4
- data.tar.gz: 5dcfed89038b38fe9662d96e538efadd4d9d27cd
3
+ metadata.gz: 405f2399b32e18e83287b591fe8d4a16b6eb83e9
4
+ data.tar.gz: 13e486f58a58c605fbaf95d4fffd513bf1184a5d
5
5
  SHA512:
6
- metadata.gz: 1b245eeeb88ce6652297ec7d25ec9f314e5dc900dcad4e5ef02eff5f867e74dbdf4a4cf3b377b77b97e83921fc8a29b6d9ffa901ef02ec23913a311244cafe59
7
- data.tar.gz: eb111e59d67066b079099fcf7f5d9824afb62766ceaa4af0ca06ed9af5ccd082aa0719b56f2bea6c6dbbd797f4d057db26562f11f89bcde3554048274c7e5cc6
6
+ metadata.gz: 1695c7d12f271cc965bcf2e118ad7645b0ee529e570e08ba1e34c12f9f1d4266aac958c8795e5cfd0632335c95d84eaf8075eb8fbdeea6633d0e70cdbf7ad263
7
+ data.tar.gz: f141f2169fd9343ac5a4e8df34c90f70452f9af4d3b6b2f66d5a2aec937850bc08b1fa8c3f74662f6d51d7cecb825874e0c609b9bf5ee0627861bddd4fd3a7f1
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,9 +1,12 @@
1
- #### 0.0.1.alpha.1
2
- * same functioality as community plugins repo
3
-
4
- #### 0.0.1.alpha.2
5
- * pin all dev dependencies
6
- * pin all runtime dependencies
7
- * add gem metadata
8
- * add new Vagrantfile
9
- * fix issues to pass all tests
1
+ #Change Log
2
+ This project adheres to [Semantic Versioning](http://semver.org/).
3
+
4
+ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
5
+
6
+ ## Unreleased][unreleased]
7
+
8
+ ## 0.0.1 - 2015-05-21
9
+
10
+ ### Added
11
+ - initial release
12
+
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015 devops@yieldbot.com
1
+ Copyright (c) 2015 Sensu-Plugins
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -5,11 +5,12 @@
5
5
  [![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-victorops/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-victorops)
6
6
  [![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-victorops/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-victorops)
7
7
  [![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-victorops.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-victorops)
8
+ [ ![Codeship Status for sensu-plugins/sensu-plugins-victorops](https://codeship.com/projects/3639bc20-e210-0132-d166-3642858bbef8/status?branch=master)](https://codeship.com/projects/81382)
8
9
 
9
10
  ## Functionality
10
11
 
11
12
  ## Files
12
- * bin/handler-victorops
13
+ * bin/handler-victorops.rb
13
14
 
14
15
  ## Usage
15
16
 
@@ -23,39 +24,7 @@
23
24
  ```
24
25
  ## Installation
25
26
 
26
- Add the public key (if you haven’t already) as a trusted certificate
27
+ [Installation and Setup](https://github.com/sensu-plugins/documentation/blob/master/user_docs/installation_instructions.md)
27
28
 
28
- ```
29
- gem cert --add <(curl -Ls https://raw.githubusercontent.com/sensu-plugins/sensu-plugins.github.io/master/certs/sensu-plugins.pem)
30
- gem install sensu-plugins-victorops -P MediumSecurity
31
- ```
32
-
33
- You can also download the key from /certs/ within each repository.
34
-
35
- #### Rubygems
36
-
37
- `gem install sensu-plugins-victorops`
38
-
39
- #### Bundler
40
-
41
- Add *sensu-plugins-disk-checks* to your Gemfile and run `bundle install` or `bundle update`
42
-
43
- #### Chef
44
-
45
- Using the Sensu **sensu_gem** LWRP
46
- ```
47
- sensu_gem 'sensu-plugins-victorops' do
48
- options('--prerelease')
49
- version '0.0.1'
50
- end
51
- ```
52
-
53
- Using the Chef **gem_package** resource
54
- ```
55
- gem_package 'sensu-plugins-victorops' do
56
- options('--prerelease')
57
- version '0.0.1'
58
- end
59
- ```
60
29
 
61
30
  ## Notes
@@ -4,7 +4,6 @@
4
4
  # Released under the same terms as Sensu (the MIT license); see LICENSE
5
5
  # for details.
6
6
 
7
- require 'rubygems' if RUBY_VERSION < '1.9.0'
8
7
  require 'sensu-handler'
9
8
  require 'uri'
10
9
  require 'net/http'
@@ -15,7 +14,6 @@ require 'json'
15
14
  # VictorOps Handler
16
15
  #
17
16
  class VictorOps < Sensu::Handler
18
- # rubocop:disable Metrics/AbcSize
19
17
  def handle
20
18
  config = settings['victorops']
21
19
  incident_key = @event['client']['name'] + '/' + @event['check']['name']
@@ -0,0 +1,28 @@
1
+ require 'json'
2
+
3
+ # encoding: utf-8
4
+ module SensuPluginsVictorops
5
+ # This defines the version of the gem
6
+ module Version
7
+ MAJOR = 0
8
+ MINOR = 0
9
+ PATCH = 1
10
+
11
+ VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
12
+
13
+ NAME = 'sensu-plugins-victorops'
14
+ BANNER = "#{NAME} v%s"
15
+
16
+ module_function
17
+
18
+ def version
19
+ format(BANNER, VER_STRING)
20
+ end
21
+
22
+ def json_version
23
+ {
24
+ 'version' => VER_STRING
25
+ }.to_json
26
+ end
27
+ end
28
+ end
@@ -1,7 +1,15 @@
1
+
2
+ require 'sensu-plugins-victorops/version'
3
+
4
+ # Load the defaults
5
+
1
6
  #
2
- # Set gem version
7
+ # Default class
3
8
  #
4
9
  module SensuPluginsVictorops
5
- # Gem version
6
- VERSION = '0.0.1.alpha.2'
10
+ class << self
11
+ end
12
+
13
+ class << self
14
+ end
7
15
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-victorops
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.alpha.2
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
- - Yieldbot, Inc. and contributors
7
+ - Sensu Plugins 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-04-07 00:00:00.000000000 Z
33
+ date: 2015-05-21 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: sensu-plugin
@@ -78,16 +78,16 @@ dependencies:
78
78
  name: rubocop
79
79
  requirement: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - '='
81
+ - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: 0.17.0
83
+ version: '0.30'
84
84
  type: :development
85
85
  prerelease: false
86
86
  version_requirements: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - '='
88
+ - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: 0.17.0
90
+ version: '0.30'
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: rspec
93
93
  requirement: !ruby/object:Gem::Requirement
@@ -197,6 +197,7 @@ files:
197
197
  - README.md
198
198
  - bin/handler-victorops.rb
199
199
  - lib/sensu-plugins-victorops.rb
200
+ - lib/sensu-plugins-victorops/version.rb
200
201
  homepage: https://github.com/sensu-plugins/sensu-plugins-victorops
201
202
  licenses:
202
203
  - MIT
@@ -204,7 +205,10 @@ metadata:
204
205
  maintainer: ''
205
206
  development_status: unmaintained
206
207
  production_status: unstable - testing reccomended
207
- post_install_message:
208
+ release_draft: 'false'
209
+ release_prerelease: 'false'
210
+ post_install_message: You can use the embedded Ruby by setting EMBEDDED_RUBY=true
211
+ in /etc/default/sensu
208
212
  rdoc_options: []
209
213
  require_paths:
210
214
  - lib
@@ -215,14 +219,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
215
219
  version: 1.9.3
216
220
  required_rubygems_version: !ruby/object:Gem::Requirement
217
221
  requirements:
218
- - - ">"
222
+ - - ">="
219
223
  - !ruby/object:Gem::Version
220
- version: 1.3.1
224
+ version: '0'
221
225
  requirements: []
222
226
  rubyforge_project:
223
- rubygems_version: 2.2.2
227
+ rubygems_version: 2.4.6
224
228
  signing_key:
225
229
  specification_version: 4
226
230
  summary: Sensu plugins for Victorops alerting service
227
231
  test_files: []
228
- has_rdoc:
metadata.gz.sig CHANGED
@@ -1 +1 @@
1
- ^MSy|_�].W6a�ˈym�R�����,�V][F������79����2A�^t0ФQp��?����� �D(�!:��=�"BA���h(T�����&m�55���A}m���gC�A��������Ͳze����)0���� /$���n:#���/�����M&��u�>G�@��m6s�V�âVD{"���f|��W�:��� q� ���O�7ʬw�N��$�+���~C�R0f��Fv
1
+ O⁶ɹ�Ġ�R�O�).��!�B��t�����/�v�X@:�r��D~<�]�m�>Kj����tiϥ�نъ?¦��