object_tracker 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -0
- data/lib/object_tracker/version.rb +1 -1
- data/object_tracker.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c8b4debf6060da108ed0c52dc88b86f598d2109
|
4
|
+
data.tar.gz: da4e8383aec78b64682745890bd83bcb83cef0f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3ea2165293d94de73842e3cbbc0423c7b55b6a164721498b1b92d381eb244d417d6445534ad4c6f5d16e9ff4c3de80e48a64871d08913b5f7c1f5bf030df6cb
|
7
|
+
data.tar.gz: 88a67982df82a5c9b22098a1e2966d584b22714f9bd374c1668e8c8cc23ac3016bc7bf6fd6fb12f8524cac0e30dd086fb694ae89baae16138ea7218b6179520c
|
data/README.md
CHANGED
@@ -68,6 +68,17 @@ Dog.track_not :bad_doggy
|
|
68
68
|
Dog.track_all! #=> will exclude tracking for :bad_doggy
|
69
69
|
```
|
70
70
|
|
71
|
+
## Issues
|
72
|
+
|
73
|
+
* Doesn't work well (or at all) when trying to track Ruby core objects (`String`, `Array`, etc). You can work around this by
|
74
|
+
subclassing the target class before extending with `ObjectTracker`. For example:
|
75
|
+
|
76
|
+
```ruby
|
77
|
+
class MyArray < Array
|
78
|
+
extend ObjectTracker
|
79
|
+
end
|
80
|
+
```
|
81
|
+
|
71
82
|
## Contributing
|
72
83
|
|
73
84
|
1. Fork it ( https://github.com/[my-github-username]/object_tracker/fork )
|
data/object_tracker.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["arebuckley@gmail.com"]
|
11
11
|
spec.summary = %q{Track method calls to any object.}
|
12
12
|
spec.description = %q{Track method calls to any object. Both class and instance methods can be tracked with params}
|
13
|
-
spec.homepage =
|
13
|
+
spec.homepage = 'https://github.com/ridiculous/object_tracker'
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: object_tracker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Buckley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -54,7 +54,7 @@ files:
|
|
54
54
|
- lib/object_tracker.rb
|
55
55
|
- lib/object_tracker/version.rb
|
56
56
|
- object_tracker.gemspec
|
57
|
-
homepage:
|
57
|
+
homepage: https://github.com/ridiculous/object_tracker
|
58
58
|
licenses:
|
59
59
|
- MIT
|
60
60
|
metadata: {}
|