sec_query 1.3.0 → 1.3.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: e0dcb3dc699b2d6b83a79f026dec445d99c3edd5
4
- data.tar.gz: 6192703420f6bcfd6ebbac230852ae4d1e6341a6
3
+ metadata.gz: 7ca7e36c7306d858ca010571400b4df5c273897d
4
+ data.tar.gz: b93df93f32e265f347c8fcd5b66382a764b0040a
5
5
  SHA512:
6
- metadata.gz: 11a23324f82965969a807e269ed1e810253d85a890a504424026201835fae08eff389d9a9f1d3ec32f02cd7c179934bc394fd19b667b8388de55f7be5aa98eec
7
- data.tar.gz: 621457f23173bbd5659477ff7232dd0b2b63f60d25bd43383bfa5d0ebccdae756ca143757d67b52bd45eadf7389580d02b85e9272a231d462d5ca89be0062a26
6
+ metadata.gz: 2067ffe3a65836341b7c37ac488d9e32c5806064a11774b611d1c69e4ae14ea6346d7facfb37600d720f6b217762bb95f23c51c89e89b7b9b218b94458db92dc
7
+ data.tar.gz: 9d0e6373c249503fadd9e580f8a2b2e69789d7368790af5dd02787f714c475efdf452d27566ad0dd3c86ea6c2d81d14d7a1c51d55bb8d36710974c5d061effc8
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in sec_query.gemspec
4
4
  gemspec
data/README.md CHANGED
@@ -104,19 +104,16 @@ SecQuery::Filing instance may contains the following attributes:
104
104
 
105
105
  ##### .recent
106
106
 
107
- Find filings by a specific Date:
107
+ Find recent filings:
108
108
 
109
- `SecQuery::Filing.recent(start: 0, count: 10, limit: 10)`
109
+ ```
110
+ filings = []
111
+ SecQuery::Filing.recent(start: 0, count: 10, limit: 10) do |filing|
112
+ filings.push filing
113
+ end
114
+ ```
110
115
 
111
- Returns the most recent filings. Use start, count and limit to iterate through recent filings.
112
-
113
- #### Instance Methods
114
-
115
- ##### .content
116
-
117
- `SecQuery::Filing.recent(start: 0, count: 1, limit: 1).first.content`
118
-
119
- Returns the actual text content of any Sec::Filing instance.
116
+ Requires a block. Returns the most recent filings. Use start, count and limit to iterate through recent filings.
120
117
 
121
118
  ## To Whom It May Concern at the SEC
122
119
 
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
  # => SecQuery::VERSION
3
3
  module SecQuery
4
- VERSION = "1.3.0"
4
+ VERSION = "1.3.1"
5
5
  end
data/sec_query.gemspec CHANGED
@@ -2,7 +2,6 @@
2
2
  $:.push File.expand_path('../lib', __FILE__)
3
3
 
4
4
  require 'sec_query/version'
5
- require 'sec_query'
6
5
 
7
6
  Gem::Specification.new do |s|
8
7
  s.name = 'sec_query'
@@ -23,9 +22,10 @@ Gem::Specification.new do |s|
23
22
  s.add_development_dependency 'rspec', '~> 3.5'
24
23
  s.add_development_dependency 'vcr', '~> 3.0'
25
24
  s.add_development_dependency 'webmock', '~> 2.3'
26
- s.add_development_dependency 'rubocop', '~> 0.47'
25
+ s.add_development_dependency 'rubocop', '~> 0.52'
27
26
  s.add_development_dependency 'byebug', '~> 9.0'
28
27
  s.add_runtime_dependency 'rest-client', '~> 2.0'
29
28
  s.add_runtime_dependency 'addressable', '~> 2.5'
30
29
  s.add_runtime_dependency 'nokogiri', '~> 1.7'
30
+ s.add_runtime_dependency 'activesupport', '>= 0'
31
31
  end
@@ -63,7 +63,7 @@ describe SecQuery::Filing do
63
63
  describe "::find" do
64
64
  shared_examples_for "it found filings" do
65
65
  it "should return an array of filings" do
66
- filings.should be_kind_of(Array)
66
+ expect(filings).to be_kind_of(Array)
67
67
  end
68
68
 
69
69
  it "the filings should be valid" do
@@ -88,7 +88,7 @@ describe SecQuery::Filing do
88
88
  it_behaves_like "it found filings"
89
89
 
90
90
  it "should only return filings of type" do
91
- filings.first.term.should == "10-K"
91
+ expect(filings.first.term).to eq "10-K"
92
92
  end
93
93
  end
94
94
  end
data/spec/spec_helper.rb CHANGED
@@ -7,23 +7,23 @@ require 'support/vcr'
7
7
 
8
8
  def is_valid?(entity)
9
9
  expect(entity).to_not be_nil
10
- entity.name.should == query[:name]
11
- entity.cik.should == query[:cik]
10
+ expect(entity.name).to eq query[:name]
11
+ expect(entity.cik).to eq query[:cik]
12
12
  entity.instance_variables.each do |key|
13
- SecQuery::Entity::COLUMNS.should include(key[1..-1].to_sym)
13
+ expect(SecQuery::Entity::COLUMNS).to include(key[1..-1].to_sym)
14
14
  end
15
15
  end
16
16
 
17
17
  def is_valid_address?(address)
18
18
  expect(address).to_not be_nil
19
19
  address.keys.each do |key|
20
- ['city', 'state', 'street1', 'street2', 'type', 'zip', 'phone'].should include(key)
20
+ expect(['city', 'state', 'street1', 'street2', 'type', 'zip', 'phone']).to include(key)
21
21
  end
22
22
  end
23
23
 
24
24
  def is_valid_filing?(filing)
25
25
  expect(filing).to_not be_nil
26
26
  filing.instance_variables.each do |key|
27
- SecQuery::Filing::COLUMNS.should include(key[1..-1].to_sym)
27
+ expect(SecQuery::Filing::COLUMNS).to include(key[1..-1].to_sym)
28
28
  end
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sec_query
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ty Rauber
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-31 00:00:00.000000000 Z
11
+ date: 2018-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.47'
61
+ version: '0.52'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0.47'
68
+ version: '0.52'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: byebug
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -122,6 +122,20 @@ dependencies:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '1.7'
125
+ - !ruby/object:Gem::Dependency
126
+ name: activesupport
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
125
139
  description: Search for company or person, by name, symbol or Central Index Key (CIK),
126
140
  and retrieve filings.
127
141
  email:
@@ -166,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
180
  version: '0'
167
181
  requirements: []
168
182
  rubyforge_project: sec_query
169
- rubygems_version: 2.5.1
183
+ rubygems_version: 2.6.14
170
184
  signing_key:
171
185
  specification_version: 4
172
186
  summary: A ruby gem for querying the United States Securities and Exchange Commission