docman 0.0.12 → 0.0.13

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: f6162c342b2d3c1fd47954a3b4b1b1b13bceb220
4
- data.tar.gz: 2df8cfefe00542382279e457e16e5da77c70d752
3
+ metadata.gz: 1322b6af3565d237bc3d042e02662b9e466aee37
4
+ data.tar.gz: 2747a8cca432a253cf16edfa55be4cedf05acc76
5
5
  SHA512:
6
- metadata.gz: 7dd9af90934dc99b3d641cf8112d42e706dd0201f57e67e49aa8e9a3b2e1fe3e379c40ec0f7816fb7730c96f592c5f9384abeb21adaa56ae30f5ec39d821fde3
7
- data.tar.gz: 64639603503e5c1898fae7c4019960464f37ec6579a3191415c55e8533b167e82c54980b991ec64e077efed522ca3d11cec134083ebf48a5662650c0237d9fbe
6
+ metadata.gz: d0acff39dadf9565285b4afde218b9491d18e6dbb1a79b23b6a775e088baae70a3f097bda85e592e45681fd9c4fe914737587d3c46d7803d913496bfcab1b65e
7
+ data.tar.gz: 1f47d645b9c3d7a20dc4085a520548fc5c40c49930c9e99beeeca186560ef020d6fc9fa5cad3abfecb240cf1060eb0aef838e9063ba8e9616b56209dfb8be5f4
@@ -8,6 +8,7 @@ module Docman
8
8
  raise "Context should be of type 'Info'" unless @context.is_a? Docman::Info
9
9
  end
10
10
 
11
+ #TODO: Keep files feature
11
12
  def execute
12
13
  if File.directory? @context['full_build_path']
13
14
  if @context.need_rebuild?
@@ -15,7 +16,7 @@ module Docman
15
16
  return false if @context['type'] == 'root' and @context['build_type'] == :dir_builder and not GitUtil.repo?(@context['full_build_path'])
16
17
  return false if @context['type'] == 'root' and @context['build_type'] == :git_direct_builder and GitUtil.repo?(@context['full_build_path'])
17
18
  if @context['type'] == 'repo'
18
- if @context['build_type'] == :dir_direct_builder
19
+ if @context['build_type'] == :git_direct_builder
19
20
  return false if GitUtil.repo?(@context['full_build_path'])
20
21
  end
21
22
  end
@@ -10,7 +10,7 @@ module Docman
10
10
  @logger.info command
11
11
  result = `#{command}`.delete!("\n")
12
12
  @logger.info result if result
13
- raise result unless $?.exitstatus == 0
13
+ raise "ERROR: #{result}" unless $?.exitstatus == 0
14
14
  result
15
15
  end
16
16
 
@@ -1,3 +1,3 @@
1
1
  module Docman
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
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.12
4
+ version: 0.0.13
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-14 00:00:00.000000000 Z
11
+ date: 2014-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler