raykit 0.0.432 → 0.0.434

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f84669885a536244a302403c81a215bd05617d305a08846cf243801660a99fa
4
- data.tar.gz: 5d34b8de189e8b9c09f018a4f324f3982c8852c029d39516ad24d66ba2253b0b
3
+ metadata.gz: c7c083140b15be9950810bc67084252d6dfa84c21b892d21ee7841a9c6cc1491
4
+ data.tar.gz: 2366e79959a29d84f719aafae07cd89713625692ca68c91dafb09edcc126756d
5
5
  SHA512:
6
- metadata.gz: 9d60b509002305fe26bf0d9fd4b502483bef19415ad7dddc9ee6637f791a97bf3e52ab3e0f02e388eefa0fe4288f13d293edee0c5cde45844fae3015382d32fd
7
- data.tar.gz: 6dfc9830ecb45b46d540e21bb022a3468571a098e79d36773e56a024e30b88277bbd23aa06786276eefd633c22ca3246e59f69d339dda1a6ba3f62402b378d9b
6
+ metadata.gz: fdb72b8d41d4b000b5efb85e36f7f8105673f6256ecea184ab4f7884d9bc3f256a98c9cc9e298b98e4f21f035c5a3c1a586f76eabefc0595cab0e482ebbe056d
7
+ data.tar.gz: 701fb6cf9bbc1b1268492730745532781d0630be684d708b36796fa699e2948be1219a6d203aaebc43380b364773d293ed11fd9067bde2fc6d0c1379ffd520d7
@@ -145,15 +145,16 @@ module Raykit
145
145
  end
146
146
 
147
147
  def work(command)
148
- pull if (!Dir.exists?(get_dev_dir("work")))
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)
153
154
  work_cmd.save_as(filename)
154
155
  return work_cmd
155
156
  else
156
- if (File.exists?(filename))
157
+ if (File.exist?(filename))
157
158
  return Raykit::Command::parse(IO.read(filename))
158
159
  #work_cmd.summary(true).details_on_failure
159
160
  else
@@ -164,6 +165,21 @@ module Raykit
164
165
  end
165
166
  end
166
167
 
168
+ def make(command)
169
+ commit_id = "#{latest_commit(default_branch)}"
170
+ make_id = "make_#{relative_path.gsub("/", "-")}_#{commit_id}"
171
+ filename = "#{Raykit::Environment::log_dir}/{make_id}.json"
172
+ puts " filename #{filename}"
173
+ if (File.exist?(filename))
174
+ return Raykit::Command::parse(IO.read(filename))
175
+ #make_cmd.summary(true).details_on_failure
176
+ else
177
+ make_cmd = Raykit::Git::Repository::make_url(url, commit_id, "rake default")
178
+ make_cmd.save_as(filename)
179
+ return make_cmd
180
+ end
181
+ end
182
+
167
183
  def self.work_pull(url)
168
184
  repo = Raykit::Git::Repository.new(url)
169
185
  work_dir = repo.get_dev_dir("work")
@@ -196,11 +212,11 @@ module Raykit
196
212
  end
197
213
  end
198
214
 
199
- def self.make(url, commit_id, command)
215
+ def self.make_url(url, commit_id, command)
200
216
  repo = Raykit::Git::Repository.new(url)
201
217
  make_dir = repo.get_dev_dir("make") + "/" + commit_id
202
- FileUtils.mkdir_p(repo.get_dev_dir("make")) if !Dir.exists?(repo.get_dev_dir("make"))
203
- 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))
204
220
  FileUtils.rm_rf(make_dir)
205
221
  end
206
222
  run("git clone #{url} #{make_dir}")
@@ -209,7 +225,7 @@ module Raykit
209
225
  run("git reset --hard #{commit_id}")
210
226
  FileUtils.rm_rf(".git")
211
227
  cmd = Raykit::Command.new(command)
212
- cmd = cmd.run().summary().details_on_failure
228
+ cmd = cmd.run() #.summary().details_on_failure
213
229
  end
214
230
  FileUtils.rm_rf(make_dir) if (cmd.exitstatus == 0)
215
231
  cmd
@@ -13,7 +13,7 @@ module Raykit
13
13
  has_msbuild = false
14
14
  end
15
15
  if (!has_msbuild)
16
- if (Dir.exists?(msbuild_path))
16
+ if (Dir.exist?(msbuild_path))
17
17
  puts " added #{msbuild_path} to PATH for msbuild"
18
18
  ENV["PATH"] = ENV["PATH"] + ";#{msbuild_path}"
19
19
  end
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.432
4
+ version: 0.0.434
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow