profile_it 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +4 -0
- data/lib/profile_it/version.rb +1 -1
- data/lib/profile_it.rb +9 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8bc1526af9e7cfc345de34605d6fd5e2d5c1cf5
|
4
|
+
data.tar.gz: ad92c4c0f70222cee348c52006bc649a2fe85ddf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8f9825c2510efbcf40300a4ab324fe148cc74816ae28886a1fbdbe0b398dec6a2ca3b94c9b092c5b4a7c87ab84c2409b292443d5e8ef59be79fdd2b5d9feda4
|
7
|
+
data.tar.gz: d804c18c764b9773f841b3add5108936372491d92e8a87c6a74fb28a5d80a287d1d00bbca7286db1207ad0f48417a80bddd707f7d882e363ab4a9645d2e40742
|
data/CHANGELOG.markdown
CHANGED
data/lib/profile_it/version.rb
CHANGED
data/lib/profile_it.rb
CHANGED
@@ -20,15 +20,17 @@ require File.expand_path('../profile_it/store.rb', __FILE__)
|
|
20
20
|
require File.expand_path('../profile_it/tracer.rb', __FILE__)
|
21
21
|
require File.expand_path('../profile_it/profile.rb', __FILE__)
|
22
22
|
|
23
|
-
if defined?(Rails) and
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
23
|
+
if defined?(Rails) and !defined?(Rails::Console)
|
24
|
+
if Rails.respond_to?(:version) and Rails.version >= '3'
|
25
|
+
module ProfileIt
|
26
|
+
class Railtie < Rails::Railtie
|
27
|
+
initializer "profile_it.start" do |app|
|
28
|
+
ProfileIt::Agent.instance.start
|
29
|
+
end
|
28
30
|
end
|
29
31
|
end
|
32
|
+
else
|
33
|
+
ProfileIt::Agent.instance.start
|
30
34
|
end
|
31
|
-
else
|
32
|
-
ProfileIt::Agent.instance.start
|
33
35
|
end
|
34
36
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: profile_it
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Haynes
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-02-
|
12
|
+
date: 2015-02-11 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Profile a Ruby on Rails application in your browser and reports detailed
|
15
15
|
metrics to profileit.io.
|