dataisland 0.1.13 → 0.1.14
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 +7 -4
- data.tar.gz.sig +0 -0
- metadata +8 -8
- 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: 8e901fd77adf926dad261fbe89dfe3f341979f8b
|
4
|
+
data.tar.gz: c88593f6519304d5d1e52931e2bf7dac10bc9e09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68a36884c2ad8a68d56b675b7939af57d822f6f5f80721b82ed92ec39af5d8eef9877861124eabc1ebae6b7ef7de5b1e5a002b563468266d4c4cd9efbcd4e543
|
7
|
+
data.tar.gz: 81ae1c7c3d05c239d2a21d2ce3f8bc9f6c35f811eadcd1a2dd6981728801667997377625d68976654c0b519f88632821b974014ff9fd05e2453b5aaf14e89516
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/dataisland.rb
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
# file: dataisland.rb
|
4
4
|
|
5
5
|
require 'dynarex'
|
6
|
-
require 'rexle'
|
7
6
|
require 'rxfhelper'
|
8
7
|
|
9
8
|
|
@@ -11,7 +10,7 @@ class DataIsland
|
|
11
10
|
|
12
11
|
attr_reader :html_doc
|
13
12
|
|
14
|
-
# e.g. url = 'http://jamesrobertson.eu/index-template.html'
|
13
|
+
# e.g. url = 'http://www.jamesrobertson.eu/index-template.html'
|
15
14
|
#
|
16
15
|
def initialize(location)
|
17
16
|
|
@@ -47,8 +46,12 @@ class DataIsland
|
|
47
46
|
|
48
47
|
dynarex = Dynarex.new location2
|
49
48
|
|
50
|
-
|
51
|
-
|
49
|
+
if (h[:order] and h[:order][/^desc|descending$/]) \
|
50
|
+
or dynarex.order = 'descending' then
|
51
|
+
records = dynarex.flat_records.reverse
|
52
|
+
else
|
53
|
+
records = dynarex.flat_records
|
54
|
+
end
|
52
55
|
|
53
56
|
xpath = "//*[@datasrc='" + '#' + h[:id] + "']"
|
54
57
|
|
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.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -29,34 +29,34 @@ cert_chain:
|
|
29
29
|
oFZtyTHzE2VWZPd0gOPePU5AfG2vfTz6zJAg76LlJ02xCVzD0v8i89hTYZNacU/E
|
30
30
|
BfoxzKzXuOqmc0cbx/V91e239w2ScpRv
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2013-
|
32
|
+
date: 2013-10-05 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: dynarex
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
type: :runtime
|
42
42
|
prerelease: false
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: rxfhelper
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
description:
|
@@ -76,12 +76,12 @@ require_paths:
|
|
76
76
|
- lib
|
77
77
|
required_ruby_version: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- -
|
79
|
+
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
83
|
requirements:
|
84
|
-
- -
|
84
|
+
- - ">="
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
metadata.gz.sig
CHANGED
Binary file
|