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: 4dc81e7f106b07b5d468ebd0d5ff210c164b939d
4
- data.tar.gz: 69cbfce0edcf806087660873ff22ec6fd0da5728
3
+ metadata.gz: 838df116216638341ccdafaa866e54db5aac7fac
4
+ data.tar.gz: dc778ab8145722c960eb4ac2d32ab946ab8058cc
5
5
  SHA512:
6
- metadata.gz: 84d2c7a6a9039d6e7fc8f911b79930dd0ac54fbbfa219810a5102720e856f7670f717ff42766f9ee088a64723b92728f0bf8c0df35788c43309914ab184f47ce
7
- data.tar.gz: 35b44abfcf14b428279f9413f500d3029eb4cbd229a4cf60872071dbe2ea002cfab372406b43405904ba2b01676336b218c97d8acf9454cf4af75de786a8ff85
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
@@ -1,3 +1,3 @@
1
1
  module PaychexAPI
2
- VERSION = '0.0.21'.freeze unless defined?(PaychexAPI::VERSION)
2
+ VERSION = '0.0.22'.freeze unless defined?(PaychexAPI::VERSION)
3
3
  end
@@ -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.21
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-03-14 00:00:00.000000000 Z
11
+ date: 2019-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler