lucian 0.1.5 → 0.1.6

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: b0fc9cef1bd22dd25ed61f8f7f799c473411ec7d
4
- data.tar.gz: 6b218285b392b247a636589dd5b4727eb4f56f28
3
+ metadata.gz: 8b52c80a0c52cfedd9343abe87c4746950fd84c3
4
+ data.tar.gz: 8edd356028ef5ea27b00d08272fec46e25703dde
5
5
  SHA512:
6
- metadata.gz: b0a763c266ae117c0a1e9e47ef18bdaab6334271a1404924c989f9569a416b46aa9a8d6662965949d839755fc23f1056f8f494c7e2d05aa7928fd655a38ced94
7
- data.tar.gz: 4fc053fe1f4234c67e8f2c860710b3a7ad7b3f0f8674cbd9d703a5e07f9e8c8db95b846863b9d56b2000cc757898406fa622c17f2cf48106e285769ceaa2bbdd
6
+ metadata.gz: a1ad40b44f9bf50dda71452f7d0f8dc784cea8e1910af968dd5a7523e24996971a83524510a99e8c5638eb012605d4e089f7d66114567c86085cba9f3290dd3f
7
+ data.tar.gz: af7c16f67a09426de3108c17c3354c9beef964d41af004164a25b00e5f95ce70d38dcbb6745e5a687599ae3fcb2431d04dd3aa0988880f563c5ebc6362e0e1d4
data/lib/lucian/engine.rb CHANGED
@@ -12,9 +12,9 @@ module Lucian
12
12
  # if unable to find a docker-compose file then givving an error
13
13
  def initialize(compose_file = nil, examples = [])
14
14
  @compose_file = compose_file || fetch_docker_compose_file
15
- raise Error.new('Unable to find docker-compose.yml or docker-compose.yaml.') if !@compose_file || !File.file?(@compose_file)
15
+ raise Error.new('Unable to find docker-compose.yml or docker-compose.yaml.') if (!@compose_file || !File.file?(@compose_file)) && ENV["LUCIAN_DOCKER"] == nil
16
16
  @compose_directory = File.expand_path(@compose_file+'/..')
17
- @compose_data = YAML.load_file(@compose_file)
17
+ @compose_data = YAML.load_file(@compose_file) if ENV["LUCIAN_DOCKER"] == nil
18
18
  @lucian_directory = @compose_directory+'/'+DIRECTORY
19
19
  @lucian_helper = @lucian_directory+'/'+HELPER
20
20
  #@lucian_files = fetch_lucian_files(@lucian_directory)
@@ -10,6 +10,7 @@ ADD Gemfile /app/Gemfile
10
10
 
11
11
  # Bundle install rails's gem bundle
12
12
  RUN bundle install
13
+ RUN touch docker-compose.yml
13
14
 
14
15
  # Add application directory
15
16
  ADD . /app/lucian
@@ -1,3 +1,3 @@
1
1
  module Lucian
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lucian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tanapat Sainak