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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40503c3f92d104f5744e80f3264b9d72c8f3a13a
4
- data.tar.gz: 55c6f6aafac3ac28133468774dfdaecb3381b493
3
+ metadata.gz: e22ae08e71d5d245909eec4bbe426ac8539b608c
4
+ data.tar.gz: 48ab3a9a7ac1043fc30421d2416c34e9e824cac2
5
5
  SHA512:
6
- metadata.gz: d633c9e6a655a1c6230baee30d6bce6bbec8976b3c012478db18b6a016a46aaacec410ce9b0adf2f478863b5387e90d28a64ed33520c25f84b9e5d96efcb495e
7
- data.tar.gz: e299c4bd4fd5b16ca1f0eb71d24603d06c8d758441287b8cd3907652a833341fa70cd6241d393d3ae0f4cb56d5e8b1e5cab2bb98a94d0c29dc5fe0d9c12b1c63
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
- ``` txt
48
- rails.controllers.users.show
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.<controller_name>.<action>
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
- name = "rails.controllers.#{bench_controller_name}.#{action_name}"
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
@@ -1,5 +1,5 @@
1
1
  class Watchman
2
2
  module Rails
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -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.14"
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.1.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-06 00:00:00.000000000 Z
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: '0'
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: '0'
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.14'
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.14'
54
+ version: '1.12'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement