skylight 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/skylight.rb +12 -0
  2. data/lib/skylight/version.rb +1 -1
  3. metadata +2 -2
@@ -35,6 +35,18 @@ module Skylight
35
35
  require 'skylight/subscriber'
36
36
  require 'skylight/trace'
37
37
  require 'skylight/worker'
38
+
39
+ # Some helper functions
40
+ def self.current_endpoint=(name)
41
+ if t = Trace.current
42
+ t.endpoint = name
43
+ end
44
+
45
+ name
46
+ rescue
47
+ nil
48
+ ensure
49
+ end
38
50
  end
39
51
 
40
52
  if defined?(Rails)
@@ -1,3 +1,3 @@
1
1
  module Skylight
2
- VERSION = '0.0.13'
2
+ VERSION = '0.0.14'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skylight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-22 00:00:00.000000000 Z
12
+ date: 2013-04-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport