fdic 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f71bbcbce059fd804c78ddefb1ab481347593b0d
4
- data.tar.gz: 8863c48f3588056f4c7e24d2da3ccdd023c1f95d
3
+ metadata.gz: dacbcc223b375d9908c0a04aaa61d3114c15910a
4
+ data.tar.gz: d7e6859605a27a9fddc5fea2d36b3ad8deecd70a
5
5
  SHA512:
6
- metadata.gz: 50a153d100c123c2452846bf58d6fbe3700af91968d1b52fd73d48c466668fdcf961a2340d81c3d00ccdcd7ef52cddff6f1070b707fd42a33d0a8091df5ee3c8
7
- data.tar.gz: 90e321565f41ccadcb38f9f11b13caa1e9cd3fd432cd523df77dff22cc8d47229c24f685dad7e00480fc8ebac769e49b22630f79fb9c942fa7e215cc2d1815b3
6
+ metadata.gz: 750708a0fedb3cf1f11ea8fa1ad00a8c07605485503f3153af553141d1a1704cc402645bf817bc8b98ceb07caa792e2963ec62ff72200a10d096b18fa207729c
7
+ data.tar.gz: cdfb8a4bee532d80d434ce5f4a26a59ea2d4a867f310781e6a91983277c2bd615443e25ca7301d36a33d09f134cfda9f3c458d21aafc8fb3315a96ae18c1818a
@@ -1,5 +1,21 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.5
4
+ - 2.4
5
+ - 2.3
3
6
  - 2.2
4
7
  - 2.1
5
- - 2.0
8
+ env:
9
+ global:
10
+ - CC_TEST_REPORTER_ID=d4139686950d7963c441bb8cde0d789ae57655d3900023157b81c2a856060fd6
11
+ before_install:
12
+ - gem update --system
13
+ - gem install bundler
14
+ before_script:
15
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
16
+ - chmod +x ./cc-test-reporter
17
+ - ./cc-test-reporter before-build
18
+ script:
19
+ - bundle exec rspec
20
+ after_script:
21
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
data/Gemfile CHANGED
@@ -2,5 +2,3 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in fdic.gemspec
4
4
  gemspec
5
-
6
- gem "codeclimate-test-reporter", group: :test, require: nil
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fdic (0.9.0)
4
+ fdic (0.9.1)
5
5
  httparty (~> 0.13)
6
6
  json-schema (~> 2.5.0)
7
7
 
@@ -9,46 +9,35 @@ GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  addressable (2.3.8)
12
- codeclimate-test-reporter (0.4.8)
13
- simplecov (>= 0.7.1, < 1.0.0)
14
- diff-lcs (1.2.5)
15
- docile (1.1.5)
16
- httparty (0.13.7)
17
- json (~> 1.8)
12
+ diff-lcs (1.3)
13
+ httparty (0.16.2)
18
14
  multi_xml (>= 0.5.2)
19
- json (1.8.3)
20
- json-schema (2.5.1)
21
- addressable (~> 2.3.7)
22
- multi_xml (0.5.5)
23
- rake (10.4.2)
24
- rspec (3.4.0)
25
- rspec-core (~> 3.4.0)
26
- rspec-expectations (~> 3.4.0)
27
- rspec-mocks (~> 3.4.0)
28
- rspec-core (3.4.0)
29
- rspec-support (~> 3.4.0)
30
- rspec-expectations (3.4.0)
15
+ json-schema (2.5.2)
16
+ addressable (~> 2.3.8)
17
+ multi_xml (0.6.0)
18
+ rake (10.5.0)
19
+ rspec (3.7.0)
20
+ rspec-core (~> 3.7.0)
21
+ rspec-expectations (~> 3.7.0)
22
+ rspec-mocks (~> 3.7.0)
23
+ rspec-core (3.7.1)
24
+ rspec-support (~> 3.7.0)
25
+ rspec-expectations (3.7.0)
31
26
  diff-lcs (>= 1.2.0, < 2.0)
32
- rspec-support (~> 3.4.0)
33
- rspec-mocks (3.4.0)
27
+ rspec-support (~> 3.7.0)
28
+ rspec-mocks (3.7.0)
34
29
  diff-lcs (>= 1.2.0, < 2.0)
35
- rspec-support (~> 3.4.0)
36
- rspec-support (3.4.0)
37
- simplecov (0.10.0)
38
- docile (~> 1.1.0)
39
- json (~> 1.8)
40
- simplecov-html (~> 0.10.0)
41
- simplecov-html (0.10.0)
30
+ rspec-support (~> 3.7.0)
31
+ rspec-support (3.7.1)
42
32
 
43
33
  PLATFORMS
44
34
  ruby
45
35
 
46
36
  DEPENDENCIES
47
37
  bundler (~> 1.10)
48
- codeclimate-test-reporter
49
38
  fdic!
50
39
  rake (~> 10.0)
51
40
  rspec (~> 3.0)
52
41
 
53
42
  BUNDLED WITH
54
- 1.10.6
43
+ 1.16.0
data/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
  [![Gem Version](https://badge.fury.io/rb/fdic.svg)](https://badge.fury.io/rb/fdic)
5
5
 
6
6
  # FDIC
7
+ ### Current API Status
8
+ [![API Status](http://cc-api-schema-validator.herokuapp.com/fdic/badge)](http://cc-api-schema-validator.herokuapp.com/fdic/status)
7
9
 
8
10
  The FDIC [lets you find information on FDIC-insured banking
9
11
  institutions](https://research.fdic.gov/bankfind/index.html). Their site uses
@@ -97,7 +99,28 @@ bank.find_branches!
97
99
  bank.find_history_events!
98
100
  ```
99
101
 
100
- There are more fields exposed in the Institution API then what we've exposed. Where the field names are obscure or acronym-y, we'd like to clarify them; since we're pre-1.0, if we haven't looked up a field's meaning quite yet, we're holding off. (You can still get all the fields via `#attributes`.)
102
+ There are more fields exposed in the Institution API than what we've exposed. Where the field names are obscure or acronym-y, we'd like to clarify them; since we're pre-1.0, if we haven't looked up a field's meaning quite yet, we're holding off. (You can still get all the fields via `#attributes`.)
103
+
104
+ ## Schema Validation
105
+
106
+ This gem heavily depends on the schema of an unpublished government API. As such, it's liable to break. To help prevent against this we've provided a top level `FDIC::BankFind.validate_schema?` method, returning `true` if the schema of the FDIC's unpublished API has changed. We also expose a similar method `FDIC::BankFind.validate_schema!` which will raise a meaningful exception if the schema is invalid.
107
+
108
+ The gem provides an internal rake task, `rake fdic:validate_schema!` which calls `FDIC::BankFind.validate_schema!`. For the convenience of Rails users, we have used a Railtie to automatically provide this rake task in your application.
109
+
110
+ Because the schema may change more suddenly than developers can check for, we've created a [very small application](https://github.com/ContinuityControl/api_schema_validator) that validates the schema of this gem and its sister gem, [ncua](https://github.com/ContinuityControl/ncua).
111
+
112
+ The api_schema_validator application checks daily to see if the schema is invalid. It exposes a few handy endpoints, notably `/fdic/status`, which returns the follwing JSON:
113
+ ```json
114
+ {
115
+ "schema_good" : true
116
+ }
117
+ // OR
118
+ {
119
+ "schema_good" : false
120
+ }
121
+ ```
122
+
123
+ and `/fdic/badge` which returns an svg status badge. In fact, you saw that badge at the top of this readme!
101
124
 
102
125
  ## Contributing
103
126
 
@@ -1,3 +1,3 @@
1
1
  module FDIC
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
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.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Reznick
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2015-11-17 00:00:00.000000000 Z
12
+ date: 2018-04-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  requirements: []
144
144
  rubyforge_project:
145
- rubygems_version: 2.4.8
145
+ rubygems_version: 2.6.13
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: A Ruby client to the FDIC's BankFind API