Skip to content

Commit cf14274

Browse files
author
Martin Moen Wulffeld
committed
Use https since Pipedrive is deprecating http.
1 parent 89edb8d commit cf14274

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

lib/pipedrive/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Base < OpenStruct
1616

1717
include HTTParty
1818

19-
base_uri 'api.pipedrive.com/v1'
19+
base_uri 'https://api.pipedrive.com/v1'
2020
headers HEADERS
2121
format :json
2222

test/test_pipedrive_authentication.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class TestPipedriveAuthentication < Test::Unit::TestCase
99
should "send authentication token with each request" do
1010
Pipedrive.authenticate("some-token")
1111

12-
stub_request(:get, "http://api.pipedrive.com/v1/?api_token=some-token").
12+
stub_request(:get, "https://api.pipedrive.com/v1/?api_token=some-token").
1313
with(:headers => {
1414
'Accept' => 'application/json',
1515
'Content-Type' => 'application/x-www-form-urlencoded',

test/test_pipedrive_deal.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def setup
1313
"value" => "37k"
1414
}
1515

16-
stub_request(:post, "http://api.pipedrive.com/v1/deals?api_token=some-token").
16+
stub_request(:post, "https://api.pipedrive.com/v1/deals?api_token=some-token").
1717
with(:body => body,
1818
:headers => {
1919
'Accept' => 'application/json',

test/test_pipedrive_note.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def setup
1313
# deal_id
1414
}
1515

16-
stub_request(:post, "http://api.pipedrive.com/v1/notes?api_token=some-token").
16+
stub_request(:post, "https://api.pipedrive.com/v1/notes?api_token=some-token").
1717
with(:body => body, :headers => {
1818
'Accept' => 'application/json',
1919
'Content-Type' => 'application/x-www-form-urlencoded',

test/test_pipedrive_organization.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def setup
66
end
77

88
should "execute a valid person request" do
9-
stub_request(:post, "http://api.pipedrive.com/v1/organizations?api_token=some-token").
9+
stub_request(:post, "https://api.pipedrive.com/v1/organizations?api_token=some-token").
1010
with(:body => {
1111
"name" => "Dope.org"
1212
},

test/test_pipedrive_person.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def setup
1313
"phone" => ["0123456789"]
1414
}
1515

16-
stub_request(:post, "http://api.pipedrive.com/v1/persons?api_token=some-token").
16+
stub_request(:post, "https://api.pipedrive.com/v1/persons?api_token=some-token").
1717
with(:body => body, :headers => {
1818
'Accept' => 'application/json',
1919
'Content-Type' => 'application/x-www-form-urlencoded',

0 commit comments

Comments
 (0)