l2meter 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9dfbf4e39c16435603394a7404fbac26b60c5142
4
- data.tar.gz: 48cdfe785015cf19420daae0c1928b46b85d5f88
3
+ metadata.gz: 91837c28200d27818e80aa692d51c0db92afae3e
4
+ data.tar.gz: 49905f771389997d635fd7b9feb28d8d85d44c78
5
5
  SHA512:
6
- metadata.gz: 2baf257241f5b9975294db76308a3a52bf5a8908656123cbefd39dbba5f7e63ea8f44c9743ea9da9c35c0682d5f04e3fb496ac41120bfac4337e9954a5ca1093
7
- data.tar.gz: 1321770da5b2f42aef7c068325c0f9323673caf563487ce991d94df7f89167aa7495c6c5200562e4fcb2d0dceb36b41ce8251f8be5727e6e2fe6872c5d60c461
6
+ metadata.gz: efc23988c5abcc1e819d4143fcb6809ec2a1ecba23c08c712a85a19448dd32fc483fb4147bddd51595c2538b50a04e55f5e5c1c26db752ea8abd0497868a4493
7
+ data.tar.gz: ee9f7deb896de762da50cf52a5dfd03945b633bf017a82389dfeff74210df4c7f89c3bd4f96f8843f6b06246942e3e118b9368b27f1818633dafab2831279258
data/README.md CHANGED
@@ -93,7 +93,7 @@ Some other l2met-specific methods are supported.
93
93
  metrics.count :user_registered # => count#user-registered=1
94
94
  metrics.count :registered_users, 10 # => count#registered-users=10
95
95
 
96
- metrics.measure :connection_count, 20, # => measure#connection-count=235
96
+ metrics.measure :connection_count, 20 # => measure#connection-count=20
97
97
  metrics.measure :db_query, 235, unit: :ms, # => measure#db-query.ms=235
98
98
 
99
99
  metrics.sample :connection_count, 20, # => sample#connection-count=235
@@ -104,15 +104,15 @@ metrics.unique :user, "bob@example.com" # => unique#user=bob@example.com
104
104
 
105
105
  ### Configuration
106
106
 
107
- L2meter supports configurtion. Here's how you cna configure things:
107
+ L2meter supports configuration. Here's how you can configure things:
108
108
 
109
109
  ```ruby
110
110
  metrics = L2meter.build do |config|
111
- # configuration happen here
111
+ # configuration happens here
112
112
  end
113
113
  ```
114
114
 
115
- These are available configuration:
115
+ Here's the list of all configurable things:
116
116
 
117
117
  #### Global context
118
118
 
@@ -169,6 +169,7 @@ config.prefix = "my-app"
169
169
  # ...
170
170
 
171
171
  metrics.count :users, 100500 # => count#my-app.users=100500
172
+ ```
172
173
 
173
174
  ## Silence
174
175
 
@@ -66,7 +66,7 @@ module L2meter
66
66
  configuration_contexts.inject({}) do |result, c|
67
67
  current = c.respond_to?(:call) ? c.call.to_h : c.clone
68
68
  result.merge(current)
69
- end
69
+ end.to_a.reverse.to_h
70
70
  end
71
71
 
72
72
  def format_value(value)
@@ -1,3 +1,3 @@
1
1
  module L2meter
2
- VERSION = "0.0.5".freeze
2
+ VERSION = "0.0.6".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: l2meter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Pravosud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-15 00:00:00.000000000 Z
11
+ date: 2015-09-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: