raykit 0.0.359 → 0.0.362

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
  SHA256:
3
- metadata.gz: b72802c7ec5a1b0f892e79a2c51dfbf8f805579fd0172664863b2e43988dee2b
4
- data.tar.gz: ba6c23059ccd6acd00451c0b43a9e8f34fcdc65bd31b9530bbae2dc542e1b3cf
3
+ metadata.gz: 4803d18fb5a110d2a7a4109baacbb60f5bd0cecd90d484a2d1c856ae90c4ac14
4
+ data.tar.gz: 3a093936b0c035952b2f142f28e43ec182f82b11d9632999ae802fd69f313200
5
5
  SHA512:
6
- metadata.gz: 81bbdc0c10a0a10e32699332e41f877f1a7482b7a2ad9598ecb3d290f9b5eb5b24354b67d0f2487b5c45a0c9cb58babc94701646dbd4f045aa257101cfbaf810
7
- data.tar.gz: 93c36d88d395acfe38b1c947536f8dbc59936dd24cdf8738c2af8c59f5e5074a9a5a5fced8c0982582eb45dab599e5c7e438dd9f9e1e507f8ba273914baf1a1b
6
+ metadata.gz: 8a4b64179090fbc77bb7d14689159785676930c1794f53398e5b3806d489ed8e41b258a7590270c350100e3c5dbe84697bfb2e7d0da2bb3afda233896a2463ad
7
+ data.tar.gz: 47affc594e3896924e07c4edc7d67201d7146adf9171ff1310af191c2c93bc72472f52f8844b20453b6eb579e945e19de056c3152022c18fb25e0a7416c6fc6c
@@ -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
@@ -102,11 +102,28 @@ module Raykit
102
102
  false
103
103
  end
104
104
 
105
- def self.work(url,cmd)
106
- #Raykit::Git::Repository::work("https://gitlab.com/nuget-cs/roam.git","rake");
105
+ def self.work_pull(url)
106
+ repo = Raykit::Git::Repository.new(url)
107
+ work_dir = repo.get_dev_dir("work")
108
+ repo.clone(work_dir) if !Dir.exist?(work_dir)
109
+ Dir.chdir(work_dir) do
110
+ run("git pull")
111
+ end
112
+ end
113
+
114
+ def self.work_integrate(url)
115
+ repo = Raykit::Git::Repository.new(url)
116
+ work_dir = repo.get_dev_dir("work")
117
+ repo.clone(work_dir) if !Dir.exist?(work_dir)
118
+ Dir.chdir(work_dir) do
119
+ run("git pull")
120
+ run("rake integrate")
121
+ end
122
+ end
123
+
124
+ def self.work(url, cmd)
107
125
  repo = Raykit::Git::Repository.new(url)
108
126
  work_dir = repo.get_dev_dir("work")
109
- show_value "work_dir", "#{work_dir}"
110
127
  repo.clone(work_dir) if !Dir.exist?(work_dir)
111
128
  Dir.chdir(work_dir) do
112
129
  run("git pull")
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.exist?(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.exist?(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.359
4
+ version: 0.0.362
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-27 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