profile_it 0.2.7 → 0.2.8

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: 607986745a7573939e8f7a92a8582799a6f3cace
4
- data.tar.gz: 2eaacdf6385e4e4f4caf2cd94533bd9b4beaf2aa
3
+ metadata.gz: f0c57239d82093d83cd9eec7b49f9aef55b08fab
4
+ data.tar.gz: 26889eba7dc0fa567b319dcb871bb7c12e809649
5
5
  SHA512:
6
- metadata.gz: f7e75e5cdd848e2a908f116b462b7bbff96acb1a6c4e48778689156e1e825d248b9b00c4eeffba233741e07c69f4e7ffa9661dc697075d8e8ddee902901dee9b
7
- data.tar.gz: 6b6dfab80e5dd7ebc66d34b21069ca8812ecc0f2c916f4886e145b5de19cd58e05c26f199e8146434dd45fecc6185bee1ca1225b7ab9f59bb762e04db2f4ffed
6
+ metadata.gz: 6d398c2bce20310bb593360e15191aca28cf423c720e23ee06a0e0a63fa36d35255cb00afeac7576ffc3cecdd7625b03ed9fd0e48155d1b176f2c472473a0278
7
+ data.tar.gz: 830cdeba11bc771ac0ee43237795106f4ad2974fff554c4f8fb8fdc7b6346014ebebbfa4d92097de7fabd3675c57ed115b3a99ba42df2f9b12ef51170698c2e9
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.2.8
2
+
3
+ * Tentative Rails 2.3 support
4
+
1
5
  # 0.2.6
2
6
 
3
7
  * Don't start agent when running in console
data/lib/profile_it.rb CHANGED
@@ -7,6 +7,7 @@ require 'net/https'
7
7
  require 'logger'
8
8
  require 'yaml'
9
9
  require 'cgi'
10
+ require 'securerandom'
10
11
  require File.expand_path('../profile_it/version.rb', __FILE__)
11
12
  require File.expand_path('../profile_it/agent.rb', __FILE__)
12
13
  require File.expand_path('../profile_it/agent/logging.rb', __FILE__)
@@ -18,7 +18,12 @@ module ProfileIt::Instruments
18
18
  key_from_headers = request.headers['x-profileit-key']
19
19
  if !key_from_headers.blank? && key_from_headers == ProfileIt::Agent.instance.config.settings['key']
20
20
  profile_it_controller_action = "Controller/#{controller_path}/#{action_name}"
21
- self.class.profile_request(profile_it_controller_action, :uri => request.request_uri) do
21
+ Thread::current[:profile_it_extension_fingerprint]=request.headers['x-profileit-extension-fingerprint']
22
+ Thread::current[:profile_it_extension_version]=request.headers['x-profileit-extension-version']
23
+ Thread::current[:profile_it_user_id]=request.headers['x-profileit-user-id']
24
+ request_id = SecureRandom.hex(16) # since rails 2 doesn't set an x-request-id header, generate our own
25
+ response.headers['x-profileit-request-id'] = request_id
26
+ self.class.profile_request(profile_it_controller_action, :uri => request.request_uri, :request_id=>request_id) do
22
27
  perform_action_without_profile_it_instruments(*args, &block)
23
28
  end
24
29
  else
@@ -1,3 +1,3 @@
1
1
  module ProfileIt
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
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.7
4
+ version: 0.2.8
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 00:00:00.000000000 Z
12
+ date: 2015-02-20 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.