dtc_rake 1.0.0.pre.beta.1 → 1.0.0.pre.beta.2

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: b53d460f92926167b414acdc1707cb901d4df886
4
- data.tar.gz: 3a3e4e80069f41e0e1f587306e40043317888be8
3
+ metadata.gz: 52cb032b1bd34f85b8127ea326b3660727cdc2a2
4
+ data.tar.gz: 84935c39c123abc3d9961296d7d650278183cad1
5
5
  SHA512:
6
- metadata.gz: 30ab3c705160b028ffe6608776194bf49363c7d3ab7c671b1d6f3b0499dbd1dd2ed536a7ccccb6dd0697642b098f97e13b9f343318f9d38034a479a4e71c81d4
7
- data.tar.gz: a240141486d2011d7a1292cc326dc34bdcd5744fb1685b5a996df3da75a02d8044fca10dfa1a8f5e1c12ddaac50312260e32293ee25a753c7c8da26c7da0c5e6
6
+ metadata.gz: d55783e2713806aa8fb96963bda0f5557071de73eb3a70197aaaefa7bf3cd78fbcb281bfc9417a9032beb4c2de9e0b360f5ae69c9cd95d5c029925f77d1dd05d
7
+ data.tar.gz: b0ef5e44a7e7d5fb38ad39d9a425acd9a7ae132739a30f8e307b4c1910da7af54cf6067d6cc76cb4ddcc6b68250d0ae29588ff154faa0a9a8e52b977ee0fbdf8
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0-beta.1
1
+ 1.0.0-beta.2
data/lib/dtc_rake/util.rb CHANGED
@@ -11,9 +11,10 @@ module DtcRake
11
11
 
12
12
  def mv_to_output_dir(src_dir, src_file)
13
13
  output_dir = DtcRake::Config.instance.output_dir
14
+ output_dir_name = File.basename(output_dir) # get just the last path element (e.g. "target")
14
15
  FileUtils.mkpath output_dir
15
- src_file_path = File.join(src_dir, output_dir, src_file)
16
- dest_file = File.expand_path(File.join(".", output_dir, src_file))
16
+ src_file_path = File.join(src_dir, output_dir_name, src_file)
17
+ dest_file = File.join(output_dir, src_file)
17
18
  FileUtils.mv src_file_path, dest_file
18
19
  success "#{dest_file} created"
19
20
  end
@@ -1,3 +1,3 @@
1
1
  module DtcRake
2
- VERSION = "1.0.0-beta.1"
2
+ VERSION = "1.0.0-beta.2"
3
3
  end
@@ -18,20 +18,22 @@ def build_yardoc(product)
18
18
  announce "Building command client yardoc pack"
19
19
 
20
20
  output_dir = DtcRake::Config.instance.output_dir
21
+ output_dir_name = File.basename(output_dir) # get just the last path element (e.g. "target")
22
+ local_output_dir = File.join(product.gem_project, output_dir_name)
21
23
  archive = product.yardoc_file_name
22
24
  tmp_dir = File.basename(archive, ".zip")
23
25
 
24
26
  FileUtils.cd product.gem_project do
25
27
  [
26
- File.join(output_dir, tmp_dir),
27
- File.join(output_dir, "doc")
28
+ File.join(local_output_dir, tmp_dir),
29
+ File.join(local_output_dir, "doc")
28
30
  ].each do |dir|
29
31
  FileUtils.rm_rf dir if File.directory? dir
30
32
  end
31
33
 
32
34
  system "yardoc"
33
35
 
34
- FileUtils.cd output_dir do
36
+ FileUtils.cd local_output_dir do
35
37
  FileUtils.mv "doc", tmp_dir
36
38
 
37
39
  info "Creating #{archive}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtc_rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta.1
4
+ version: 1.0.0.pre.beta.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Sibil
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-16 00:00:00.000000000 Z
11
+ date: 2017-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement