punchcard 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.7
1
+ 0.2.8
@@ -12,7 +12,9 @@ class Punch < ActiveRecord::Base
12
12
  end
13
13
 
14
14
  validate do |p|
15
- p.errors.add :person, "Person already has a pending punch!" if p.person.pending? and p.person.pending?.id != p.id
15
+ if p.checked_out_at.blank? and p.person.pending? and p.person.pending?.id != p.id
16
+ p.errors.add :person, "Person already has a pending punch!"
17
+ end
16
18
  end
17
19
 
18
20
  after_save do |p|
data/punchcard.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{punchcard}
8
- s.version = "0.2.7"
8
+ s.version = "0.2.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Christoph Olszowka"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 7
9
- version: 0.2.7
8
+ - 8
9
+ version: 0.2.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Christoph Olszowka