raykit 0.0.274 → 0.0.279

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/raykit/tasks.rb +12 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d4d8edf70ff450040949de0b1e27a33d6936682e543d04b823bbea99346b308
4
- data.tar.gz: 0d5c47984f53d2d06e08e470968f81e9be502b4f6a184c13f414c9c4943925ef
3
+ metadata.gz: f1de942187e96a6c006355de9289c5a7fe24da6fe3be3d7d23ce24b46d61620c
4
+ data.tar.gz: f1971d4e5bd6af02ec15cb92bd20c6c0febf45501b4d12d5dcf6e0fc98196a59
5
5
  SHA512:
6
- metadata.gz: 48ad567c83ed363dabe3f98640b5fc64f5bf490be14c162a994dcafd8b6b9270bc0f585a6480d692b5da2ac204c45e8cd858db21a52c3bc302c9907bfe912a62
7
- data.tar.gz: d5846164903b7c70b193ac11368096a4fa440dc64cafbaaf2ab98656d61db8b43f98b1dd387a653822dd909766b346ec6adf77a876689f7e6ee93b57d6b28257
6
+ metadata.gz: f8c9eb52812daa489d3fc81dee98876aa8f66e1d9d57993fa3d4ecbc7d9973fa21ff105bb2cfcad94a8f0c2d5ee13f7eb47e61f3f5ff462ca525a149e795a0fb
7
+ data.tar.gz: 7af860cf994202d2cbf0c5e1cfb8b2ecbf52379fd91fa4250f7eafacdc8bccd56c703248d6dc27fc1ebfcba262a1069c3e8a9165b8745e3488a4a0a869ab7fed
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
@@ -23,7 +25,8 @@ task :integrate do
23
25
  puts "warning: .gitignore does not exist."
24
26
  else
25
27
  PROJECT.run('git add --all')
26
- if(PROJECT.outstanding_commit?)
28
+ if(!`git status`.include?('nothing to commit'))
29
+ #if(PROJECT.outstanding_commit?)
27
30
  commit_message='integrate'
28
31
  PROJECT.run("git commit -m\"#{commit_message}\"") if(PROJECT.outstanding_commit?)
29
32
  PROJECT.run("git pull")
@@ -36,8 +39,13 @@ end
36
39
 
37
40
  desc "push changes including tags"
38
41
  task :push do
39
- PROJECT.run("git push")
40
- PROJECT.run("git push --tags")
42
+ git_dir=Raykit::Git::Directory.new(Rake.application.original_dir)
43
+ if(git_dir.detached?)
44
+ puts "detached head state, skipping push operations"
45
+ else
46
+ PROJECT.run("git push")
47
+ PROJECT.run("git push --tags")
48
+ end
41
49
  end
42
50
 
43
51
  desc "clean files not tracked by git"
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.274
4
+ version: 0.0.279
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-31 00:00:00.000000000 Z
11
+ date: 2021-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler