bunyan_capybara 0.1.3 → 0.1.4

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: afc45025f6d76a61470cd95e002cd0d901eff36a
4
- data.tar.gz: bfaa7c31a7abeec03200f4d2d80b3c9fb2cadf6e
3
+ metadata.gz: a37fb31399d7eb181e7db7032167a0fd0e9feef9
4
+ data.tar.gz: b6053708f5c7c37e4e957473a34d413e1c5c18d8
5
5
  SHA512:
6
- metadata.gz: 950d1ada1114d612082f4d375402b2a247ac1dddab0fae1cd39481fb5c9ed885edbb27c61ef3ba783a26cc9c1faace8424035ba09451aab54338dc64a7fca10b
7
- data.tar.gz: 7ec88823252f7c8d4fc50879c7ec03626e5ca3a4c890e07def074882b95b82879ed7def004e41e77bb57bc89324cd47b6790abf60a25aa0138c717c91c826b0e
6
+ metadata.gz: 3d4d32eead9a064202e27a68deab56cdc88d164caff80724577184fefe5d182fea49087f61b5a533aea8d683e3a515cc0843d1a562b26bf8b03eeae7c2f8903c
7
+ data.tar.gz: b0dd807e93375ac1189bf8463eac83f138b730576098f9b909d38ff989ae50f0d318250fd52143796b905289691f04c7a1f1beebf5fce2f25a93cce724b855e0
@@ -24,16 +24,19 @@ module Bunyan
24
24
  # we run any of the examples.
25
25
  #
26
26
  # @note Call this method no more than once per spec
27
- def self.instantiate_all_loggers!(config: ENV)
27
+ def self.instantiate_all_loggers!(config: ENV, path:)
28
28
  raise "You already called instantiate_all_loggers!" if @called
29
29
  @called = true
30
30
  layout = Logging.layouts.pattern(format_as: :json, date_pattern: "%Y-%m-%d %H:%M:%S.%L")
31
31
  Logging.appenders.stdout(layout: layout)
32
- entries = Dir.glob(File.expand_path('~/git/QA_tests/spec/*', __FILE__))
32
+ if !File.exist?(File.expand_path('~/bunyan_logs'))
33
+ Dir.mkdir(File.expand_path('~/bunyan_logs'))
34
+ end
35
+ entries = Dir.glob(File.expand_path(path + '/*', __FILE__))
33
36
  entries.each do |entry|
34
37
  application_name_under_test = entry.split('/').last
35
38
  logger = Logging.logger[application_name_under_test]
36
- log_filename = File.expand_path("~/git/QA_tests/logs/#{application_name_under_test}.log", __FILE__)
39
+ log_filename = File.expand_path("~/bunyan_logs/#{application_name_under_test}.log", __FILE__)
37
40
  logger.add_appenders('stdout', Logging.appenders.file(log_filename, layout: layout))
38
41
  logger.level = config.fetch('LOG_LEVEL', DEFAULT_LOG_LEVEL).to_sym
39
42
  end
@@ -221,6 +224,7 @@ module Bunyan
221
224
  end
222
225
 
223
226
  def initialize_example_variables!
227
+ require 'byebug'; debugger
224
228
  @example_variable = BunyanVariableExtractor.call(path: @example.metadata.fetch(:absolute_file_path), config: config)
225
229
  end
226
230
  end
@@ -1,3 +1,3 @@
1
1
  module BunyanCapybara
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bunyan_capybara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Hallwachs
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-22 00:00:00.000000000 Z
11
+ date: 2017-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara