raykit 0.0.432 → 0.0.433

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f84669885a536244a302403c81a215bd05617d305a08846cf243801660a99fa
4
- data.tar.gz: 5d34b8de189e8b9c09f018a4f324f3982c8852c029d39516ad24d66ba2253b0b
3
+ metadata.gz: 906835a35dd62c8e3769e29e0a34baab4f3f55a3bcc5804228da25956e5e6d4f
4
+ data.tar.gz: 4428b03b8b5b332d2852dccd38f964fddcf301daf3fc0d209e4335d370869399
5
5
  SHA512:
6
- metadata.gz: 9d60b509002305fe26bf0d9fd4b502483bef19415ad7dddc9ee6637f791a97bf3e52ab3e0f02e388eefa0fe4288f13d293edee0c5cde45844fae3015382d32fd
7
- data.tar.gz: 6dfc9830ecb45b46d540e21bb022a3468571a098e79d36773e56a024e30b88277bbd23aa06786276eefd633c22ca3246e59f69d339dda1a6ba3f62402b378d9b
6
+ metadata.gz: 364612f07e661ffd49d7a7385977f9ea76065345732f25f3aa185513df3a9ca875c466a8e32e423312fc5439ed875017e13e32b02e3349763c84443683daf9db
7
+ data.tar.gz: 90bfbe1a3f1d24d7217a11db95f765007622c499a419a4c98a967678a7403c5040b948e24a582b621eb61521f5ab5eed5f84a389719e6ad26b58ccd9d99f834d
@@ -145,7 +145,7 @@ 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
150
  if (Raykit::Git::Directory.new(get_dev_dir("work")).outstanding_commit?)
151
151
  puts " outstanding commit in #{get_dev_dir("work")}"
@@ -153,7 +153,7 @@ module Raykit
153
153
  work_cmd.save_as(filename)
154
154
  return work_cmd
155
155
  else
156
- if (File.exists?(filename))
156
+ if (File.exist?(filename))
157
157
  return Raykit::Command::parse(IO.read(filename))
158
158
  #work_cmd.summary(true).details_on_failure
159
159
  else
@@ -164,6 +164,20 @@ module Raykit
164
164
  end
165
165
  end
166
166
 
167
+ def make(command)
168
+ commit_id = "#{latest_commit(default_branch)}"
169
+ make_id = "make_#{relative_path.gsub("/", "-")}_#{commit_id}"
170
+ filename = "#{Raykit::Environment::log_dir}/{make_id}.json"
171
+ if (File.exists?(filename))
172
+ return Raykit::Command::parse(IO.read(filename))
173
+ #make_cmd.summary(true).details_on_failure
174
+ else
175
+ make_cmd = Raykit::Git::Repository::make_url(url, commit_id, "rake default")
176
+ make_cmd.save_as(filename)
177
+ return make_cmd
178
+ end
179
+ end
180
+
167
181
  def self.work_pull(url)
168
182
  repo = Raykit::Git::Repository.new(url)
169
183
  work_dir = repo.get_dev_dir("work")
@@ -196,7 +210,7 @@ module Raykit
196
210
  end
197
211
  end
198
212
 
199
- def self.make(url, commit_id, command)
213
+ def self.make_url(url, commit_id, command)
200
214
  repo = Raykit::Git::Repository.new(url)
201
215
  make_dir = repo.get_dev_dir("make") + "/" + commit_id
202
216
  FileUtils.mkdir_p(repo.get_dev_dir("make")) if !Dir.exists?(repo.get_dev_dir("make"))
@@ -209,7 +223,7 @@ module Raykit
209
223
  run("git reset --hard #{commit_id}")
210
224
  FileUtils.rm_rf(".git")
211
225
  cmd = Raykit::Command.new(command)
212
- cmd = cmd.run().summary().details_on_failure
226
+ cmd = cmd.run() #.summary().details_on_failure
213
227
  end
214
228
  FileUtils.rm_rf(make_dir) if (cmd.exitstatus == 0)
215
229
  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.433
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow