raykit 0.0.65 → 0.0.66

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/project.rb +12 -7
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11c2aa65634564143fdddf693450663f18db123866b16d36cc228348c8854fd3
4
- data.tar.gz: 49c469e9dfd7bfe7bcddebf843992d3992b63b462c64d61886194fb98bcb5267
3
+ metadata.gz: 29744d50075d3a56b35efc9cb5dec3f880e3bbe9fb9ab8489556ddae73a6d11c
4
+ data.tar.gz: 3cadc20863e1bd2135549af0cbdcdbbcef6aae76a9850843ba90363de0d709d0
5
5
  SHA512:
6
- metadata.gz: 89e2e6323f18ac9388b00c98ef3b1e7b75f05bc106f882839abb6acdc058da22db46dac3da9e4820c1536483148122729aa7c0a4d3c747d490a009828f6aab92
7
- data.tar.gz: 6c73dbf7d6fe5089663ce932b31fc2216587faa589221ab65ddeae09585a442b8d0c47139ad6cb0c7b015b3a8d09550a08bc2a480c8022730853c63cd9d66d15
6
+ metadata.gz: 66f0db86a5529756f9f96f7ec66910881c4cd73be13c9bcfdb7609cf54d27bd8e1b0f9dc88d511c3ed9b3fe429f400a1a8a65ab97f622b8fb257b21f2c518909
7
+ data.tar.gz: 2604308035f0d45fdf969532c662566bee0857360a3b66094d8644aa99f1eb02e0bd4e67682308ba50fc618cdcd50c0b83bf66fac4a29e0caaf4bad5570df7b6
@@ -46,11 +46,13 @@ module Raykit
46
46
  def commit
47
47
  Dir.chdir(@directory) do
48
48
  if(File.exist?('.gitignore'))
49
- run("git add --all")
50
- if(GIT_DIRECTORY.outstanding_commit?)
51
- run("git commit -m'update'")
52
- run("git push")
53
- end
49
+ status=`git status`
50
+ if(status.include?('Changes not staged for commit:'))
51
+ run("git add --all")
52
+ if(GIT_DIRECTORY.outstanding_commit?)
53
+ run("git commit -m'update'")
54
+ end
55
+ end
54
56
  else
55
57
  puts "warning: .gitignore not found."
56
58
  end
@@ -60,8 +62,11 @@ module Raykit
60
62
 
61
63
  def push
62
64
  Dir.chdir(@directory) do
63
- run('git push')
64
- run('git push --tags')
65
+ status=`git status`
66
+ if(status.include?('use "git push"'))
67
+ run('git push')
68
+ run('git push --tags')
69
+ end
65
70
  end
66
71
  self
67
72
  end
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.65
4
+ version: 0.0.66
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow