raykit 0.0.374 → 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 +9 -7
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 177042373d9f54197fa36655f2cc365ec162e34c4612cb4af9a67e44fb2b973c
4
- data.tar.gz: 275baf9709afee0122dde952d92bc3a7539603bb09040a83d0860742ff1cba9e
3
+ metadata.gz: 6ef57575da0ddc7701bd2a6786fd1e82e55f04d5c9b2a0f39e141f610e44d30d
4
+ data.tar.gz: ba90016ee76b6492278a04037679f3f44c39b07f751e49e48572c746a0e1f040
5
5
  SHA512:
6
- metadata.gz: 7bded6532f4fc0b372fa4d4e870cdd1cdb17b5eacecc4b4c7359fd076780f35780e4c04ea5745bd7c176827691321e9346aea3c9bf82169095f3450ab110b031
7
- data.tar.gz: aa80cb7b2c369b8bba404a1278d2d681e98a3b64b7d31498cf6e47d1357f6b9c69d14e9333aaea987f667148d6a465452aab33eece413dabb809e0900e5d709b
6
+ metadata.gz: 839c085f6b02cf01f6b92759876f56effa9e733373ad5e5e58d4067aa725715d69636ba8873fca2d6b7b3322e0368223cf56fc32b8cb267888ef5bbfe963b3b9
7
+ data.tar.gz: '08f64edf04ff82d9097baeb9ad98fb3dcb890810688480a5c9524111971a5d709d85abdc3e6522a69b60388d9c6e88a4199b5d20f32ad3fea887e8d6b8b8fc31'
@@ -2,13 +2,15 @@ module Raykit
2
2
  class FileSystem
3
3
  def self.copy_files(source_dir, target_dir, glob_pattern)
4
4
  FileUtils.mkdir_p(target_dir) if !Dir.exist?(target_dir)
5
- Dir.chdir(source_dir) do
6
- Dir.glob("*.{exe,dll}").each { |f|
7
- dest = "#{target_dir}/#{f}"
8
- puts " copying #{f} to #{dest}"
9
- FileUtils.cp(f, dest)
10
- }
11
- end
5
+ #Dir.chdir(source_dir) do
6
+ Dir.glob("#{source_dir}/#{glob_pattern}").each { |f|
7
+ rel = f.gsub("#{source_dir}/", "")
8
+ dest = "#{target_dir}/#{rel}"
9
+ FileUtils.mkdir_p(File.dirname(dest)) if (!Dir.exists?(File.dirname(dest)))
10
+ puts " copying #{rel} to #{dest}"
11
+ FileUtils.cp(f, dest)
12
+ }
13
+ #end
12
14
  end
13
15
 
14
16
  def self.copy_file_to_dir(file, dir)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.374
4
+ version: 0.0.377
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-19 00:00:00.000000000 Z
11
+ date: 2022-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  requirements: []
145
- rubygems_version: 3.3.7
145
+ rubygems_version: 3.2.22
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: ruby gem to support rake ci/cd tasks