telephone_appointments 0.1.0 → 0.1.1

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: a68c22ea72cc7042cdf4271298005e93f855402a
4
- data.tar.gz: f48e156d0ef6ef3caac93fe09c890e5867f13cc0
3
+ metadata.gz: 5f628cedc4060e5621c8bba55e3e4a3247c8fb51
4
+ data.tar.gz: dca38d736d0341ec4a293d9418ac3beb2f78dd9d
5
5
  SHA512:
6
- metadata.gz: 19b546c5dd67b311a0e5fd1a70401c0588892bdef7ea68a290c10a0068db4f7bcbbda64dae2d049b184bc3e63c7ee2bc23aa07fd6f4bd6ea9a9a648d49b32883
7
- data.tar.gz: 22f3719cb582b67139ddf9dc11f2ffff3094c02e8a9dd180ddfe873c3a6fdae946cf3bdd1b9bc542832efb195005423526b952ff598a45db82475c431a96cb30
6
+ metadata.gz: dbc842b49dfc3c8926e5e731605aec23da15dbf84f739df6f06547c33fa30c9d406f94ae9d1dbefc4881019a282c96306e34affe1c0ced3b4ff07bbaea80e6d4
7
+ data.tar.gz: d57b4741da03c2f6145c6505994c5a3e0b451ce2dde7c330fc1557efabc336556131561376ab9ca971f4f06cf09c4af5bbbbfeded0d5a7dafe218490359d0d2e
@@ -2,7 +2,9 @@ sudo: false
2
2
  language: ruby
3
3
  rvm:
4
4
  - 2.3.3
5
- before_install: gem install bundler -v 1.12.5
5
+ before_install:
6
+ - gem update --system
7
+ - gem install bundler -v 1.13.7
6
8
  notifications:
7
9
  slack:
8
10
  secure: XecHmig/8T6A8kHE99V7GnXJJ6pDDH7QgjiI1gIcKXVOxsQEYDhfOgl0jZe+dn1t0rGR7JTClunI1vQCJPF/8W1iMLZHSS1oj0ow7W8Tdfo6UCKOscAsEp+5X1wxbvVEXuKwlkBQ7IcJeOeMglof6eUpOUCKm9j+NpvApXP8YYqIfBPKiMj1VQ7S/Bkckwe3DFomZxcIRKHM/TGe7A29ZauoWhXpYpy68BHMjDevmSPFXk5USigJXnBqdU/oH+uLUgBmEyc4396Yh5oQslPXxeXxavyvsIOFYIEmpjDez6JcQ7XgJy29lyZDQKYywP5yxisaXbeEpWjjqh5saaktukgRi8jLyTD2n6Zxq1udHg3TfWj+LccvF/NMu9cZGH4pvLB5jcGX5ZYlDAOddCujTsQu3mze/yb2XYSUp19bLBlA8TcnIPelAdzQS9vUGEcFfKIUvq1DQVYhsxfQ4rwyxBzbr8m4+FRum4HSDcb3HVSCCv/pusLISJS4kl+nLtk30hklRYZ/cz1CYj2WnhlsqYQOlrD/uZax0dthk+3v4cYW6tw2A3NNrEhUOUsTxH/+dPAstqmHrEKeSYJ3NTxw2Gfns2b0WB/alTFOe4S0c8/5h41G2d25wZTrUKcWyZYgdLMc9FY9CA2gvxTGKXde3UipEKwRs4GmsQ41RZsGXwg=
@@ -2,14 +2,17 @@ require 'open-uri'
2
2
 
3
3
  module TelephoneAppointments
4
4
  class Api
5
+ SSL_PORT = 443
6
+
5
7
  def post(path, form_data)
6
8
  uri = URI.parse("#{api_uri}#{path}")
7
9
  http = Net::HTTP.new(uri.host, uri.port)
8
10
  http.read_timeout = read_timeout
11
+ http.use_ssl = true if uri.port == SSL_PORT
9
12
  request = Net::HTTP::Post.new(uri.request_uri, headers)
10
13
  request.set_form_data(form_data)
11
14
 
12
- Response.new(http.request(request))
15
+ TelephoneAppointments::Response.new(http.request(request))
13
16
  end
14
17
 
15
18
  private
@@ -1,3 +1,3 @@
1
1
  module TelephoneAppointments
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telephone_appointments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Henry
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-20 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport