sageone_api_request_signer 0.0.1 → 1.0.0
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 530d5f9690e6b6f01a795d348d6766302cee900c
|
4
|
+
data.tar.gz: d2da5a1d217bf63ca2cb556c3a5395751ea37d39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 568d591f8ca21d23768594ea16a6a15a4096938cfab1696be3ea6a9ccd78e9eb401cf3e4556fafe619e4bcfa99ff4e223fad815c7da96f64c156a4fee66a6d45
|
7
|
+
data.tar.gz: 8e2375185c556124efcd3cb2d970218b98d07acb1c8987e9ac3cbbef42587f989ba895743aeedfd8bc86c9c31531b9ec28dfab755d80a23a1d003e64fa937992
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Sageone Api Request Signer
|
2
2
|
|
3
|
-
This gem
|
3
|
+
This gem do the signing process needed to make every request to a [SageOne](http://www.sageone.com) API.
|
4
4
|
|
5
5
|
The signing proccess is described here: [https://developers.sageone.com/docs#signing_your_requests](https://developers.sageone.com/docs#signing_your_requests)
|
6
6
|
|
@@ -32,4 +32,12 @@ RSpec.describe SageoneApiRequestSigner do
|
|
32
32
|
|
33
33
|
end
|
34
34
|
end
|
35
|
+
|
36
|
+
describe 'bug when the url has no params' do
|
37
|
+
it 'should not raise an error!' do
|
38
|
+
subject.url = 'https://api.sageone.com/test/accounts/v1/contacts'
|
39
|
+
expect(subject.url_params).to eql({})
|
40
|
+
expect(subject.signature).to_not be nil
|
41
|
+
end
|
42
|
+
end
|
35
43
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sageone_api_request_signer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rudiney Altair Franceschi
|
@@ -213,3 +213,4 @@ test_files:
|
|
213
213
|
- spec/integration/check_signature_data_spec.rb
|
214
214
|
- spec/sageone_api_request_signer_spec.rb
|
215
215
|
- spec/spec_helper.rb
|
216
|
+
has_rdoc:
|