sensu-plugins-supervisor-boutetnico 1.0.0 → 1.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: d9b11eaaf09f66aceb196d813fdc9ffc99424b6d
4
- data.tar.gz: 86770152b7cdddccd2d048dd29e09f873c96a79f
3
+ metadata.gz: 72ba6bb934a0366e30f2f1eb25edde70cdae6447
4
+ data.tar.gz: d7148659026026caccc06dac37a7e1679734c580
5
5
  SHA512:
6
- metadata.gz: 4ab5d98824a632e463d59b550cfda686246bf967d011f27cbb2a5102001f603b4e2734340ec9e0874f092ad89b557b113fc17c8fe4065fffac5125f00c3acae2
7
- data.tar.gz: 2cf86191bf8854a1ab3d038636f7b86a17fb4e2060612fa79a7e53bc47b4a1e63ca6652967c891091b0232711b4eedbe81057a21971683472287e35e61ea3946
6
+ metadata.gz: db6a83bb3f1f4e816c3d3cbaabce3c32acf92b0f650b3cb13ea203370316b1fbd9e6d883452fb3ab2967b076b3e0ed52b091ed1987b978e5b52ace2cb0e04aed
7
+ data.tar.gz: 723a3821ab6ef03f72be04b6923466fcb770406d356bbaf06ec6df07da6d8f74c3a93f43cb62ed67b3459ed39f5556af2b95538f4b4fcb7e9d04d1cc4f5bbb4e
data/README.md CHANGED
@@ -17,179 +17,4 @@ This fork is automatically tested, built and published to [RubyGems](https://rub
17
17
 
18
18
  [Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
19
19
 
20
- ### Some extra info on a hack regarding xmlrpc
21
- So in ruby 2.4 they removed `xmlrpc` from stdlib and made it a ruby gem. As this gem is only installable on 2.3 (according to doc but most users report being unable to install in 2.3) this creates problems. On the surface you might think that we could do something like this in the `.gemspec`:
22
-
23
- ```ruby
24
- if RUBY_VERSION >= "2.4"
25
- installer.install "xmlrpc", "~> 0.3"
26
- end
27
- ```
28
-
29
- However this is not something we need evaluated at build time but actually at install time. Ruby does not have a great way of doing this but we can accomplish this by using a c extension to force this behavior at run time. This was based off: http://www.programmersparadox.com/2012/05/21/gemspec-loading-dependent-gems-based-on-the-users-system/
30
-
31
- ### Testing this behavior
32
- I have included 2 dockerfiles to test installing on ruby 2.3 and ruby 2.4.
33
-
34
- #### Building
35
- Ruby 2.2:
36
- ```
37
- $ docker build -f Dockerfile-ruby2.2 .
38
- Sending build context to Docker daemon 221.2kB
39
- Step 1/6 : FROM ruby:2.2-slim
40
- 2.2-slim: Pulling from library/ruby
41
- 10a267c67f42: Already exists
42
- 0aaa89427703: Already exists
43
- 4e4351445696: Already exists
44
- 72c399ee88ad: Pull complete
45
- cd4fc9895ed7: Pull complete
46
- 00facae99acf: Pull complete
47
- Digest: sha256:9f39e5306ac98b6ff46a7f5247ace88b4e3723a3fe04dcfa317cabed07dadd8f
48
- Status: Downloaded newer image for ruby:2.2-slim
49
- ---> 81e5c2fd16a9
50
- Step 2/6 : RUN mkdir /usr/src/app
51
- ---> Running in f92de1d4ae5a
52
- ---> 7e0786e64a4a
53
- Removing intermediate container f92de1d4ae5a
54
- Step 3/6 : ADD . /usr/src/app
55
- ---> 9d2cb5c24d80
56
- Removing intermediate container e52c9e26d2cc
57
- Step 4/6 : WORKDIR /usr/src/app
58
- ---> 94d1e262851f
59
- Removing intermediate container 427d79912bd9
60
- Step 5/6 : RUN apt-get update && apt-get install -y build-essential
61
- ---> Running in 62819ad68ade
62
- <INTENTIONALLY_REMOVED_OUTPUT_FROM_APT>
63
- ---> 4ee671ec2163
64
- Removing intermediate container 62819ad68ade
65
- Step 6/6 : CMD ./docker-test
66
- ---> Running in 25d0d0e45692
67
- ---> d0339d43c554
68
- Removing intermediate container 25d0d0e45692
69
- Successfully built d0339d43c554
70
- ```
71
-
72
- Ruby 2.3:
73
- ```
74
- $ docker build -f Dockerfile-ruby2.3 .
75
- Sending build context to Docker daemon 179.7kB
76
- Step 1/6 : FROM ruby:2.3-slim
77
- ---> 684863def0d3
78
- Step 2/6 : RUN mkdir /usr/src/app
79
- ---> Using cache
80
- ---> e62979ea3e34
81
- Step 3/6 : ADD . /usr/src/app
82
- ---> 7bbdf2f16ff5
83
- Removing intermediate container bdaf432e06fe
84
- Step 4/6 : WORKDIR /usr/src/app
85
- ---> b9b014ac62a2
86
- Removing intermediate container 0f9ebd7711ff
87
- Step 5/6 : RUN apt-get update && apt-get install -y build-essential
88
- ---> Running in 06d6ce00c56d
89
- <INTENTIONALLY_REMOVED_OUTPUT_FROM_APT>
90
- ---> 30e212e3dc48
91
- Removing intermediate container 06d6ce00c56d
92
- Step 6/6 : CMD ./docker-test
93
- ---> Running in a1205ff9acce
94
- ---> e9e3c5affbc0
95
- Removing intermediate container a1205ff9acce
96
- Successfully built e9e3c5affbc0
97
- ```
98
-
99
- Ruby 2.4:
100
- ```
101
- $ docker build -f Dockerfile-ruby2.4 .
102
- Sending build context to Docker daemon 178.2kB
103
- Step 1/6 : FROM ruby:2.4-slim
104
- ---> 6dd077757d49
105
- Step 2/6 : RUN mkdir /usr/src/app
106
- ---> Using cache
107
- ---> 4f45395487f3
108
- Step 3/6 : ADD . /usr/src/app
109
- ---> fd2af990b369
110
- Removing intermediate container 6b5e7cc4a515
111
- Step 4/6 : WORKDIR /usr/src/app
112
- ---> f2019fc2ae01
113
- Removing intermediate container d471aea79711
114
- Step 5/6 : RUN apt-get update && apt-get install -y build-essential
115
- ---> Running in 3f9106d17a3d
116
- <INTENTIONALLY_REMOVED_OUTPUT_FROM_APT>
117
- ---> ae1a635f5731
118
- Removing intermediate container 3f9106d17a3d
119
- Step 6/6 : CMD ./docker-test
120
- ---> Running in ccc8b4be1d08
121
- ---> 6d927a3f6fd1
122
- Removing intermediate container ccc8b4be1d08
123
- Successfully built 6d927a3f6fd1
124
- ```
125
-
126
- #### Validation
127
- Ruby 2.2:
128
- ```
129
- $ docker run d0339d43c554
130
- WARNING: pessimistic dependency on ox (~> 2.5.0) may be overly strict
131
- if ox is semantically versioned, use:
132
- add_runtime_dependency 'ox', '~> 2.5', '>= 2.5.0'
133
- WARNING: See http://guides.rubygems.org/specification-reference/ for help
134
- Successfully built RubyGem
135
- Name: sensu-plugins-supervisor
136
- Version: 1.1.0
137
- File: sensu-plugins-supervisor-1.1.0.gem
138
- Successfully installed mixlib-cli-1.7.0
139
- Successfully installed sensu-plugin-1.4.5
140
- Successfully installed ruby-supervisor-0.0.2
141
- Building native extensions. This could take a while...
142
- Successfully installed ox-2.5.0
143
- Building native extensions. This could take a while...
144
- You can use the embedded Ruby by setting EMBEDDED_RUBY=true in /etc/default/sensu
145
- Successfully installed sensu-plugins-supervisor-1.1.0
146
- 5 gems installed
147
- ```
148
-
149
- Ruby 2.3:
150
- ```
151
- $ docker run e9e3c5affbc0
152
- WARNING: pessimistic dependency on ox (~> 2.5.0) may be overly strict
153
- if ox is semantically versioned, use:
154
- add_runtime_dependency 'ox', '~> 2.5', '>= 2.5.0'
155
- WARNING: See http://guides.rubygems.org/specification-reference/ for help
156
- Successfully built RubyGem
157
- Name: sensu-plugins-supervisor
158
- Version: 1.1.0
159
- File: sensu-plugins-supervisor-1.1.0.gem
160
- Successfully installed mixlib-cli-1.7.0
161
- Successfully installed sensu-plugin-1.4.5
162
- Successfully installed ruby-supervisor-0.0.2
163
- Building native extensions. This could take a while...
164
- Successfully installed ox-2.5.0
165
- Building native extensions. This could take a while...
166
- You can use the embedded Ruby by setting EMBEDDED_RUBY=true in /etc/default/sensu
167
- Successfully installed sensu-plugins-supervisor-1.1.0
168
- 5 gems installed
169
- ```
170
-
171
- Ruby 2.4:
172
- ```
173
- $ docker run 6d927a3f6fd1
174
- WARNING: pessimistic dependency on ox (~> 2.5.0) may be overly strict
175
- if ox is semantically versioned, use:
176
- add_runtime_dependency 'ox', '~> 2.5', '>= 2.5.0'
177
- WARNING: See http://guides.rubygems.org/specification-reference/ for help
178
- Successfully built RubyGem
179
- Name: sensu-plugins-supervisor
180
- Version: 1.1.0
181
- File: sensu-plugins-supervisor-1.1.0.gem
182
- Building native extensions. This could take a while...
183
- Successfully installed json-1.8.6
184
- Successfully installed mixlib-cli-1.7.0
185
- Successfully installed sensu-plugin-1.4.5
186
- Successfully installed ruby-supervisor-0.0.2
187
- Building native extensions. This could take a while...
188
- Successfully installed ox-2.5.0
189
- Building native extensions. This could take a while...
190
- You can use the embedded Ruby by setting EMBEDDED_RUBY=true in /etc/default/sensu
191
- Successfully installed sensu-plugins-supervisor-1.1.0
192
- 6 gems installed
193
- ```
194
-
195
20
  ## Notes
@@ -2,7 +2,7 @@ module SensuPluginsSupervisor
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-supervisor-boutetnico
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '4.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: xmlrpc
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.3'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.3'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: bundler
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -185,8 +199,7 @@ email: ""
185
199
  executables:
186
200
  - check-supervisor.rb
187
201
  - check-supervisor-socket.rb
188
- extensions:
189
- - ext/mkrf_conf.rb
202
+ extensions: []
190
203
  extra_rdoc_files: []
191
204
  files:
192
205
  - CHANGELOG.md
@@ -194,7 +207,6 @@ files:
194
207
  - README.md
195
208
  - bin/check-supervisor-socket.rb
196
209
  - bin/check-supervisor.rb
197
- - ext/mkrf_conf.rb
198
210
  - lib/sensu-plugins-supervisor.rb
199
211
  - lib/sensu-plugins-supervisor/version.rb
200
212
  homepage: https://github.com/boutetnico/sensu-plugins-supervisor
@@ -1,28 +0,0 @@
1
- # This file needs to be named mkrf_conf.rb
2
- # so that rubygems will recognize it as a ruby extension
3
- # file and not think it is a C extension file
4
-
5
- require 'rubygems/dependency_installer.rb'
6
-
7
- # Load up the rubygem's dependency installer to
8
- # installer the gems we want based on the version
9
- # of Ruby the user has installed
10
-
11
- installer = Gem::DependencyInstaller.new
12
-
13
- begin
14
- if RUBY_VERSION >= '2.4'
15
- installer.install 'xmlrpc', '~> 0.3'
16
- end
17
- rescue => e
18
- p e
19
- # Exit with a non-zero value to let rubygems something went wrong
20
- exit(1)
21
- end
22
-
23
- # If this was C, rubygems would attempt to run make
24
- # Since this is Ruby, rubygems will attempt to run rake
25
- # If it doesn't find and successfully run a rakefile, it errors out
26
- f = File.open(File.join(File.dirname(__FILE__), 'Rakefile'), 'w')
27
- f.write("task :default\n")
28
- f.close