raykit 0.0.276 → 0.0.280
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 +4 -4
- data/lib/raykit/environment.rb +3 -0
- data/lib/raykit/secrets.rb +20 -0
- data/lib/raykit/tasks.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18b851d6866f5b046a48be8c5bcb32e41ae00ec90fa9ec2c0ccfe8ecf7d7977e
|
4
|
+
data.tar.gz: 504a00e6890c6e220946f439a865ba043d16af777c3ec472e699f4d2663b5ad9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16690f2a145c3b7ffde1f894d0ba73ba40b4e1c662cda83185c781d38999fda59b8af39717caee71531bb149cebaddeedb2548354b1bee42e2f705f6e8536f0a
|
7
|
+
data.tar.gz: a1df3e82431265b4ceace8b1bbb790bacbbe63a8aa8f116e8da3b297c36f9a248f1dc0d0ab214352c7880927c2339ed8126be3b22d08ecd3b06d712bd6b3f8b0
|
data/lib/raykit/environment.rb
CHANGED
@@ -32,6 +32,9 @@ module Raykit
|
|
32
32
|
dir.to_s
|
33
33
|
end
|
34
34
|
|
35
|
+
def self.get_work_dir(url)
|
36
|
+
Raykit::Environment::get_dev_dir('work') + url.gsub('://','/').gsub('.git','')
|
37
|
+
end
|
35
38
|
# Get the size of a directory and its contents
|
36
39
|
def self.get_dir_size(dir)
|
37
40
|
Dir.glob(File.join(dir, '**', '*'))
|
data/lib/raykit/secrets.rb
CHANGED
@@ -3,6 +3,19 @@ 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
|
+
# puts "#{data}"
|
14
|
+
#end
|
15
|
+
#end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
6
19
|
def hide(text)
|
7
20
|
hidden=text
|
8
21
|
self.each{|k,v|
|
@@ -12,5 +25,12 @@ module Raykit
|
|
12
25
|
}
|
13
26
|
hidden
|
14
27
|
end
|
28
|
+
|
29
|
+
def save()
|
30
|
+
#if ENV['RAYKIT_SECRETS_PATH'].is_set?
|
31
|
+
# secrets_file = ENV['RAYKIT_SECRETS_PATH']
|
32
|
+
# File.open(secrets_file,"w") { |f| f.puts self.to_json }
|
33
|
+
#end
|
34
|
+
end
|
15
35
|
end
|
16
36
|
end
|
data/lib/raykit/tasks.rb
CHANGED
@@ -25,7 +25,8 @@ task :integrate do
|
|
25
25
|
puts "warning: .gitignore does not exist."
|
26
26
|
else
|
27
27
|
PROJECT.run('git add --all')
|
28
|
-
if(
|
28
|
+
if(!`git status`.include?('nothing to commit'))
|
29
|
+
#if(PROJECT.outstanding_commit?)
|
29
30
|
commit_message='integrate'
|
30
31
|
PROJECT.run("git commit -m\"#{commit_message}\"") if(PROJECT.outstanding_commit?)
|
31
32
|
PROJECT.run("git pull")
|
@@ -38,8 +39,9 @@ end
|
|
38
39
|
|
39
40
|
desc "push changes including tags"
|
40
41
|
task :push do
|
42
|
+
git_dir=Raykit::Git::Directory.new(Rake.application.original_dir)
|
41
43
|
if(git_dir.detached?)
|
42
|
-
puts "detached head state, skipping
|
44
|
+
puts "detached head state, skipping push operations"
|
43
45
|
else
|
44
46
|
PROJECT.run("git push")
|
45
47
|
PROJECT.run("git push --tags")
|
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.
|
4
|
+
version: 0.0.280
|
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-
|
11
|
+
date: 2021-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|