instrumentable 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -3
- data/instrumentable.gemspec +2 -2
- data/lib/instrumentable/version.rb +1 -1
- metadata +5 -6
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Instrumentable (
|
1
|
+
# Instrumentable [![Gem Version](https://badge.fury.io/rb/instrumentable.png)](http://badge.fury.io/rb/instrumentable)
|
2
2
|
-note, this version is not backwards compatiable
|
3
3
|
|
4
4
|
Decorate all your favorite methods with ActiveSupport::Notifications.instrument
|
@@ -12,7 +12,7 @@ as well
|
|
12
12
|
|
13
13
|
Add this line to your application's Gemfile:
|
14
14
|
|
15
|
-
gem "instrumentable", "~> 1.
|
15
|
+
gem "instrumentable", "~> 1.1.0"
|
16
16
|
|
17
17
|
And then execute:
|
18
18
|
|
@@ -55,7 +55,7 @@ What is sent to the subscriber depends on what is passed in as the value
|
|
55
55
|
+ ex: ```Proc.new { Time.now }```
|
56
56
|
+ calls the proc, returning the value
|
57
57
|
|
58
|
-
All payloads will recieve a list of the
|
58
|
+
All payloads will recieve a list of the arguments called with the method under
|
59
59
|
```:_method_args```, this will be an empty array if the method was called with no args
|
60
60
|
|
61
61
|
If you want to instrument a class method, you must use a separate method
|
data/instrumentable.gemspec
CHANGED
@@ -10,9 +10,9 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.email = ["siyegen@gmail.com"]
|
11
11
|
gem.description = %q{Gem for decorating methods to use with ActiveSupport::Notifications}
|
12
12
|
gem.summary = %q{Gem for decorating methods to use with ActiveSupport::Notifications}
|
13
|
-
gem.homepage = ""
|
13
|
+
gem.homepage = "https://github.com/siyegen/instrumentable"
|
14
14
|
|
15
|
-
gem.add_dependency 'activesupport', "
|
15
|
+
gem.add_dependency 'activesupport', ">= 3.2"
|
16
16
|
gem.add_development_dependency 'minitest'
|
17
17
|
|
18
18
|
gem.files = `git ls-files`.split($/)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: instrumentable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,14 +9,14 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-09-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '3.2'
|
22
22
|
type: :runtime
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '3.2'
|
30
30
|
- !ruby/object:Gem::Dependency
|
@@ -60,7 +60,7 @@ files:
|
|
60
60
|
- lib/instrumentable/version.rb
|
61
61
|
- test/instrumentable_test.rb
|
62
62
|
- test/minitest_helper.rb
|
63
|
-
homepage:
|
63
|
+
homepage: https://github.com/siyegen/instrumentable
|
64
64
|
licenses: []
|
65
65
|
post_install_message:
|
66
66
|
rdoc_options: []
|
@@ -87,4 +87,3 @@ summary: Gem for decorating methods to use with ActiveSupport::Notifications
|
|
87
87
|
test_files:
|
88
88
|
- test/instrumentable_test.rb
|
89
89
|
- test/minitest_helper.rb
|
90
|
-
has_rdoc:
|