civo 0.3.3 → 0.3.4

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: ed8c49dcdc3351d964ad4efd690048469d25730b
4
- data.tar.gz: 24eb760096a174ec86a90b0a94a5e0fb879da391
3
+ metadata.gz: 320cf963557e510b009e103ac900c30d0bcf91c0
4
+ data.tar.gz: 9e0af2681e4f26cc41b7b8e96a82f36e655c643b
5
5
  SHA512:
6
- metadata.gz: 8f733e989736d52767e1dac30288ee3cdc65cc7cc62dc2209657d02533660e69ce812e18cb31935b246832044aa8e46df66543843e721ee0d72baaa57f81fbda
7
- data.tar.gz: f95b3224fb2dd1959396f11cfa7423270ee77850ead33bb8302675a347ab674574014e9c89d8832738dda6e3658b8f14253902524e574edf703832dd8bf992c9
6
+ metadata.gz: a37446cc657357d2ddf4ed3f3f2c77b4aacccef73dc4dc4a65d278122163c96bf5bf0b34ca75d433c085c4f5e10cd22bdeed99554bba7d8027afcbc7aefea599
7
+ data.tar.gz: ad07ae3fa404a40fb2001ced95aaa2c62bf1fe4bd729c5d9fe8b8c9e707b750b7f6ebe613c297df9c46c7f5b6f1566796c3e06eb136724ed12d008494b54ab7f
@@ -1,9 +1,9 @@
1
1
  module Civo
2
2
  class Base < ::Flexirest::Base
3
3
  before_request do |name, request|
4
- request.headers["Authorization"] = "bearer #{ENV["CIVO_TOKEN"] || Civo::Token.default}"
4
+ request.headers["Authorization"] = "bearer #{ENV["CIVO_TOKEN"]}"
5
5
  end
6
6
  end
7
7
  end
8
8
 
9
- Flexirest::Base.base_url = ENV["CIVO_URL"] || Civo::Config.api_url
9
+ Flexirest::Base.base_url = ENV["CIVO_URL"]
data/lib/civo.rb CHANGED
@@ -4,9 +4,6 @@ if defined?(Rails)
4
4
  end
5
5
 
6
6
  module Civo
7
- autoload :Token, "civo/cli/token"
8
- autoload :Config, "civo/cli/config"
9
- autoload :Client, "civo/cli/client"
10
7
  unless defined?(Rails)
11
8
  autoload :Account, "#{ENGINE_ROOT}/app/models/civo/account"
12
9
  autoload :Base, "#{ENGINE_ROOT}/app/models/civo/base"
data/lib/civo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: civo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-20 00:00:00.000000000 Z
11
+ date: 2016-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flexirest