convertloop 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/convertloop.rb +1 -1
- data/lib/convertloop/person.rb +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: bbbe5e5ccd905689d04a9ec5c9afd7df814773f3
|
4
|
+
data.tar.gz: a9da95e4eefe57e77f0564c7eb3dac101f5c61bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6937a68491d465597461ccbca274922c97cd59d3c3089bba9b31d1a6087684d4fb26f6ec63c16e2dce6fde9d9bca2b6857fdba4e9d3005397122a85bc9a7c33
|
7
|
+
data.tar.gz: 6826b409c3d94f2a97aa7ea715f1d5b7d3e09d212a783758a6560f6e3b60c926b0689a9307e19a1cd65a046cdcee2d82a34b5d8d8b806fbf922684c6bec88de5
|
data/lib/convertloop.rb
CHANGED
data/lib/convertloop/person.rb
CHANGED
@@ -8,7 +8,7 @@ module ConvertLoop
|
|
8
8
|
|
9
9
|
def create_or_update(args={})
|
10
10
|
raise ArgumentError, "No args provided" if args.nil?
|
11
|
-
if args[:pid].nil? && args[:user_id] && args[:email]
|
11
|
+
if args[:pid].nil? && args[:user_id].nil? && args[:email].nil?
|
12
12
|
raise ArgumentError, "You must supply at least one of the following keys: ':pid' (to update), or ':user_id' and/or ':email' (to create or update)"
|
13
13
|
end
|
14
14
|
|