watchman-rails 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -3
- data/lib/watchman/rails/controller_benchmark.rb +1 -3
- data/lib/watchman/rails/version.rb +1 -1
- data/watchman-rails.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e22ae08e71d5d245909eec4bbe426ac8539b608c
|
4
|
+
data.tar.gz: 48ab3a9a7ac1043fc30421d2416c34e9e824cac2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b821b0bf9757874f4952343ca9213c186d55ae1f9f6f6cde18d101a480060cc67b5459b284850e5a6e62760381a695a36774dca1d1da12ee70fe7f6210fd147
|
7
|
+
data.tar.gz: 90562cf521cd8aa1515b8a77e2191a0fcb116c5be7fbf074b1232dc7a8924fc48058e0eef884ca5bdd4cd607ab2113d72f10d5c1c48e834bee9fd3dde39fdb94
|
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Watchman Rails
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/watchman-rails.svg)](https://badge.fury.io/rb/watchman-rails)
|
4
|
+
[![Build Status](https://semaphoreci.com/api/v1/shiroyasha/watchman-rails/branches/master/badge.svg)](https://semaphoreci.com/shiroyasha/watchman-rails)
|
5
|
+
|
3
6
|
[Watchman](https://github.com/renderedtext/watchman) extensions for Rails applications.
|
4
7
|
|
5
8
|
## Installation
|
@@ -44,15 +47,15 @@ end
|
|
44
47
|
|
45
48
|
When a request arrives, the following benchmark metric will be saved:
|
46
49
|
|
47
|
-
```
|
48
|
-
rails.controllers
|
50
|
+
``` ruby
|
51
|
+
rails.controllers :tags => ["users", "show"]
|
49
52
|
```
|
50
53
|
|
51
54
|
In the generic case, the following metric will be generated for your
|
52
55
|
controllers:
|
53
56
|
|
54
57
|
``` ruby
|
55
|
-
rails.controllers
|
58
|
+
rails.controllers :tags => [<controller_name>, <action>]
|
56
59
|
```
|
57
60
|
|
58
61
|
## Development
|
@@ -15,9 +15,7 @@ class Watchman
|
|
15
15
|
.gsub("/", "_")
|
16
16
|
.gsub(/_controller$/, "")
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
Watchman.benchmark(name) { yield }
|
18
|
+
Watchman.benchmark("rails.controllers", :tags => [bench_controller_name, action_name]) { yield }
|
21
19
|
end
|
22
20
|
|
23
21
|
end
|
data/watchman-rails.gemspec
CHANGED
@@ -22,9 +22,9 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
24
|
spec.add_dependency "actionpack", ">= 4.0"
|
25
|
-
spec.add_dependency "rt-watchman"
|
25
|
+
spec.add_dependency "rt-watchman", ">= 0.10.0"
|
26
26
|
|
27
|
-
spec.add_development_dependency "bundler", "~> 1.
|
27
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
28
28
|
spec.add_development_dependency "rake", "~> 10.0"
|
29
29
|
spec.add_development_dependency "rspec", "~> 3.0"
|
30
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watchman-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Šarčević
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.10.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.10.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
47
|
+
version: '1.12'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
54
|
+
version: '1.12'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|