haste 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/haste.rb +4 -0
  2. data/lib/haste/version.rb +1 -1
  3. metadata +2 -2
@@ -26,6 +26,10 @@ module Haste
26
26
  def start
27
27
  uri = URI.parse server
28
28
  http = Net::HTTP.new uri.host, uri.port
29
+ if uri.scheme =~ /^https/
30
+ http.use_ssl = true
31
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE
32
+ end
29
33
  response = http.post '/documents', @input
30
34
  if response.is_a?(Net::HTTPOK)
31
35
  data = JSON.parse(response.body)
@@ -1,5 +1,5 @@
1
1
  module Haste
2
2
 
3
- VERSION = '0.1.4'
3
+ VERSION = '0.1.5'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haste
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-17 00:00:00.000000000 Z
12
+ date: 2013-04-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec