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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 144fe1322406333dcc164f2fdbe237fb65ea6f63
4
- data.tar.gz: 03087be1c9dca36426f21b46cb96ca59c087b1a4
3
+ metadata.gz: f8bc1526af9e7cfc345de34605d6fd5e2d5c1cf5
4
+ data.tar.gz: ad92c4c0f70222cee348c52006bc649a2fe85ddf
5
5
  SHA512:
6
- metadata.gz: df22ea984c2f1c75fcc99698d1e2f9523b3fcac512f36cc16a66333fb8839cf048532e74b9763e65fc930bf6ad820131d60e0455d977c29dc0c3f1742ad4d563
7
- data.tar.gz: 53fc42a0cebc71d35c048e81164ba474af7d714ee00fb4988c5e387a88015fb9530ab1b2ff8243772e2af8eb0f2fddd3d1d6ec80083d22e4d1cb23aee23ac89f
6
+ metadata.gz: c8f9825c2510efbcf40300a4ab324fe148cc74816ae28886a1fbdbe0b398dec6a2ca3b94c9b092c5b4a7c87ab84c2409b292443d5e8ef59be79fdd2b5d9feda4
7
+ data.tar.gz: d804c18c764b9773f841b3add5108936372491d92e8a87c6a74fb28a5d80a287d1d00bbca7286db1207ad0f48417a80bddd707f7d882e363ab4a9645d2e40742
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.2.6
2
+
3
+ * Don't start agent when running in console
4
+
1
5
  # 0.2.5
2
6
 
3
7
  * Fixed SSL root certificate path
@@ -1,3 +1,3 @@
1
1
  module ProfileIt
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
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 Rails.respond_to?(:version) and Rails.version >= '3'
24
- module ProfileIt
25
- class Railtie < Rails::Railtie
26
- initializer "profile_it.start" do |app|
27
- ProfileIt::Agent.instance.start
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.5
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-10 00:00:00.000000000 Z
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.