raykit 0.0.457 → 0.0.458

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: 90a4d5ae377873f88aeef2b1d080cf0eb8821782280ca48f38c224b7d1d2e505
4
- data.tar.gz: 6cb61367e898ea18b4a044cd1e72e5c0bd5d1951f2a70d1942f0e21004df4efe
3
+ metadata.gz: 8de8aa9b11054c55becea490652c8345a9342cb9a48a452fa1353b725ef57050
4
+ data.tar.gz: d5c536e247f85aafed2615135b1e2bc5e352f3cf440ed326844b089f0a013589
5
5
  SHA512:
6
- metadata.gz: 5a1a3efd59e8ab5022e8bcbac1b9f862494ca294ff6049a7b1ea8499303c1d3557683bfc708c73c47d13030a69964d8cfd6e64953f6d11dfb9d09976fe123157
7
- data.tar.gz: c7be7601e00e309f2d898062de4e61d66a4da34cc4c84ebd42174b5cb91f990643d95b2183fc60e9729122ebe3cafc7a7c6c0fae70d566dba60e04d99178cea3
6
+ metadata.gz: 416b311f241cb79d5b7c5b52474755273f1936bae427c40f00902a948c082cb747c2729214f909bbe3054ad2a5012de712099b28deb98ed142737f8b0bc33db1
7
+ data.tar.gz: 95ebfd56443c95bef1a7198f690e45c605fe346e7d9419062aae755e78b609e7e44a7d86859ac29324d41810091caa7eae227d2d4b0226e3aa65abefb27af7b2
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 (PROJECT.latest_tag != "v#{PROJECT.version}")
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
 
@@ -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.457
4
+ version: 0.0.458
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-05-24 00:00:00.000000000 Z
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.26
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