skylight 0.1.5 → 0.1.6.alpha1

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: ffd96c332034f1a8aac5a14cb5a326edc78b3940
4
- data.tar.gz: 2013e889ac8555f1fbbe27b018c337c0039ed39c
3
+ metadata.gz: 563ae386de883f09e3a0adf7a14042c38d2c7fd2
4
+ data.tar.gz: 90420768b5b5dcbc2cfbb89e68b416f6e38baa4b
5
5
  SHA512:
6
- metadata.gz: ef18196dcd99d0eb39d6d47e0f92e0fe762e52c8fede06778bd44cd8e258de3eb453c2bbf65eab939d87b71f3df002106c8e278eb029339e00451713977cf330
7
- data.tar.gz: d9bae247b299859a0e3095ad849c6ea24ef1d82affc3deba326cb2965b34ed5d2abc88cb67a1cf51fa10cb2b4cd939e088f2e059fcb4af786d9c8de40979cb80
6
+ metadata.gz: ad206b26816c8d5bac219bf4878bf7661de49850bfe785f2e181374bfd787c93fcd3b85898fbf78ef37f70891d6e4219e4e03bc3997314dace6dd1e28b1691b2
7
+ data.tar.gz: a4e9254b1d9ec3f348453df808c9905a3fe7e0f68956820aca5d8f8edcc8b3fe1aa8c025fa77409e19314edffd0f2f486edceae49fd4c06fb9eeb2f7c0d8479c
@@ -111,7 +111,13 @@ module Skylight
111
111
 
112
112
  def build
113
113
  return if @busted
114
- raise TraceError, "trace unbalanced" unless @stack.empty?
114
+ unless @stack.empty?
115
+ remaining = @stack.map do |sp|
116
+ sp == :skip ? :skip : sp.category
117
+ end
118
+
119
+ raise TraceError, "trace unbalanced; remaining=#{remaining.inspect}"
120
+ end
115
121
 
116
122
  Trace.new(
117
123
  uuid: 'TODO',
@@ -141,7 +147,7 @@ module Skylight
141
147
  def pop
142
148
  unless sp = @stack.pop
143
149
  @busted = true
144
- raise TraceError, "trace unbalanced"
150
+ raise TraceError, "closing span -- trace unbalanced"
145
151
  end
146
152
 
147
153
  @parents.pop if :skip != sp
@@ -1,4 +1,4 @@
1
1
  module Skylight
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6.alpha1'
3
3
  end
4
4
 
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.1.5
4
+ version: 0.1.6.alpha1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tilde, Inc.
@@ -157,9 +157,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
157
157
  version: 1.9.2
158
158
  required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  requirements:
160
- - - '>='
160
+ - - '>'
161
161
  - !ruby/object:Gem::Version
162
- version: '0'
162
+ version: 1.3.1
163
163
  requirements: []
164
164
  rubyforge_project:
165
165
  rubygems_version: 2.0.3