raykit 0.0.388 → 0.0.391

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 +12 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b11546d1b5398f5248ef90d704add21b831f91ef7a79d38212086262aa3b9cc
4
- data.tar.gz: 453b28fa4e041b94d05abd069ffdc3f4fa254ed476f2249f60a3865c8b1dac01
3
+ metadata.gz: 077f9662e63a00e5e399492150da59555eae3ebc2a2279b3c3d72625af022349
4
+ data.tar.gz: e76a86eb5c62f2b7d4f3e20c118bb6af6656dbaeb809c6cf5e8517ceebae769a
5
5
  SHA512:
6
- metadata.gz: a823d9b9b52e8fe70789b847521cf5ec368e58f555edf4843798bff487d8d5e4455062f0a083a097612ceb3cc4e2bdf6803417b266b0f4c51ae14bd7af27de80
7
- data.tar.gz: 80beabddb4f3bba256d48db6f9f3358163a63ea36f3198f7e7f438e717865b8f4266587fa5f8ef67db02b31503d0eacdaba793fce5ae983d8273cbe4f521794b
6
+ metadata.gz: 3caab293bc609584f301931392ad3ff11f81eb0c3bd96588e461c3dfef790419efab1f6e6b8064fb5e3874bb678523e08e029b574eda7fd606d28f528234f40d
7
+ data.tar.gz: 2839eb3f1c04da6d1be14308cbb237763575478d8a982defa03fb0405e47ae0d4c24aa417e66731971455fed9732184fe84ed8caf649cd930ca868d6c7567e72
@@ -137,12 +137,20 @@ module Raykit
137
137
 
138
138
  def self.make(url, commit_id, command)
139
139
  repo = Raykit::Git::Repository.new(url)
140
- make_dir = roam.get_dev_dir("make") + "/" + commit_id
141
- FileUtils.mkdir_p(roam.get_dev_dir("make")) if !Dir.exists?(roam.get_dev_dir("make"))
142
- run("git clone #{url} #{make_dir}") if (!Dir.exists?(make_dir))
140
+ make_dir = repo.get_dev_dir("make") + "/" + commit_id
141
+ FileUtils.mkdir_p(repo.get_dev_dir("make")) if !Dir.exists?(repo.get_dev_dir("make"))
142
+ if (Dir.exists?(make_dir))
143
+ FileUtils.rm_rf(make_dir)
144
+ #Dir.chdir(make_dir) do
145
+ # run("git pull")
146
+ #end
147
+ end
148
+ run("git clone #{url} #{make_dir}")
143
149
  cmd = 0
144
150
  Dir.chdir(make_dir) do
145
- run("git checkout #{commit_id}")
151
+ run("git tag").details
152
+ run("git reset --hard #{commit_id}")
153
+ #run("git checkout #{commit_id}")
146
154
  cmd = run(command)
147
155
  end
148
156
  FileUtils.rm_rf(make_dir) if (cmd.exitstatus == 0)
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.388
4
+ version: 0.0.391
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