raykit 0.0.358 → 0.0.361

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: 23529e714f83532e1e4ff1da5fe6d35a1712d10ba9d17e3aa23e48d1ed8aaeb9
4
- data.tar.gz: a41ffbf448ca4994bcef5688bb27a50a391bf7263bf84441b199f93455819518
3
+ metadata.gz: 4e1e34dbf827a135e7ca6195fce7f32a7d9940dec78ff2f64bc128b026c57d98
4
+ data.tar.gz: 7799b7cbdec2219d5f7807667efefac2241cab854eb628d200633eb9c9a3186d
5
5
  SHA512:
6
- metadata.gz: 6d97d02c94292fecf94c6e098bf1a39bbbc9c332b785f2579cfabef226297a433fe2440fc0624b90a8ff7780fc88049d3b6006f7c08b93ace83869335309ee2d
7
- data.tar.gz: 1892a79dfe5733bb8f56bef4e931a94545b0c7cf4adafe47a64eb922b0798133c9d26b196433b774587a271dc943b6edda5174b94cd88b77ea719fc6b7b07058
6
+ metadata.gz: 32308b248e7c690c42e7bfdfc777988a47eca8cb664f2edf7ed646a75f495babdd2c8af43dfb1c723edf7adbeb2c5498a5683f7f350eeba706136aa8209b6f0b
7
+ data.tar.gz: 4e02daead49a5ebd3639e76d3b5e1e9b7776bb02e61c13ee8c4e881c689ecabdcd2addbb8d6654693886ac0ea5069573cce0dd7b91528630dfb9e290754758c7
@@ -0,0 +1,14 @@
1
+ module Raykit
2
+ class FileSystem
3
+ def self.copy_files(source_dir, target_dir, glob_pattern)
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
12
+ end
13
+ end
14
+ end
data/lib/raykit/nunit.rb CHANGED
@@ -1,13 +1,13 @@
1
1
  module Raykit
2
- class NUnit
3
- def self.nunit3console_path(version)
4
- # C:\Users\lparslow\.nuget\packages\nunit.consolerunner\3.15.0\tools
5
- path="#{Environment.home_dir}/.nuget/packages/nunit.consolerunner/#{version}/tools"
6
- if Dir.exists?(path)
7
- path
8
- else
9
- ""
10
- end
2
+ class NUnit
3
+ def self.nunit3console_path(version)
4
+ # C:\Users\lparslow\.nuget\packages\nunit.consolerunner\3.15.0\tools
5
+ path = "#{Environment.home_dir}/.nuget/packages/nunit.consolerunner/#{version}/tools"
6
+ if Dir.exists?(path)
7
+ path
8
+ else
9
+ ""
11
10
  end
12
11
  end
13
- end
12
+ end
13
+ end
data/lib/raykit/zip.rb CHANGED
@@ -50,14 +50,14 @@ module Raykit
50
50
  files_to_archive.each do |file|
51
51
  zipfile.get_output_stream(file) { |f|
52
52
  fr = ::File.open("#{@source_dir}/#{file}", "rb")
53
- #f.puts(fr.read)
53
+ f.puts(fr.read)
54
54
  fr.close()
55
55
  f.close()
56
56
  count = count + 1
57
57
  }
58
58
  end
59
59
  zipfile.close
60
- puts " added " << count << " files to " << @filename
60
+ puts " added " << count.to_s << " files to " << @filename
61
61
  }
62
62
  end
63
63
  end
data/lib/raykit.rb CHANGED
@@ -24,7 +24,7 @@ module Raykit
24
24
  end
25
25
  end
26
26
 
27
- RAYKIT_GLOBALS=true
27
+ RAYKIT_GLOBALS = true
28
28
  if defined?(RAYKIT_GLOBALS)
29
29
  def run(command, quit_on_failure = true)
30
30
  Raykit::TopLevel.run(command, quit_on_failure)
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.358
4
+ version: 0.0.361
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-04-12 00:00:00.000000000 Z
11
+ date: 2022-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -97,6 +97,7 @@ files:
97
97
  - lib/raykit/dir.rb
98
98
  - lib/raykit/dotnet.rb
99
99
  - lib/raykit/environment.rb
100
+ - lib/raykit/filesystem.rb
100
101
  - lib/raykit/git/commit.rb
101
102
  - lib/raykit/git/directory.rb
102
103
  - lib/raykit/git/files.rb
@@ -140,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
141
  - !ruby/object:Gem::Version
141
142
  version: '0'
142
143
  requirements: []
143
- rubygems_version: 3.3.7
144
+ rubygems_version: 3.2.22
144
145
  signing_key:
145
146
  specification_version: 4
146
147
  summary: ruby gem to support rake ci/cd tasks