raykit 0.0.398 → 0.0.399

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
  SHA256:
3
- metadata.gz: 7b629dd776504babf41e4f267708ca8cd375d0760dc1372f2b66a602812df531
4
- data.tar.gz: 16bc67c404d0262fbcaa97f88d844870ea5d38b561f34c73a961e8db71707100
3
+ metadata.gz: a7b05f830a5453ee89a4deb45c07985abd2da04438f1f245232439acfa7712a0
4
+ data.tar.gz: 10ad2273ce10bbd102fd6a284f4c508e759f738691baa32dac1db320f7b9d685
5
5
  SHA512:
6
- metadata.gz: 9646908b0449f90ad346b5e0f83f62de481aed6808796649aff40e5ebc8a22bf136a10bbab7f296824171a104558c68bf91ccf256a86bfdd9dcf360c120e90d4
7
- data.tar.gz: 5d74aa7b742bf671abea52f840b6db0a300b34e50a01a0f378e30c1f5939e5d0ecebb7bbf60042c02cacd7beb3d7f43db702189f86129102b25a88522f2de171
6
+ metadata.gz: dc5e4a82d286210f8a9d9bb4cc332dde18820fd1e57fbf2fe368b5f5e3ac3ee01e45cc57355cdf065382be93bc848a1ac24a34c76d2a04c004da99bc9364ba9d
7
+ data.tar.gz: 52458eace0ae6f78d09a506435efd016ff0c00fd412ba6dda823f2e915552b71a9cc89d29d82b84c588d98bd3648cb03c693cfb919d59e8e7205efe9b53fa93e
@@ -3,14 +3,17 @@ module Raykit
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
5
  #Dir.chdir(source_dir) do
6
+ file_count = 0
6
7
  Dir.glob("#{source_dir}/#{glob_pattern}").each { |f|
7
8
  rel = f.gsub("#{source_dir}/", "")
8
9
  dest = "#{target_dir}/#{rel}"
9
10
  FileUtils.mkdir_p(File.dirname(dest)) if (!Dir.exists?(File.dirname(dest)))
10
- puts " copying #{rel} to #{dest}"
11
+ #puts " copying #{rel} to #{dest}"
11
12
  FileUtils.cp(f, dest)
13
+ file_count = file_count + 1
12
14
  }
13
15
  #end
16
+ puts " copied " + file_count.to_s + " file from #{source_dir} to #{target_dir}"
14
17
  end
15
18
 
16
19
  def self.copy_file_to_dir(file, dir)
@@ -25,9 +25,7 @@ module Raykit
25
25
 
26
26
  def save(_filename)
27
27
  File.open(@filename, "w") do |f|
28
- # json = JSON.pretty_generate(self)
29
28
  f.write(JSON.pretty_generate(self))
30
- # f.write(self.to_json)
31
29
  end
32
30
  end
33
31
 
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.398
4
+ version: 0.0.399
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-07-05 00:00:00.000000000 Z
11
+ date: 2022-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler