construi 0.30.0 → 0.31.0

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb CHANGED
@@ -1,20 +1,21 @@
1
1
 
2
2
  require 'codeclimate-test-reporter'
3
3
  require 'coveralls'
4
-
5
- #CodeClimate::TestReporter.start
6
- #Coveralls.wear!
4
+ require 'stringio'
7
5
 
8
6
  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
9
7
  Coveralls::SimpleCov::Formatter,
10
8
  SimpleCov::Formatter::HTMLFormatter,
11
9
  CodeClimate::TestReporter::Formatter
12
10
  ]
11
+
13
12
  SimpleCov.start do
14
13
  add_filter '/vendor/'
15
14
  add_filter '/spec'
16
15
  end
17
16
 
17
+ require 'construi'
18
+
18
19
  RSpec.configure do |config|
19
20
 
20
21
  # rspec-expectations config goes here. You can use an alternate
@@ -84,4 +85,11 @@ RSpec.configure do |config|
84
85
  # test failures related to randomization by passing the same `--seed` value
85
86
  # as the one that triggered the failure.
86
87
  Kernel.srand config.seed
88
+
89
+ config.before do
90
+ $stdout = StringIO.new
91
+ end
92
+ config.after(:all) do
93
+ $stdout = STDOUT
94
+ end
87
95
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: construi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.0
4
+ version: 0.31.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-19 00:00:00.000000000 Z
12
+ date: 2015-04-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: docker-api
@@ -27,6 +27,22 @@ dependencies:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: '1.20'
30
+ - !ruby/object:Gem::Dependency
31
+ name: colorize
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 0.7.5
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 0.7.5
30
46
  - !ruby/object:Gem::Dependency
31
47
  name: bundler
32
48
  requirement: !ruby/object:Gem::Requirement
@@ -147,8 +163,16 @@ files:
147
163
  - lib/construi/config.rb
148
164
  - lib/construi/container.rb
149
165
  - lib/construi/image.rb
166
+ - lib/construi/runner.rb
167
+ - lib/construi/target.rb
150
168
  - lib/construi/version.rb
151
- - spec/lib/config_spec.rb
169
+ - spec/lib/construi/config_spec.rb
170
+ - spec/lib/construi/container_spec.rb
171
+ - spec/lib/construi/image_spec.rb
172
+ - spec/lib/construi/runner_spec.rb
173
+ - spec/lib/construi/target_spec.rb
174
+ - spec/lib/construi_spec.rb
175
+ - spec/lib/container_spec.rb
152
176
  - spec/sanity_spec.rb
153
177
  - spec/spec_helper.rb
154
178
  homepage: ''
@@ -166,7 +190,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
166
190
  version: '0'
167
191
  segments:
168
192
  - 0
169
- hash: -746607983965103946
193
+ hash: 2660148450649018098
170
194
  required_rubygems_version: !ruby/object:Gem::Requirement
171
195
  none: false
172
196
  requirements:
@@ -175,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
199
  version: '0'
176
200
  segments:
177
201
  - 0
178
- hash: -746607983965103946
202
+ hash: 2660148450649018098
179
203
  requirements: []
180
204
  rubyforge_project:
181
205
  rubygems_version: 1.8.23.2
@@ -183,6 +207,12 @@ signing_key:
183
207
  specification_version: 3
184
208
  summary: Build tool using Docker to specify build environment
185
209
  test_files:
186
- - spec/lib/config_spec.rb
210
+ - spec/lib/construi/config_spec.rb
211
+ - spec/lib/construi/container_spec.rb
212
+ - spec/lib/construi/image_spec.rb
213
+ - spec/lib/construi/runner_spec.rb
214
+ - spec/lib/construi/target_spec.rb
215
+ - spec/lib/construi_spec.rb
216
+ - spec/lib/container_spec.rb
187
217
  - spec/sanity_spec.rb
188
218
  - spec/spec_helper.rb
@@ -1,27 +0,0 @@
1
- require 'spec_helper'
2
-
3
- require 'construi/config'
4
-
5
- RSpec.describe Construi::Config do
6
-
7
- describe '#image' do
8
- let(:config_content) do
9
- <<-YAML
10
- image: #{image}
11
- YAML
12
- end
13
-
14
- let(:config) { Construi::Config.load(config_content) }
15
-
16
- subject { config.image }
17
-
18
- %w{ test-image:latest lstephen/construi:latest }.each do |image_name|
19
- context "when image is #{image_name}" do
20
- let(:image) { image_name }
21
- it { is_expected.to eq(image) }
22
- end
23
- end
24
- end
25
-
26
- end
27
-