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 +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +9 -5
- data/fdic.gemspec +2 -1
- data/lib/fdic/bank_find/schema_validators/base_validator.rb +2 -2
- data/lib/fdic/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7260db8d7ab5b6393fba35543942e4ad6785ce79
|
4
|
+
data.tar.gz: d2a6790a4f78fcf5db35d3a0b5a5db03b5d7a8f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c08825e1d709727e06f3fce5a79c0f77854731137b9db33111229d4fa2900f40a690ff8ded19412553dbd9b7d15333022cc66ecf9b2784cb405c4760c838446d
|
7
|
+
data.tar.gz: 75c2446c083504121d3c29b5323ec10d5c3dc718d8253e41bdbbae2f08acecca934032bf95fd16761a6b1b0f628dd9c93a1097f52f16c9aa060d5ee16ef7e3b6
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,20 +1,23 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fdic (0.9.
|
4
|
+
fdic (0.9.2)
|
5
5
|
httparty (~> 0.13)
|
6
|
-
json-schema (~> 2.
|
6
|
+
json-schema (~> 2.8)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
addressable (2.
|
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.
|
16
|
-
addressable (
|
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)
|
data/fdic.gemspec
CHANGED
@@ -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.
|
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
|
data/lib/fdic/version.rb
CHANGED
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.
|
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.
|
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.
|
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:
|