raykit 0.0.376 → 0.0.377

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/raykit/filesystem.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 224ba871da0a6c96eb376a9c1237e9b1d5398b705e3a6d8d20a18b89baa77fba
4
- data.tar.gz: 27e1c2f103d9f2eaaaef2a60583582a1d5ee9b5330e535be14bd7c7d5e632dc7
3
+ metadata.gz: 6ef57575da0ddc7701bd2a6786fd1e82e55f04d5c9b2a0f39e141f610e44d30d
4
+ data.tar.gz: ba90016ee76b6492278a04037679f3f44c39b07f751e49e48572c746a0e1f040
5
5
  SHA512:
6
- metadata.gz: d8911520507618ca82c3fb071735e66a3390941abdf2447cb5e4b31af660d93bc12634d28ee5fc5d5b5882a759de9983b07bf9e3d632f9db7a9586b7b63785bc
7
- data.tar.gz: 33d29879e64222cb9f9f5b229957a04754dbe0f27f46164e0462a7417ea5eefc808369965ccbaecd203029c900ae665e53f4ed8c95a7e5f4af067b37d2e95ed3
6
+ metadata.gz: 839c085f6b02cf01f6b92759876f56effa9e733373ad5e5e58d4067aa725715d69636ba8873fca2d6b7b3322e0368223cf56fc32b8cb267888ef5bbfe963b3b9
7
+ data.tar.gz: '08f64edf04ff82d9097baeb9ad98fb3dcb890810688480a5c9524111971a5d709d85abdc3e6522a69b60388d9c6e88a4199b5d20f32ad3fea887e8d6b8b8fc31'
@@ -4,8 +4,9 @@ module Raykit
4
4
  FileUtils.mkdir_p(target_dir) if !Dir.exist?(target_dir)
5
5
  #Dir.chdir(source_dir) do
6
6
  Dir.glob("#{source_dir}/#{glob_pattern}").each { |f|
7
- rel = f.gsub(source_dir, "")
7
+ rel = f.gsub("#{source_dir}/", "")
8
8
  dest = "#{target_dir}/#{rel}"
9
+ FileUtils.mkdir_p(File.dirname(dest)) if (!Dir.exists?(File.dirname(dest)))
9
10
  puts " copying #{rel} to #{dest}"
10
11
  FileUtils.cp(f, dest)
11
12
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.376
4
+ version: 0.0.377
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow