fdic 0.9.1 → 0.9.2

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: dacbcc223b375d9908c0a04aaa61d3114c15910a
4
- data.tar.gz: d7e6859605a27a9fddc5fea2d36b3ad8deecd70a
3
+ metadata.gz: 7260db8d7ab5b6393fba35543942e4ad6785ce79
4
+ data.tar.gz: d2a6790a4f78fcf5db35d3a0b5a5db03b5d7a8f1
5
5
  SHA512:
6
- metadata.gz: 750708a0fedb3cf1f11ea8fa1ad00a8c07605485503f3153af553141d1a1704cc402645bf817bc8b98ceb07caa792e2963ec62ff72200a10d096b18fa207729c
7
- data.tar.gz: cdfb8a4bee532d80d434ce5f4a26a59ea2d4a867f310781e6a91983277c2bd615443e25ca7301d36a33d09f134cfda9f3c458d21aafc8fb3315a96ae18c1818a
6
+ metadata.gz: c08825e1d709727e06f3fce5a79c0f77854731137b9db33111229d4fa2900f40a690ff8ded19412553dbd9b7d15333022cc66ecf9b2784cb405c4760c838446d
7
+ data.tar.gz: 75c2446c083504121d3c29b5323ec10d5c3dc718d8253e41bdbbae2f08acecca934032bf95fd16761a6b1b0f628dd9c93a1097f52f16c9aa060d5ee16ef7e3b6
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  fdic-*.gem
2
+ .byebug_history
@@ -1,20 +1,23 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fdic (0.9.1)
4
+ fdic (0.9.2)
5
5
  httparty (~> 0.13)
6
- json-schema (~> 2.5.0)
6
+ json-schema (~> 2.8)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- addressable (2.3.8)
11
+ addressable (2.5.2)
12
+ public_suffix (>= 2.0.2, < 4.0)
13
+ byebug (8.2.5)
12
14
  diff-lcs (1.3)
13
15
  httparty (0.16.2)
14
16
  multi_xml (>= 0.5.2)
15
- json-schema (2.5.2)
16
- addressable (~> 2.3.8)
17
+ json-schema (2.8.0)
18
+ addressable (>= 2.4)
17
19
  multi_xml (0.6.0)
20
+ public_suffix (3.0.2)
18
21
  rake (10.5.0)
19
22
  rspec (3.7.0)
20
23
  rspec-core (~> 3.7.0)
@@ -35,6 +38,7 @@ PLATFORMS
35
38
 
36
39
  DEPENDENCIES
37
40
  bundler (~> 1.10)
41
+ byebug (~> 8.0)
38
42
  fdic!
39
43
  rake (~> 10.0)
40
44
  rspec (~> 3.0)
@@ -20,8 +20,9 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.add_runtime_dependency "httparty", "~> 0.13"
23
- spec.add_runtime_dependency "json-schema", "~> 2.5.0"
23
+ spec.add_runtime_dependency "json-schema", "~> 2.8"
24
24
  spec.add_development_dependency "bundler", "~> 1.10"
25
25
  spec.add_development_dependency "rake", "~> 10.0"
26
26
  spec.add_development_dependency "rspec", "~> 3.0"
27
+ spec.add_development_dependency "byebug", "~> 8.0"
27
28
  end
@@ -4,11 +4,11 @@ module FDIC
4
4
  module SchemaValidators
5
5
  class BaseValidator
6
6
  def schema_valid?
7
- JSON::Validator.validate(schema, response)
7
+ JSON::Validator.validate(schema, response.parsed_response)
8
8
  end
9
9
 
10
10
  def schema_valid!
11
- JSON::Validator.validate!(schema, response)
11
+ JSON::Validator.validate!(schema, response.parsed_response)
12
12
  #JSON::Validator.validate! will return true if it is successful, or raise if there is an error. Swallow true and return nil otherwise
13
13
  nil
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module FDIC
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fdic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Reznick
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 2.5.0
34
+ version: '2.8'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 2.5.0
41
+ version: '2.8'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: bundler
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -81,6 +81,20 @@ dependencies:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
83
  version: '3.0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: byebug
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '8.0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '8.0'
84
98
  description: The FDIC recently exposed a JSON-over-HTTP API behind its BankFind website.
85
99
  This gem makes that API easy to use from Ruby.
86
100
  email: