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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2520e6d24d27f6ac8822d3c098f75b2afe9b5d18
4
- data.tar.gz: 436229775314b586d86ec0aeb85a454ff38724db
3
+ metadata.gz: 86666fb84c0b51dfd08a369c0a2796ad4169048b
4
+ data.tar.gz: 680dab77cb266561dc0971f972d24fa2ad0306f9
5
5
  SHA512:
6
- metadata.gz: e4e3c4f4fb68bcdc5a98d4fcdd15735ccb85500ce57bff41c7588151195efa770806fc82933ab26faad78531e06e6d5da4ea4222eec7397c9c87b3a41bf33d4b
7
- data.tar.gz: 8ee6cdbdf134a4a15ab0285286ec7d413c21936ac6088e5571ae2eacd87e01e5c980c11a57b11e59080d6e586586ca1c66437bb87310c43721b1445c44c3b25f
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.17
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-05 00:00:00.000000000 Z
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