raykit 0.0.399 → 0.0.400

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: a7b05f830a5453ee89a4deb45c07985abd2da04438f1f245232439acfa7712a0
4
- data.tar.gz: 10ad2273ce10bbd102fd6a284f4c508e759f738691baa32dac1db320f7b9d685
3
+ metadata.gz: 051c41fec4ffa38c63e0ce608dec916b4b3c43faa9b6cefb14cb025482c3a5ad
4
+ data.tar.gz: bcf3c976b55c4d21b22621404f76e203cb5c975b6bb8cefd719b7e6a40838461
5
5
  SHA512:
6
- metadata.gz: dc5e4a82d286210f8a9d9bb4cc332dde18820fd1e57fbf2fe368b5f5e3ac3ee01e45cc57355cdf065382be93bc848a1ac24a34c76d2a04c004da99bc9364ba9d
7
- data.tar.gz: 52458eace0ae6f78d09a506435efd016ff0c00fd412ba6dda823f2e915552b71a9cc89d29d82b84c588d98bd3648cb03c693cfb919d59e8e7205efe9b53fa93e
6
+ metadata.gz: 6a282efb131e22be6044acd0dd6cc57fb1f0c2508281afe228555a6b33d346ef339b3e71b73828a647c9b180b02dadd966d65ff816ecae330ac288a9344f77bb
7
+ data.tar.gz: 14aceb73b2e35bae2751366c1d85b0ec27566bf9fd1fbcef9e6b7bf16de8baeae8520f137c9e3263d731599dc9414b25049bc8f3bd6577a065a8fafcea1fb573
@@ -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)
@@ -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.399
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 00:00:00.000000000 Z
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.3.7
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