raykit 0.0.422 → 0.0.423

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/git/repository.rb +5 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96495e0d91ace9341ffcbd1410788b70bd861c7c52750a958e570b31b276ae8a
4
- data.tar.gz: 2376342bd59bf4bf7e1b91b6fce20ae460109028fd94636221e61cddac51423e
3
+ metadata.gz: 394d7bbbf2a0d9f4f042835f8c645e2a0b7781b4392311352949f509cc9926dd
4
+ data.tar.gz: d948856e3b9b7823485cb516d5b8e9d523552ff426e0e7ecef153846221ceb23
5
5
  SHA512:
6
- metadata.gz: 54a7e874bc3009ba77a49958e3ad34ff307875eb001026e8438e4e08ee97231bb54c37dc9006106f6fc0f9ae97b5a2dfbeb070b60af5f3011dcce93f04b25a7e
7
- data.tar.gz: 7c0197a056125d3fad9b576498551f0d1a03217fb1f1ddeac565fb4b57d53e4415bb5d04cfa77289e7faab55a2ce3808142347a190546881bd4641bdf709e461
6
+ metadata.gz: 8327e27f45dd93fc44b421a0a3704a23874847cbc0db3138ac522ef0f21c3546d3b9941d602b19d2d97449f00e2f152c8af1c05a57d635732c718e5b5a2b5cae
7
+ data.tar.gz: 74c6f02b5f8ab3999636c7ae6217cf9adf87038dae279812de2faeb0a6a3bcf423ea7dc0ec2f84065151546a1eaba43e70727c17f1159f042397c7d4a4909c84
@@ -77,9 +77,11 @@ module Raykit
77
77
  # The latest commit id for a branch of the repostiory
78
78
  def latest_commit(branch)
79
79
  if checkout_local_clone_directory_branch(branch)
80
- text = `git log -n 1`
81
- scan = text.scan(/commit (\w+)\s/)
82
- return scan[0][0].to_s
80
+ Dir.chdir(local_clone_directory) do
81
+ text = `git log -n 1`
82
+ scan = text.scan(/commit (\w+)\s/)
83
+ return scan[0][0].to_s
84
+ end
83
85
  end
84
86
  ""
85
87
  end
@@ -162,7 +164,6 @@ module Raykit
162
164
  FileUtils.rm_rf(".git")
163
165
  cmd = Raykit::Command.new(command)
164
166
  cmd = cmd.run().summary().details_on_failure
165
- #cmd = run(command).details_on_failure
166
167
  end
167
168
  FileUtils.rm_rf(make_dir) if (cmd.exitstatus == 0)
168
169
  cmd
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.422
4
+ version: 0.0.423
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow