typhoid 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- typhoid (0.0.1)
5
- typhoeus
4
+ typhoid (0.0.2)
5
+ typhoeus (= 0.4.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -67,8 +67,14 @@ module Typhoid
67
67
 
68
68
  def load_values(object, response)
69
69
  object.tap { |obj|
70
- obj.load_values(parser.call response.body)
71
- obj.after_build response
70
+ error = nil
71
+ begin
72
+ obj.load_values(parser.call response.body)
73
+ rescue ReadError => e
74
+ error = e
75
+ ensure
76
+ obj.after_build response, error
77
+ end
72
78
  }
73
79
  end
74
80
  end
@@ -16,7 +16,7 @@ module Typhoid
16
16
  @body = response.body
17
17
  begin
18
18
  @parsed_body = parser.call body
19
- rescue StandardError => e
19
+ rescue StandardError, ReadError => e
20
20
  @parsed_body = {}
21
21
  @exception = e
22
22
  end
@@ -1,3 +1,3 @@
1
1
  module Typhoid
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/typhoid.gemspec CHANGED
@@ -2,8 +2,8 @@
2
2
  require File.expand_path('../lib/typhoid/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
- gem.authors = ["Doug Rohde"]
6
- gem.email = ["doug.rohde@tstmedia.com"]
5
+ gem.authors = ["Doug Rohde", "Jon Phenow"]
6
+ gem.email = ["doug.rohde@sportngin.com", "jon.phenow@sportngin.com"]
7
7
  gem.description = %q{A lightweight ORM-like wrapper around Typhoeus}
8
8
  gem.summary = %q{A lightweight ORM-like wrapper around Typhoeus}
9
9
  gem.homepage = ""
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = Typhoid::VERSION
17
17
 
18
- gem.add_dependency 'typhoeus'
18
+ gem.add_dependency 'typhoeus', "0.4.2"
19
19
 
20
20
  gem.add_development_dependency 'rspec'
21
21
  gem.add_development_dependency 'json_pure', [">= 1.4.1"]
metadata CHANGED
@@ -1,11 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typhoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Doug Rohde
9
+ - Jon Phenow
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
@@ -16,17 +17,17 @@ dependencies:
16
17
  requirement: !ruby/object:Gem::Requirement
17
18
  none: false
18
19
  requirements:
19
- - - ! '>='
20
+ - - '='
20
21
  - !ruby/object:Gem::Version
21
- version: '0'
22
+ version: 0.4.2
22
23
  type: :runtime
23
24
  prerelease: false
24
25
  version_requirements: !ruby/object:Gem::Requirement
25
26
  none: false
26
27
  requirements:
27
- - - ! '>='
28
+ - - '='
28
29
  - !ruby/object:Gem::Version
29
- version: '0'
30
+ version: 0.4.2
30
31
  - !ruby/object:Gem::Dependency
31
32
  name: rspec
32
33
  requirement: !ruby/object:Gem::Requirement
@@ -61,7 +62,8 @@ dependencies:
61
62
  version: 1.4.1
62
63
  description: A lightweight ORM-like wrapper around Typhoeus
63
64
  email:
64
- - doug.rohde@tstmedia.com
65
+ - doug.rohde@sportngin.com
66
+ - jon.phenow@sportngin.com
65
67
  executables: []
66
68
  extensions: []
67
69
  extra_rdoc_files: []
@@ -110,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
112
  version: '0'
111
113
  segments:
112
114
  - 0
113
- hash: -3289300841199421232
115
+ hash: 1271794916733931674
114
116
  required_rubygems_version: !ruby/object:Gem::Requirement
115
117
  none: false
116
118
  requirements:
@@ -119,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
121
  version: '0'
120
122
  segments:
121
123
  - 0
122
- hash: -3289300841199421232
124
+ hash: 1271794916733931674
123
125
  requirements: []
124
126
  rubyforge_project:
125
127
  rubygems_version: 1.8.24