panelbeater 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/panelbeater/remote.rb +1 -0
  2. metadata +5 -6
@@ -14,6 +14,7 @@ module Panelbeater
14
14
  def connect(server, port, command, username, api_key, options={})
15
15
  http = Net::HTTP.new(server, port)
16
16
  http.use_ssl = true
17
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE # Ignore invalid SSL certificates
17
18
  http.start do |http|
18
19
  req = Net::HTTP::Get.new "/json-api/#{command}#{map_options_to_url(options)}"
19
20
  req.add_field 'Authorization', "WHM #{username}:#{api_key}"
metadata CHANGED
@@ -2,16 +2,16 @@
2
2
  name: panelbeater
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.5
5
+ version: 0.1.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jamie Dyer
9
+ - Tom Mason
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
13
 
13
- date: 2011-03-11 00:00:00 +00:00
14
- default_executable:
14
+ date: 2012-04-10 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json
@@ -79,8 +79,7 @@ files:
79
79
  - test/fixtures/unsuspendacct_success.json
80
80
  - test/test_helper.rb
81
81
  - test/whm_test.rb
82
- has_rdoc: true
83
- homepage: http://kernowsoul.com
82
+ homepage: https://github.com/kernow/panelbeater
84
83
  licenses: []
85
84
 
86
85
  post_install_message:
@@ -103,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
102
  requirements: []
104
103
 
105
104
  rubyforge_project:
106
- rubygems_version: 1.6.2
105
+ rubygems_version: 1.8.16
107
106
  signing_key:
108
107
  specification_version: 3
109
108
  summary: A gem for communicating with the cPanel and WHM API's