dataisland 0.1.16 → 0.1.17

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: b5e584254b7c3ff6be68ada1db760ad1b6879bb0
4
- data.tar.gz: caab786c6b770a567b45ebd73db0f7018252a1fe
3
+ metadata.gz: 2520e6d24d27f6ac8822d3c098f75b2afe9b5d18
4
+ data.tar.gz: 436229775314b586d86ec0aeb85a454ff38724db
5
5
  SHA512:
6
- metadata.gz: 122fd66e76d6a2b4c2c042c71f5549d7167bf54d8d0ef3def719362a242023b3b8c8415f683ac68665f9ac8240c9290b1d8d0614ee8921fdb5be33587800252d
7
- data.tar.gz: 148b1a3866c1726e1e252fb220a19a6e625c59cc57c9292fe356f1bc13d8a8b1cabbed0d5bab58c19f1e204ed13af2b882faf248da2de9adacfcb9c7bbefae8b
6
+ metadata.gz: e4e3c4f4fb68bcdc5a98d4fcdd15735ccb85500ce57bff41c7588151195efa770806fc82933ab26faad78531e06e6d5da4ea4222eec7397c9c87b3a41bf33d4b
7
+ data.tar.gz: 8ee6cdbdf134a4a15ab0285286ec7d413c21936ac6088e5571ae2eacd87e01e5c980c11a57b11e59080d6e586586ca1c66437bb87310c43721b1445c44c3b25f
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/dataisland.rb CHANGED
@@ -12,9 +12,10 @@ class DataIsland
12
12
 
13
13
  # e.g. url = 'http://www.jamesrobertson.eu/index-template.html'
14
14
  #
15
- def initialize(location)
15
+ def initialize(location, opts={})
16
16
 
17
17
  buffer, typex = RXFHelper.read(location)
18
+
18
19
  @html_doc = Rexle.new(buffer.sub(/^<!DOCTYPE html>/,''))
19
20
 
20
21
  a = @html_doc.css('//script[@class="dataisland"]')
@@ -47,7 +48,7 @@ class DataIsland
47
48
  @location +'/' + h[:data]
48
49
  end
49
50
 
50
- dynarex = Dynarex.new location2
51
+ dynarex = Dynarex.new location2, opts
51
52
 
52
53
  if (h[:order] and h[:order][/^desc|descending$/]) \
53
54
  or dynarex.order = 'descending' then
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.16
4
+ version: 0.1.17
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: 2014-12-08 00:00:00.000000000 Z
34
+ date: 2015-01-05 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: dynarex
metadata.gz.sig CHANGED
Binary file