sec_edgar 0.0.9 → 0.1.0

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: 6c7dc7890235428991d1c9d35af297e39eaaf6b4
4
- data.tar.gz: 3902714078b80bad6c8bd69ac90762d9995cd49f
3
+ metadata.gz: 2c1e787055f1c178bdd2d995e2f9f1a7b96d0da2
4
+ data.tar.gz: 8de18a430ce65bb4db8021a3c4b320e164b8d4e1
5
5
  SHA512:
6
- metadata.gz: 179bf54717776a0c2d7468a54a4eff6985cc9da159df565d84f4577d0c1824f0c1427a9e257597dc817d108334c5ce30e9d76945d53ba8c15e1d79420ca05630
7
- data.tar.gz: acc44dcb6a3dfd6c57eae532b83e7df715c9c00dfc08c0f0b70bf259b8cfa494fbff7fe8bdd52e9180991004f5d2ed54fc076049322e657a165cc5cd661c315b
6
+ metadata.gz: e8acc2d864ce6a5f3bd6e4d6827eda650b2acc197d727db273e758a911695d96d47383c882db722dcf1a60541b9a7f512d573a66d32bcfebf00e7e6f5123f88d
7
+ data.tar.gz: 5a194aaeeb41d947489bc67e1bd3bf5c32db53c3956243ada65fafaa0db14b88de1820b2b2080725286bd54c1fbb2d85162ff6d496cafa3aa7659dbc29ff6725
@@ -79,8 +79,8 @@ module SecEdgar
79
79
  data[1].gsub!('/ADV', '')
80
80
  data.delete_at(1) if data[1][0] == '/'
81
81
  return nil unless Regexp.new(/\d{8}/).match(data[3])
82
- unless data[4][0..3] == 'http'
83
- data[4] = "http://www.sec.gov/Archives/#{ data[4] }"
82
+ unless data[4][0..3] == 'https'
83
+ data[4] = "https://www.sec.gov/Archives/#{ data[4] }"
84
84
  end
85
85
  SecEdgar::Filing.new(
86
86
  term: data[1],
@@ -164,6 +164,7 @@ module SecEdgar
164
164
  (el.xpath('//notSubjectToSection16').text == '1' ||
165
165
  el.xpath('//notSubjectToSection16').text == 'true')
166
166
  doc.period_of_report = Date.parse(el.xpath('//periodOfReport').text)
167
+ # p doc.period_of_report
167
168
  rescue ArgumentError => e
168
169
  puts "parse_doc error: #{ el.inspect }"
169
170
  puts e
@@ -66,7 +66,7 @@ module SecEdgar
66
66
 
67
67
  def initialize
68
68
  self.host = 'www.sec.gov'
69
- self.scheme = 'http'
69
+ self.scheme = 'https'
70
70
  self.path = 'cgi-bin'
71
71
  end
72
72
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sec_edgar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - CJ Avilla
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  requirements: []
116
116
  rubyforge_project:
117
- rubygems_version: 2.4.5
117
+ rubygems_version: 2.5.1
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: SEC filings finder