bernard 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +7 -1
- data/bernard.gemspec +1 -1
- data/lib/bernard/keen/methods.rb +4 -0
- data/lib/bernard/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e4433311353051b0502d70350065ddf9e6f22a5
|
4
|
+
data.tar.gz: 02d8eb1c88acf21a715628296246592aafded04e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c114850840ff27e691be197eafc9e8d5e2f85e2eb67de0a4c1edd1cffd978ee792f7adf77f1ada65f6b3a0f7c83bfd4a79eaf553fa2cc8081ad5cd4de98efa08
|
7
|
+
data.tar.gz: cfa34555b39025295acfc42f58b16460d8178c52946f2c5ab5dfbfd3904236e78c8bd32764c90706290071d926f71a8b3c263d3019aec0ef94bfd487672f3a5e
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -12,7 +12,7 @@ Currently supporting:
|
|
12
12
|
|
13
13
|
Add this line to your application's Gemfile:
|
14
14
|
```ruby
|
15
|
-
gem 'bernard', '~> 1.
|
15
|
+
gem 'bernard', '~> 1.1.0'
|
16
16
|
```
|
17
17
|
|
18
18
|
And then execute:
|
@@ -55,6 +55,12 @@ Update an event to a new value.
|
|
55
55
|
client.gauge('office_noise_level', '43')
|
56
56
|
```
|
57
57
|
|
58
|
+
### Splat
|
59
|
+
|
60
|
+
Update an event to a new value.
|
61
|
+
```ruby
|
62
|
+
client.splat('languages', value: { english: 2, italian: 3 })
|
63
|
+
```
|
58
64
|
---
|
59
65
|
|
60
66
|
## Advanced configuration
|
data/bernard.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.authors = ['Tom Hipkin', 'Robert Lee-Cann']
|
12
12
|
gem.email = ['tomh@dxw.com', 'leeky@dxw.com']
|
13
13
|
gem.files = ['lib/bernard.rb']
|
14
|
-
gem.homepage = 'https://
|
14
|
+
gem.homepage = 'https://rubygems.org/gems/bernard'
|
15
15
|
gem.license = 'MIT'
|
16
16
|
|
17
17
|
gem.require_paths = ['lib']
|
data/lib/bernard/keen/methods.rb
CHANGED
@@ -13,6 +13,10 @@ module Bernard
|
|
13
13
|
write(:gauge, type: event, value: Float(value))
|
14
14
|
end
|
15
15
|
|
16
|
+
def splat(event, hash)
|
17
|
+
write(:splat, type: event, value: hash)
|
18
|
+
end
|
19
|
+
|
16
20
|
private def write(event, metadata)
|
17
21
|
event = String(event).downcase
|
18
22
|
payload = metadata.merge!(default_params).to_json
|
data/lib/bernard/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bernard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Hipkin
|
@@ -94,7 +94,7 @@ files:
|
|
94
94
|
- lib/bernard/keen/methods.rb
|
95
95
|
- lib/bernard/schema.rb
|
96
96
|
- lib/bernard/version.rb
|
97
|
-
homepage: https://
|
97
|
+
homepage: https://rubygems.org/gems/bernard
|
98
98
|
licenses:
|
99
99
|
- MIT
|
100
100
|
metadata: {}
|