pipedrive-connect 2.1.0 → 2.1.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
  SHA256:
3
- metadata.gz: b59e1ddcf850e86b6ab8ddfc384c83d86b55839b9518ea482190f1685a9d0f4a
4
- data.tar.gz: 19715830d980662d719712275641380c818322c06f919b6b6924feda0dada118
3
+ metadata.gz: 533265b027ef65eafa32ef899acb02c7fbbe771cf250b4c3d2f229e12171e153
4
+ data.tar.gz: e3bcda6446944dbeeb4c5f3209988cfbba594a6b5fe225e9bbbd1b7915f0a293
5
5
  SHA512:
6
- metadata.gz: e8aaf434d1b15bae2de6608c1baada88ae3cd4010c29f633dcfe28804958a5b6a9356a68f92af392e7bf5bf023659e748c1d19281c34fb45d13583e22253740b
7
- data.tar.gz: 7b9318cee4b94c8b352a7767e8ba6d96c021836f44321ea2d69fcc88beebf1b54533c992669ee8b4d4cf2b6add603c8d15e3ed371e3c3554355f81e7ccbe44df
6
+ metadata.gz: 76a422274d31259ece238114f02f4b00407642f679dba5a5a8c72f08549d9cb1189c9b9b883f4713cbd36f8e56362ee584ac6320ec115b9f1ba80d2838596e48
7
+ data.tar.gz: d4b5c269662e117c759532803d8d4d4a011afce5268867391c6e04622c2acd37a2c09471c8458cf45762ea0137688be818ab6e6a44e6911f312f6093da93ca11
data/CHANGELOG.md CHANGED
@@ -5,6 +5,16 @@ 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.2] - 2025-08-12
9
+
10
+ ### Fixes
11
+ - Rollback Deal to be back to version **v1**
12
+
13
+ ## [2.1.1] - 2025-08-06
14
+
15
+ ### Changed
16
+ - Deal, Organization, Person, Pipeline, Product, Stage and User now support API **v2**.
17
+
8
18
  ## [2.1.0] - 2025-08-06
9
19
 
10
20
  ### Added
@@ -20,6 +30,7 @@ This change log follows the conventions of [keepachangelog.com](http://keepachan
20
30
 
21
31
  - Fix bugs introduced with version 2 where the base URL for v1 was broken.
22
32
  - Add GitHub Actions workflow
33
+
23
34
  ## [2.0.0] - 2025-04-11
24
35
 
25
36
  - **BREAKING change**: Minimum ruby version updated to 2.7.
@@ -8,6 +8,10 @@ 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
16
  false
13
17
  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.2"
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.2
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-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday