sec_query 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sec_query (0.0.1)
4
+ sec_query (1.0.1)
5
5
  hpricot
6
6
  rest-client
7
7
 
@@ -9,7 +9,7 @@ GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
11
  diff-lcs (1.1.3)
12
- hpricot (0.8.4)
12
+ hpricot (0.8.5)
13
13
  mime-types (1.17.2)
14
14
  rest-client (1.6.7)
15
15
  mime-types (>= 1.16)
data/README.md CHANGED
@@ -30,7 +30,7 @@ If running 'sec_query' from the command prompt in irb:
30
30
 
31
31
  #### By Stock Symbol:
32
32
 
33
- `SecQuery::Entity.find("appl")`
33
+ `SecQuery::Entity.find("aapl")`
34
34
 
35
35
  Or:
36
36
 
@@ -30,7 +30,10 @@ module SecQuery
30
30
  temp[:url] = Entity.url(entity_args)
31
31
  temp[:cik] = Entity.cik(temp[:url], entity_args)
32
32
 
33
- if !temp[:cik]; return false; end
33
+ if !temp[:cik] or temp[:cik] == "";
34
+ puts "No Entity found for query: "+temp[:url]
35
+ return false;
36
+ end
34
37
 
35
38
  ### Get Document and Entity Type
36
39
  doc = Entity.document(temp[:cik])
@@ -1,3 +1,3 @@
1
1
  module SecQuery
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/sec_query.gemspec CHANGED
@@ -1,5 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
+
3
4
  require "sec_query/version"
4
5
  require "sec_query"
5
6
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sec_query
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ty Rauber
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-12-02 00:00:00 -08:00
18
+ date: 2011-12-04 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -82,8 +82,6 @@ files:
82
82
  - lib/sec_query/relationship.rb
83
83
  - lib/sec_query/transaction.rb
84
84
  - lib/sec_query/version.rb
85
- - pkg/sec_query-0.0.1.gem
86
- - sec_query-1.0.0.gem
87
85
  - sec_query.gemspec
88
86
  - spec/sec_query_spec.rb
89
87
  - spec/spec_helper.rb
Binary file