wagon 1.1.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/wagon/ward.rb +6 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.0.0
|
data/lib/wagon/ward.rb
CHANGED
@@ -6,8 +6,12 @@ module Wagon
|
|
6
6
|
@name ||= self.at('a.channeltitle[href^="/units/home"]').inner_text.strip
|
7
7
|
end
|
8
8
|
|
9
|
+
def ward_id
|
10
|
+
@ward_id ||= @url.sub(%r{^.+\-(\d+),\d+\.html$}, '\1')
|
11
|
+
end
|
12
|
+
|
9
13
|
def directory_path
|
10
|
-
@directory_path ||=
|
14
|
+
@directory_path ||= "/units/a/directory/photoprint/1,10357,605-1-7-#{ward_id},00.html"
|
11
15
|
end
|
12
16
|
|
13
17
|
def directory
|
@@ -26,4 +30,4 @@ module Wagon
|
|
26
30
|
directory.to_pdf(options)
|
27
31
|
end
|
28
32
|
end
|
29
|
-
end
|
33
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wagon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Devin Christensen
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-03-
|
12
|
+
date: 2010-03-21 00:00:00 -06:00
|
13
13
|
default_executable: wagon
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|