thirteen_f 0.5.5 → 0.5.6

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
  SHA256:
3
- metadata.gz: 794d55470f3fa4ef9583bd7bd8bd7ae3f86790c885d3fa7a4000ba64fb6d36b9
4
- data.tar.gz: 684f40b23301f8d0e3c5712b2f01a20ab2ac33fd63b54e100c674a128ad3c9fe
3
+ metadata.gz: 96f74aa0c544abf0e1666db173544c2e871866d4ab4aada403a6689951ff3903
4
+ data.tar.gz: 31abe010da2b3b8f9eaed1f11065d1ae49ddef98e42b6bb0caba2e52a95381a1
5
5
  SHA512:
6
- metadata.gz: 6b4c8f1acfa8afc0f07f2e105ee13dd1e63ebd8b03db7404c76ee7826190c9c61f0a7da81a8a34fb9f2a6bbda2d295cc8dd15fa0c9d6cfaba217710437486c31
7
- data.tar.gz: 88ef0dae8ea6208eb5b7635cd9499270eda2cfc9917ba8bb094d78cedb8673493dd67ae85f56a0f77026c14eecc73f80d5402bdb895c040d5759a5932b8a9c35
6
+ metadata.gz: c1179197abfc5b62d99b4e99789572ccb63dac660a14d3a3ea4d4e0cb83cf82e0b322e507f858fd71ccdcfb27ab6641ef9ce601aa1fb65cfc2559aa3505933fe
7
+ data.tar.gz: 29bb63f55bafc4a2c6ac119b0fa1cfc0db9b867b5569429e22009272c1ed86764bc0a66cbad4f58508cb213e8c50ce60031dc01672f3454a2099126ca9ee5205
@@ -13,7 +13,9 @@ class ThirteenF
13
13
  BASE_URL = 'https://www.sec.gov'
14
14
 
15
15
  def self.from_cik(cik)
16
- entity_url = "https://data.sec.gov/submissions/CIK#{cik}.json"
16
+ ten_digit_cik = cik
17
+ ten_digit_cik.prepend('0') until ten_digit_cik.length >= 10
18
+ entity_url = "https://data.sec.gov/submissions/CIK#{ten_digit_cik}.json"
17
19
  new SecRequest.get entity_url
18
20
  end
19
21
 
@@ -1,3 +1,3 @@
1
1
  class ThirteenF
2
- VERSION = "0.5.5"
2
+ VERSION = "0.5.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thirteen_f
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Savannah Fischer