rexle 0.5.8 → 0.5.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rexle.rb +1 -0
  2. metadata +2 -2
data/lib/rexle.rb CHANGED
@@ -342,6 +342,7 @@ class Rexle
342
342
  end
343
343
 
344
344
  def count(path) @doc.xpath(path).flatten.compact.length end
345
+ def max(path) @doc.xpath(path).map(&:to_i).max end
345
346
 
346
347
  # scan a rexml doc
347
348
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rexle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8
4
+ version: 0.5.9
5
5
  platform: ruby
6
6
  authors: []
7
7
 
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-11-21 00:00:00 +00:00
12
+ date: 2010-11-22 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency