raykit 0.0.241 → 0.0.242
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/tasks.rb +23 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 427b0661dea02af9315073da043cfbf9355abb23648792e533f923453092d1ac
|
4
|
+
data.tar.gz: 9377b48a095b010904448f7f93299189205b6a2ac59130740a79ca791c49432f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c4a2fb50d7db094fba4171fed0225eefa5f91a4fb7c6bb51dc13a418e932bd481bcda6680c50c425381826ff835b9b72d820aec5718fba9dd700d357633ba3a
|
7
|
+
data.tar.gz: e46314eac3c6403707db3417ccc4cc9c41d6fddf881aa35035f6224af1b66a1c74a06c3b1cefc023b6a127daa2d2e68c6be19750507b0eac0f69d85b0a41c9e4
|
data/lib/raykit/tasks.rb
CHANGED
@@ -6,6 +6,11 @@ end
|
|
6
6
|
|
7
7
|
desc "integrate changes into the git repository"
|
8
8
|
task :integrate do
|
9
|
+
if(File.exist?('sourceImports.json'))
|
10
|
+
if(Rake::Task.task_defined?("test"))
|
11
|
+
Rake::Task["test"].invoke
|
12
|
+
end
|
13
|
+
end
|
9
14
|
if(PROJECT.outstanding_commit?)
|
10
15
|
if(Rake::Task.task_defined?("test"))
|
11
16
|
Rake::Task["test"].invoke
|
@@ -31,4 +36,22 @@ desc "clean files not tracked by git"
|
|
31
36
|
task :clean do
|
32
37
|
puts Rainbow(':clean').blue.bright
|
33
38
|
PROJECT.run('git clean -dXf')
|
39
|
+
end
|
40
|
+
|
41
|
+
desc "update_source from sourceImports.json"
|
42
|
+
task :update_source do
|
43
|
+
if(File.exist?('sourceImports.json'))
|
44
|
+
puts Rainbow(':update_source').blue.bright
|
45
|
+
sourceImports = Raykit::SourceImports.load('sourceImports.json')
|
46
|
+
json=sourceImports.to_json
|
47
|
+
sourceImports.update
|
48
|
+
|
49
|
+
json2=sourceImports.to_json
|
50
|
+
if(json2 != json)
|
51
|
+
sourceImports.save('sourceImports.json')
|
52
|
+
sourceImports.copy
|
53
|
+
else
|
54
|
+
puts ' no update required.'
|
55
|
+
end
|
56
|
+
end
|
34
57
|
end
|