sec_edgar 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sec_edgar/filing.rb +2 -2
- data/lib/sec_edgar/filing_parser.rb +1 -0
- data/lib/sec_edgar/sec_uri.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c1e787055f1c178bdd2d995e2f9f1a7b96d0da2
|
4
|
+
data.tar.gz: 8de18a430ce65bb4db8021a3c4b320e164b8d4e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8acc2d864ce6a5f3bd6e4d6827eda650b2acc197d727db273e758a911695d96d47383c882db722dcf1a60541b9a7f512d573a66d32bcfebf00e7e6f5123f88d
|
7
|
+
data.tar.gz: 5a194aaeeb41d947489bc67e1bd3bf5c32db53c3956243ada65fafaa0db14b88de1820b2b2080725286bd54c1fbb2d85162ff6d496cafa3aa7659dbc29ff6725
|
data/lib/sec_edgar/filing.rb
CHANGED
@@ -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] == '
|
83
|
-
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
|
data/lib/sec_edgar/sec_uri.rb
CHANGED
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
|
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.
|
117
|
+
rubygems_version: 2.5.1
|
118
118
|
signing_key:
|
119
119
|
specification_version: 4
|
120
120
|
summary: SEC filings finder
|