busted 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/README.md +10 -11
- data/dtrace/probes/examples/method-cache-clear.d +1 -1
- data/lib/busted/version.rb +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: 4b2f09dd75ef91b3714f55d44f195ef30492d6bb
|
4
|
+
data.tar.gz: 539f8e9ca781ea35895c26b3a090a70b5c408beb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f222d51d2ade0ad55de451ddc982895dc022443fcdead8c3463ea0da24dbc75f4376260a6942ce5569b2a219ea40e8939530afd32ae3e63f85ae6eb8f3ae46cc
|
7
|
+
data.tar.gz: 7be3029d528cdc9baac2ae6a3c3b0749e80cff86f7581efbbc884c99beeb38a51472d55b750ad4af960211373d4bc653d8d81cab9ba76b5d26bc52e6213d3e53
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.0
|
1
|
+
2.1.0
|
data/README.md
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
# Busted [![Build Status](https://travis-ci.org/simeonwillbanks/busted.png?branch=master)](https://travis-ci.org/simeonwillbanks/busted) [![Code Climate](https://codeclimate.com/github/simeonwillbanks/busted.png)](https://codeclimate.com/github/simeonwillbanks/busted)
|
2
2
|
|
3
|
-
|
4
|
-
- Requires MRI Ruby 2.1.0dev at [trunk](https://github.com/ruby/ruby/tree/trunk)
|
3
|
+
### Find code that busts the Ruby 2.1+ cache.
|
5
4
|
|
6
|
-
|
5
|
+
**Busted** reports when code invalidates Ruby's internal cache.
|
7
6
|
|
8
|
-
|
7
|
+
- [Basic Usage](#basic-usage) reports cache invalidations
|
8
|
+
- [Advanced Usage](#advanced-usage) details exact invalidation locations via [`dtrace`](http://en.wikipedia.org/wiki/DTrace)
|
9
|
+
- [Coming Soon](https://github.com/simeonwillbanks/busted/issues/2) a Rails profiler for reporting cache invalidations per request
|
10
|
+
- **Busted** relies upon [RubyVM.stat](http://ruby-doc.org/core-2.1.0/RubyVM.html#method-c-stat) and the [ruby:::method-cache-clear](http://ruby-doc.org/core-2.1.0/doc/dtrace_probes_rdoc.html) `dtrace` probe
|
9
11
|
|
10
|
-
|
11
|
-
- Uses [RubyVM.stat](https://github.com/ruby/ruby/commit/cc1063092b366a0a8449528ab6bf67a72f5ce027)
|
12
|
-
|
13
|
-
## Usage
|
12
|
+
## Basic Usage
|
14
13
|
|
15
14
|
*Any Cache*
|
16
15
|
|
@@ -106,7 +105,7 @@ Busted.finish
|
|
106
105
|
```
|
107
106
|
|
108
107
|
## Advanced Usage
|
109
|
-
Busted can report method cache invalidation locations via [`dtrace`](http://en.wikipedia.org/wiki/DTrace). The running process must have root privileges, and `dtrace` must be installed.
|
108
|
+
**Busted** can report method cache invalidation locations via [`dtrace`](http://en.wikipedia.org/wiki/DTrace). The running process must have root privileges, and `dtrace` must be installed.
|
110
109
|
|
111
110
|
*trace.rb*
|
112
111
|
```ruby
|
@@ -161,11 +160,11 @@ $ ruby start_finish_trace.rb
|
|
161
160
|
[{:class=>"global", :sourcefile=>"start_finish_trace.rb", :lineno=>"5"}]}}
|
162
161
|
```
|
163
162
|
|
164
|
-
Busted includes an [example `dtrace` probe](/dtrace/probes/examples/method-cache-clear.d) for use on the command line or an application. See the [probe](/dtrace/probes/examples/method-cache-clear.d) for usage.
|
163
|
+
**Busted** includes an [example `dtrace` probe](/dtrace/probes/examples/method-cache-clear.d) for use on the command line or an application. See the [probe](/dtrace/probes/examples/method-cache-clear.d) for usage.
|
165
164
|
|
166
165
|
## Installation
|
167
166
|
|
168
|
-
***Requires MRI Ruby 2.1
|
167
|
+
***Requires MRI Ruby 2.1+***
|
169
168
|
|
170
169
|
Add this line to your application's Gemfile:
|
171
170
|
|
data/lib/busted/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: busted
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simeon F. Willbanks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|
89
89
|
rubyforge_project:
|
90
|
-
rubygems_version: 2.
|
90
|
+
rubygems_version: 2.2.0
|
91
91
|
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: MRI Ruby defines RubyVM.stat which accesses internal cache counters. When
|