raykit 0.0.379 → 0.0.382

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: e6398f0143294f567d78859ad7d0d987f7a4b72eafea6ed783408e376ce59939
4
- data.tar.gz: bf3e09a36a418e6f92e43a6cf8a0264af3fc96f6bb16e3f919607195a7c3b8ff
3
+ metadata.gz: '009de6bc0eb245459023848f96351f101970de107de62dbb45eeb6b81aad7642'
4
+ data.tar.gz: fcbb966d619d26fa436e528f7592b99abab1dc89546c15a7d7aa6e9b46ffcc5a
5
5
  SHA512:
6
- metadata.gz: eb1981f925c54bdeb7490d225e81e30a65d114bc06520e589fbc5abc166a5b12d424405cf783f9e8acbd015fd5a98ecaf6665096db1bdd98d7aa8ed4463f31f4
7
- data.tar.gz: '061001102011287440738b040c9d72cc15c2a451c47053697bf39f7a43f025442a0c208d7944ffa130867a25f3a34c31fa9d9192a26a79bfd02d44f12320578f'
6
+ metadata.gz: c167720fa6626bcaa8eb6131f9daa15e5d5c5b48069960b5ed10e1f1d201c3dd8fa8c0c09bbcaea271a4635c01fc2690e05c7b8db4a6c5704d1b651bd6c892a5
7
+ data.tar.gz: 53ef5e43c879a3acff55c2c71b38940b16048f789d2abc7c2d63fa017d506d82b817248c8ea562d2e555a8ac1e160459db0b03ac9802d672633d7b5992468148
data/lib/raykit/dotnet.rb CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  module Raykit
4
4
  class DotNet
5
+ def self.init_new(name, template)
6
+ if (!File.exists?("#{name}/#{name}.csproj"))
7
+ puts " #{name}.csproj not found, creating..."
8
+ run("dotnet new #{template} --name #{name} --output #{name} --language C# ")
9
+ else
10
+ puts " #{name}.csproj already exists"
11
+ end
12
+ end
13
+
5
14
  # initialize a C# library
6
15
  def self.initialize_csharp_lib(name)
7
16
  puts `dotnet new sln --name #{name}` unless File.exist?("#{name}.sln")
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Raykit
4
+ class Installer
5
+ def make_msi(wxs_file, source_dir, msi_filename)
6
+ wxs_basename = "#{File.basename(wxs_file, ".wxs")}"
7
+ FileUtils.cp(wxs_file, "#{source_dir}/#{File.basename(wxs_file)}")
8
+ Dir.chdir(source_dir) do
9
+ run("candle #{File.basename(wxs_file)}")
10
+ run("light #{File.basename(wxs_file, ".wxs")}.wixobj")
11
+ FileUtils.cp("#{wxs_basename}.msi", msi_filename)
12
+ raise "#{msi_filename} does not exist" if !File.exists?(msi_filename)
13
+ end
14
+ end
15
+ end
16
+ end
17
+
data/lib/raykit.rb CHANGED
@@ -13,7 +13,9 @@ PROJECT = Raykit::Project.new
13
13
  SECRETS = Raykit::Secrets.new
14
14
 
15
15
  REPOSITORIES = Raykit::Git::Repositories.new("#{Raykit::Environment.get_dev_dir("log")}/Raykit.Git.Repositories.json")
16
- GIT_DIRECTORY = Raykit::Git::Directory.new(Rake.application.original_dir) # if Dir.exist?(".git")
16
+ GIT_DIRECTORY = Raykit::Git::Directory.new(Rake.application.original_dir)
17
+
18
+ PUBLISH_DIR = Raykit::Environment::get_dev_dir("publish")
17
19
 
18
20
  # include Raykit::TopLevel to make run method accessible from the global scope
19
21
  module Raykit
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.379
4
+ version: 0.0.382
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-26 00:00:00.000000000 Z
11
+ date: 2022-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -103,6 +103,7 @@ files:
103
103
  - lib/raykit/git/files.rb
104
104
  - lib/raykit/git/repositories.rb
105
105
  - lib/raykit/git/repository.rb
106
+ - lib/raykit/installer.rb
106
107
  - lib/raykit/log.rb
107
108
  - lib/raykit/logevent.rb
108
109
  - lib/raykit/logging.rb
@@ -142,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
143
  - !ruby/object:Gem::Version
143
144
  version: '0'
144
145
  requirements: []
145
- rubygems_version: 3.3.7
146
+ rubygems_version: 3.2.22
146
147
  signing_key:
147
148
  specification_version: 4
148
149
  summary: ruby gem to support rake ci/cd tasks