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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8a0a151c08bf506a173bb9de62e082287bfd445e3fa472c418d95e5db737703
4
- data.tar.gz: 380a26f7598ba2ad6cdb8860235957a65527dd34c13e68fe7f00b3764fdd42c7
3
+ metadata.gz: b0d4c7a27c97234ae282021ea371b3d0916ac6205c7a48e779716a019cd4bc6e
4
+ data.tar.gz: 04c1a09f0b94532db4e23a9ff3dad70ca5953e8340e79fbb3ba938710593e3f7
5
5
  SHA512:
6
- metadata.gz: 96f1db2392ebebc6e843ee117fdfa80ad1aedb4194eaa2834cb36be3b54b80bac16925f048ede997ff6a6ba2c7c23a56c21afd4499ed63040617fe0b061a12a7
7
- data.tar.gz: 5a487c1c8c8167ed5af4b87aca6e2f18a22e74fb179b49781d3447f33d408d391689538027cf980ccca3e38666f23446d52fdf4ee135dbc34ac1ed1e6327e0a3
6
+ metadata.gz: 7a1113d5b353faaa9d4673b4853aeabb27c2f883ced1e02892e83063d86d7f6123a975bbcea93b102178e59ed0b2671321a5aa97bfe014930963cf8e3484bacf
7
+ data.tar.gz: dfab9865148653e8c4936ed9b02e90fa4ba8cd38f47a8aa2c61a82529b66b192de589560f64c869b2c342942af6d88feb7a82bf1db5238ebc8195b14b01a1acd
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ **/*.swp
1
2
  /.bundle/
2
3
  /.yardoc
3
4
  /_yardoc/
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- meeseeks (0.1.5)
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.16.4
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
- and use the singleton (to the same effect as the example above):
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Meeseeks
4
- VERSION = '0.1.5'
4
+ VERSION = '0.1.6'
5
5
  end
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
@@ -27,4 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency 'rspec', '~> 3.0'
28
28
  spec.add_development_dependency 'simplecov', '~> 0.15'
29
29
  spec.add_development_dependency 'simplecov-console', '~> 0.4'
30
+ spec.add_development_dependency 'gem-release'
30
31
  end
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.5
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-10-23 00:00:00.000000000 Z
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