payday 1.0.1 → 1.0.2

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/README.md CHANGED
@@ -27,7 +27,7 @@ Example:
27
27
 
28
28
  Documentation
29
29
  ===
30
- Documentation for the latest version of Payday is available at [rdoc.info](http://rdoc.info/github/commondream/payday/v1.0.0beta5/frames).
30
+ Documentation for the latest version of Payday is available at [rdoc.info](http://rdoc.info/github/commondream/payday/v1.0.1/frames).
31
31
 
32
32
  Customizing Your Invoice
33
33
  ===
@@ -122,7 +122,7 @@ module Payday
122
122
 
123
123
  # Paid on
124
124
  if defined?(invoice.paid_at) && invoice.paid_at
125
- if invoice.paid_at.is_a?(Date)
125
+ if invoice.paid_at.is_a?(Date) || invoice.due_at.is_a?(Time)
126
126
  paid_date = invoice.paid_at.strftime(Payday::Config.default.date_format)
127
127
  else
128
128
  paid_date = invoice.paid_at.to_s
@@ -2,5 +2,5 @@
2
2
  module Payday
3
3
 
4
4
  # Current Version
5
- VERSION = "1.0.1"
5
+ VERSION = "1.0.2"
6
6
  end
data/payday.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.summary = %q{git remote add origin git@github.com:commondream/payday.git}
13
13
  s.description = %q{Payday is a library for rendering invoices. At present it supports rendering invoices to pdfs, but we're planning on adding support for other formats in the near future.}
14
14
 
15
- s.add_dependency("prawn", "~> 0.11.1.pre")
15
+ s.add_dependency("prawn", "~> 0.11.1")
16
16
  s.add_dependency("money", "~> 3.6.1")
17
17
  s.add_dependency("i18n", "~> 0.5.0")
18
18
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: payday
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.1
5
+ version: 1.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Alan Johnson
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-29 00:00:00 -04:00
13
+ date: 2011-04-10 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -21,7 +21,7 @@ dependencies:
21
21
  requirements:
22
22
  - - ~>
23
23
  - !ruby/object:Gem::Version
24
- version: 0.11.1.pre
24
+ version: 0.11.1
25
25
  type: :runtime
26
26
  version_requirements: *id001
27
27
  - !ruby/object:Gem::Dependency