lucian 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -2
- data/exe/lucian +1 -0
- data/lib/lucian/engine.rb +5 -0
- data/lib/lucian/initiator.rb +1 -1
- data/lib/lucian/version.rb +1 -1
- data/lib/rspec/core/example.rb +0 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b111076ce279b6588ca6bdf668937a32100725a
|
4
|
+
data.tar.gz: 49f01941501ef002e6c17f0d934a645a0f3b57df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38600f3d1b1205dca99fbda225a88505fe85e055283b1b586ad28ffecda2d42fe532c006b9f0118d4e83c5da47a92df39d36ddc41a423acdc3f993256cc4d780
|
7
|
+
data.tar.gz: 8a500da499e46930043477b69acd5e0d7f7dbf428cc11c9cfdbf94b3bcde9d82da1d8c95253df5162dea749f220c187532fcd80a73f189d47e24034f6e5a5bd8
|
data/Gemfile
CHANGED
data/exe/lucian
CHANGED
data/lib/lucian/engine.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
1
3
|
module Lucian
|
2
4
|
|
3
5
|
##
|
@@ -114,7 +116,10 @@ module Lucian
|
|
114
116
|
# Build lucian docker image
|
115
117
|
def build_lucian_image
|
116
118
|
BoardCaster.print("Building lucian image ..", "yellow")
|
119
|
+
puts "CPPPPPPPPPPPPPP #{File.expand_path(File.expand_path(@compose_directory)+'./Gemfile')} to #{@lucian_directory}"
|
120
|
+
FileUtils.cp(File.expand_path(File.expand_path(@compose_directory)+'./Gemfile'), @lucian_directory)
|
117
121
|
image = Docker::Image.build_from_dir(@lucian_directory)
|
122
|
+
FileUtils.rm_rf(File.expand_path(File.expand_path(@compose_directory)+'./Gemfile'))
|
118
123
|
Lucian.image = image
|
119
124
|
return image
|
120
125
|
end
|
data/lib/lucian/initiator.rb
CHANGED
@@ -10,7 +10,7 @@ module Lucian
|
|
10
10
|
lucian_path = File.expand_path(path+'/lucian')
|
11
11
|
create_directory(lucian_path)
|
12
12
|
create_helper_file(lucian_path)
|
13
|
-
create_gemfile(
|
13
|
+
create_gemfile(path)
|
14
14
|
create_dockerfile(lucian_path)
|
15
15
|
BoardCaster.print('Lucian init DONE', "green")
|
16
16
|
end
|
data/lib/lucian/version.rb
CHANGED
data/lib/rspec/core/example.rb
CHANGED
@@ -19,8 +19,6 @@ module RSpec::Core
|
|
19
19
|
# Check if there are services or not
|
20
20
|
if self.metadata[:services] != nil && self.metadata[:services].is_a?(Array) && ENV["LUCIAN_DOCKER"] == nil
|
21
21
|
result = run_lucian_test
|
22
|
-
puts "========="
|
23
|
-
puts result.to_s
|
24
22
|
if result[2].to_i != 0
|
25
23
|
pending_cut = result[0].join("\n").gsub("\n", "--_n").match(/(PENDING.*)FAILING/)[0] rescue nil
|
26
24
|
failing_cut = result[0].join("\n").gsub("\n", "--_n").match(/(FAILING.*)Finished/)[0] rescue nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lucian
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tanapat Sainak
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-core
|