inner_performance 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/lib/inner_performance/version.rb +1 -1
- data/lib/inner_performance.rb +4 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53088317c2b4b7c73dfd80fc3483333d6a20cd2016c9898a14ddbff4ae351cfd
|
4
|
+
data.tar.gz: eca7db5ab49eb2fc2b17826a882e3490333a84b686eecf9da053ffe7064da55b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 885de0b3cd67f4447fc9a66b134f08b91872bb66bce3edfe3c6c8d81ee402e0c519949328cd55557fab364051097bacd9ef6b3de24d6581bf2aebe23b0452c22
|
7
|
+
data.tar.gz: f4e2d87b9c5cd8a730f11ec9457436aba89db3803ed7e8b504272388ee6746701d5199c91ff9090b322819d93d4627ca76c60d02eb58c1cab01356ace21c05ec
|
data/README.md
CHANGED
@@ -17,6 +17,11 @@ $ rails inner_performance:install:migrations
|
|
17
17
|
$ rails db:migrate
|
18
18
|
```
|
19
19
|
|
20
|
+
Add inner_performance to `app/assets/config/manifest.js`
|
21
|
+
```javascript
|
22
|
+
//= link inner_performance/application.css
|
23
|
+
```
|
24
|
+
|
20
25
|
Mount UI in `routes.rb` (don't forget to protect it!)
|
21
26
|
|
22
27
|
```ruby
|
data/lib/inner_performance.rb
CHANGED
@@ -46,12 +46,11 @@ module InnerPerformance
|
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
|
-
#
|
50
|
-
# that returns `true`
|
49
|
+
# Check if all the ignore_rules returns false. If so, save the event.
|
51
50
|
def save_event?(event)
|
52
|
-
InnerPerformance.configuration.ignore_rules.
|
53
|
-
|
54
|
-
end.
|
51
|
+
InnerPerformance.configuration.ignore_rules.find do |rule|
|
52
|
+
rule.call(event) == true
|
53
|
+
end.nil?
|
55
54
|
end
|
56
55
|
end
|
57
56
|
end
|