raykit 0.0.457 → 0.0.459
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/raykit/git/repository.rb +10 -0
- data/lib/raykit/tasks.rb +11 -5
- data/lib/raykit/version.rb +2 -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: 196a78b5f6d6888a6558835adc1fce6cba8440777d4a5a53246dcde6b0877042
|
4
|
+
data.tar.gz: adb0cbaccc38c715cf987d1f00de1f14c419a46a7863b424a1acd2f8da5f9839
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1015a2e2be7dc81b8c923b88ae9a04ad507a51d5fc89cd2bf3cd8fd5029408563da8c28a93f5a69bd747861118ba11af8eff370c284f055e5dd7bdeb6441a948
|
7
|
+
data.tar.gz: 6eeccf4bb3b966d3f31d292e7dc03d968845e7332f3eed06144edece4fa8e126a57a198d7ecd56c4a95ee071bf5481eaf56964db6578a858f058d6690840bcec
|
@@ -229,6 +229,16 @@ module Raykit
|
|
229
229
|
FileUtils.rm_rf(make_dir) if (cmd.exitstatus == 0)
|
230
230
|
cmd
|
231
231
|
end
|
232
|
+
|
233
|
+
def self.backup(url, backup_dir)
|
234
|
+
if (Dir.exist?(backup_dir))
|
235
|
+
Dir.chdir(backup_dir) do
|
236
|
+
run("git pull")
|
237
|
+
end
|
238
|
+
else
|
239
|
+
run("git clone #{url} \"#{backup_dir}\"")
|
240
|
+
end
|
241
|
+
end
|
232
242
|
end
|
233
243
|
end
|
234
244
|
end
|
data/lib/raykit/tasks.rb
CHANGED
@@ -60,14 +60,20 @@ task :tag do
|
|
60
60
|
if PROJECT.read_only?
|
61
61
|
puts " read only state, skipping tag operation"
|
62
62
|
else
|
63
|
-
if (
|
63
|
+
if (GIT_DIRECTORY.has_tag "v#{PROJECT.version}")
|
64
|
+
puts " tag #{PROJECT.latest_tag} already exists."
|
65
|
+
else
|
64
66
|
GIT_DIRECTORY.tag_version PROJECT.version
|
65
|
-
#if (PROJECT.version != PROJECT.latest_tag)
|
66
|
-
#try "git tag -a #{PROJECT.version} -m\"version #{PROJECT.version}\""
|
67
67
|
try "git push --tags"
|
68
|
-
else
|
69
|
-
puts " tag #{PROJECT.latest_tag} already exists."
|
70
68
|
end
|
69
|
+
#if (PROJECT.latest_tag != "v#{PROJECT.version}")
|
70
|
+
# GIT_DIRECTORY.tag_version PROJECT.version
|
71
|
+
#if (PROJECT.version != PROJECT.latest_tag)
|
72
|
+
#try "git tag -a #{PROJECT.version} -m\"version #{PROJECT.version}\""
|
73
|
+
# try "git push --tags"
|
74
|
+
#else
|
75
|
+
# puts " tag #{PROJECT.latest_tag} already exists."
|
76
|
+
#end
|
71
77
|
end
|
72
78
|
end
|
73
79
|
|
data/lib/raykit/version.rb
CHANGED
@@ -59,9 +59,11 @@ module Raykit
|
|
59
59
|
|
60
60
|
def self.set_version_in_file(filename, version)
|
61
61
|
text = IO.read(filename)
|
62
|
+
new_text = text
|
62
63
|
new_text = text.gsub(/version\s?=\s?['|"]([.\d]+)['|"]/, "version='#{version}'") if filename.include?(".gemspec")
|
63
64
|
new_text = text.gsub(/<Version>([-\w\d.]+)</, "<Version>#{version}<") if filename.include?(".csproj")
|
64
65
|
new_text = text.gsub(/<version>([-\w\d.]+)</, "<version>#{version}<") if filename.include?(".nuspec")
|
66
|
+
new_text = text.gsub(/Version="([\d\.]+)"/, "Version=\"#{version}\"") if filename.include?(".wxs")
|
65
67
|
# new_text=text.gsub(/<Version>([-\w\d.]+)</,"<Version>#{version}<")
|
66
68
|
# new_text=new_text.gsub(/version[\s]+=\s?['|"]([.\d]+)['|"]/,"version='#{version}'")
|
67
69
|
# new_text=new_text.gsub(/Version="([.\d]+)"/,"Version=\"#{version}\"")
|
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.459
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
|
-
rubygems_version: 3.3.
|
148
|
+
rubygems_version: 3.3.7
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: ruby gem to support rake ci/cd tasks
|