train-habitat 0.2.13 → 0.2.22

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
  SHA256:
3
- metadata.gz: c0a5bc6a684e3ce47ade95c8d0ac57f13b6b34e6170535f8b236dd7802a67baa
4
- data.tar.gz: 040f7d37ae4507b97f21f8503f5a6f4a46f49d35382d144b438c496f9bb090d2
3
+ metadata.gz: d517d6acec8b0d954a94a128af818ce58f1e5c7795bc4b00d1cde1d2d13b8bee
4
+ data.tar.gz: f2c33469c6461d34b50b0f1b484c89148b939604c1343a92e798ff6f98d9950a
5
5
  SHA512:
6
- metadata.gz: 66fb72685dde4bbe4e9cecb47e9e87ba1b56a76a8e54c265dd4efc45e4be49e759e6339362200aba8f0585894c89c26f58bd3b1f04078af1a62a7f005f9b66a9
7
- data.tar.gz: e1fd45ae140b06ac83a2924ef17870fe977c7de30a08fd495d6ac6a376689419eff84bbc18b89912740fa3f1516107200e3135ab253998cea6f62a332a865750
6
+ metadata.gz: 867c09352706b078b177328ac37483e55042e0b59babf46718b856313b63556a0d5c6722f39a92bd2a800b34c5c444cac40c7604b13d598e689ca1f57115d97c
7
+ data.tar.gz: c20278d657b5c68ad2f3d4bb7f07d67f6038cd4055fe7e4d45d03ec1ac89637b59820416fecabbf220543d3932eefe478c9f821ffb106c8e9a5c3ff5585f67f2
@@ -3,7 +3,7 @@
3
3
  libdir = File.dirname(__FILE__)
4
4
  $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
5
5
 
6
- require "train-habitat/version"
7
- require "train-habitat/transport"
8
- require "train-habitat/platform"
9
- require "train-habitat/connection"
6
+ require_relative "train-habitat/version"
7
+ require_relative "train-habitat/transport"
8
+ require_relative "train-habitat/platform"
9
+ require_relative "train-habitat/connection"
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "net/http"
4
- require "json"
5
- require "train-habitat/httpgateway"
6
- require "train-habitat/platform"
7
- require "train-habitat/transport"
3
+ require "net/http" unless defined?(Net::HTTP)
4
+ require "json" unless defined?(JSON)
5
+ require_relative "httpgateway"
6
+ require_relative "platform"
7
+ require_relative "transport"
8
8
 
9
9
  module TrainPlugins
10
10
  module Habitat
@@ -1,5 +1,5 @@
1
- require "uri"
2
- require "net/http"
1
+ require "uri" unless defined?(URI)
2
+ require "net/http" unless defined?(Net::HTTP)
3
3
 
4
4
  module TrainPlugins
5
5
  module Habitat
@@ -1,6 +1,6 @@
1
1
  require "train"
2
2
  require "train/plugins"
3
- require "train-habitat/connection"
3
+ require_relative "connection"
4
4
 
5
5
  module TrainPlugins
6
6
  module Habitat
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TrainPlugins
4
4
  module Habitat
5
- VERSION = "0.2.13"
5
+ VERSION = "0.2.22"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: train-habitat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.13
4
+ version: 0.2.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef InSpec Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-15 00:00:00.000000000 Z
11
+ date: 2021-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '13.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '13.0'
41
41
  description: Allows applications using Train to speak to Habitat.
42
42
  email:
43
43
  - inspec@chef.io
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  requirements: []
75
- rubygems_version: 3.0.3
75
+ rubygems_version: 3.1.4
76
76
  signing_key:
77
77
  specification_version: 4
78
78
  summary: Habitat API Transport for Train