skylight 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c59f70c1556245efc3af0fd078ed0f64dc7a40e3
4
- data.tar.gz: bdd4aa72b59a1d4daaea897333af8dbaf53f37d0
3
+ metadata.gz: 298cf9d0f31b9d3dcb480039c94900a954263549
4
+ data.tar.gz: 776b66cdce89e49c98bc12662a40865af657af2d
5
5
  SHA512:
6
- metadata.gz: 69d0e17922d7f90dacfd18acea941f44a8f39b1120d3ef6ad941821ebdc7f7a3f43098322b737abebc12cdc68c181599e8d49eb3dd64478045fbb27c3df90fb2
7
- data.tar.gz: 790ef037ec76e412c124c1c1deb21c04adbf783eb38af45a706e64192fdc8208d1bb78bbadf9f248ad88fc90b37c0ed0857b3dc0e3de0450cf4c05912289bfa5
6
+ metadata.gz: 45a4f7c2396dc01028e6df143ba618ff327191ae99cbf00dedfbf2e4fee8436c545b84a18e7cbfe47709dec4c7ac49180627abd22eb92c60c7762c1d1da44c3b
7
+ data.tar.gz: fb9506358d97811463238d7363e730636657f96989f6c04c3ab3c0d8f43a9ab656df3c14f711db106361b8456111c4ee77c6ce0b3111dad04bb272712ca6134a
@@ -1,3 +1,12 @@
1
+ ## 0.5.2 (December 15, 2014)
2
+
3
+ * [IMPROVEMENT] Support ignoring multiple heartbeat endpoints
4
+ * [BUGFIX] Fix compilation errors on old GCC
5
+
6
+ ## 0.5.1 (December 5, 2014)
7
+
8
+ * [BUGFIX] Fix issues with working directory dissappearing
9
+
1
10
  ## 0.5.0 (December 4, 2014)
2
11
  * [IMPROVEMENT] Automatically load configuration from ENV
3
12
  * [FEATURE] Track object allocations per span
@@ -48,6 +48,12 @@ static sky_allocations_t* get_allocations() {
48
48
  #endif
49
49
 
50
50
  static void sky_increment_allocation(rb_event_flag_t flag, VALUE data, VALUE self, ID mid, VALUE klass) {
51
+ UNUSED(flag);
52
+ UNUSED(data);
53
+ UNUSED(self);
54
+ UNUSED(mid);
55
+ UNUSED(klass);
56
+
51
57
  get_allocations()->allocations++;
52
58
  }
53
59
 
@@ -7,8 +7,6 @@
7
7
  #include <ruby/encoding.h>
8
8
  #endif
9
9
 
10
- #define UNUSED(x) (void)(x)
11
-
12
10
  #define TO_S(VAL) \
13
11
  RSTRING_PTR(rb_funcall(VAL, rb_intern("to_s"), 0))
14
12
 
@@ -15,4 +15,6 @@ void sky_clear_allocation_count(void);
15
15
 
16
16
  int sky_have_memprof(void);
17
17
 
18
+ #define UNUSED(x) (void)(x)
19
+
18
20
  #endif
@@ -412,6 +412,16 @@ authentication: #{self[:authentication]}
412
412
  get('test.ignore_token')
413
413
  end
414
414
 
415
+ # @api private
416
+ def ignored_endpoints
417
+ @ignored_endpoints ||=
418
+ begin
419
+ val = Array(get(:'ignored_endpoint'))
420
+ val.concat(Array(get(:'ignored_endpoints')))
421
+ val
422
+ end
423
+ end
424
+
415
425
  def root
416
426
  self[:root] || Dir.pwd
417
427
  end
@@ -257,7 +257,7 @@ module Skylight
257
257
  end
258
258
 
259
259
  def ignore?(trace)
260
- config.key?(:ignored_endpoint) && trace.endpoint == config[:ignored_endpoint]
260
+ @config.ignored_endpoints.include?(trace.endpoint)
261
261
  end
262
262
 
263
263
  # Validates that the provided authentication token is valid. This is done
@@ -1,4 +1,4 @@
1
1
  module Skylight
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skylight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tilde, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-05 00:00:00.000000000 Z
11
+ date: 2014-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport