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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ee72178cce5e08954a47199f437b844e9f1f2f5
4
- data.tar.gz: 7a956a090d26790ebe9049f6e9834fdfa026b976
3
+ metadata.gz: bbbe5e5ccd905689d04a9ec5c9afd7df814773f3
4
+ data.tar.gz: a9da95e4eefe57e77f0564c7eb3dac101f5c61bb
5
5
  SHA512:
6
- metadata.gz: 75d6b265a4a70fed0643149401c09804cfa4d99ce17be104a1367d6aebcf93e58464b04f18ea8c257d3c8084af06084c87b87c1b939dcbcef18652d149b51f68
7
- data.tar.gz: fbbfa38665980592de22d29df7a7f6ff80e07dd227b7774bfd9da98a6a59536669c2e332dbec37bad330bc05906267d593325bf5e907e0de21be223df2c6927f
6
+ metadata.gz: a6937a68491d465597461ccbca274922c97cd59d3c3089bba9b31d1a6087684d4fb26f6ec63c16e2dce6fde9d9bca2b6857fdba4e9d3005397122a85bc9a7c33
7
+ data.tar.gz: 6826b409c3d94f2a97aa7ea715f1d5b7d3e09d212a783758a6560f6e3b60c926b0689a9307e19a1cd65a046cdcee2d82a34b5d8d8b806fbf922684c6bec88de5
data/lib/convertloop.rb CHANGED
@@ -3,7 +3,7 @@ require File.expand_path('convertloop/client.rb', File.dirname(__FILE__))
3
3
  # Ruby client of the ConvertLoop API
4
4
  module ConvertLoop
5
5
 
6
- $convertloop_version = "0.1.0"
6
+ $convertloop_version = "0.1.1"
7
7
 
8
8
  class << self
9
9
  def configure(options={})
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: convertloop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - German Escobar