conduit 0.6.5 → 0.7.0

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: d7cf39a8b5a40460f2718e1b91f4bd6f80063d88
4
- data.tar.gz: 6648815b5ab817132226aca79e505fd5ef598df6
3
+ metadata.gz: 8b48cd0dee7360abc6b7ad2964ded390b2f982e0
4
+ data.tar.gz: 46fc3719e67e1e64751a0ac9198f73caf79ce410
5
5
  SHA512:
6
- metadata.gz: acbfca131ac308212a6f87350320b2c6ce04fa3d4688169d0b3439245b6427f3a116b7c293b148f906352676e8b741bcfbf74a834d747196daaee1a14ebcfbec
7
- data.tar.gz: 69241d1f40d6be02edb49cfe7b7faa485b7bcdabdf0665f1bdf5b43fb9da42fa1b52ad279850dfdef96257a245ffdf4b50d79a70bcf3d926e84da59486ce1b8f
6
+ metadata.gz: 3c1bc050ec52ea1f332b782d30c69a376c3d3baa465b13011fccb4c3625c4d8100d7d4ef964d030447b5d95b022b5ee4f0e1fc8f22ce0934d9a483fd075cab3a
7
+ data.tar.gz: e41138edb9d6b3d4bec1aaaf8d9b1950185faa07d493227a902a0b2057ca14f229cf4a7c9141674c75ce8004c3a6c90176095ed62fd4a1f2f7569e86a15ac636
data/lib/conduit.rb CHANGED
@@ -13,6 +13,7 @@ module Conduit
13
13
  autoload :ApiResponse, 'conduit/api_response'
14
14
  autoload :ConnectionError, 'conduit/connection_error'
15
15
  autoload :TimeOut, 'conduit/time_out'
16
+ autoload :Error, 'conduit/error'
16
17
 
17
18
  module Core
18
19
 
@@ -0,0 +1,15 @@
1
+ module Conduit
2
+ class Error < OpenStruct
3
+ def initialize(message:, **attributes)
4
+ super(message: message, **attributes)
5
+ end
6
+
7
+ def to_s
8
+ self.message
9
+ end
10
+
11
+ def as_json(options = nil)
12
+ @table.as_json(options)
13
+ end
14
+ end
15
+ end
@@ -1,3 +1,3 @@
1
1
  module Conduit
2
- VERSION = '0.6.5'
2
+ VERSION = '0.7.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conduit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Kelley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-31 00:00:00.000000000 Z
11
+ date: 2016-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -140,6 +140,7 @@ files:
140
140
  - lib/conduit/core/parser.rb
141
141
  - lib/conduit/core/render.rb
142
142
  - lib/conduit/drivers/keep
143
+ - lib/conduit/error.rb
143
144
  - lib/conduit/storage.rb
144
145
  - lib/conduit/storage/aws.rb
145
146
  - lib/conduit/storage/file.rb