fanforce-validations 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWE3MWUxZWNiODA1MWVkYTY4NTk5ZGQ0MWVlOWQ2MDYxMjcyYjFjZQ==
4
+ M2YyZGIxMDcyMmNjZDhhMzcwZjFiYWYwYjY4MjA3Y2RkMjkwNGNhNg==
5
5
  data.tar.gz: !binary |-
6
- NWZiN2Y1YTljYWNlYTA1ZWVmNjQyNTQwNGY4OTFiYzFjNjA3NTBlMw==
6
+ ODBkNGYyOGU3YTQ5YTQ3ZjJhZjQyNmZkZGQxYjJiNzAyYjBlYTk3ZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- M2M4ZjI5Mzc4ZmRmNGViNTkzMTRkN2JkMjkyODY5MWQwNjM5M2I3NTYxMWM3
10
- ZDJkNzlkMjkzNjIxNTQ1ZjQ0NmUzOTA2YTRkMDcwNDYxYmFjYzdjMDA1NTVk
11
- MmVlMWUxZmM5NTVkNTAwYTYxZGZjOWEwZTgxYmFlOGFjYWUzYTQ=
9
+ YzExZmNmMDRiZWIxY2U2ZDMzM2ExOTJlNTJkZGE0ZjdmMmVjZDhhZmQxODNm
10
+ Y2QzOGExOGNiYjQ4YjQ0NTA3Zjc1MTNiYzUyNmIyYWI5ZTI4OTM1ZDliZDA4
11
+ ZDVlYmYzNTE2MTFlZjkyYWYzYzJhYjczYzM5ZDY4NjcxZDM4YWQ=
12
12
  data.tar.gz: !binary |-
13
- MmY0MWQ4ZGNkYjQ2YjYzYzU5M2FlOTBkNzRmNTExMDQ2YmVkNzdiMzMxMDBh
14
- MzJlZjNiNWI1NmVlYzhjMjJjNDI5Yjk1NWRkOWRjNmM2NWE3ODc5ZGJmNTM3
15
- MGQ3M2FhY2M0ZmYzMzQyY2EwYjFhNzg0OTQyMzFmOGE5MTVkZTg=
13
+ MTM1NTZjYjYzNWYzNGUzYzc4Yzc1YmY1MGEzNzliNzhjY2NjODUxMGM2ODIy
14
+ MTFmNjNmZWM2MTYzNjYzODZhM2ZjMDcwMWY4ODMyYTQxYmMwNDA2Nzk5MzY3
15
+ MjhlMDYxZjljOGFhMzM2ODJiZjY0NzYyYzk2MTU2MDE0NzhlNmQ=
@@ -75,11 +75,11 @@ module Fanforce::Validations
75
75
  def validates_format_of_external_id(*args)
76
76
  opts = extract_options!(args).merge(:field => :_external_id)
77
77
  params = extract_validation_params(opts)
78
- _external_id = args
78
+ _external_id = args.first
79
79
 
80
80
  if is_present?(_external_id) and !_external_id.is_a?(String)
81
81
  opts[:message] = "id must be a string but was a #{_external_id.class.name}"
82
- elsif _external_id.include('/')
82
+ elsif _external_id.include?('/')
83
83
  opts[:message] = 'id cannot contain forward slashes (/)'
84
84
  else
85
85
  return true
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  module Validations
3
- VERSION = '0.3.1'
3
+ VERSION = '0.3.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce-validations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark