globase 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f1c8b22579fbfa601657e0cd7da62666237fa1b
4
- data.tar.gz: 5f79a2f29384327255254bbe27a32b9e28e83a2e
3
+ metadata.gz: 31a56d73ac9a15cb6ef9dd12d45bab75e7a192de
4
+ data.tar.gz: 5b311604b2d0843114622dfbb1f1abdd0f1d5e4a
5
5
  SHA512:
6
- metadata.gz: dd47bf57870c4392bb1afc8803cc06b56e63ab87f8f5f529a1bffcf75ff8d8f2660b0f575a75aecabe41da67ea133b24910694486a4a90725d213fbe5120735b
7
- data.tar.gz: e2c436639e9907efe3089e9118097d12721bce4337571de86fb4222065d28079f041a4046b4209cac841c67e1169c1020532e453f27c914c0c6906d871231913
6
+ metadata.gz: fabdc27eb576dd1a0fbba6be571f7f4cd8aeab38b7f96372fe65d200c6800e5f520762bddf96abeb354dc4605cae145b728bb193df564e9071389083097e498d
7
+ data.tar.gz: d3808fbf91f918b55bc0d939e9a932a8bde61086208c27c086788761b6f6211287f0d15d1e4734a7b907008aa0e41eb1096a1f208dcdabc3326ed3ba0caa7999
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- globase (0.0.1)
4
+ globase (0.0.2)
5
5
  activesupport
6
6
  oj (>= 2.14.0)
7
7
  oj_mimic_json
@@ -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
@@ -14,7 +14,12 @@ module Globase
14
14
  end
15
15
 
16
16
  def add_profile(list_profile, launchOptions = { data: nil }, params = {})
17
- self.class.send_request(:post, params, "#{id}/addProfile/#{list_profile.id}", launchOptions)
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 = {})
@@ -1,3 +1,3 @@
1
1
  module Globase
2
- VERSION = "0.0.1" unless defined?(Globase::VERSION)
2
+ VERSION = "0.0.2" unless defined?(Globase::VERSION)
3
3
  end
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.1
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-06-20 00:00:00.000000000 Z
11
+ date: 2016-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client