sec_entities 0.0.2 → 0.0.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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTFkMmRkMTNjYmM0Y2Q0ZThhMmIwODc2Y2YyZWVhMTQ2Nzc1ZDkzZQ==
4
+ YjRmNGY5ZTA0ZTA5ODAzZmVmOWI0ZGM5YTEzZGRiOGM1MDlhMzNhZQ==
5
5
  data.tar.gz: !binary |-
6
- NzczY2RkOGJlMmEzMzA2MzQzMzVlZTg0NzI4OTVmYTE1YzFkZDBlNQ==
6
+ NGVjOGM5YjlmMGNhMTc4MDM5NDY3ZjQxYjgzODMyOTc3YWZkZDQzYQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NDA0MDk0OTFiMWY2M2FhNGFiYzU2YjM1Mzc5YjczMWYxYWEzOGJmYjhlMGE2
10
- M2IwNzY0NDk5ZjI2YWEzM2E1ZTk3ZjY0YTNkODQ3ZWVlYWE5ODEyMGM4OWYz
11
- MzQ4ZTEyNGY4ZDUzMzU3MDk3ZjlmNTAwZjg0NDAxZTRmOTI1M2Q=
9
+ NmI4NDQ4OWZjMjljNTc1NDQwNDZjMTk1NjA2NjY5ZDcyZGFiZWM5ZWI4YWQz
10
+ OGZkNGM1YWNkMGU2ZjA5ZDRiNmRjODEwOGNmOGQ2ODgzOWUwZDRmZDE5Y2Yw
11
+ NGM3MTI0MTg4NDJhOWJlNjUzZWRmY2EyMzEyOGM0MDVlZjIwMjU=
12
12
  data.tar.gz: !binary |-
13
- MzI1YWNkMzU3MGNkNDc0YjcwNDBkOTlkM2Q0NWQwZTNjZmQzYjRlMDk3YzRl
14
- NmIyMjM4ZWZjODVlYjcxZTFiNGU1N2M0NTZlMjZlYmYxN2QyYTUzNDBjNTRi
15
- ZTViMjQ5NDgxZjIzMTQ4OTA0Yjc4NzA0ZWQ5ZGEyNjcyODI3ZjI=
13
+ YWE1ODQ1YTAzOWZmYzRkNDI4MjIxMWJhZmI1ZTIyYjA2Y2Y1MWRkY2QwMzBj
14
+ YTI4ZjgwNTdmMmQ3Zjg2ZjY2OGQ1MjMxN2ZlYzhlMzA1ZDU2MGRhYWY0YjVj
15
+ YzkzNzE2N2ExNDlhMzA4MTRjMGZjZDJlNmUwYTFmMGUyMWI5ZDA=
data/README.md CHANGED
@@ -8,15 +8,15 @@ If I can get the other one to work eventually, I'll retire this one.
8
8
 
9
9
  ## Installation
10
10
 
11
- To install the 'sec_query' Ruby Gem run the following command at the terminal prompt.
11
+ To install the 'sec_entities' Ruby Gem run the following command at the terminal prompt.
12
12
 
13
13
  `gem install sec_entities`
14
14
 
15
- For an example of what type of information 'sec_query' can retrieve, run the following command:
15
+ For an example of what type of information 'sec_entities' can retrieve, run the following command:
16
16
 
17
17
  `bundle exec rspec spec`
18
18
 
19
- If running 'sec_query' from the command prompt in irb:
19
+ If running 'sec_entities' from the command prompt in irb:
20
20
 
21
21
  `irb -rubygems`
22
22
 
@@ -28,7 +28,7 @@ If running 'sec_query' from the command prompt in irb:
28
28
 
29
29
  #### By Name:
30
30
 
31
- Sec::Entity.find("WEYEHAUSER")
31
+ Sec::Entity.find("WEYERHAUSER")
32
32
 
33
33
 
34
34
  ## License
@@ -54,13 +54,13 @@ module Sec
54
54
  Nokogiri::HTML(response).xpath('//feed/entry').each do |e|
55
55
  # e.remove_namespaces!('link')
56
56
  if e.xpath('//content/company-info').to_s.length > 0
57
- doc = Hashie::Mash.new(Crack::XML.parse(e.xpath('//content/company-info').to_s))
57
+ doc = Hashie::Mash.new(Crack::XML.parse(e.xpath('//content/company-info').to_s)['company_info'])
58
58
  end
59
59
  if e.xpath('//company-info').to_s.length > 0
60
- doc = Hashie::Mash.new(Crack::XML.parse(e.xpath('//company-info').to_s))
60
+ doc = Hashie::Mash.new(Crack::XML.parse(e.xpath('//company-info').to_s)['company_info'])
61
61
  end
62
62
  if e.xpath('//content/accession-nunber').to_s.length > 0
63
- doc = Crack::XML.parse(e.xpath('//content').to_s).collect {|k, v| v }
63
+ doc = Crack::XML.parse(e.xpath('//content').to_s).collect {|k, v| Hashie::Mash.new(v) }
64
64
  end
65
65
 
66
66
  entries << doc
@@ -1,3 +1,3 @@
1
1
  module SecQuery
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.6"
3
3
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sec_entities
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ty Rauber
@@ -99,6 +99,7 @@ files:
99
99
  - lib/sec_entities/entity.rb
100
100
  - lib/sec_entities/version.rb
101
101
  - pkg/sec_entities-0.0.1.gem
102
+ - pkg/sec_entities-0.0.2.gem
102
103
  - sec_entities.gemspec
103
104
  - spec/sec_query_spec.rb
104
105
  - spec/spec_helper.rb