libis-workflow 2.0.5 → 2.0.6

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: 7d753f69a705d04d62a20ee466028acdcbc864f7
4
- data.tar.gz: 9b4c5abd4093ef030386159a4757edaa60f319ef
3
+ metadata.gz: dfab02f94fe4c007febd5cb3a6a3f90bc690578d
4
+ data.tar.gz: b28951ed4a7d771c600f8c1b80b47c5c708bc5b7
5
5
  SHA512:
6
- metadata.gz: ca1c623c1694e01b64d2df8e30d14087b94784f67b5a924f31ef290bc87b47e3a41bcbfd16bd6087d1a886905701d8addd0976cbd2df5acf16b89b0808db8aa5
7
- data.tar.gz: f9e9259c5410813f40d7c93a376ee54a5e19af4a10f8c792a53b70c44911832b6413cdb70e129fe7e3621137d161552ff12cc13bb6c7542af533d666a98bbf15
6
+ metadata.gz: f880d8a3daaf98ab41826055e8c9138146c253cd4a63af933302ee1277253e94b51a3ddd71175c6351eff24f54ef1b02eb4c953363b260077f8172fe302938ef
7
+ data.tar.gz: 65ecec01867987ee515d8af5e5f9b2aa4a6cd274fcf0343bd04a2221d1c0438bcbd95a50cdbd517459c8d226750ffd30d45e08ec684af54927b2f85ab20b5305
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  module Libis
4
2
  class WorkflowError < ::RuntimeError
5
3
  end
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'libis/workflow/base/file_item'
4
2
 
5
3
  module Libis
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'digest'
4
2
 
5
3
  require 'libis/workflow/base/work_item'
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'libis/tools/parameter'
4
2
 
5
3
  module Libis
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'fileutils'
4
2
 
5
3
  require 'libis/workflow/base/work_item'
@@ -28,7 +26,7 @@ module Libis
28
26
 
29
27
  def work_dir
30
28
  # noinspection RubyResolve
31
- dir = File.join(Config.workdir, self.name)
29
+ dir = File.join(Libis::Workflow::Config.workdir, self.name)
32
30
  FileUtils.mkpath dir unless Dir.exist?(dir)
33
31
  dir
34
32
  end
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'backports/rails/hash'
4
2
  require 'libis/tools/extend/hash'
5
3
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'libis/tools/parameter'
4
2
  require 'libis/workflow/task_group'
5
3
  require 'libis/tools/extend/hash'
@@ -65,11 +63,11 @@ module Libis
65
63
 
66
64
  module ClassMethods
67
65
  def require_all
68
- Config.require_all(File.join(File.dirname(__FILE__), '..', 'tasks'))
66
+ Libis::Workflow::Config.require_all(File.join(File.dirname(__FILE__), '..', 'tasks'))
69
67
  # noinspection RubyResolve
70
- Config.require_all(Config.taskdir)
68
+ Libis::Workflow::Config.require_all(Libis::Workflow::Config.taskdir)
71
69
  # noinspection RubyResolve
72
- Config.require_all(Config.itemdir)
70
+ Libis::Workflow::Config.require_all(Libis::Workflow::Config.itemdir)
73
71
  end
74
72
  end
75
73
 
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'libis/tools/config'
4
2
 
5
3
  module Libis
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'libis/workflow/file_item'
4
2
 
5
3
  module Libis
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'digest'
4
2
 
5
3
  require 'libis/workflow/base/file_item'
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'libis/workflow/base/job'
4
2
  require 'libis/workflow/workflow'
5
3
  require 'libis/workflow/run'
@@ -21,7 +19,7 @@ module Libis
21
19
  end
22
20
 
23
21
  def logger
24
- Config.logger
22
+ ::Libis::Workflow::Config.logger
25
23
  end
26
24
 
27
25
  end
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'singleton'
4
2
 
5
3
  module Libis
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  require 'backports/rails/hash'
3
2
  require 'backports/rails/string'
4
3
 
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  require_relative 'task'
3
2
 
4
3
  module Libis
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'libis/workflow/task'
4
2
 
5
3
  module Libis
@@ -1,7 +1,5 @@
1
- # encoding: utf-8
2
-
3
1
  module Libis
4
2
  module Workflow
5
- VERSION = '2.0.5' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
3
+ VERSION = '2.0.6' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
6
4
  end
7
5
  end
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  require 'libis/tools/extend/hash'
3
2
  require 'libis/workflow/base/work_item'
4
3
 
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  require 'sidekiq'
3
2
 
4
3
  require 'libis/workflow/config'
@@ -19,13 +18,13 @@ module Libis
19
18
  def configure(job_config, options = {})
20
19
  log_path = options.delete :log_path
21
20
  if log_path
22
- Config.logger = ::Logger.new(
21
+ Libis::Workflow::Config.logger = ::Logger.new(
23
22
  File.join(log_path, "#{job_config[:name]}.log"),
24
23
  (options.delete(:log_shift_age) || 'daily'),
25
24
  (options.delete(:log_shift_size) || 1024 ** 2)
26
25
  )
27
- Config.logger.formatter = ::Logger::Formatter.new
28
- Config.logger.level = (options.delete(:log_level) || ::Logger::DEBUG)
26
+ Libis::Workflow::Config.logger.formatter = ::Logger::Formatter.new
27
+ Libis::Workflow::Config.logger.level = (options.delete(:log_level) || ::Logger::DEBUG)
29
28
  end
30
29
  get_job(job_config)
31
30
  end
@@ -1,5 +1,3 @@
1
- # encoding: utf-8
2
-
3
1
  require 'libis/workflow/base/workflow'
4
2
 
5
3
  module Libis
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  require 'libis/exceptions'
3
2
 
4
3
  require_relative 'workflow/version'
@@ -1,2 +1 @@
1
- # encoding: utf-8
2
1
  require 'libis/workflow'
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  require 'libis/workflow/dir_item'
3
2
 
4
3
  class TestDirItem < ::Libis::Workflow::DirItem
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  require 'libis/tools/checksum'
3
2
 
4
3
  require 'libis/workflow/file_item'
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  require 'libis/workflow/run'
3
2
 
4
3
  require_relative 'test_dir_item'
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  require 'backports/rails/string'
3
2
 
4
3
  require 'libis/workflow'
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  require 'libis/tools/checksum'
3
2
 
4
3
  require 'libis/exceptions'
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  require 'libis/exceptions'
3
2
 
4
3
  require_relative '../items'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-workflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser