exoscale 0.2.0 → 0.2.1

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: b72c1a8cce152a6258010041b1a445d307ad3034
4
- data.tar.gz: 35431d8ea009e67585e824f53dac01b7e9aad3cd
3
+ metadata.gz: 2bf6f36f5dc1e28aeda2b27ed154a2aa76dda25d
4
+ data.tar.gz: a324e15d2521fae6b0e43c62eaca6bd502aa4698
5
5
  SHA512:
6
- metadata.gz: a127dc47a67fb6fd682c7c82eb1019a07997af895d5ef26dc4724a45ae48fd218fd3a64811f635f80b4f9c6ba8ff41990939b67215923c46b9e3daa80e256404
7
- data.tar.gz: 7151eebbd89f115fb287230a12ff2af3f38ef6b8885f3a0093b4e7a12a767cb3a0f5174d6e6cf793fdf6b09bd79af8a4c3d35e16586d8f37727368624a6c86b0
6
+ metadata.gz: 21f6da84bb6f4bfb31d4fea5d7628d1fba39ad03990329323ee7573b5edfb75e55fcec24bf8505343f8226ec6785be801fa0daee6c4cfe7540efbf860c11edfe
7
+ data.tar.gz: 43f5eb9e40d1d5fa3bf1f3985b732e00cc31b1b10204a490caf4b7af5155b9bc7f7298513560fdfb3dda75cc5e64c208ec50289b650b31f988fff4ead40ed0e4
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.1.7
3
4
  - 2.2.3
4
5
  before_install: gem install bundler -v 1.10.6
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Gem Version](https://badge.fury.io/rb/exoscale.svg)](https://badge.fury.io/rb/exoscale) [![Build Status](https://travis-ci.org/nicolasbrechet/ruby-exoscale.svg)](https://travis-ci.org/nicolasbrechet/ruby-exoscale)
2
+
1
3
  # Ruby Exoscale
2
4
 
3
5
  Simple Ruby gem to access Exoscale's API
@@ -20,10 +22,12 @@ Or install it yourself as:
20
22
 
21
23
  ## Usage
22
24
 
23
- All methods are described on [Exoscale's documentation](https://community.exoscale.ch/api/). As this is a Ruby gem, all methods are snake_cased.
24
25
 
25
26
 
26
27
  ### Compute
28
+
29
+ All methods are described on [Exoscale's Compute documentation](https://community.exoscale.ch/api/compute/). As this is a Ruby gem, all methods are snake_cased.
30
+
27
31
  ```
28
32
  require 'exoscale'
29
33
  exo = Exoscale::Compute.new(ENV['EXO_API_KEY'], ENV['EXO_API_SECRET_KEY'])
@@ -53,8 +57,7 @@ To do...
53
57
 
54
58
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
55
59
 
56
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
57
-
60
+ To install this gem onto your local machine, run `bundle exec rake install`.
58
61
 
59
62
  ## Contributing
60
63
 
@@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.bindir = "exe"
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
+ spec.required_ruby_version = '~> 2.1'
21
22
 
22
23
  spec.add_development_dependency "bundler", "~> 1.10"
23
24
  spec.add_development_dependency "rake", "~> 10.0"
@@ -53,7 +53,6 @@ module Exoscale
53
53
 
54
54
  response = http.request(request)
55
55
  return JSON.parse(response.body)
56
-
57
56
  end
58
57
 
59
58
  #### VIRTUAL MACHINES
@@ -38,8 +38,6 @@ module Exoscale
38
38
  request.body = data.to_json unless data.nil?
39
39
  end
40
40
 
41
- puts uri
42
- puts request.to_s
43
41
  response = Net::HTTP.start(uri.hostname, uri.port, :use_ssl => uri.scheme == 'https') {|http|
44
42
  http.request(request)
45
43
  }
@@ -1,3 +1,3 @@
1
1
  module Exoscale
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exoscale
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Brechet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-14 00:00:00.000000000 Z
11
+ date: 2015-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -83,9 +83,9 @@ require_paths:
83
83
  - lib
84
84
  required_ruby_version: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - ">="
86
+ - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '0'
88
+ version: '2.1'
89
89
  required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  requirements:
91
91
  - - ">="