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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3e69e969d680086bd66e75619ea633d9a682b55
4
- data.tar.gz: 53e3d5c06cdc693ffe5088962c394c346cf6e4f8
3
+ metadata.gz: 0b111076ce279b6588ca6bdf668937a32100725a
4
+ data.tar.gz: 49f01941501ef002e6c17f0d934a645a0f3b57df
5
5
  SHA512:
6
- metadata.gz: 8b903ccede34d564a1e1afe62b8968e0395d234bd4f5a2472ff1ee24e0e1b25eedb4885c3e8d5eb7307026ccf70725092d1025d8597940a854a7046223816483
7
- data.tar.gz: 95b267ac3a75788f951807bf3341f4f88c5c754a7717082a21a527c2367d9814803ebeccac5046e379a63b5e2cc2fbb6c1af30b76af140a64a6ffc2585aa1422
6
+ metadata.gz: 38600f3d1b1205dca99fbda225a88505fe85e055283b1b586ad28ffecda2d42fe532c006b9f0118d4e83c5da47a92df39d36ddc41a423acdc3f993256cc4d780
7
+ data.tar.gz: 8a500da499e46930043477b69acd5e0d7f7dbf428cc11c9cfdbf94b3bcde9d82da1d8c95253df5162dea749f220c187532fcd80a73f189d47e24034f6e5a5bd8
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in lucian.gemspec
4
- gemspec
3
+ gem 'lucian'
data/exe/lucian CHANGED
@@ -11,6 +11,7 @@ $:.unshift File.expand_path("../../lib", this_file)
11
11
  require 'lucian'
12
12
  require 'rspec/core'
13
13
  require 'optparse'
14
+ require 'bundler/setup'
14
15
 
15
16
  options = {}
16
17
  OptionParser.new do |opts|
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
@@ -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(lucian_path)
13
+ create_gemfile(path)
14
14
  create_dockerfile(lucian_path)
15
15
  BoardCaster.print('Lucian init DONE', "green")
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module Lucian
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
@@ -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.6
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-15 00:00:00.000000000 Z
11
+ date: 2016-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-core