circuit-api 0.0.8 → 0.0.9

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
  SHA256:
3
- metadata.gz: c454e2036fbc574f3eba128408d0b0a0a7eafc76949b9f68e4d343e0fbf51a91
4
- data.tar.gz: 4ec267ac51ba46e7a6b274e8a01c680a27d6cbbad5b510bb4c5d6d669d94dcc6
3
+ metadata.gz: 234c66d2905614c06c4e4ccc07a8edfbda7766f1b95a56988fea7e4f45f8af1f
4
+ data.tar.gz: 8b83b6abe3f0ae5b83e9ded857ea2f3eaeb0b3ecd3670604571f5caff4e5ef43
5
5
  SHA512:
6
- metadata.gz: 9a4fec6259749e15896ddd5425badc3839167b22bb8e981d2f89c63dc63f179f6f3912fad4cf4d3ade18739f901acc587157c44d95c8f1ce847606e7a2e69e69
7
- data.tar.gz: fda87cbaf38ac36e75e3176d9a5d163572ded5ebeb927a3031b3e42cc5dc34d3b9f804c32e7ad08114502c0258022e9728d8ccb4d54fdd613dc0ee3e7e9a3bf0
6
+ metadata.gz: 6fb646160c7202d9b97d045509f172f99030ef668435927b489e43472f30f2b2888ee1c9a9e98931e3f944c24571bc7609475055b47dac08535befcebb0f1bf1
7
+ data.tar.gz: 0f658a47de93057fbea22f512876fb326b32c6dc7fd5df6bc63a194acaf241f71011e0a171535ac6e5cd10117586e8efa47abe22ebdb27b538153f2059cbb8e6
@@ -6,10 +6,13 @@ module CircuitApi
6
6
  end
7
7
 
8
8
  def create(conversation_id, params)
9
- result = connection(
10
- api_resource.sub(':id', conversation_id),
11
- params
12
- ).post
9
+ path = api_resource.sub(':id', conversation_id)
10
+
11
+ if CircuitApi::Utils::Object.present?(params[:item_id])
12
+ path = "#{path}/#{params.delete(:item_id)}"
13
+ end
14
+
15
+ result = connection(path, params).post
13
16
  response_to_object(result)
14
17
  end
15
18
  end
@@ -1,3 +1,3 @@
1
1
  module CircuitApi
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: circuit-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Pochet