fanforce-validations 0.3.3 → 0.4.0

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
- ODZkODA5ZWFlYjJkMjRiZmMzMzEwMWI0MjA1ODBlOGU3YTFkZTI4ZQ==
4
+ YTNiZDhhZjMyMmZhMDlhYzY3MGZlYmMzN2ZhOGVlOGNiOTg3NGQwZA==
5
5
  data.tar.gz: !binary |-
6
- N2EwMjU1MDc0YmZhMmVlZTZjMmNmZDZjNjAzM2UzYmQ2NDcxZDdiNA==
6
+ ODJlYmU2YTUwYjZmNWU1OWJmMzkxNGQ3N2RhOWY3MjgzNzc1YmNkMw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NTFkMGFmOGRjOGNjNzk5NWY3ZmY0NTU0YmJkZDVkYTY2OWQ1OTQ0MDQzZmM4
10
- MDRiMjQ3ZjA2NzRkZDM5NDlhYmExNjA0ZmU5ODAzYmRjY2UwM2Y2NjAyOTVl
11
- NzNkYzU1ODkxNDAzM2Q1MDFlZjczMTlmNDgxYTdiYzA1Y2ZmNzk=
9
+ M2FiN2UyOTI4ODMyNzVmMTEzZGI2OWYzZTQ5YzFmNjRkMTg0NDBjOThmZmJm
10
+ NTQ5ZmE3ZmY0MzVjOGVlZGUzN2QxZTBkY2M1ZmMwYTVhM2QwNDljMmQxNTE3
11
+ MmE5OWEwMjZiN2RhNWU0YTIyZTM3MjZjZWE1ZDQyNTJjYTk4NDE=
12
12
  data.tar.gz: !binary |-
13
- ZDUyODhiMGQxYTA5MGMwNWYyYTdjODFjNzBmYWMzOGI3N2RkMjBmODNmZTE5
14
- ZTQ4MTMxNjM5ODBiN2E2NDEzYTZmNGI5N2I3NDc3NzA2YzgwOTc0ZDBhODEx
15
- NmVmZjBlZDE4NDhhNzQ1ODcxOWQxMmU1NTUxNzkxY2M4ODVjY2Y=
13
+ N2MwMDk5MzAxMTk3ZGE4OTQ5NGU0MWYyM2Q1MWJhMGY5YmRhYWQ5NGViYjM5
14
+ MTAzNDg3MmQ0OGI3NmY5OTU4MWQyNjgwZDIyYjVjMmI3YWFmY2U1NzQxZjQ4
15
+ MWQwNzFlOGQxZDAyYTA0YzdkOGFmYzhiNGZkZjA0NjBhNGY1YjI=
@@ -73,14 +73,14 @@ module Fanforce::Validations
73
73
  end
74
74
 
75
75
  def validates_format_of_external_id(*args)
76
+ _external_id = args.first
76
77
  opts = extract_options!(args).merge(:field => :_external_id)
77
78
  params = extract_validation_params(opts)
78
- _external_id = args.first
79
79
 
80
80
  if is_present?(_external_id) and !_external_id.is_a?(String)
81
- opts[:message] = "id must be a string but was a #{_external_id.class.name}"
81
+ opts[:message] = "if included, _external_id must be a string not a #{_external_id.class.name}"
82
82
  elsif !_external_id.nil? and _external_id.include?('/')
83
- opts[:message] = 'id cannot contain forward slashes (/)'
83
+ opts[:message] = '_external_id cannot contain forward slashes (/)'
84
84
  else
85
85
  return true
86
86
  end
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  module Validations
3
- VERSION = '0.3.3'
3
+ VERSION = '0.4.0'
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.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark