pipely 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pipely/shared_examples.rb +20 -0
- data/lib/pipely/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f00c402f1d3d4e1760175c3be7a26dfc801f817c
|
4
|
+
data.tar.gz: 691f56695f7810cb0c4c72832ba3ead34599e4fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96b7b09e67085006e02354dd07b7330d8581f8e8a5d348235e966275cc5531e9fe5085871c25106dc46a58b38f7dbef0d8836cc7299eab9accabcf51fcb5b240
|
7
|
+
data.tar.gz: 470c0b7a43f623baadb1c3bd631821787e339d67929be8fc38ca0a21f144c8b897b3136bfe1f311cf09cd800f3a956aa9924ed7a3e2d0102969074340fd5b80c
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Shared examples to be used by projects that use pipely.
|
2
|
+
#
|
3
|
+
|
4
|
+
shared_examples "a renderable template" do |environment, config|
|
5
|
+
let(:rendered_json) {
|
6
|
+
Pipely::Build.build_definition(
|
7
|
+
subject,
|
8
|
+
environment,
|
9
|
+
config
|
10
|
+
).to_json
|
11
|
+
}
|
12
|
+
|
13
|
+
it "renders without error" do
|
14
|
+
expect(rendered_json).to be
|
15
|
+
end
|
16
|
+
|
17
|
+
it "produces valid JSON" do
|
18
|
+
expect(JSON.parse(rendered_json)).to be
|
19
|
+
end
|
20
|
+
end
|
data/lib/pipely/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pipely
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Gillooly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-graphviz
|
@@ -176,6 +176,7 @@ files:
|
|
176
176
|
- lib/pipely/live_pipeline.rb
|
177
177
|
- lib/pipely/reference_list.rb
|
178
178
|
- lib/pipely/runs_report.rb
|
179
|
+
- lib/pipely/shared_examples.rb
|
179
180
|
- lib/pipely/tasks/definition.rb
|
180
181
|
- lib/pipely/tasks/deploy.rb
|
181
182
|
- lib/pipely/tasks/graph.rb
|