check_appointments 0.0.3 → 0.0.4

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: 097568d17cbba1d894ad9d7f153f94c698068624
4
- data.tar.gz: c16e38045d1d22f27ecac2875bbe58c165261af5
3
+ metadata.gz: 201810d749cbe207e60638ee1c3a098b1f00a4b2
4
+ data.tar.gz: d8828973e9d3bb93bc0738633a6b94f02c4138a9
5
5
  SHA512:
6
- metadata.gz: c121e52ad532aa8a608a8afbfd5a0fbc579eef9816e5417bbb9b3f02aafaf7ffe9bc5ae7c0465fb7946a8fe3d23ca82d962e06ef0b7ace7563fa3f0f57ce5fbc
7
- data.tar.gz: d7a3ef427e6f0860cb6adab16cbf2e24e2ef9db27fe89a45cb621f6212ef45241119f2b10170a1119d1542c8621caf882203cbd697f554b8da120b07790124bf
6
+ metadata.gz: 82c420b2d3371b734949c9c54cc1ba0609857370d82302979816b609e21efc49f9ffdf7d0fc4306e8586b726c2e25d0782065be06ba75e111620622078381064
7
+ data.tar.gz: 5bb11e12323c3344a72fdc02c7d2921bd1f1aa84688368b1d9197e32d81bcdbb73cdb4e7d1c23b9270012b11038a9c8c61350c5389d82334f177eebcf0fea2db
@@ -18,8 +18,10 @@ module CheckAppointments
18
18
  time_stamp = Time.now.utc.to_i
19
19
  sig = create_signature( CheckAppointments.api_key + CheckAppointments.private_key + time_stamp.to_s + api_url )
20
20
  response = RestClient.get CheckAppointments.base_url + api_url ,
21
- {:params => {:apiKey => CheckAppointments.api_key, :timestamp => time_stamp, :signature => sig }}
22
- # response = RestClient::Request.execute :method => :get, :url => CheckAppointments.base_url + api_url, :payload => {:apiKey => CheckAppointments.api_key, :timestamp => time_stamp, :signature => sig}, :ssl_version => 'TLSv1'
21
+ {:params =>
22
+ {:apiKey => CheckAppointments.api_key,
23
+ :timestamp => time_stamp,
24
+ :signature => sig }}
23
25
 
24
26
  appointments = JSON.parse(response)
25
27
  response = []
@@ -10,8 +10,11 @@ module CheckAppointments
10
10
  time_stamp = Time.now.utc.to_i
11
11
  sig = create_signature( CheckAppointments.api_key + CheckAppointments.private_key + time_stamp.to_s + api_url )
12
12
  response = RestClient.get CheckAppointments.base_url + api_url,
13
- {:params => {:apiKey => CheckAppointments.api_key, :timestamp => time_stamp, :signature => sig }}
14
- # response = RestClient::Request.execute :method => :get, :url => CheckAppointments.base_url + api_url, :payload => {:apiKey => CheckAppointments.api_key, :timestamp => time_stamp, :signature => sig}, :ssl_version => 'TLSv1'
13
+ {:params =>
14
+ {:apiKey => CheckAppointments.api_key,
15
+ :timestamp => time_stamp,
16
+ :signature => sig }}
17
+
15
18
  response
16
19
  end
17
20
 
@@ -22,8 +25,10 @@ module CheckAppointments
22
25
  time_stamp = Time.now.utc.to_i
23
26
  sig = create_signature( CheckAppointments.api_key + CheckAppointments.private_key + time_stamp.to_s + api_url )
24
27
  response = RestClient.get CheckAppointments.base_url + api_url,
25
- {:params => {:apiKey => CheckAppointments.api_key, :timestamp => time_stamp, :signature => sig }}
26
- # response = RestClient::Request.execute :method => :get, :url => CheckAppointments.base_url + api_url, :payload => {:apiKey => CheckAppointments.api_key, :timestamp => time_stamp, :signature => sig}, :ssl_version => 'TLSv1'
28
+ {:params =>
29
+ {:apiKey => CheckAppointments.api_key,
30
+ :timestamp => time_stamp,
31
+ :signature => sig }}
27
32
  response
28
33
  end
29
34
  end
@@ -2,7 +2,7 @@ module CheckAppointments
2
2
  require 'rest_client'
3
3
  require 'mime-types'
4
4
  require 'rdoc'
5
- require 'JSON'
5
+ require 'json'
6
6
  require 'check_appointments/client.rb'
7
7
  require 'check_appointments/appointments.rb'
8
8
  require 'check_appointments/configuration.rb'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: check_appointments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Sperry
@@ -43,7 +43,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
43
43
  version: '0'
44
44
  requirements: []
45
45
  rubyforge_project:
46
- rubygems_version: 2.2.2
46
+ rubygems_version: 2.4.5
47
47
  signing_key:
48
48
  specification_version: 4
49
49
  summary: Gem that interfaces with the CheckAppointments API