homebrew/xcfit in xcfit-3.1.4 vs homebrew/xcfit in xcfit-3.1.5
- old
+ new
@@ -1,11 +1,11 @@
#!/usr/bin/env ruby
require 'fileutils'
require 'tempfile'
-VERSION = "3.1.4"
+VERSION = "3.1.5"
@root_dir = File.expand_path('~')
@root_lib_dir = File.join(@root_dir, 'Library')
@root_developer_dir = File.join(@root_lib_dir, 'Developer')
@root_xcode_dir = File.join(@root_developer_dir, 'Xcode')
@@ -30,11 +30,11 @@
def clean_xcfit
system("rm -rf /tmp/XCFit-#{VERSION}/")
end
-def setup_xcfit_templates
+def setup_xcode_templates
if File.exist?(@root_xcfit_dir)
puts "==================XXXXXXXX==========================="
puts 'There is already XCFit directory in Xcode Templates. Looks like you are trying Fitnesse Templates '
puts 'Templates are being installed at ~/Library/Developer/Xcode/Templates/XCFit directory'
puts "==================XXXXXXXX==========================="
@@ -69,11 +69,11 @@
puts <<EOF
Usage: xcfit <command-name>
<command-name> can be one of
- setup_xcfit_templates
+ setup_xcode_templates
generate a Xcode 8 Templates for the XCUI and Cucumberish
setup_fitnesse_templates
generate a Xcode 8 Templates for Fitnesse
version
prints the XCFit version
@@ -91,18 +91,18 @@
Usage: xcfit <command-name>
<command-name> can be one of
help
- setup_xcfit_templates
+ setup_xcode_templates
setup_fitnesse_templates
version
Commands:
help : prints more detailed help information.
- setup_xcfit_templates : Generate a Xcode Target and File Templates for the XCUI and Cucumberish
+ setup_xcode_templates : Generate a Xcode Target and File Templates for the XCUI and Cucumberish
setup_fitnesse_templates : Generate Xcode templates for the Fitnesse
version : prints the XCFit version
@@ -115,11 +115,11 @@
print_usage
else
cmd = ARGV.shift
if cmd == 'help'
print_help
- elsif cmd == 'setup_xcfit_templates'
- setup_xcfit_templates
+ elsif cmd == 'setup_xcode_templates'
+ setup_xcode_templates
elsif cmd == 'setup_fitnesse_templates'
setup_fitnesse_templates
elsif cmd == 'version'
puts "#{VERSION}"
else