phccorehelpers 5.1.0 → 5.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b7bb7ddb1ea1e9841ddd536d364a37d4720dc30f3c532d5927f5d06ea98e96a
4
- data.tar.gz: 54288fc449ae334f70e1580157a80fc4f00d0af02876fedbf49b230bb650e9fe
3
+ metadata.gz: ab7d0c1eff1c92dce5f4c320f324bd3dd5e962e647845e7f8c5fbf7286776b88
4
+ data.tar.gz: b94764542a1755cbaff16252e53867917df8904a4d844ef292096a8dfe06bae1
5
5
  SHA512:
6
- metadata.gz: 30a3e750dbb4e624b42c8b705c308a7b9fd009d26bb11a681506365110602440e229fc4527a9134b279e3b25bb14e0a746beedcddfa755156c694fa8b6c368f2
7
- data.tar.gz: eec5efe2e13a5fc57eee4ff6dcaa91dcb456ceb4793e3f6554562bc5d22557375ef8fc62b1280eda8b28eb5e66a15837c400d487f5fe91b8fbf71f178e94b693
6
+ metadata.gz: 3df8cade84e9fb752fc3aa7c3b09866e4bba5b67baeacd68b59ef9b7f1841259e2ace4604877d19441beef6f91a50a3c1e7980a7046bb257009bc04276f89b25
7
+ data.tar.gz: 9981b7f977dd6ec469dd8a2942fbe25eb941e912f92398b4ae14763f4bfc86002f26c6f630bac75137f44890c9587d21f58476ff4748fddd3e7fa77d8744d334
@@ -1,11 +1,4 @@
1
1
  module Phccorehelpers
2
2
  module ApplicationHelper
3
-
4
- # Field Validation URLs
5
- phc_domain_regx = URI::regexp(%w(http https))
6
-
7
- # Field Validation Email
8
- phc_email_regx = /\A[^@\s]+@([^@\s]+\.)+[^@\s]+\z/
9
-
10
3
  end
11
- end
4
+ end
@@ -0,0 +1,12 @@
1
+ module Validations
2
+ extend ActiveSupport::Concern
3
+
4
+ def phc_domain_validation
5
+ phc_domain_regx = URI::regexp(%w(http https))
6
+ end
7
+
8
+ def phc_email_validation
9
+ phc_email_regx = /\A[^@\s]+@([^@\s]+\.)+[^@\s]+\z/
10
+ end
11
+
12
+ end
@@ -1,3 +1,3 @@
1
1
  module Phccorehelpers
2
- VERSION = '5.1.0'
2
+ VERSION = '5.2.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phccorehelpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
@@ -363,6 +363,7 @@ files:
363
363
  - app/helpers/phccorehelpers/phcpluginspro_helper.rb
364
364
  - app/jobs/phccorehelpers/application_job.rb
365
365
  - app/mailers/phccorehelpers/application_mailer.rb
366
+ - app/models/concerns/validations.rb
366
367
  - app/models/phccorehelpers/application_record.rb
367
368
  - app/views/layouts/phccorehelpers/application.html.erb
368
369
  - lib/phccorehelpers.rb