meeseeks 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +4 -2
- data/README.md +13 -1
- data/lib/meeseeks/version.rb +1 -1
- data/lib/meeseeks.rb +5 -1
- data/meeseeks.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0d4c7a27c97234ae282021ea371b3d0916ac6205c7a48e779716a019cd4bc6e
|
4
|
+
data.tar.gz: 04c1a09f0b94532db4e23a9ff3dad70ca5953e8340e79fbb3ba938710593e3f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a1113d5b353faaa9d4673b4853aeabb27c2f883ced1e02892e83063d86d7f6123a975bbcea93b102178e59ed0b2671321a5aa97bfe014930963cf8e3484bacf
|
7
|
+
data.tar.gz: dfab9865148653e8c4936ed9b02e90fa4ba8cd38f47a8aa2c61a82529b66b192de589560f64c869b2c342942af6d88feb7a82bf1db5238ebc8195b14b01a1acd
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
meeseeks (0.1.
|
4
|
+
meeseeks (0.1.6)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -13,6 +13,7 @@ GEM
|
|
13
13
|
docile (1.3.1)
|
14
14
|
ffi (1.9.25)
|
15
15
|
formatador (0.2.5)
|
16
|
+
gem-release (2.0.1)
|
16
17
|
guard (2.14.2)
|
17
18
|
formatador (>= 0.2.4)
|
18
19
|
listen (>= 2.7, < 4.0)
|
@@ -100,6 +101,7 @@ PLATFORMS
|
|
100
101
|
|
101
102
|
DEPENDENCIES
|
102
103
|
bundler (~> 1.16)
|
104
|
+
gem-release
|
103
105
|
guard-bundler (~> 2.1)
|
104
106
|
guard-rspec (~> 4.7)
|
105
107
|
guard-rubocop (~> 1.3)
|
@@ -110,4 +112,4 @@ DEPENDENCIES
|
|
110
112
|
simplecov-console (~> 0.4)
|
111
113
|
|
112
114
|
BUNDLED WITH
|
113
|
-
1.
|
115
|
+
1.17.1
|
data/README.md
CHANGED
@@ -31,7 +31,19 @@ You can also configure Meeseeks via environment variables
|
|
31
31
|
- `MEESEEKS_MAX_BATCH_SIZE=100`
|
32
32
|
- `MEESEEKS_MAX_QUEUE_SIZE=10000`
|
33
33
|
|
34
|
-
|
34
|
+
or via code:
|
35
|
+
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
> Meeseeks.configure(
|
39
|
+
data_submission_url: 'https://api.circonus.com/module/httptrap/2ds89as2-29e3-4155-a54a-4b7261419e11/secret',
|
40
|
+
interval: 60,
|
41
|
+
max_batch_size: 100,
|
42
|
+
max_queue_size: 10_000
|
43
|
+
)
|
44
|
+
```
|
45
|
+
|
46
|
+
*and then* use the singleton (to the same effect as the first example):
|
35
47
|
|
36
48
|
```ruby
|
37
49
|
Meeseeks.instance.record('group', 'metric', 22.02)
|
data/lib/meeseeks/version.rb
CHANGED
data/lib/meeseeks.rb
CHANGED
@@ -8,7 +8,11 @@ module Meeseeks
|
|
8
8
|
extend SingleForwardable
|
9
9
|
|
10
10
|
def self.instance
|
11
|
-
@instance ||= Meeseeks.new
|
11
|
+
@instance ||= Meeseeks.new(*@configuration || {})
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.configure(*args)
|
15
|
+
@configuration = args
|
12
16
|
end
|
13
17
|
|
14
18
|
def_delegators :instance, *::Meeseeks::Meeseeks.instance_methods(false)
|
data/meeseeks.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meeseeks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jannis Hermanns
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0.4'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: gem-release
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
125
139
|
description: Submits measurements to a circonus http trap
|
126
140
|
email:
|
127
141
|
- jannis.hermanns@joincoup.com
|