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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4aea8aa1f77b69cb10af30084d971ad965b882f1
4
- data.tar.gz: 1a4d69b278587ef1f552e9e64d37fa3f7c20213f
3
+ metadata.gz: 8e901fd77adf926dad261fbe89dfe3f341979f8b
4
+ data.tar.gz: c88593f6519304d5d1e52931e2bf7dac10bc9e09
5
5
  SHA512:
6
- metadata.gz: 529abfc2e96db2e070c8603e3e6a5e1898fbb1b6ebb7b00916516a5ef634f408fb6b2b77502af5dd8015bf149234543bd087093951655f24a01851a9a3ce9620
7
- data.tar.gz: c38b5f39a52dfa1d1b4bda5bb37c26332d495ac4cd0206172598be97f8c1ca007631cb80cd8f882a3f75b9e08c4ef164f9d43dac94722c9171a09846b6b4bc34
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
- records = (h[:order] and h[:order][/^desc|descending$/]) ?
51
- dynarex.flat_records.reverse : dynarex.flat_records
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.13
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-07-27 00:00:00.000000000 Z
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