fog-packet 1.0.0 → 1.0.1

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
  SHA256:
3
- metadata.gz: 3ac4e3d4eb0976acbdd67ffb1c6417d15ccf1f11a9f78a6d4186f8753f3198ad
4
- data.tar.gz: 51ad88a8acb1c02f918f3416ed36a240cc2f9a85f4b0a8e9a03e9fb3d14fcc8b
3
+ metadata.gz: ea9e39e4b3f91d8cd5936f96bd299082e16cca2b609fb7fbaded2415169b4f82
4
+ data.tar.gz: 7aba54a96a96e54d9c1705fcd461fc6f2bc931a712f4abfcf4b70b7fc6868b65
5
5
  SHA512:
6
- metadata.gz: db8b6ec93cb71160daf8a1beeade65d2f6c4b2005875dcf707c4e6d869d6bcca5e20a0cf52e88bbd751b8d4ad41cb1d275b8e6e1e3878d3eb1c8a012ee327e60
7
- data.tar.gz: 102910dc373d3e7e522ae32a77b7f7f8c362fa852bb12431d0514237216c87ad0a91385c991f37202e30585dd77ab6f0df290ac1f8a99ad14f147f537af00caf
6
+ metadata.gz: 5e2be7407dcb3199a67a1e6311d3d960862fe2dc723c4b0e8b96815a7982c46298e572949d5aae34616200fd6b5e0e333b9558955f85707381d58b4e50437b2b
7
+ data.tar.gz: f6c816ee557134702cde81fff9e01a7e92296070768aec1a69eec4b9c5449563e270960adbd6073f9caef1f1f9c0d8c942a225488adbd61e333cc2e737872e08
@@ -3,13 +3,13 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "fog-packet"
6
- spec.version = "1.0.0"
6
+ spec.version = "1.0.1"
7
7
  spec.authors = ["Jasmin Gacic"]
8
8
  spec.email = "jasmin@stackpointcloud.com"
9
9
  spec.summary = "Module for the 'fog' gem to support Packet."
10
10
  spec.description = "This library can be used as a module for 'fog' or as
11
- a standalone 1and1 provider."
12
- spec.homepage = "https://github.com/StackPointCloud/fog-packet"
11
+ a standalone Packet provider."
12
+ spec.homepage = "https://github.com/fog/fog-packet"
13
13
  spec.license = "MIT"
14
14
 
15
15
  spec.files = `git ls-files -z`.split("\x0")
@@ -240,14 +240,17 @@ module Fog
240
240
  # Real
241
241
  class Real
242
242
  def initialize(options = {})
243
- if options[:packet_token] == ""
243
+ if options[:packet_token]
244
244
  @packet_token = options[:packet_token]
245
245
  else
246
246
  @packet_token = ENV["PACKET_TOKEN"]
247
247
  end
248
- raise "Packet token is not present. Please pass it as an argument or set environment variable 'PACKET_TOKEN'." if @packet_token == ""
248
+
249
+ raise "Packet token is not present. Please pass it as an argument or set environment variable 'PACKET_TOKEN'." unless @packet_token
250
+
249
251
  @base_url = options[:packet_url] ? options[:packet_url] : "https://api.packet.net/"
250
252
  @version = ""
253
+
251
254
  @header = {
252
255
  "X-Auth-Token" => @packet_token,
253
256
  "Content-Type" => "application/json"
@@ -294,12 +297,11 @@ module Fog
294
297
  # Mock
295
298
  class Mock
296
299
  def initialize(options = {})
297
- if options[:packet_token] == ""
300
+ if options[:packet_token]
298
301
  @packet_token = options[:packet_token]
299
302
  else
300
303
  @packet_token = ENV["PACKET_TOKEN"]
301
304
  end
302
-
303
305
  raise "Packet token is not present. Please pass it as an argument or set environment variable 'PACKET_TOKEN'." unless @packet_token
304
306
  @base_url = options[:packet_url] ? options[:packet_url] : "https://api.packet.net/"
305
307
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-packet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jasmin Gacic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-08 00:00:00.000000000 Z
11
+ date: 2018-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core
@@ -82,7 +82,7 @@ dependencies:
82
82
  version: '0'
83
83
  description: |-
84
84
  This library can be used as a module for 'fog' or as
85
- a standalone 1and1 provider.
85
+ a standalone Packet provider.
86
86
  email: jasmin@stackpointcloud.com
87
87
  executables: []
88
88
  extensions: []
@@ -318,7 +318,7 @@ files:
318
318
  - tests/packet/requests/test_volumes.rb
319
319
  - tests/packet/requests/test_vpns.rb
320
320
  - tests/test_helper.rb
321
- homepage: https://github.com/StackPointCloud/fog-packet
321
+ homepage: https://github.com/fog/fog-packet
322
322
  licenses:
323
323
  - MIT
324
324
  metadata: {}
@@ -338,7 +338,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
338
338
  version: '0'
339
339
  requirements: []
340
340
  rubyforge_project:
341
- rubygems_version: 2.7.6
341
+ rubygems_version: 2.7.7
342
342
  signing_key:
343
343
  specification_version: 4
344
344
  summary: Module for the 'fog' gem to support Packet.