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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dce7f0462d683c41764e5fcab83fd0e1ac016412
4
- data.tar.gz: 572ba0c5e68bbd190a73223ea0490a5ec478c672
3
+ metadata.gz: 9e4433311353051b0502d70350065ddf9e6f22a5
4
+ data.tar.gz: 02d8eb1c88acf21a715628296246592aafded04e
5
5
  SHA512:
6
- metadata.gz: 24e04c8e22b8ea43104338d1765f01a1ca54761068f49c5ef3a50355bde85db544ad7caf5beb26f4dad3803a47e94435d36433bfda8cf16908dbc0681ce9ea49
7
- data.tar.gz: 6029294259d561e798dee7a92b3d0a11643378b9c4da0efa17d76bb390b1d40809771430f7a27f4268dd0df9149410f3b1f993a91f51c6a99a35c0af6a20ae5a
6
+ metadata.gz: c114850840ff27e691be197eafc9e8d5e2f85e2eb67de0a4c1edd1cffd978ee792f7adf77f1ada65f6b3a0f7c83bfd4a79eaf553fa2cc8081ad5cd4de98efa08
7
+ data.tar.gz: cfa34555b39025295acfc42f58b16460d8178c52946f2c5ab5dfbfd3904236e78c8bd32764c90706290071d926f71a8b3c263d3019aec0ef94bfd487672f3a5e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bernard (1.0.0)
4
+ bernard (1.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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.0.0'
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
@@ -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://github.com/dxw/bernard'
14
+ gem.homepage = 'https://rubygems.org/gems/bernard'
15
15
  gem.license = 'MIT'
16
16
 
17
17
  gem.require_paths = ['lib']
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Bernard
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
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.0.0
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://github.com/dxw/bernard
97
+ homepage: https://rubygems.org/gems/bernard
98
98
  licenses:
99
99
  - MIT
100
100
  metadata: {}