raykit 0.0.440 → 0.0.441
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 +4 -4
- data/lib/raykit/filesystem.rb +5 -0
- data/lib/raykit/git/repository.rb +8 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94b2cf08f83bf1471755f4243b3ff27fabed667151da409150ba95d089646619
|
4
|
+
data.tar.gz: 3ecc869f957d7dfd88c30bc7b3504875f254d735b300af1e66a4f57c68b8a709
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c460af89b0c02547f76439e1d531f9ce29cab17750b346d71989f23913244203e460415d91236c434c5b10d56f26ce99f7bc7cdcbaa0852ffec6528afdba3551
|
7
|
+
data.tar.gz: 1b9f0a3c4099667057e66854bebf7891e3f0203ec0a1065b5942fd559df1f7db99aa8232d10fd5d8fa352074bba64b5c940e90d3b8e026242488941c18190ca6
|
data/lib/raykit/filesystem.rb
CHANGED
@@ -144,10 +144,11 @@ module Raykit
|
|
144
144
|
update_local_clone_directory
|
145
145
|
end
|
146
146
|
|
147
|
-
def work(command)
|
147
|
+
def work(command, force = false)
|
148
148
|
pull if (!Dir.exist?(get_dev_dir("work")))
|
149
|
-
|
150
|
-
|
149
|
+
fcommand = Raykit::FileSystem::replace_invalid_chars(command)
|
150
|
+
filename = "#{Raykit::Environment::log_dir}/work_#{fcommand}_#{relative_path.gsub("/", "-")}.json"
|
151
|
+
if (Raykit::Git::Directory.new(get_dev_dir("work")).outstanding_commit? || force)
|
151
152
|
puts " outstanding commit in #{get_dev_dir("work")}"
|
152
153
|
work_cmd = Raykit::Git::Repository::work_url(url, command)
|
153
154
|
work_cmd.save_as(filename)
|
@@ -163,11 +164,12 @@ module Raykit
|
|
163
164
|
end
|
164
165
|
end
|
165
166
|
|
166
|
-
def make(command)
|
167
|
+
def make(command, force = false)
|
167
168
|
commit_id = "#{latest_commit(default_branch)}"
|
168
169
|
make_id = "make_#{relative_path.gsub("/", "-")}_#{commit_id}"
|
169
|
-
|
170
|
-
|
170
|
+
fcommand = Raykit::FileSystem::replace_invalid_chars(command)
|
171
|
+
filename = "#{Raykit::Environment::log_dir}/#{make_id}_#{fcommand}.json"
|
172
|
+
if (!force && File.exist?(filename))
|
171
173
|
return Raykit::Command::parse(IO.read(filename))
|
172
174
|
else
|
173
175
|
make_cmd = Raykit::Git::Repository::make_url(url, commit_id, "rake default")
|
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.
|
4
|
+
version: 0.0.441
|
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-11-
|
11
|
+
date: 2022-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|