stark 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 0.6.1 / 2013-03-02
2
+
3
+ * 1 bugfix:
4
+
5
+ * Add missing file
6
+
1
7
  === 0.6.0 / 2013-03-02
2
8
 
3
9
  * 5 bugfixes:
data/Manifest.txt CHANGED
@@ -8,6 +8,7 @@ lib/stark.rb
8
8
  lib/stark/ast.rb
9
9
  lib/stark/client.rb
10
10
  lib/stark/converters.rb
11
+ lib/stark/exception.rb
11
12
  lib/stark/field.rb
12
13
  lib/stark/log_transport.rb
13
14
  lib/stark/parser.rb
@@ -0,0 +1,15 @@
1
+ module Stark
2
+ class Exception < RuntimeError
3
+ def initialize(struct)
4
+ super "A remote exception occurred"
5
+
6
+ if struct.kind_of? Hash
7
+ @struct = self.class::Struct.new(struct)
8
+ else
9
+ @struct = struct
10
+ end
11
+ end
12
+
13
+ attr_reader :struct
14
+ end
15
+ end
data/lib/stark.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'thrift'
2
2
 
3
3
  module Stark
4
- VERSION = '0.6.0'
4
+ VERSION = '0.6.1'
5
5
 
6
6
  def self.pipe_transport
7
7
  cr, cw = IO.pipe
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -80,6 +80,7 @@ files:
80
80
  - lib/stark/ast.rb
81
81
  - lib/stark/client.rb
82
82
  - lib/stark/converters.rb
83
+ - lib/stark/exception.rb
83
84
  - lib/stark/field.rb
84
85
  - lib/stark/log_transport.rb
85
86
  - lib/stark/parser.rb