raykit 0.0.389 → 0.0.390

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 -1
  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: bb12af1057aa3299989b7abf7f72ec212d29ceb8b05bd4df3ec3b22d79186785
4
+ data.tar.gz: 8a9fe0bea74febde15c5805f9e6ccedd4cbbcb10dccbafc3e12c7fe6c4ce7280
5
5
  SHA512:
6
- metadata.gz: 4b9f4d01d7a20cc9307e7374bdb2fb0cad4efe51e448958e652c7f56fbd31efe735fa1d33e491625559ec4fa4417de7de4e52f75ea77505316ddc1745a447958
7
- data.tar.gz: d0b05e5451a9dbb34b55678f4f01aad1753a91ab33318b3b5eeb836503cc99c15f4974b1321517201c3d446cebedb7f29d6f2aa7d310ef8e96e371d082b6a0d9
6
+ metadata.gz: 2a0179beb632abaf48dcf2e322d6269f64f2237c4c92a52a77bc697114c6ec097d583e24f6f02e7d6a7c83f834ff34f351ff736302ef5d336e508298a00a8db2
7
+ data.tar.gz: 5d9942a5e7bfefee3d751ac6423ef42090e7339b9db4bab6f6060c2db25126096719ec687565bf9b940c1983861364e72fb3b630c890dadb2ca04319bf118b54
@@ -139,7 +139,13 @@ 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
+ Dir.chdir(make_dir) do
144
+ run("git pull")
145
+ end
146
+ else
147
+ run("git clone #{url} #{make_dir}")
148
+ end
143
149
  cmd = 0
144
150
  Dir.chdir(make_dir) do
145
151
  run("git checkout #{commit_id}")
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.390
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-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler