payday 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -5
- data/lib/payday/invoiceable.rb +3 -3
- data/lib/payday/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0e4dbf4f7c27b8125b42f5c860197f3f9ece07e
|
4
|
+
data.tar.gz: b802ed379157ed01805aadd3a06d6eb89318e6f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 816fa5c172f2dc077501f867209c07a5bd877c3866d51fa44ae1006c05a0491fe8b352bbd75e21016d5527960ee970e70fbf287167f7f0390261114208058f4b
|
7
|
+
data.tar.gz: 8c7a8cff097142437fed22dd7db1334c3533fb81ae328dc444d91ad3a861dca60ed55334bd7d913b81104d13dbd06cc51197fce81438706c2a4d9a263a7f411a
|
data/README.md
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
![Build Status](https://www.codeship.io/projects/94d9b760-b088-0131-bef4-5a9e112e295d/status)
|
2
|
-
|
3
1
|
Payday!
|
4
2
|
===
|
5
3
|
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.
|
@@ -29,7 +27,7 @@ Example:
|
|
29
27
|
|
30
28
|
Documentation
|
31
29
|
===
|
32
|
-
Documentation for the latest version of Payday is available at [
|
30
|
+
Documentation for the latest version of Payday is available at [rubydoc.info](http://www.rubydoc.info/gems/payday).
|
33
31
|
|
34
32
|
Customizing Your Invoice
|
35
33
|
===
|
@@ -103,8 +101,6 @@ Examples
|
|
103
101
|
===
|
104
102
|
Here's an [example PDF Invoice](https://github.com/downloads/commondream/payday/example.pdf)
|
105
103
|
|
106
|
-
There's also an example Rails application running on Heroku at [http://payday-example.heroku.com](http://payday-example.heroku.com). You can check out the source at [http://github.com/commondream/payday-example](http://github.com/commondream/payday-example).
|
107
|
-
|
108
104
|
Contributing
|
109
105
|
===
|
110
106
|
Payday is pretty young, so there's still a good bit of work to be done. I highly recommend sending me a message on GitHub before making too many changes, just to make sure that two folks aren't doing the same work, but beyond that feel free to fork the project, make some changes, and send a pull request. If you're unsure about what to work on but would like to help, send me a message on GitHub. I'd love the help!
|
data/lib/payday/invoiceable.rb
CHANGED
@@ -50,15 +50,15 @@ module Payday::Invoiceable
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def overdue?
|
53
|
-
defined?(
|
53
|
+
defined?(due_at) && ((due_at.is_a?(Date) && due_at < Date.today) || (due_at.is_a?(Time) && due_at < Time.now)) && !paid_at
|
54
54
|
end
|
55
55
|
|
56
56
|
def refunded?
|
57
|
-
defined?(
|
57
|
+
defined?(refunded_at) && !!refunded_at
|
58
58
|
end
|
59
59
|
|
60
60
|
def paid?
|
61
|
-
defined?(
|
61
|
+
defined?(paid_at) && !!paid_at
|
62
62
|
end
|
63
63
|
|
64
64
|
# Renders this invoice to pdf as a string
|
data/lib/payday/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: payday
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alan Johnson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: prawn
|