paychex_api 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 838df116216638341ccdafaa866e54db5aac7fac
|
4
|
+
data.tar.gz: dc778ab8145722c960eb4ac2d32ab946ab8058cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b455ac3a06604ac95e18a71d17866727ffd47ec1ce3c9c2b464b40e4861c9e06a8e6fb8bd0765e389dff3e6c28715f7f7f86d91d73ebf3f3d463c72ea5c9fd1c
|
7
|
+
data.tar.gz: 68d0dacc2db54e0b0746b5c1aec71788a77597e9f7437a7894618b6319de9a638bebd166bd5cbe83e700c131bc1bf4dc1600ec0e8bf690ea782b7134ec9cfb65
|
@@ -2,7 +2,7 @@ module PaychexAPI
|
|
2
2
|
class Client
|
3
3
|
module Notifications
|
4
4
|
def send_notification(notification_id, params = {})
|
5
|
-
post("#{API_PATH}#{NOTIFICATIONS_PATH}/#{notification_id}", params)
|
5
|
+
post("#{API_PATH}#{NOTIFICATIONS_PATH}/#{URI.escape(notification_id)}", params)
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|
data/lib/paychex_api/version.rb
CHANGED
@@ -10,4 +10,11 @@ describe PaychexAPI::Client::Notifications do
|
|
10
10
|
response = @client.send_notification('f7f9c815-0d4c-46e5-9434-5cc19470d1ed-3520000031155394')
|
11
11
|
expect(response.status).to(eq(200))
|
12
12
|
end
|
13
|
+
|
14
|
+
it 'should URI escape a notification id' do
|
15
|
+
expect_any_instance_of(PaychexAPI::Client::Notifications)
|
16
|
+
.to receive(:post)
|
17
|
+
.with("/notifications/f7f9c815-0d4c-46e5-9434-5cc1%209470d1ed-3520000031155394", {})
|
18
|
+
@client.send_notification('f7f9c815-0d4c-46e5-9434-5cc1 9470d1ed-3520000031155394')
|
19
|
+
end
|
13
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paychex_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jay Shaffer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|