raykit 0.0.140 → 0.0.141
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/project.rb +9 -3
- 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: f879efad540c9cd08f15d74772a563e1c7d66d1ecd21162480eb9f341fbdd7ee
|
4
|
+
data.tar.gz: 92ae4623098b0002d7aaabfb870c16a87379c7f5fde8c5a8885ff18111f7a118
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8e867a86613bb6ec5144448b43e86e6a0cd4e5c87f3c514f6d9f4de372afe7e6b6c2c3a453d48070cffb21d422899bac972a96c5ff755bd70190fb50e1b5814
|
7
|
+
data.tar.gz: e0546acdf9a16fece53d5909fefa080775915ee83c4fefe0fdb2a6bf246c536f712ad8b59e52024f934f6ff87ec978a4890708c8f5f488b4da131434bf61e655
|
data/lib/raykit/project.rb
CHANGED
@@ -12,11 +12,13 @@ module Raykit
|
|
12
12
|
@repository
|
13
13
|
@git_directory
|
14
14
|
@log
|
15
|
+
@commit_message_filename
|
15
16
|
|
16
17
|
def initialize()
|
17
18
|
@verbose=false
|
18
19
|
@timer=Raykit::Timer.new
|
19
20
|
@remote=''
|
21
|
+
@commit_message_filename="commit_message.tmp"
|
20
22
|
if(Dir.exist?(RAKE_DIRECTORY))
|
21
23
|
@directory=RAKE_DIRECTORY
|
22
24
|
if(Dir.exist?("#{RAKE_DIRECTORY}/.git") && Dir.exist?(@directory))
|
@@ -163,6 +165,10 @@ module Raykit
|
|
163
165
|
puts "[" + elapsed + "] " + Rainbow(@name).yellow.bright + " " + Rainbow(version).yellow.bright
|
164
166
|
end
|
165
167
|
|
168
|
+
def commit_message_filename
|
169
|
+
@commit_message_filename
|
170
|
+
end
|
171
|
+
|
166
172
|
def commit
|
167
173
|
Dir.chdir(@directory) do
|
168
174
|
if(File.exist?('.gitignore'))
|
@@ -170,9 +176,9 @@ module Raykit
|
|
170
176
|
if(status.include?('Changes not staged for commit:'))
|
171
177
|
run("git add --all")
|
172
178
|
if(GIT_DIRECTORY.outstanding_commit?)
|
173
|
-
if(File.exist?(
|
174
|
-
run("git commit --file
|
175
|
-
File.delete(
|
179
|
+
if(File.exist?(@commit_message_filename))
|
180
|
+
run("git commit --file #{@commit_message_filename}")
|
181
|
+
File.delete(@commit_message_filename)
|
176
182
|
else
|
177
183
|
run("git commit -m'update'")
|
178
184
|
end
|