caracara 0.6.0 → 0.6.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: 42a29332f3fa5bf0fe4401638b686036a7349990
4
- data.tar.gz: 96464b4ae59be6cb174e9032723af4c9f1a91fc5
3
+ metadata.gz: 8ea0929d6cdd89020fb9c8285742095965bb18ec
4
+ data.tar.gz: 7e836d3ec717b034770504b93dfc27b165dd5237
5
5
  SHA512:
6
- metadata.gz: 7774ba33ebb8c22fa95a2c5e33e9737d2037159298d72cbef6b29328079d4dd126cc90ead7ab816a3cc5c39f59f2e0d1415ea61ed076375358df9b93a39cb31d
7
- data.tar.gz: b0524f25ace2614d93f84abea93bc5814e76b48174c0362fdf239fb28cca889ded156d646fe72e0089c01e12e3b62a1b00c996f90996b7dbb241174a11878468
6
+ metadata.gz: cdb9e9784b0be5798218baf5bbdf90b2d5efdb57ad41eb61340a2d5e3cf11fe2b74ec314a2f096ff4ad29184464ff9f426a419d18e5279221095217d3e66f178
7
+ data.tar.gz: 7760b3430c766282e27d7b1ac7f84d06b89b29fdab7237ef8d8182429a672315070c2623973d97395799f11d81cc7e5ad613f7af9e0f29cc25273d38fc774a6c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- caracara (0.6.0)
4
+ caracara (0.6.1)
5
5
  mustache (~> 1.0)
6
6
 
7
7
  GEM
@@ -56,6 +56,8 @@ module Caracara
56
56
  # Compile the content with the options
57
57
  compiled = if value.is_a?(Hash)
58
58
  compile_options value, options
59
+ elsif value.is_a?(Array)
60
+ value
59
61
  else
60
62
  Mustache.render value.to_s, options
61
63
  end
@@ -1,5 +1,5 @@
1
1
  module Caracara
2
2
  def self.version
3
- '0.6.0'
3
+ '0.6.1'
4
4
  end
5
5
  end
@@ -21,6 +21,7 @@ end
21
21
 
22
22
  class AnotherTaskSpec < Caracara::Task
23
23
  step 'docker -d run {{image}}'
24
+ step 'echo "{{#times}}{{.}}{{/times}}"'
24
25
  end
25
26
 
26
27
  # Tests
@@ -39,7 +40,8 @@ describe 'Task' do
39
40
  let(:another_task) {
40
41
  AnotherTaskSpec.init project: 'app',
41
42
  version: '1.5.0',
42
- image: '{{project}}-{{version}}'
43
+ image: '{{project}}-{{version}}',
44
+ times: ['one ', 'two ', 'three']
43
45
  }
44
46
 
45
47
  it 'should return the steps' do
@@ -72,6 +74,7 @@ describe 'Task' do
72
74
 
73
75
  # Assertions
74
76
  expect(steps[0]).to eq('docker -d run app-1.5.0')
77
+ expect(steps[1]).to eq("echo \"one two three\"")
75
78
  end
76
79
 
77
80
  it 'should compile the steps using specific args' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caracara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Corado
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-16 00:00:00.000000000 Z
11
+ date: 2015-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mustache