globase 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/globase/base.rb +1 -1
- data/lib/globase/campaign.rb +6 -1
- data/lib/globase/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31a56d73ac9a15cb6ef9dd12d45bab75e7a192de
|
4
|
+
data.tar.gz: 5b311604b2d0843114622dfbb1f1abdd0f1d5e4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fabdc27eb576dd1a0fbba6be571f7f4cd8aeab38b7f96372fe65d200c6800e5f520762bddf96abeb354dc4605cae145b728bb193df564e9071389083097e498d
|
7
|
+
data.tar.gz: d3808fbf91f918b55bc0d939e9a932a8bde61086208c27c086788761b6f6211287f0d15d1e4734a7b907008aa0e41eb1096a1f208dcdabc3326ed3ba0caa7999
|
data/Gemfile.lock
CHANGED
data/lib/globase/base.rb
CHANGED
@@ -60,7 +60,7 @@ module Globase
|
|
60
60
|
fields_matching = fields_data & fields_mandatory
|
61
61
|
fileds_missing = fields_mandatory - fields_matching
|
62
62
|
|
63
|
-
errors << "Mandatory fields missing: #{fileds_missing.join(', ')}" if fileds_missing.any?
|
63
|
+
errors << "Mandatory fields missing: #{fileds_missing.join(', ')} for #{self}" if fileds_missing.any?
|
64
64
|
|
65
65
|
errors
|
66
66
|
end
|
data/lib/globase/campaign.rb
CHANGED
@@ -14,7 +14,12 @@ module Globase
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def add_profile(list_profile, launchOptions = { data: nil }, params = {})
|
17
|
-
|
17
|
+
if list_profile.is_a?(Numeric)
|
18
|
+
profile_id = list_profile
|
19
|
+
else
|
20
|
+
profile_id = list_profile.id
|
21
|
+
end
|
22
|
+
self.class.send_request(:post, params, "#{id}/addProfile/#{profile_id}", launchOptions)
|
18
23
|
end
|
19
24
|
|
20
25
|
def add_profiles(list_profile_ids, params = {})
|
data/lib/globase/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: globase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robin Wunderlin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|