perus 1.0.1 → 1.0.6

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
- SHA1:
3
- metadata.gz: aa3ab7e03d409d2fef50644965e75f25febf3518
4
- data.tar.gz: 80e936a23bdf3b630490717f256e128a28c5aea4
2
+ SHA256:
3
+ metadata.gz: 87caae4df623f78890eefdc0a6c7776d46f4a35e2695dea857b3d4259c42dfc5
4
+ data.tar.gz: ff775d43d444a779d0f432252066eada54ae194d638a328abe030e9a96c0a153
5
5
  SHA512:
6
- metadata.gz: 3fd4b859f54bfdff83f372274200e448890276363e2ac04f6940ff4ea6c96d0b99899f5a28a99ecf00a3ca196be8d65306b04a38db526e9a0e8b1d209fcb9dfd
7
- data.tar.gz: bdf8738cb4288c7ae14704792d9d2b1a6efaf8b04dfe231dddca204e5b18da5ecb68f52720092380ca057f46123562a34245b6bbb06bfcb5063ed94ba275b9a1
6
+ metadata.gz: 822f821316098ac6bca1db36bffa87b6fa3f7d23080c686cecfb29c126d792dd046a7c19f54ecb6a849291dce9809708d167bf24956c4fe05155e09b70cb3a03
7
+ data.tar.gz: 8eb3e6df3782997f0db6a6cc0ef20f3e2fad11bf75867f9c2c34b0f7918946713e8cda597dc844261d1da7bd1917c606ef1a8e95d43c5a04d4ca96b8356e330c
@@ -8,7 +8,7 @@ module Perus
8
8
 
9
9
  def load(path, defaults)
10
10
  if File.exists?(path)
11
- user_options = IniParse.parse(IO.read(path)).to_h
11
+ user_options = IniParse.parse(IO.read(path))
12
12
  else
13
13
  user_options = {}
14
14
  end
@@ -26,7 +26,7 @@ module Perus::Pinger
26
26
 
27
27
  if restricted
28
28
  allowed = Pinger.options[@command.name.demodulize][@name.to_s]
29
- raise "the value passed to #{@name} is not allowed" unless allowed.include?(value)
29
+ raise "the value, #{value}, passed to #{@name} is not allowed" unless allowed.include?(value)
30
30
  end
31
31
 
32
32
  results[name] = value
@@ -2,7 +2,7 @@ module Perus::Pinger
2
2
  class Temp < Command
3
3
  description 'Measures the temperature of "device" on the client. By
4
4
  default, this will be a CPU.'
5
- option :device, default: 'Physical id 0'
5
+ option :device, default: 'Package id 0'
6
6
  metric!
7
7
 
8
8
  def run
@@ -1,8 +1,16 @@
1
1
  Sequel.migration do
2
- change do
3
- change_column :values, :timestamp, :bigint
4
- change_column :errors, :timestamp, :bigint
5
- change_column :actions, :timestamp, :bigint
6
- change_column :active_alerts, :timestamp, :bigint
2
+ up do
3
+ execute("ALTER TABLE values ALTER COLUMN timestamp TYPE bigint")
4
+ execute("ALTER TABLE errors ALTER COLUMN timestamp TYPE bigint")
5
+ execute("ALTER TABLE actions ALTER COLUMN timestamp TYPE bigint")
6
+ execute("ALTER TABLE active_alerts ALTER COLUMN timestamp TYPE bigint")
7
+
8
+ execute("ALTER TABLE values ALTER COLUMN id TYPE bigint")
9
+ execute("ALTER TABLE metrics ALTER COLUMN id TYPE bigint")
10
+ execute("ALTER TABLE alerts ALTER COLUMN id TYPE bigint")
11
+ execute("ALTER TABLE active_alerts ALTER COLUMN id TYPE bigint")
12
+
13
+ # If a reset needs to be made due to ID limit
14
+ # "ALTER SEQUENCE values_id_seq RESTART WITH 1;"
7
15
  end
8
16
  end
@@ -1,3 +1,3 @@
1
1
  module Perus
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.6"
3
3
  end
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.add_dependency 'concurrent-ruby', '~> 0.8'
26
26
  spec.add_dependency 'faye-websocket', '~> 0.10'
27
27
  spec.add_dependency 'websocket-driver', '>= 0.6.4'
28
- spec.add_dependency 'rest-client', '~> 1.8'
28
+ spec.add_dependency 'rest-client', '~> 2.1.0'
29
29
  spec.add_dependency 'sinatra', '~> 1.4'
30
30
  spec.add_dependency 'sinatra-contrib', '~> 1.4'
31
31
  spec.add_dependency 'sequel', '~> 4.23'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Cannings
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-10 00:00:00.000000000 Z
11
+ date: 2020-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.8'
103
+ version: 2.1.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.8'
110
+ version: 2.1.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: sinatra
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -192,7 +192,7 @@ dependencies:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0.10'
195
- description:
195
+ description:
196
196
  email:
197
197
  - me@willcannings.com
198
198
  executables:
@@ -333,7 +333,7 @@ homepage: https://github.com/cotag/perus
333
333
  licenses:
334
334
  - MIT
335
335
  metadata: {}
336
- post_install_message:
336
+ post_install_message:
337
337
  rdoc_options: []
338
338
  require_paths:
339
339
  - lib
@@ -348,9 +348,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
348
348
  - !ruby/object:Gem::Version
349
349
  version: '0'
350
350
  requirements: []
351
- rubyforge_project:
352
- rubygems_version: 2.6.14
353
- signing_key:
351
+ rubyforge_project:
352
+ rubygems_version: 2.7.7
353
+ signing_key:
354
354
  specification_version: 4
355
355
  summary: Simple system overview server
356
356
  test_files: []