civo 0.1.4 → 0.1.5

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: cd28b48315c77a52498f8ed3de0d1bed914f3625
4
- data.tar.gz: 5cd994ec88427368fb94457bf2a02516c78cd8e1
3
+ metadata.gz: 6136e69d7c660fee04c7f6f56bc3df6220fbe341
4
+ data.tar.gz: 99a3d93d69866e6c85a49b510e23b308d7fa345a
5
5
  SHA512:
6
- metadata.gz: c3545c194631711a502ee09e67fc30af168b15a23a7cd005ef5be448702417308d9cd101f0793fff8b1f138e49bddddc31facae549d5779d0fc9f67e36cb9bb8
7
- data.tar.gz: fddd65f2ad427207a9d9c86ffbfdcbceef17e6066b4371af7594cedf5e2d9a4da361e44313eb3ba5ed43f6c45b04632105907b2e42ae866bf9ef72ad3c75d23d
6
+ metadata.gz: 1d023bc82c4f5b8485877abb5e032173db43cd7c9640c90febc290a5bd7cb7d9da4c49319d3f50738b1382e70d16d5d21d770d2aafb9ac6a9b50b0984a5d4678
7
+ data.tar.gz: 401508d5b26d16bda1aa1c0f2cdd67964fbfd2da731506a234a58bb9b9f6aa1a97bdee96e3630d1c2f1a8836e2677b6865497d81ce92d9a62e0e3691ece5bd0e
@@ -1,5 +1,5 @@
1
1
  module Civo
2
- class Base < Flexirest::Base
2
+ class Base < ::Flexirest::Base
3
3
  before_request do |name, request|
4
4
  request.headers["Authorization"] = "bearer #{ENV["CIVO_TOKEN"] || Civo::Token.default}"
5
5
  end
data/lib/civo.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  if defined?(Rails)
2
2
  require "civo/engine"
3
+ require "flexirest"
3
4
  end
4
5
 
5
6
  module Civo
@@ -26,7 +26,7 @@ module Civo
26
26
  def self.parse
27
27
  ensure_file_exists!
28
28
 
29
- @config = TOML.load_file(FILENAME)
29
+ @config = ::TOML.load_file(FILENAME)
30
30
  end
31
31
 
32
32
  def self.api_url
data/lib/civo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: civo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries