bin/nilac in nilac-0.0.4.2.2 vs bin/nilac in nilac-0.0.4.2.3
- old
+ new
@@ -3743,11 +3743,11 @@
return remaining_string[0...remaining_string.length-path_finder]
end
-nilac_version = "0.0.4.2.2"
+nilac_version = "0.0.4.2.3"
opts = Slop.parse do
on :c, :compile=, 'Compile Nila File', as:Array, delimiter:":"
on :h, :help, 'Help With Nilac' do
@@ -3798,28 +3798,12 @@
puts "Build Successful!"
end
- on :release, 'Build and Release Nilac for Rubygems' do
+ on :release=, 'Build and Release Nilac for Rubygems', as:Array
- file_path = Dir.pwd + "/src/nilac.rb"
-
- create_mac_executable(file_path)
-
- FileUtils.mv("#{file_path[0...-3]}", "#{Dir.pwd}/bin/nilac")
-
- `git commit -am "Updated Executable to #{nilac_version}"`
-
- output = `rake release`
-
- puts "Build Successful!"
-
- puts output
-
- end
-
on :u, :update, 'Check if Nilac is up to date.' do
outdated_gems = `gem outdated`
outdated_gems = outdated_gems.split("\n")
@@ -3959,7 +3943,25 @@
js_file_name = find_file_path(file_path, ".nila") + find_file_name(file_path, ".nila") + ".js"
node_output = `node #{js_file_name}`
puts node_output
+
+elsif opts[:release] != nil
+
+ file_path = Dir.pwd + "/src/nilac.rb"
+
+ create_mac_executable(file_path)
+
+ FileUtils.mv("#{file_path[0...-3]}", "#{Dir.pwd}/bin/nilac")
+
+ puts "Your build was successful. What is your commit message? \n"
+
+ commit_message = opts[:release][0]
+
+ `git commit -am "#{commit_message}"`
+
+ puts `rake release`
+
+ puts output
end