raykit 0.0.90 → 0.0.91

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d00b06f30fda76720b701b2f124bf3ba838941c38b1aa5e89bccc1186ef0c51e
4
- data.tar.gz: dbf95dd8d8cf969340bcd4db753a6b652b2d88736dbe96519a538a256b272713
3
+ metadata.gz: 59c46496188e6ad70142d640ad438d33b8d2237cb089321cc6f6652b4906cf25
4
+ data.tar.gz: 7a1880532bcc017ae2916abeef52fe437a4e4bf6ae3aff500f1f160224b858fb
5
5
  SHA512:
6
- metadata.gz: 64eec1fca95a381652eed93b028834a2be46bf880208dd951ba0a189de78a0c95bb10cdbcfee648f5a9894f54ff14fb58e34038d4c4add53fa31253995b6de0a
7
- data.tar.gz: 716add5672099d3e17223eb198c39fbd8c21b7f3013e8b7750b017c6b7d62e4ecafc78f572c8fface56dbe910727e5dc16adbdc0010073b96c3e797da238bb6f
6
+ metadata.gz: d5122ee7b32aa5d2cddec0b4023f97b358ae2ac991c69867905d65d8ab3e1a90c834ecab22ca70c3d21b1c306d1b7dbd326cf12f329b933f814b4e99ef5aa8dd
7
+ data.tar.gz: c7ef8bac00a52ba3951fff5d548a07ff48dc9e372f76c37606362eb3ee71f3ee2e442210dea7757dc3297fd5e94145ef58e33b4e3ea9240b0fade665318f37d2
@@ -54,7 +54,6 @@ module Raykit
54
54
 
55
55
  # latest local commit
56
56
  def latest_commit
57
- #@repository.latest_commit(branch)
58
57
  Dir.chdir(@directory) do
59
58
  text=`git log -n 1`
60
59
  scan=text.scan(/commit ([\w]+)\s/)
@@ -146,11 +145,9 @@ module Raykit
146
145
  def tag
147
146
  Dir.chdir(@directory) do
148
147
  tag = `git describe --abbrev=0 --tags`.strip
149
- if(@version != tag)
150
- #run('git add --all')
148
+ specific_tag=`git tag -l #"{@version}`.strip
149
+ if(@version != tag && specific_tag !=@version)
151
150
  run("git tag #{@version} -m'#{@version}'")
152
- #run('git push')
153
- #run("git push --tags")
154
151
  push
155
152
  end
156
153
  end
@@ -4,8 +4,8 @@ module Raykit
4
4
  class Rake
5
5
  def self.run(remote,branch,task='default')
6
6
  repo=Raykit::Git::Repository.new(remote)
7
- rel_dir=repo.relative_path#Raykit::Git::get_relative_path(remote)
8
- commit=repo.latest_commit(branch)#Raykit::Git::get_latest_commit(remote,branch)
7
+ rel_dir=repo.relative_path
8
+ commit=repo.latest_commit(branch)
9
9
  log_filename="#{Environment::get_dev_dir('log')}/RayKit.Runner/#{rel_dir}/#{branch}/#{commit}.json"
10
10
  if(File.exist?(log_filename))
11
11
  return Command.parse(File.read(log_filename))
@@ -5,7 +5,6 @@ module Raykit
5
5
 
6
6
  # detect a version number based on the NAME variable, if defined
7
7
  def self.detect(name,verbose=false)
8
- #puts ' detecting version' if(verbose)
9
8
  version=detect_from_file("#{name}/#{name}.csproj",/<Version>([\d.]+)</,verbose)
10
9
  return version if(version.length>0)
11
10
 
@@ -34,7 +33,6 @@ module Raykit
34
33
  version = match.captures[0]
35
34
  end
36
35
  else
37
- #puts "#{filename} not found" if(verbose)
38
36
  return ''
39
37
  end
40
38
  if(verbose)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.90
4
+ version: 0.0.91
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  requirements: []
112
- rubygems_version: 3.0.6
112
+ rubygems_version: 3.0.3
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: ruby gem to support rake ci/cd tasks