TerraformDevKit 0.1.0 → 0.1.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: 631ca645a080aebd548ff5f41535be564205eb55
4
- data.tar.gz: b7b4c8b3d1cae82a36ecfd5a9c5e2c37df0ce29c
3
+ metadata.gz: b2284c31fa2c443c6a9cf685401f12d586fbde25
4
+ data.tar.gz: db265ed767ab36f71cd901bdd48aaa6d81fe2fdc
5
5
  SHA512:
6
- metadata.gz: aff2cf1d9f94408c7f6a61d049aaab32d774f36b358f73ee26562f57d04ed86e1216578eee3609dbcc4b6a5e6aea19744675f1f2f3a01de47c889df4903038b5
7
- data.tar.gz: 8fae71f01f65ce6ea1c86b024bc5cbbc174a1894f15e4537dd0390595df3273a9cdeb7020020bb5f1a9250e163682233744fffd8bfccd2337588e85eca2d9f00
6
+ metadata.gz: ad83ebbc060fbd8003c836a045c2c009f478e1080031b0806fb3be3fba1bbfaea097b75d0ecb9e5932a427b155095adb8484e069c056a670d5502ac8fb97b4c6
7
+ data.tar.gz: 890ae15ceb38ca603f54528292d016f182392636dd1ee1c39ece74524229d03dbd2b71516e6b4d83c3b8f10184a82df08bd88b6d916089702320374a54058334
data/.appveyor.yml ADDED
@@ -0,0 +1,14 @@
1
+ install:
2
+ - set PATH=C:\Ruby21-x64\bin;%PATH%
3
+ - bundle install
4
+ - gem install bundler -v 1.14.6
5
+
6
+ build: off
7
+
8
+ before_test:
9
+ - ruby -v
10
+ - gem -v
11
+ - bundle -v
12
+
13
+ test_script:
14
+ - bundle exec rake
data/.travis.yml CHANGED
@@ -3,3 +3,6 @@ language: ruby
3
3
  rvm:
4
4
  - 2.1.6
5
5
  before_install: gem install bundler -v 1.14.6
6
+ os:
7
+ - linux
8
+ - osx
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # TerraformDevKit
2
2
 
3
+ [![Build Status](https://travis-ci.org/betabandido/TerraformDevKit.svg?branch=master)](https://travis-ci.org/betabandido/TerraformDevKit) [![Build status](https://ci.appveyor.com/api/projects/status/4vkyr196li83vju6/branch/master?svg=true)](https://ci.appveyor.com/project/betabandido/terraformdevkit/branch/master)
4
+
3
5
  Set of scripts to ease development and testing with [Terraform](https://www.terraform.io/).
4
6
 
5
7
  The script collection incldues support for:
@@ -6,4 +6,5 @@ require 'TerraformDevKit/dynamodb'
6
6
  require 'TerraformDevKit/os'
7
7
  require 'TerraformDevKit/terraform_installer'
8
8
  require 'TerraformDevKit/terragrunt_installer'
9
+ require 'TerraformDevKit/url'
9
10
  require 'TerraformDevKit/version'
@@ -25,5 +25,13 @@ module TerraformDevKit
25
25
  def self.join_env_path(path1, path2)
26
26
  "#{path1}#{env_path_separator}#{path2}"
27
27
  end
28
+
29
+ # If running on Windows, this function converts a path separated with
30
+ # forward slashes (the default for Ruby) into a path that uses backslashes.
31
+ def self.convert_to_local_path(path)
32
+ path.gsub(
33
+ File::SEPARATOR,
34
+ File::ALT_SEPARATOR || File::SEPARATOR)
35
+ end
28
36
  end
29
37
  end
@@ -0,0 +1,10 @@
1
+ require 'uri'
2
+
3
+ module TerraformDevKit
4
+ def self.valid_url?(url)
5
+ uri = URI.parse(url)
6
+ uri.is_a?(URI::HTTP) && !uri.host.nil?
7
+ rescue URI::InvalidURIError
8
+ false
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  module TerraformDevKit
2
- VERSION = "0.1.0"
2
+ VERSION = '0.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: TerraformDevKit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Jimenez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-14 00:00:00.000000000 Z
11
+ date: 2017-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -88,6 +88,7 @@ executables:
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
+ - ".appveyor.yml"
91
92
  - ".gitignore"
92
93
  - ".rspec"
93
94
  - ".travis.yml"
@@ -109,6 +110,7 @@ files:
109
110
  - lib/TerraformDevKit/os.rb
110
111
  - lib/TerraformDevKit/terraform_installer.rb
111
112
  - lib/TerraformDevKit/terragrunt_installer.rb
113
+ - lib/TerraformDevKit/url.rb
112
114
  - lib/TerraformDevKit/version.rb
113
115
  - lib/TerraformDevKit/zip_file_generator.rb
114
116
  homepage: https://github.com/betabandido/TerraformDevKit