pipedrive-connect 2.1.0 → 2.1.1

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: b59e1ddcf850e86b6ab8ddfc384c83d86b55839b9518ea482190f1685a9d0f4a
4
- data.tar.gz: 19715830d980662d719712275641380c818322c06f919b6b6924feda0dada118
3
+ metadata.gz: aaf73c515815f3c167d4ae50a7df906187f6f907979b9112890aa67c37ce7ed0
4
+ data.tar.gz: ca708585ed82f05fb61a6c24f7a0daf40e927abec936532fe508049b4c1cded1
5
5
  SHA512:
6
- metadata.gz: e8aaf434d1b15bae2de6608c1baada88ae3cd4010c29f633dcfe28804958a5b6a9356a68f92af392e7bf5bf023659e748c1d19281c34fb45d13583e22253740b
7
- data.tar.gz: 7b9318cee4b94c8b352a7767e8ba6d96c021836f44321ea2d69fcc88beebf1b54533c992669ee8b4d4cf2b6add603c8d15e3ed371e3c3554355f81e7ccbe44df
6
+ metadata.gz: b939b3ec4aa1548549f2e81b81c2d8c93d1f9d35f40ca4076a6adfef8914c12c223c500d87f3b6d17681ec1d2713ded9fbd58ac8b54cf4a9eb811a8312713b92
7
+ data.tar.gz: 596515219b75357ef3e18312065b7764596f9959d24db958250b9142578f684e3b2e95c14f6378053345d51200e16e934be942760f3ca3e44c09e11bd4a73d79
data/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/).
7
7
 
8
+ ## [2.1.1] - 2025-08-06
9
+
10
+ ### Changed
11
+ - Deal, Organization, Person, Pipeline, Product, Stage and User now support API **v2**.
12
+
8
13
  ## [2.1.0] - 2025-08-06
9
14
 
10
15
  ### Added
@@ -20,6 +25,7 @@ This change log follows the conventions of [keepachangelog.com](http://keepachan
20
25
 
21
26
  - Fix bugs introduced with version 2 where the base URL for v1 was broken.
22
27
  - Add GitHub Actions workflow
28
+
23
29
  ## [2.0.0] - 2025-04-11
24
30
 
25
31
  - **BREAKING change**: Minimum ruby version updated to 2.7.
@@ -8,8 +8,12 @@ module Pipedrive
8
8
  has_many :products, class_name: "Product"
9
9
  has_many :participants, class_name: "Participant"
10
10
 
11
+ # fields are only available in v1
12
+ # https://developers.pipedrive.com/docs/api/v1/DealFields#getDealFields
13
+ use_fields_version :v1
14
+
11
15
  def self.supports_v2_api?
12
- false
16
+ true
13
17
  end
14
18
  end
15
19
  end
@@ -8,5 +8,13 @@ module Pipedrive
8
8
  has_many :activities, class_name: "Activity"
9
9
  has_many :deals, class_name: "Deal"
10
10
  has_many :persons, class_name: "Person"
11
+
12
+ # fields are only available in v1
13
+ # https://developers.pipedrive.com/docs/api/v1/OrganizationFields#getOrganizationFields
14
+ use_fields_version :v1
15
+
16
+ def self.supports_v2_api?
17
+ true
18
+ end
11
19
  end
12
20
  end
@@ -7,5 +7,13 @@ module Pipedrive
7
7
 
8
8
  has_many :deals, class_name: "Deal"
9
9
  has_many :activities, class_name: "Activity"
10
+
11
+ # fields are only available in v1
12
+ # https://developers.pipedrive.com/docs/api/v1/PersonFields#getPersonFields
13
+ use_fields_version :v1
14
+
15
+ def self.supports_v2_api?
16
+ true
17
+ end
10
18
  end
11
19
  end
@@ -1,5 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pipedrive
4
- class Pipeline < Resource; end
4
+ class Pipeline < Resource
5
+ def self.supports_v2_api?
6
+ true
7
+ end
8
+ end
5
9
  end
@@ -4,8 +4,12 @@ module Pipedrive
4
4
  class Product < Resource
5
5
  include Fields
6
6
 
7
+ # fields are only available in v1
8
+ # https://developers.pipedrive.com/docs/api/v1/ProductFields#getProductFields
9
+ use_fields_version :v1
10
+
7
11
  def self.supports_v2_api?
8
- false
12
+ true
9
13
  end
10
14
  end
11
15
  end
@@ -1,5 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pipedrive
4
- class Stage < Resource; end
4
+ class Stage < Resource
5
+ def self.supports_v2_api?
6
+ true
7
+ end
8
+ end
5
9
  end
@@ -18,5 +18,9 @@ module Pipedrive
18
18
 
19
19
  items.map { |d| new(d) }
20
20
  end
21
+
22
+ def self.supports_v2_api?
23
+ true
24
+ end
21
25
  end
22
26
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pipedrive
4
- VERSION = "2.1.0"
4
+ VERSION = "2.1.1"
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: 2.1.0
4
+ version: 2.1.1
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: 2025-08-06 00:00:00.000000000 Z
11
+ date: 2025-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday