dataisland 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/dataisland.rb +2 -6
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86666fb84c0b51dfd08a369c0a2796ad4169048b
|
4
|
+
data.tar.gz: 680dab77cb266561dc0971f972d24fa2ad0306f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a379d85f391c5a3bd8e77df6c460d80015a7c05fcb73c5de19209f1a0ff113affe3ee61604956a6092ec602ba6a318c9eb0a8cf155e9cd30d4cd723edcb5b056
|
7
|
+
data.tar.gz: d3f1317795de1b25312a1a61c90160ed52fa08557caf7a29475c4689bcfede4d189ddedb2a54b8e8dabb829c0546125cabd6e362636a1a3b77493bb7bb7b18d6
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/dataisland.rb
CHANGED
@@ -15,16 +15,13 @@ class DataIsland
|
|
15
15
|
def initialize(location, opts={})
|
16
16
|
|
17
17
|
buffer, typex = RXFHelper.read(location)
|
18
|
-
|
19
18
|
@html_doc = Rexle.new(buffer.sub(/^<!DOCTYPE html>/,''))
|
20
19
|
|
21
20
|
a = @html_doc.css('//script[@class="dataisland"]')
|
22
21
|
a.map(&:delete)
|
23
22
|
|
24
23
|
@html_doc.xpath('//div[@datactl]').map(&:delete)
|
25
|
-
|
26
24
|
@html_doc.root.element('body').attributes.delete :onload
|
27
|
-
|
28
25
|
h = @html_doc.element('//object').attributes
|
29
26
|
|
30
27
|
path = { url: -> {File.dirname(location)},
|
@@ -36,9 +33,8 @@ class DataIsland
|
|
36
33
|
@html_doc.xpath("//object[@type='text/xml']").each do |x|
|
37
34
|
|
38
35
|
h = x.attributes
|
36
|
+
tmp, type2 = RXFHelper.read(h[:data], opts)
|
39
37
|
|
40
|
-
tmp, type2 = RXFHelper.read(h[:data])
|
41
|
-
|
42
38
|
location2 = case h[:data]
|
43
39
|
when /^https?:\/\//
|
44
40
|
h[:data]
|
@@ -47,7 +43,7 @@ class DataIsland
|
|
47
43
|
else
|
48
44
|
@location +'/' + h[:data]
|
49
45
|
end
|
50
|
-
|
46
|
+
|
51
47
|
dynarex = Dynarex.new location2, opts
|
52
48
|
|
53
49
|
if (h[:order] and h[:order][/^desc|descending$/]) \
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dataisland
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
hfU2aUsh32EdO0lz//CAq6vJ6SOTB7aLPUBCTqjepgkYPqhbA4xLDdvXr4sd5ObL
|
32
32
|
ZuH02/86EylsSA==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-01-
|
34
|
+
date: 2015-01-06 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: dynarex
|
metadata.gz.sig
CHANGED
Binary file
|