refinerycms-jobs 3.0.3 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/refinery/jobs/job_application.rb +2 -2
- data/refinerycms-jobs.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d328a0f47dd50acf473ca8e3ff5349718676f711
|
4
|
+
data.tar.gz: 3d59668267227103fb96a2aec2c34255ec41f118
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 524690d7581b52096c021c74bf6189e983acb4330a9c70cecf664cd181817d7e3d023e40c19e26e13179dd327bc34aa799265891ea43d9710e31e86e00d3e02f
|
7
|
+
data.tar.gz: 286dafc5e47ffbc38b821dcdc218b2d4fe34e4aa392afaa5dfd2f7b44499b93adbb3e09c1f1e0ff1e492b097600d89de9b4fe3c72aca00745cb99c06be46593e
|
@@ -20,7 +20,7 @@ module Refinery
|
|
20
20
|
validates :email, format: {
|
21
21
|
with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i
|
22
22
|
}, length: { maximum: 255 }
|
23
|
-
validates :cover_letter, presence: true, if: :
|
23
|
+
validates :cover_letter, presence: true, if: :cover_letter_required?
|
24
24
|
validates :resume, presence: true, if: :resume_required?
|
25
25
|
validates_with Refinery::Jobs::Validators::FileSizeValidator
|
26
26
|
|
@@ -28,7 +28,7 @@ module Refinery
|
|
28
28
|
true
|
29
29
|
end
|
30
30
|
|
31
|
-
def
|
31
|
+
def cover_letter_required?
|
32
32
|
true
|
33
33
|
end
|
34
34
|
end
|
data/refinerycms-jobs.gemspec
CHANGED
@@ -4,7 +4,7 @@ $:.push File.expand_path('../lib', __FILE__)
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.platform = Gem::Platform::RUBY
|
6
6
|
s.name = %q{refinerycms-jobs}
|
7
|
-
s.version = '3.0.
|
7
|
+
s.version = '3.0.4'
|
8
8
|
s.summary = %q{Ruby on Rails jobs engine for Refinery CMS.}
|
9
9
|
s.description = %q{Open source Ruby on Rails jobs engine designed for integration with Refinery CMS.}
|
10
10
|
s.email = %q{}
|