pipedrive-connect 1.2.5 → 1.2.6

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
  SHA256:
3
- metadata.gz: 20c88503caad92edee781b85cc86ee98ac1d76ee904011bf18e00fb2ef74d6aa
4
- data.tar.gz: 791ecd2272db440c650654e8e0077d8b6de8faf0547709c7496c2d24a48cccf6
3
+ metadata.gz: e705f90cd87169ced3f60343e12dc37b327620287f432fafb67801057568fb3c
4
+ data.tar.gz: e424975763b80cb7d3af1f29ffd2f6625cd53dc5a752383419443e143e9ce81d
5
5
  SHA512:
6
- metadata.gz: fdc8ab71c6bdecbb1a0c39a56f9569e6bffc1bd6269440a74acf542895e9f9bdabf377a3051c4d97bd5e9e085329182bd6f300366a91c99532e87cdc5de8069d
7
- data.tar.gz: afcb6b1767999a8b8e1782b129fae2e66ea31e2bc60be6f39ea9beae2612c61199cee692b10dc0ca83727ee125c6d4c0fd5664dc8c0c03425021467d2ab08d1d
6
+ metadata.gz: 1e0bd348c7478ceb95af39b0edfc33b7914a216bfe20d9ce51a799f64ff2642a193be605dbc2fd46d77a040ee3c9c6fb87653d5396453af5b708fa23030bd3dc
7
+ data.tar.gz: c627679cf39a5fdabc0901ced1664bdb6b551119db5805a477177d62bd176ea70b6bdc18ef1c375f9cbf2a9e92b42998d96e97b9ebcd21d9b457160874c5fe4a
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ This file contains all notable changes to this project.
4
4
  This project adheres to [Semantic Versioning](http://semver.org/).
5
5
  This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/).
6
6
 
7
+ ## [1.2.6] - 2022-07-11
8
+
9
+ - Add `delete_attached_product` method to `Deal`
10
+ - Add metadata to `has_many` relations that store the returned _data_(API) without transformation, as it is.
11
+
7
12
  ## [1.2.5] - 2022-03-03
8
13
 
9
14
  - Add `deals` to `Person`
@@ -79,6 +79,7 @@ module Pipedrive
79
79
  params.merge(options))
80
80
  response.dig(:data)&.map do |data|
81
81
  class_name_as_sym = class_name_lower_case.to_sym
82
+ data[:metadata] = data
82
83
  if data.key?(class_name_as_sym)
83
84
  data = data.merge(data.delete(class_name_as_sym))
84
85
  end
@@ -22,5 +22,12 @@ module Pipedrive
22
22
  )
23
23
  Product.new(response.dig(:data))
24
24
  end
25
+
26
+ # DELETE /deals/:id/products/:product_attachment_id
27
+ # Detach a product from this deal
28
+ def delete_attached_product(product_attachment_id)
29
+ response = request(:delete, "#{resource_url}/products/#{product_attachment_id}")
30
+ response[:success]
31
+ end
25
32
  end
26
33
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pipedrive
4
- VERSION = "1.2.5"
4
+ VERSION = "1.2.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipedrive-connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Get on Board
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-03 00:00:00.000000000 Z
11
+ date: 2022-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday