raykit 0.0.389 → 0.0.392

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/raykit/git/repository.rb +7 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 495874b4f65044b7da3ef46229a5329a2969814fd0ddb991ae949740b3ced40c
4
- data.tar.gz: 4e7c5caf03157ae055c9c3778ef7e4e46484f84b5f9b11ccd05b64319daa42ab
3
+ metadata.gz: 2005f08905162cbd1cf4c9be5ba7da958da94dfafe7265b51262410e8d4d935f
4
+ data.tar.gz: 63056698c7a5d84744fe82196746f67d3ca3ebadc81ee0ac4409376123b9ddcb
5
5
  SHA512:
6
- metadata.gz: 4b9f4d01d7a20cc9307e7374bdb2fb0cad4efe51e448958e652c7f56fbd31efe735fa1d33e491625559ec4fa4417de7de4e52f75ea77505316ddc1745a447958
7
- data.tar.gz: d0b05e5451a9dbb34b55678f4f01aad1753a91ab33318b3b5eeb836503cc99c15f4974b1321517201c3d446cebedb7f29d6f2aa7d310ef8e96e371d082b6a0d9
6
+ metadata.gz: 905322a038d07d223790510ab2c6734953f73aad8109c69890b9caa00f774f4987659ff0555ead4d59775433e29fc30ccc5c8d80086fb956a874f94b22d5d1c8
7
+ data.tar.gz: 74d37a0642256aa9ec086d3ec9f1ca9ca6c264c28e0af5cd087fa5ca087f751595de33779ec29cd5bd5c72e5e5d366c5c68c35ffeca505e7253714170927d3e3
@@ -139,11 +139,15 @@ module Raykit
139
139
  repo = Raykit::Git::Repository.new(url)
140
140
  make_dir = repo.get_dev_dir("make") + "/" + commit_id
141
141
  FileUtils.mkdir_p(repo.get_dev_dir("make")) if !Dir.exists?(repo.get_dev_dir("make"))
142
- run("git clone #{url} #{make_dir}") if (!Dir.exists?(make_dir))
142
+ if (Dir.exists?(make_dir))
143
+ FileUtils.rm_rf(make_dir)
144
+ end
145
+ run("git clone #{url} #{make_dir}")
143
146
  cmd = 0
144
147
  Dir.chdir(make_dir) do
145
- run("git checkout #{commit_id}")
146
- cmd = run(command)
148
+ run("git tag").details
149
+ run("git reset --hard #{commit_id}")
150
+ cmd = run(command).details
147
151
  end
148
152
  FileUtils.rm_rf(make_dir) if (cmd.exitstatus == 0)
149
153
  cmd
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.389
4
+ version: 0.0.392
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-01 00:00:00.000000000 Z
11
+ date: 2022-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler