wlsearchscraper 0.0.2 → 0.0.3

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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/wlsearchscraper.rb +7 -2
  3. metadata +7 -9
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5786fb795c9048b7f9495f55ae3fbfd579cf5eae
4
+ data.tar.gz: 5b5f03982a296dffa3c71217dd56d6317afad960
5
+ SHA512:
6
+ metadata.gz: 454dfc02ccb02a64dce3aa81db7e7699273b910e4f0d19069528d983ba22cce9ed7ac89e12006981b84f2226d2ce8bb373f68392e32653eb15d9ecc17ce472a3
7
+ data.tar.gz: 4825e53e7c059f40bf8fb72e9e0dd1350f21bc457b221efacf168c7412352e4a5e1084ae7438536234becf4a2f2a2cf5585c327f6e88f94155193bb885d56918
@@ -64,7 +64,13 @@ class WLSearchScraper
64
64
  elsif !(a.empty?) && (a[0]["title"] == "Markings")
65
65
  cablehash[:markings] = t.css("div[2]").text
66
66
  elsif !(a.empty?) && (a[0]["title"] == "To")
67
- cablehash[:to] = t.css("div[2]").text
67
+ to = t.css("div[2]").text
68
+ splitto = to.split(" | ")
69
+ splitarray = Array.new
70
+ splitto.each do |s|
71
+ splitarray.push(s.strip)
72
+ end
73
+ cablehash[:to] = splitarray
68
74
  elsif !(a.empty?) && (a[0]["title"] == "Linked documents or other documents with the same ID")
69
75
  cablehash[:linked_docs] = t.css("div[2]").text
70
76
  end
@@ -84,4 +90,3 @@ class WLSearchScraper
84
90
  return cablehash
85
91
  end
86
92
  end
87
-
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wlsearchscraper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - M. C. McGrath
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-03-28 00:00:00.000000000 Z
11
+ date: 2014-05-16 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Gets a list of documents from the WikiLeaks search that match certain
15
14
  terms.
@@ -22,27 +21,26 @@ files:
22
21
  homepage: https://github.com/Shidash/wlsearchscraper
23
22
  licenses:
24
23
  - GPL
24
+ metadata: {}
25
25
  post_install_message:
26
26
  rdoc_options: []
27
27
  require_paths:
28
28
  - lib
29
29
  required_ruby_version: !ruby/object:Gem::Requirement
30
- none: false
31
30
  requirements:
32
- - - ! '>='
31
+ - - '>='
33
32
  - !ruby/object:Gem::Version
34
33
  version: '0'
35
34
  required_rubygems_version: !ruby/object:Gem::Requirement
36
- none: false
37
35
  requirements:
38
- - - ! '>='
36
+ - - '>='
39
37
  - !ruby/object:Gem::Version
40
38
  version: '0'
41
39
  requirements: []
42
40
  rubyforge_project:
43
- rubygems_version: 1.8.23
41
+ rubygems_version: 2.0.14
44
42
  signing_key:
45
- specification_version: 3
43
+ specification_version: 4
46
44
  summary: Gets list of documents from WikiLeaks search.
47
45
  test_files: []
48
46
  has_rdoc: