fanforce-validations 0.3.2 → 0.3.3

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
- M2YyZGIxMDcyMmNjZDhhMzcwZjFiYWYwYjY4MjA3Y2RkMjkwNGNhNg==
4
+ ODZkODA5ZWFlYjJkMjRiZmMzMzEwMWI0MjA1ODBlOGU3YTFkZTI4ZQ==
5
5
  data.tar.gz: !binary |-
6
- ODBkNGYyOGU3YTQ5YTQ3ZjJhZjQyNmZkZGQxYjJiNzAyYjBlYTk3ZQ==
6
+ N2EwMjU1MDc0YmZhMmVlZTZjMmNmZDZjNjAzM2UzYmQ2NDcxZDdiNA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YzExZmNmMDRiZWIxY2U2ZDMzM2ExOTJlNTJkZGE0ZjdmMmVjZDhhZmQxODNm
10
- Y2QzOGExOGNiYjQ4YjQ0NTA3Zjc1MTNiYzUyNmIyYWI5ZTI4OTM1ZDliZDA4
11
- ZDVlYmYzNTE2MTFlZjkyYWYzYzJhYjczYzM5ZDY4NjcxZDM4YWQ=
9
+ NTFkMGFmOGRjOGNjNzk5NWY3ZmY0NTU0YmJkZDVkYTY2OWQ1OTQ0MDQzZmM4
10
+ MDRiMjQ3ZjA2NzRkZDM5NDlhYmExNjA0ZmU5ODAzYmRjY2UwM2Y2NjAyOTVl
11
+ NzNkYzU1ODkxNDAzM2Q1MDFlZjczMTlmNDgxYTdiYzA1Y2ZmNzk=
12
12
  data.tar.gz: !binary |-
13
- MTM1NTZjYjYzNWYzNGUzYzc4Yzc1YmY1MGEzNzliNzhjY2NjODUxMGM2ODIy
14
- MTFmNjNmZWM2MTYzNjYzODZhM2ZjMDcwMWY4ODMyYTQxYmMwNDA2Nzk5MzY3
15
- MjhlMDYxZjljOGFhMzM2ODJiZjY0NzYyYzk2MTU2MDE0NzhlNmQ=
13
+ ZDUyODhiMGQxYTA5MGMwNWYyYTdjODFjNzBmYWMzOGI3N2RkMjBmODNmZTE5
14
+ ZTQ4MTMxNjM5ODBiN2E2NDEzYTZmNGI5N2I3NDc3NzA2YzgwOTc0ZDBhODEx
15
+ NmVmZjBlZDE4NDhhNzQ1ODcxOWQxMmU1NTUxNzkxY2M4ODVjY2Y=
@@ -79,7 +79,7 @@ module Fanforce::Validations
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.nil? and _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.2'
3
+ VERSION = '0.3.3'
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.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark