raykit 0.0.271 → 0.0.276

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: 4f57d52cdb2ccceb597b61d2dc512acc75b57dad910049c8b1a3b72dac275063
4
- data.tar.gz: 8b30dfebe9f3dce735b2a5b769257ee5816543f154b64b2d5ec8a8b3ea9e9b8e
3
+ metadata.gz: fc3ee06a28faa9c13bdc3fbdadda1d3149052be97e809f56b1e6db5ab1ff3c33
4
+ data.tar.gz: 0521f8b226e2e5e7067b8a95bb3ddcd5b6865cc272510f0459ab90ca0da075f9
5
5
  SHA512:
6
- metadata.gz: 6a07b5dde44d345bd662e22fbe8397e7ca3d9f7ffad8a58f3a8d755e13701531efb79b2a7518e54eb31328a7279d638996090499180666df948a4f659c9c6489
7
- data.tar.gz: d34e9e7d2990a343cdc2a6dfbdfb1ccd4130be33e3d28e7c30adbb9a630628927d77ebaf8ae76c13112320b12cd3414b61372f979ed233799c3cfc157aab6600
6
+ metadata.gz: a531f3c4abd3d86fd24961a1e363fc97807d133b0ac92ccc2b004a37a667f5e30676b69d78b4b78955446cd303797334706d5b95176316b25e9f72e916198881
7
+ data.tar.gz: dedb9a283a5a63b3cab33ecd0032fae337ad859fc242803965e51ce3e409a62a0a844bcf826ab394c17619821293c77574c79c86cf625444fc9592ae593cebf2
data/lib/raykit/tasks.rb CHANGED
@@ -9,7 +9,9 @@ task :integrate do
9
9
  puts Rainbow(':integrate').blue.bright
10
10
 
11
11
  git_dir=Raykit::Git::Directory.new(Rake.application.original_dir)
12
- if(!git_dir.detached?)
12
+ if(git_dir.detached?)
13
+ puts "detached head state, skipping integrate operations"
14
+ else
13
15
  if(PROJECT.outstanding_commit?)
14
16
  if(Rake::Task.task_defined?("test"))
15
17
  Rake::Task["test"].invoke
@@ -27,13 +29,23 @@ task :integrate do
27
29
  commit_message='integrate'
28
30
  PROJECT.run("git commit -m\"#{commit_message}\"") if(PROJECT.outstanding_commit?)
29
31
  PROJECT.run("git pull")
30
- PROJECT.run("git push")
31
- PROJECT.run("git push --tags")
32
+ #PROJECT.run("git push")
33
+ #PROJECT.run("git push --tags")
32
34
  end
33
35
  end
34
36
  end
35
37
  end
36
38
 
39
+ desc "push changes including tags"
40
+ task :push do
41
+ if(git_dir.detached?)
42
+ puts "detached head state, skipping integrate operations"
43
+ else
44
+ PROJECT.run("git push")
45
+ PROJECT.run("git push --tags")
46
+ end
47
+ end
48
+
37
49
  desc "clean files not tracked by git"
38
50
  task :clean do
39
51
  puts Rainbow(':clean').blue.bright
@@ -7,7 +7,7 @@ module Raykit
7
7
 
8
8
  # detect a version number based on the NAME variable, if defined
9
9
  def self.detect(name,verbose=false)
10
- version=detect_from_file("#{name}/#{name}.csproj",/<Version>([-\w\d.]+)</,verbose)
10
+ version=detect_from_file("#{name}/#{name}.csproj",/<Version>([-\w\d\.]+)</,verbose)
11
11
  return version if(version.length>0)
12
12
 
13
13
  version=detect_from_file("#{name}/Properties/AssemblyInfo.cs",/^\[assembly: AssemblyVersion\(\"([.\w]+)/,verbose)
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.271
4
+ version: 0.0.276
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-25 00:00:00.000000000 Z
11
+ date: 2021-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  - !ruby/object:Gem::Version
123
123
  version: '0'
124
124
  requirements: []
125
- rubygems_version: 3.1.4
125
+ rubygems_version: 3.2.3
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: ruby gem to support rake ci/cd tasks