raykit 0.0.433 → 0.0.434

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 +5 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 906835a35dd62c8e3769e29e0a34baab4f3f55a3bcc5804228da25956e5e6d4f
4
- data.tar.gz: 4428b03b8b5b332d2852dccd38f964fddcf301daf3fc0d209e4335d370869399
3
+ metadata.gz: c7c083140b15be9950810bc67084252d6dfa84c21b892d21ee7841a9c6cc1491
4
+ data.tar.gz: 2366e79959a29d84f719aafae07cd89713625692ca68c91dafb09edcc126756d
5
5
  SHA512:
6
- metadata.gz: 364612f07e661ffd49d7a7385977f9ea76065345732f25f3aa185513df3a9ca875c466a8e32e423312fc5439ed875017e13e32b02e3349763c84443683daf9db
7
- data.tar.gz: 90bfbe1a3f1d24d7217a11db95f765007622c499a419a4c98a967678a7403c5040b948e24a582b621eb61521f5ab5eed5f84a389719e6ad26b58ccd9d99f834d
6
+ metadata.gz: fdb72b8d41d4b000b5efb85e36f7f8105673f6256ecea184ab4f7884d9bc3f256a98c9cc9e298b98e4f21f035c5a3c1a586f76eabefc0595cab0e482ebbe056d
7
+ data.tar.gz: 701fb6cf9bbc1b1268492730745532781d0630be684d708b36796fa699e2948be1219a6d203aaebc43380b364773d293ed11fd9067bde2fc6d0c1379ffd520d7
@@ -147,6 +147,7 @@ module Raykit
147
147
  def work(command)
148
148
  pull if (!Dir.exist?(get_dev_dir("work")))
149
149
  filename = "#{Raykit::Environment::log_dir}/work_#{relative_path.gsub("/", "-")}.json"
150
+ puts " filename #{filename}"
150
151
  if (Raykit::Git::Directory.new(get_dev_dir("work")).outstanding_commit?)
151
152
  puts " outstanding commit in #{get_dev_dir("work")}"
152
153
  work_cmd = Raykit::Git::Repository::work(url, command)
@@ -168,7 +169,8 @@ module Raykit
168
169
  commit_id = "#{latest_commit(default_branch)}"
169
170
  make_id = "make_#{relative_path.gsub("/", "-")}_#{commit_id}"
170
171
  filename = "#{Raykit::Environment::log_dir}/{make_id}.json"
171
- if (File.exists?(filename))
172
+ puts " filename #{filename}"
173
+ if (File.exist?(filename))
172
174
  return Raykit::Command::parse(IO.read(filename))
173
175
  #make_cmd.summary(true).details_on_failure
174
176
  else
@@ -213,8 +215,8 @@ module Raykit
213
215
  def self.make_url(url, commit_id, command)
214
216
  repo = Raykit::Git::Repository.new(url)
215
217
  make_dir = repo.get_dev_dir("make") + "/" + commit_id
216
- FileUtils.mkdir_p(repo.get_dev_dir("make")) if !Dir.exists?(repo.get_dev_dir("make"))
217
- if (Dir.exists?(make_dir))
218
+ FileUtils.mkdir_p(repo.get_dev_dir("make")) if !Dir.exist?(repo.get_dev_dir("make"))
219
+ if (Dir.exist?(make_dir))
218
220
  FileUtils.rm_rf(make_dir)
219
221
  end
220
222
  run("git clone #{url} #{make_dir}")
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.433
4
+ version: 0.0.434
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow