raykit 0.0.281 → 0.0.282

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: cce8fdf22d6fc96be550b48a5e2f88102a341e6ca13d92b4eb67eea143e84f87
4
- data.tar.gz: 20d0192d12dc1b0d52f8717be1efc3fe7560322ffd3bb9fea7a6b8faf59c702c
3
+ metadata.gz: 89e989d908fdb2cd99694c3acc432f85469c54d20e4912b38fd3c4ee267999ed
4
+ data.tar.gz: 0ecb67a38e02e91f4156a2b0c9e832f481accc3829b5fdffe214a39974812244
5
5
  SHA512:
6
- metadata.gz: 31af0233b410c60cc437725dc24dcd388d34e291b21ad0236cad087d462beacc402a85810dcd7f280387c54f0b6073e09b0e8f29049f4a6b4be1911af955a3d7
7
- data.tar.gz: a57943df33a23921547571f8e022494c75b6b680bb8f45115265a8ec2542295974f8d8469e1446a5073aed7a17eda68800648349117f9a3ce1e73dee8476058b
6
+ metadata.gz: 3424daf02cdc6dbfd9d75eef117e359ca2fa1732246a28ada543e48419f99ed1e815942da469725fb82233d1023f89c57504bb0c6e36565a8dc88885e47895d7
7
+ data.tar.gz: f28ad6654e7fcac3a5f46668b9ea1fa812b61da854d47e0ce762932642763ea956686bd5e3023489e1921453981701e91c72cdae224bdbb6123a440cdc185d66
@@ -29,11 +29,11 @@ module Raykit
29
29
  def self.get_dev_dir(name)
30
30
  dir = Pathname.new("#{Environment::root_dir}/#{name}")
31
31
  dir.mkpath
32
- dir.to_s().gsub('//','/')
32
+ dir.to_s
33
33
  end
34
34
 
35
35
  def self.get_work_dir(url)
36
- Raykit::Environment::get_dev_dir('work') +'/' + url.gsub('://','/').gsub('.git','')
36
+ Raykit::Environment::get_dev_dir('work') + url.gsub('://','/').gsub('.git','')
37
37
  end
38
38
  # Get the size of a directory and its contents
39
39
  def self.get_dir_size(dir)
@@ -3,21 +3,6 @@ require 'time'
3
3
  module Raykit
4
4
  # Provides functionality to record the time execution times
5
5
  class Secrets < Hash
6
- def initialize()
7
- if ENV.has_key?('RAYKIT_SECRETS_PATH')
8
- secrets_file = ENV['RAYKIT_SECRETS_PATH']
9
- if File.exists?(secrets_file)
10
- text = IO.read(secrets_file)
11
- if (text.length > 7 )
12
- data = JSON.parse(text)
13
- data.each{|key,value|
14
- self[key] = value
15
- }
16
- end
17
- end
18
- end
19
- end
20
-
21
6
  def hide(text)
22
7
  hidden=text
23
8
  self.each{|k,v|
@@ -27,12 +12,5 @@ module Raykit
27
12
  }
28
13
  hidden
29
14
  end
30
-
31
- def save()
32
- if ENV.has_key?('RAYKIT_SECRETS_PATH')
33
- secrets_file = ENV['RAYKIT_SECRETS_PATH']
34
- File.open(secrets_file,"w") { |f| f.puts self.to_json }
35
- end
36
- end
37
15
  end
38
16
  end
data/lib/raykit/tasks.rb CHANGED
@@ -9,9 +9,7 @@ task :integrate do
9
9
  puts Rainbow(':integrate').blue.bright
10
10
 
11
11
  git_dir=Raykit::Git::Directory.new(Rake.application.original_dir)
12
- if(git_dir.detached?)
13
- puts "detached head state, skipping integrate operations"
14
- else
12
+ if(!git_dir.detached?)
15
13
  if(PROJECT.outstanding_commit?)
16
14
  if(Rake::Task.task_defined?("test"))
17
15
  Rake::Task["test"].invoke
@@ -25,29 +23,17 @@ task :integrate do
25
23
  puts "warning: .gitignore does not exist."
26
24
  else
27
25
  PROJECT.run('git add --all')
28
- if(!`git status`.include?('nothing to commit'))
29
- #if(PROJECT.outstanding_commit?)
26
+ if(PROJECT.outstanding_commit?)
30
27
  commit_message='integrate'
31
28
  PROJECT.run("git commit -m\"#{commit_message}\"") if(PROJECT.outstanding_commit?)
32
29
  PROJECT.run("git pull")
33
- #PROJECT.run("git push")
34
- #PROJECT.run("git push --tags")
30
+ PROJECT.run("git push")
31
+ PROJECT.run("git push --tags")
35
32
  end
36
33
  end
37
34
  end
38
35
  end
39
36
 
40
- desc "push changes including tags"
41
- task :push do
42
- git_dir=Raykit::Git::Directory.new(Rake.application.original_dir)
43
- if(git_dir.detached?)
44
- puts "detached head state, skipping push operations"
45
- else
46
- PROJECT.run("git push")
47
- PROJECT.run("git push --tags")
48
- end
49
- end
50
-
51
37
  desc "clean files not tracked by git"
52
38
  task :clean do
53
39
  puts Rainbow(':clean').blue.bright
@@ -0,0 +1,12 @@
1
+ module Raykit
2
+ class VsTest
3
+ def self.vstest_path
4
+ ['2019/Community/Common7/IDE/Extensions',
5
+ '2019/Community/Common7/IDE/Extensions',
6
+ '2022/Preview/Common7/IDE/Extensions/TestPlatform'].each{|relative_path|
7
+ path = 'C:/Program Files/Microsoft Visual Studio/' + relative_path
8
+ return path if(Dir.exists?(path))
9
+ }
10
+ end
11
+ end
12
+ end
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.281
4
+ version: 0.0.282
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-23 00:00:00.000000000 Z
11
+ date: 2021-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -102,6 +102,7 @@ files:
102
102
  - lib/raykit/text.rb
103
103
  - lib/raykit/timer.rb
104
104
  - lib/raykit/version.rb
105
+ - lib/raykit/vstest.rb
105
106
  - lib/raykit/zip.rb
106
107
  homepage: http://rubygems.org/gems/raykit
107
108
  licenses: