raykit 0.0.392 → 0.0.395

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: 2005f08905162cbd1cf4c9be5ba7da958da94dfafe7265b51262410e8d4d935f
4
- data.tar.gz: 63056698c7a5d84744fe82196746f67d3ca3ebadc81ee0ac4409376123b9ddcb
3
+ metadata.gz: 40a368dab37c64645d856837eaa1fda59225ee70ab63f8e323c9bbf63ea37b78
4
+ data.tar.gz: a4c1a2ed227e341b1a01984f3fa8e67369803017c7e59d60e84f9055c35428c0
5
5
  SHA512:
6
- metadata.gz: 905322a038d07d223790510ab2c6734953f73aad8109c69890b9caa00f774f4987659ff0555ead4d59775433e29fc30ccc5c8d80086fb956a874f94b22d5d1c8
7
- data.tar.gz: 74d37a0642256aa9ec086d3ec9f1ca9ca6c264c28e0af5cd087fa5ca087f751595de33779ec29cd5bd5c72e5e5d366c5c68c35ffeca505e7253714170927d3e3
6
+ metadata.gz: 2264639f4b51dc511bcae5cfcd515d8a269557b991444731f5071d541d5449ee5bac81706e5474335e6c97dcb55de24f358b01ad5144b6c831567a83fcca101c
7
+ data.tar.gz: 32294a2b00a3f9688ef74b9d5a9c66bfd5af6adab0bba1bb5d717bab0845b38f47b8824bdecc2345a1ad32578ea369fd0bf02bc40e2325dd7f4225ff5669bbb9
@@ -208,6 +208,7 @@ module Raykit
208
208
  if @exitstatus != 0
209
209
  details
210
210
  end
211
+ self
211
212
  end
212
213
 
213
214
  def details
@@ -222,6 +223,7 @@ module Raykit
222
223
  puts " " + line
223
224
  end
224
225
  end
226
+ self
225
227
  end
226
228
 
227
229
  def to_markdown
@@ -145,9 +145,9 @@ module Raykit
145
145
  run("git clone #{url} #{make_dir}")
146
146
  cmd = 0
147
147
  Dir.chdir(make_dir) do
148
- run("git tag").details
149
148
  run("git reset --hard #{commit_id}")
150
- cmd = run(command).details
149
+ FileUtils.rm_rf(".git")
150
+ cmd = run(command).details_on_failure
151
151
  end
152
152
  FileUtils.rm_rf(make_dir) if (cmd.exitstatus == 0)
153
153
  cmd
@@ -108,7 +108,7 @@ module Raykit
108
108
  end
109
109
 
110
110
  def read_only?
111
- return true if !File.exists?(".git")
111
+ return true if !File.exists?(".git") || detached?
112
112
  return false
113
113
  end
114
114
 
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.392
4
+ version: 0.0.395
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow