docman 0.0.25 → 0.0.26

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: ef2af62411d6561cb7f0332b1b1352ced9f8b7dc
4
- data.tar.gz: ed51fdcf6da2089b4f6ba396cab7eb8ddbd5c276
3
+ metadata.gz: f999d877d7f852b25084023633e76f0b6a26ca8a
4
+ data.tar.gz: f94a3bddade51bfe5b7dbf01f32c337d8c326160
5
5
  SHA512:
6
- metadata.gz: 463c7be0154f25eae0ae307d928734ecec6890a6d0f0ab52fcad5b73ed23d4cd1b4745221b8027599187a01e0ee34f412d5427fc49ecb94f741ae799034f50de
7
- data.tar.gz: 52371eef8888ab3e34cd48e05c82e58aad17de36936f1a1f144139177a3ddaf92c5927f80f2a65e7ce50acb061bea470ee20d04d5e3dea4f63f521c7ece53b1b
6
+ metadata.gz: 033048679f637f5a49b929882ec4fdbae5989e4c3c4aef08c6f2cda6a0027ffbf36f85f5b030a9b51b5118ecb7cb2f1bfc7cb2fd6214609bcdc92de992af8017
7
+ data.tar.gz: 643119ba5f68c98481c41820dee753597b818c8635c719b1bc98b32241ea2b479142fac6c5d49033bc28d16005e16bcd7725b6f64ebf66b13ab2d4401ddbb703
@@ -5,16 +5,15 @@ module Docman
5
5
  register_builder :git_direct_builder
6
6
 
7
7
  def execute
8
- old_revision = GitUtil.last_revision @context['full_build_path']
9
8
  execute_result = GitUtil.get(@context['repo'], @context['full_build_path'], @context.version_type, @context.version)
10
9
  # No commit hash for 'root' as it will be changed later
11
- last_revision = GitUtil.last_revision @context['full_build_path']
12
10
  @version = @context['type'] == 'root' ? @context['build_path'] : execute_result
13
- old_revision != last_revision ? @version : false
11
+ @last_revision != @version ? @version : false
14
12
  end
15
13
 
16
14
  def changed?
17
15
  stored_version = @context.stored_version['result']
16
+ @last_revision = GitUtil.last_revision @context['full_build_path']
18
17
  # No commit hash for 'root' as it will be changed later
19
18
  @version = @context['type'] == 'root' ? @context['build_path'] : GitUtil.get(@context['repo'], @context['full_build_path'], @context.version_type, @context.version)
20
19
  stored_version != @version
@@ -76,6 +76,7 @@ module Docman
76
76
  def run_actions(name)
77
77
  if @hooks.has_key? name
78
78
  @hooks[name].each do |hook|
79
+ next if hook.has_key?('run_on_success_only') and hook['run_on_success_only'] and not @execute_result
79
80
  context = hook.has_key?('context') ? hook['context'] : @context
80
81
  Docman::Command.create(hook, context, self).perform
81
82
  end
@@ -18,7 +18,8 @@ module Docman
18
18
  source_pathname = Pathname.new source_path
19
19
  target_pathname = Pathname.new @context['full_build_path']
20
20
  relative_path = target_pathname.relative_path_from source_pathname
21
- puts `ln -f -s #{relative_path} .`
21
+ `ln -f -s #{relative_path} .`
22
+ log "Created symlink in #{source_path} dir: '#{@context['name']}' to '#{relative_path}'"
22
23
  end
23
24
  end
24
25
  end
@@ -1,3 +1,3 @@
1
1
  module Docman
2
- VERSION = "0.0.25"
2
+ VERSION = "0.0.26"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.25
4
+ version: 0.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Tolstikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-31 00:00:00.000000000 Z
11
+ date: 2014-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler