wrike3 0.3.1 → 0.3.3

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: 9d7e84172998b74ac2cce6fb4fa87f0200de1f6a
4
- data.tar.gz: 0cb6b2379ab099e26a1e53a1d7d60dc92561f414
3
+ metadata.gz: fdfbff43092737af55163a57073f3a8337181691
4
+ data.tar.gz: c63f04c136f47ecd0246d718e0da16f2cc33bd05
5
5
  SHA512:
6
- metadata.gz: 1b011b66f19404620f9be9ec30da226e422f53cb48b99700a67001ae46a0064bbe71cdcf3dbfc0e5883633c2cd85a377b7577dd170fbab8906538918cfdefa41
7
- data.tar.gz: 75ca30cfbf73e0bfbb77ddc44c3810e5d2815cf81a6753b33eccd1824a20fb3514b1a61dc2f51f86fc0c1e5e3080dbd41d0e6fba382df037b84ca38aefff3f04
6
+ metadata.gz: 9d0a5a2acd8325edead1f4381944fca694feff891fe11090dea4177ebc54e2ad4ebaf514015878e6ab3da6dfbaf522052b9438816159b64ce038dff63d671bf2
7
+ data.tar.gz: 16dd2ab76eac0b3078159a588ee8aaf2663be35a84c93a3ca2bb9b7308fa3ed54b572c800c18d16c20e0ffdfca3a3bb720915dafdf073650ab0e0314734dfd7b
@@ -9,5 +9,9 @@ module Wrike3
9
9
  def list(options = {})
10
10
  wrike.execute(:get, api_url('contacts'), options)
11
11
  end
12
+
13
+ def details(ids, options = {})
14
+ wrike.execute(:get, api_url("contacts/#{ids}"), options)
15
+ end
12
16
  end
13
17
  end
data/lib/wrike3/folder.rb CHANGED
@@ -16,8 +16,9 @@ module Wrike3
16
16
  end
17
17
 
18
18
  # create a folder
19
- def create(id, params = {})
20
- wrike.execute(:post, api_url("/folders/#{id}/folders"), to_j(params))
19
+ def create(folder_id = nil, params = {})
20
+ wrike_url = "folders#{(folder_id.present? ? "/#{folder_id}/folders" : '')}"
21
+ wrike.execute(:post, api_url(wrike_url), to_j(params))
21
22
  end
22
23
 
23
24
  # Update a folder
@@ -1,3 +1,3 @@
1
1
  module Wrike3
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wrike3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Morshed Alam