wagon 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/wagon/connection.rb +5 -1
- data/lib/wagon/directory.rb +3 -3
- metadata +3 -3
data/Rakefile
CHANGED
@@ -13,7 +13,7 @@ begin
|
|
13
13
|
gem.bindir = 'bin'
|
14
14
|
gem.add_dependency "nokogiri", ">= 1.4.0"
|
15
15
|
gem.add_dependency "highline", ">= 1.5.1"
|
16
|
-
gem.add_dependency "prawn", "~> 0.
|
16
|
+
gem.add_dependency "prawn", "~> 0.8.0"
|
17
17
|
gem.add_dependency "queue_to_the_future", ">= 0.1.0"
|
18
18
|
gem.add_development_dependency "rspec", ">= 1.2.9"
|
19
19
|
gem.add_development_dependency "yard", ">= 0"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.1
|
data/lib/wagon/connection.rb
CHANGED
@@ -18,7 +18,7 @@ module Wagon
|
|
18
18
|
@cookies = response['set-cookie']
|
19
19
|
@home_path = URI.parse(response['location']).path
|
20
20
|
|
21
|
-
raise AuthenticationFailure.new("Invalid username and/or password") unless @cookies
|
21
|
+
raise AuthenticationFailure.new("Invalid username and/or password") unless @cookies =~ /lds_scs_authentication=/
|
22
22
|
end
|
23
23
|
|
24
24
|
def home_path
|
@@ -58,7 +58,11 @@ module Wagon
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def _get(path)
|
61
|
+
attempts = 0
|
61
62
|
_http.request(Net::HTTP::Get.new(path, {'Cookie' => @cookies || ''}))
|
63
|
+
rescue Exception => e
|
64
|
+
retry unless (attempts += 1) == 3
|
65
|
+
raise e
|
62
66
|
end
|
63
67
|
|
64
68
|
def _head(path)
|
data/lib/wagon/directory.rb
CHANGED
@@ -44,9 +44,9 @@ module Wagon
|
|
44
44
|
|
45
45
|
(0...pages).each do |page|
|
46
46
|
pdf.start_new_page unless page == 0
|
47
|
-
pdf.
|
48
|
-
pdf.
|
49
|
-
pdf.
|
47
|
+
pdf.draw_text(options[:title], :at => [pdf.bounds.right/2 - pdf.width_of(options[:title], :size => 12)/2, pdf.bounds.top - header_height + padding], :size => 12)
|
48
|
+
pdf.draw_text("For Church Use Only", :at => [pdf.bounds.right/2 - pdf.width_of("For Church Use Only")/2, pdf.bounds.bottom])
|
49
|
+
pdf.draw_text(date, :at => [pdf.bounds.right - pdf.width_of(date), pdf.bounds.bottom])
|
50
50
|
(0...rows).each do |row|
|
51
51
|
y = pdf.bounds.top - row*grid_height - header_height
|
52
52
|
(0...columns).each do |column|
|
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: 2.0.
|
4
|
+
version: 2.0.1
|
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-
|
12
|
+
date: 2010-07-29 00:00:00 -06:00
|
13
13
|
default_executable: wagon
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 0.
|
43
|
+
version: 0.8.0
|
44
44
|
version:
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
46
|
name: queue_to_the_future
|