monus 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/monus.rb +5 -0
  3. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d06a333007c12ef83cbf10f6b52d25f8cdd38717
4
- data.tar.gz: fee56317634433c00b9da1e8c6c61b73e22470c8
3
+ metadata.gz: 81662e231bb4bc471c0b68a42d037c1696ab076f
4
+ data.tar.gz: bc184ca23b5c5cafff29e25120ad4f5aa5890adc
5
5
  SHA512:
6
- metadata.gz: c2452aaece8e5a2278cec6a48155669fddb160d498289b3fb672a732888d492465f1ef15835cc63bb0a64edf82c8e5a39f327cde8844f84847d6253eb4836ae2
7
- data.tar.gz: 2283d374c3977ac89f9795e486df93416c1e2326a1d775760d68cdd21ad32ceb10868746f738dad515eeb9f75fd48ad842755ea437081d1d7e26dfa179fb8dd8
6
+ metadata.gz: b0cab0bbd990d9ed019aec06fb39fab5b10481d498e23751bcf3062ef33634efad4926040cea609f9569dba6d03f695f10f2d2322f897f8e277a6d890fa96665
7
+ data.tar.gz: d53b12a4e955f6839c59b8faceab9d6556e6beee641f383036afcc2c8691b418c07e787a63697c0ac11b6dbc5918eb5a467316e4a8beff41c092b2221fb072c6
data/lib/monus.rb CHANGED
@@ -64,6 +64,11 @@ module Monus
64
64
  def self.refuse(field)
65
65
  set field, false
66
66
  end
67
+
68
+ # TODO: inner cache and per-second sending
69
+ def self.add(field, count = 1)
70
+ set field, count
71
+ end
67
72
  end
68
73
 
69
74
  require_relative 'monus/engine'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xanders
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-26 00:00:00.000000000 Z
11
+ date: 2019-07-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Monus is an in-process monitoring library for several backends and engines
14
14
  email: necropolis@inbox.ru
@@ -49,9 +49,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
49
  version: '0'
50
50
  requirements: []
51
51
  rubyforge_project:
52
- rubygems_version: 2.4.5.1
52
+ rubygems_version: 2.6.13
53
53
  signing_key:
54
54
  specification_version: 4
55
55
  summary: God of Monitoring
56
56
  test_files: []
57
- has_rdoc: