solusvm_client 0.1 → 0.2

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: 170aaff3a23f687e5960809d760c5cfbc529da3d
4
- data.tar.gz: 5ad30db5ad52b508d9720db816c3474b81f02cfd
3
+ metadata.gz: 8b34907d372848aa0e6ad26496565324233dce19
4
+ data.tar.gz: e817ae5509df151c089f5ebead3cdb32ce1daeb1
5
5
  SHA512:
6
- metadata.gz: b7996e4fbdf47f5779f09c89a5534b08e4d33fbea6a986d826c4752c9ed146135e8e88522691a2c4aeb48943b9e5e527c10aa028118ceae91a9f5e1df088eac0
7
- data.tar.gz: 5d96204a840caf99b25c59a263bbb0c86e4b883bee4e46ab23e582d4401d77afb5cc1f2b7b132dbaddce6f6a71e604316c885504ec2b242df87d98c7af8fc5b4
6
+ metadata.gz: 1028c3187001bdad089fd79a6e5ea20ef532d9f955e6dad266ab7de4b1eb069e984effd51b101b529fb623dc49d198042c3f3316a1dd2d58a034307401f333c8
7
+ data.tar.gz: c4938336db909c3ee519d4e6975e8a4237a2a622b4228bed6aecf0d9a0ad6a6b757ff324732a1e233cefd6527039d3fd5d1076281c0de62c97dd0e43b1211197
data/README.md CHANGED
@@ -28,6 +28,7 @@ Initialize the API URL. For Rails put this into `config/initializers/solusvm_cli
28
28
 
29
29
  SolusVMClient.setup do |config|
30
30
  config.api_url = "https://myserver.com:5656/api/client/command.php"
31
+ config.verify_ssl = false
31
32
  end
32
33
  ```
33
34
 
@@ -1,10 +1,11 @@
1
1
  require 'active_support/core_ext/module/attribute_accessors'
2
- require 'solusvm_client/server'
3
- require "solusvm_client/version"
2
+ require_relative 'solusvm_client/server'
3
+ require_relative 'solusvm_client/version'
4
4
 
5
5
  module SolusVMClient
6
- mattr_accessor :api_url
6
+ mattr_accessor :api_url, :verify_ssl
7
7
  @@api_url = nil
8
+ @@verify_ssl = true
8
9
 
9
10
  def self.setup
10
11
  yield self if block_given?
@@ -52,6 +52,9 @@ module SolusVMClient
52
52
  uri = URI.parse(SolusVMClient.api_url)
53
53
  https = Net::HTTP.new(uri.host, uri.port)
54
54
  https.use_ssl = true
55
+ if !SolusVMClient.verify_ssl
56
+ https.verify_mode = OpenSSL::SSL::VERIFY_NONE
57
+ end
55
58
 
56
59
  params = {
57
60
  key: self.api_key,
@@ -1,3 +1,3 @@
1
1
  module SolusvmClient
2
- VERSION = "0.1"
2
+ VERSION = "0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solusvm_client
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - bontscho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-22 00:00:00.000000000 Z
11
+ date: 2014-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  version: '0'
90
90
  requirements: []
91
91
  rubyforge_project:
92
- rubygems_version: 2.2.1
92
+ rubygems_version: 2.2.2
93
93
  signing_key:
94
94
  specification_version: 4
95
95
  summary: SolusVM Client API Implementation