concourse 0.10.0 → 0.11.0

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: 341e502e91b0fadae6f16648c23bdbb6bea3490c
4
- data.tar.gz: 0bd52231559a7c306b0fde045f4334f325774e48
3
+ metadata.gz: 0ab2df768e5b7ac6afcaab5a975c6e53c05a8641
4
+ data.tar.gz: 2b1abb54bfb8f1dbba58a554061ede0738e73559
5
5
  SHA512:
6
- metadata.gz: 4795bf25a52fc6ac22ae6e91288b31e9b26e537fc923dd0f1a8e42c9bd140ead4b457be1bbb25a35d6ac640c0a3f4d261db7d0778e8972e830d9e9c21b370ce1
7
- data.tar.gz: f581dfd3edbcee930ff49a7e08dc1eba6af8cba419fe3b312e755bde369818c7dd0c319ebb3005bd416e9ca7c5c7801de4d6554ce2dab1f119b43aa7684a7919
6
+ metadata.gz: 97b65993d219f7fb11ddf8df65734ce656d3e8e8b4748676d05469a443b54c79b0e02cfd27e6ee6826e320fa9f651cfbf113b3b4dd23ad5994341add3a22014e
7
+ data.tar.gz: d86a3f959ca577664b95eca76fa6ad2f37e12c6666a0e59407abfa488e50def7627119255e3af57288f6b6e18f90062cb0e02dc574fdfc27771a5de02f7511e0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # concourse-gem changelog
2
2
 
3
+ ## 0.11.0 / 2017-02-14
4
+
5
+ Stop using `myproject.yml.erb` and just interpret `myproject.yml` as an ERB template. @jtarchie was right. He's always right.
6
+
7
+
3
8
  ## 0.10.0 / 2017-02-08
4
9
 
5
10
  Add `destroy` and `abort-builds` tasks.
data/README.md CHANGED
@@ -17,7 +17,7 @@ Concourse.new("myproject").create_tasks!
17
17
 
18
18
  This will create a set of rake tasks for you.
19
19
 
20
- Create a subdirectory named `concourse`, and edit a Concourse pipeline template named `myproject.yml.erb`.
20
+ Create a subdirectory named `concourse`, and edit a Concourse pipeline file named `myproject.yml`, whichi will be interpreted as an ERB template.
21
21
 
22
22
 
23
23
  ### Templating and `RUBIES`
@@ -36,7 +36,7 @@ The ruby variable `RUBIES` is defined in the ERB binding during pipeline file ge
36
36
  and allows you to write a pipeline like this to get coverage on all the supported rubies:
37
37
 
38
38
  ``` yaml
39
- # myproject.yml.erb
39
+ # myproject.yml
40
40
  jobs:
41
41
  <% for ruby_version in RUBIES[:mri] %>
42
42
  - name: "ruby-<%= ruby_version %>"
data/lib/concourse.rb CHANGED
@@ -30,8 +30,8 @@ class Concourse
30
30
 
31
31
  def initialize project_name
32
32
  @project_name = project_name
33
- @pipeline_filename = File.join(DIRECTORY, "#{project_name}.yml")
34
- @pipeline_erb_filename = "#{pipeline_filename}.erb"
33
+ @pipeline_filename = File.join(DIRECTORY, "#{project_name}.final.yml")
34
+ @pipeline_erb_filename = File.join(DIRECTORY, "#{project_name}.yml")
35
35
  end
36
36
 
37
37
  def erbify document_string, *args
@@ -117,7 +117,7 @@ class Concourse
117
117
  raise "ERROR: could not find task `#{job_task}`" unless concourse_task
118
118
 
119
119
  puts concourse_task.to_yaml
120
- Tempfile.create do |f|
120
+ Tempfile.create("concourse-task") do |f|
121
121
  f.write concourse_task["config"].to_yaml
122
122
  f.close
123
123
  Bundler.with_clean_env do
@@ -2,5 +2,5 @@ require "rake"
2
2
  require "erb"
3
3
 
4
4
  class Concourse
5
- VERSION = "0.10.0"
5
+ VERSION = "0.11.0"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: concourse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Dalessio
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-09 00:00:00.000000000 Z
11
+ date: 2017-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler