terraform 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/terraform/dsl.rb CHANGED
@@ -132,7 +132,8 @@ module Terraform
132
132
  ensure_packages "curl", "build-essential", "libxslt1-dev", "libxml2-dev", "libssl-dev"
133
133
 
134
134
  dep "rbenv ruby: #{ruby_version}" do
135
- met? { `which ruby`.include?("rbenv") && `ruby -v`.include?(ruby_version.gsub("-", "")) }
135
+ # `rbenv version` is better than `ruby -v`, as its version string is consistent across Ruby versions.
136
+ met? { `which ruby`.include?("rbenv") && `rbenv version`.include?(ruby_version) }
136
137
  meet do
137
138
  puts "Compiling Ruby will take a few minutes."
138
139
  shell "rbenv install #{ruby_version}"
@@ -1,3 +1,3 @@
1
1
  module Terraform
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -2,7 +2,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), "../../test_helper.rb
2
2
  require "terraform/dsl"
3
3
 
4
4
  class DslTest < Scope::TestCase
5
- include Terraform::Dsl
5
+ include Terraform::DSL
6
6
 
7
7
  class ProcessExit < StandardError; end
8
8
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terraform
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Phil Crosby
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-17 00:00:00 -07:00
18
+ date: 2012-04-19 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency