git-runner 0.0.4 → 0.0.5

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.
@@ -9,6 +9,7 @@ module GitRunner
9
9
 
10
10
  def run
11
11
  begin
12
+ load_git_runner_gems
12
13
  Text.begin
13
14
 
14
15
  if refs && refs.is_a?(Array)
@@ -58,6 +59,11 @@ module GitRunner
58
59
 
59
60
 
60
61
  private
62
+ def load_git_runner_gems
63
+ # Load all additional gems that start with 'git-runner-'
64
+ Gem::Specification.all.map(&:name).select { |gem| gem =~ /^git-runner-/ }.each { |name| require(name) }
65
+ end
66
+
61
67
  def write_error_log
62
68
  log_directory = File.join(Configuration.tmp_directory, 'logs')
63
69
  error_log = File.join(log_directory, Time.now.strftime("%Y%m%d%H%M%S") + '-error.log')
@@ -1,4 +1,5 @@
1
- Dir[File.join(File.dirname(__FILE__), 'instructions', '*.rb')].each { |file| require file }
1
+ require 'git-runner/instructions/base'
2
+ require 'git-runner/instructions/display'
2
3
 
3
4
  module GitRunner
4
5
  class Instruction
@@ -1,3 +1,3 @@
1
1
  module GitRunner
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: