raykit 0.0.399 → 0.0.400
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/filesystem.rb +1 -1
- data/lib/raykit/git/directory.rb +18 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 051c41fec4ffa38c63e0ce608dec916b4b3c43faa9b6cefb14cb025482c3a5ad
|
4
|
+
data.tar.gz: bcf3c976b55c4d21b22621404f76e203cb5c975b6bb8cefd719b7e6a40838461
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a282efb131e22be6044acd0dd6cc57fb1f0c2508281afe228555a6b33d346ef339b3e71b73828a647c9b180b02dadd966d65ff816ecae330ac288a9344f77bb
|
7
|
+
data.tar.gz: 14aceb73b2e35bae2751366c1d85b0ec27566bf9fd1fbcef9e6b7bf16de8baeae8520f137c9e3263d731599dc9414b25049bc8f3bd6577a065a8fafcea1fb573
|
data/lib/raykit/filesystem.rb
CHANGED
@@ -13,7 +13,7 @@ module Raykit
|
|
13
13
|
file_count = file_count + 1
|
14
14
|
}
|
15
15
|
#end
|
16
|
-
puts " copied " + file_count.to_s + " file from #{source_dir} to #{target_dir}"
|
16
|
+
puts " copied " + file_count.to_s + " file(s) from #{source_dir} to #{target_dir}"
|
17
17
|
end
|
18
18
|
|
19
19
|
def self.copy_file_to_dir(file, dir)
|
data/lib/raykit/git/directory.rb
CHANGED
@@ -78,6 +78,24 @@ module Raykit
|
|
78
78
|
end
|
79
79
|
end
|
80
80
|
|
81
|
+
# git ls-tree -r master --name-only
|
82
|
+
def src_files
|
83
|
+
files = Array.new
|
84
|
+
Dir.chdir(@directory) do
|
85
|
+
`git ls-tree -r #{branch} --name-only`.each_line { |line|
|
86
|
+
file = line.strip
|
87
|
+
files << file if file.length > 0
|
88
|
+
}
|
89
|
+
end
|
90
|
+
files
|
91
|
+
end
|
92
|
+
|
93
|
+
def last_modified_src_time
|
94
|
+
Dir.chdir(@directory) do
|
95
|
+
File.mtime(src_files.select { |f| File.file?(f) }.max_by { |f| File.mtime(f) })
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
81
99
|
# The latest tag for a branch of the repository
|
82
100
|
def latest_tag(_branch)
|
83
101
|
Dir.chdir(directory) do
|
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.400
|
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-07-
|
11
|
+
date: 2022-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
|
-
rubygems_version: 3.
|
147
|
+
rubygems_version: 3.2.22
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: ruby gem to support rake ci/cd tasks
|