jumpstart 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- data/config/jumpstart_version.yml +1 -1
- data/lib/jumpstart/base.rb +6 -6
- data/test/jumpstart/test_base.rb +5 -5
- metadata +2 -2
data/lib/jumpstart/base.rb
CHANGED
@@ -170,7 +170,7 @@ module JumpStart
|
|
170
170
|
puts " 2".yellow + " Create a new template.\n"
|
171
171
|
puts " 3".yellow + " Set the default template.\n"
|
172
172
|
puts " 4".yellow + " Set the templates directory.\n\n"
|
173
|
-
puts " x".yellow + " Exit jumpstart
|
173
|
+
puts " x".yellow + " Exit jumpstart.\n\n"
|
174
174
|
puts "******************************************************************************************************************************************\n\n"
|
175
175
|
jumpstart_menu_options
|
176
176
|
end
|
@@ -212,7 +212,7 @@ module JumpStart
|
|
212
212
|
puts " Type a number for the template that you want.\n\n"
|
213
213
|
display_existing_templates
|
214
214
|
puts "\n b".yellow + " Back to main menu."
|
215
|
-
puts "\n x".yellow + " Exit jumpstart
|
215
|
+
puts "\n x".yellow + " Exit jumpstart.\n\n"
|
216
216
|
puts "******************************************************************************************************************************************\n\n"
|
217
217
|
new_project_from_template_options
|
218
218
|
end
|
@@ -245,7 +245,7 @@ module JumpStart
|
|
245
245
|
puts " Existing templates:\n"
|
246
246
|
display_existing_templates
|
247
247
|
puts "\n b".yellow + " Back to main menu."
|
248
|
-
puts "\n x".yellow + " Exit jumpstart
|
248
|
+
puts "\n x".yellow + " Exit jumpstart.\n"
|
249
249
|
new_template_options
|
250
250
|
end
|
251
251
|
|
@@ -320,7 +320,7 @@ module JumpStart
|
|
320
320
|
puts " SELECT A DEFAULT JUMPSTART TEMPLATE\n".purple
|
321
321
|
display_existing_templates
|
322
322
|
puts "\n b".yellow + " Back to main menu.\n\n"
|
323
|
-
puts " x".yellow + " Exit jumpstart
|
323
|
+
puts " x".yellow + " Exit jumpstart.\n\n"
|
324
324
|
puts "******************************************************************************************************************************************\n\n"
|
325
325
|
set_default_template_options
|
326
326
|
end
|
@@ -350,9 +350,9 @@ module JumpStart
|
|
350
350
|
puts " JUMPSTART TEMPLATES DIRECTORY OPTIONS\n".purple
|
351
351
|
puts " The JumpStart template directory is currently: " + JumpStart.templates_path.green
|
352
352
|
puts "\n 1".yellow + " Change the templates directory.\n"
|
353
|
-
puts " 2".yellow + " Reset the templates directory to default
|
353
|
+
puts " 2".yellow + " Reset the templates directory to default.\n\n"
|
354
354
|
puts " b".yellow + " Back to main menu.\n\n"
|
355
|
-
puts " x".yellow + " Exit jumpstart
|
355
|
+
puts " x".yellow + " Exit jumpstart.\n\n"
|
356
356
|
puts "******************************************************************************************************************************************\n\n"
|
357
357
|
templates_dir_options
|
358
358
|
end
|
data/test/jumpstart/test_base.rb
CHANGED
@@ -380,7 +380,7 @@ class TestJumpstartBase < Test::Unit::TestCase
|
|
380
380
|
@test_project.stubs(:jumpstart_menu_options)
|
381
381
|
@test_project.expects(:jumpstart_menu_options).once
|
382
382
|
@test_project.instance_eval {jumpstart_menu}
|
383
|
-
assert_equal "\n\n******************************************************************************************************************************************\n\n\e[1m\e[35m JUMPSTART MENU\n\e[0m\n Here are your options:\n\n\e[1m\e[33m 1\e[0m Create a new project from an existing template.\n\e[1m\e[33m 2\e[0m Create a new template.\n\e[1m\e[33m 3\e[0m Set the default template.\n\e[1m\e[33m 4\e[0m Set the templates directory.\n\n\e[1m\e[33m x\e[0m Exit jumpstart
|
383
|
+
assert_equal "\n\n******************************************************************************************************************************************\n\n\e[1m\e[35m JUMPSTART MENU\n\e[0m\n Here are your options:\n\n\e[1m\e[33m 1\e[0m Create a new project from an existing template.\n\e[1m\e[33m 2\e[0m Create a new template.\n\e[1m\e[33m 3\e[0m Set the default template.\n\e[1m\e[33m 4\e[0m Set the templates directory.\n\n\e[1m\e[33m x\e[0m Exit jumpstart.\n\n******************************************************************************************************************************************\n\n", @test_project.output.string
|
384
384
|
end
|
385
385
|
|
386
386
|
end
|
@@ -444,7 +444,7 @@ class TestJumpstartBase < Test::Unit::TestCase
|
|
444
444
|
@test_project.stubs(:new_project_from_template_options)
|
445
445
|
@test_project.expects(:new_project_from_template_options).once
|
446
446
|
@test_project.instance_eval {new_project_from_template_menu}
|
447
|
-
assert_equal "\n\n******************************************************************************************************************************************\n\n\e[1m\e[35m CREATE A NEW JUMPSTART PROJECT FROM AN EXISTING TEMPLATE\n\n\e[0m\n Type a number for the template that you want.\n\n \e[1m\e[33m1\e[0m \e[32mtest_template_1\e[0m\n \e[1m\e[33m2\e[0m \e[32mtest_template_2\e[0m\n \e[1m\e[33m3\e[0m \e[32mtest_template_3\e[0m\n\e[1m\e[33m\n b\e[0m Back to main menu.\n\e[1m\e[33m\n x\e[0m Exit jumpstart
|
447
|
+
assert_equal "\n\n******************************************************************************************************************************************\n\n\e[1m\e[35m CREATE A NEW JUMPSTART PROJECT FROM AN EXISTING TEMPLATE\n\n\e[0m\n Type a number for the template that you want.\n\n \e[1m\e[33m1\e[0m \e[32mtest_template_1\e[0m\n \e[1m\e[33m2\e[0m \e[32mtest_template_2\e[0m\n \e[1m\e[33m3\e[0m \e[32mtest_template_3\e[0m\n\e[1m\e[33m\n b\e[0m Back to main menu.\n\e[1m\e[33m\n x\e[0m Exit jumpstart.\n\n******************************************************************************************************************************************\n\n", @test_project.output.string
|
448
448
|
end
|
449
449
|
|
450
450
|
end
|
@@ -493,7 +493,7 @@ class TestJumpstartBase < Test::Unit::TestCase
|
|
493
493
|
@test_project.expects(:display_existing_templates).once
|
494
494
|
@test_project.expects(:new_template_options).once
|
495
495
|
@test_project.instance_eval {new_template_menu}
|
496
|
-
assert_equal "\n\n******************************************************************************************************************************************\n\n\e[1m\e[35m CREATE A NEW JUMPSTART TEMPLATE\n\e[0m\n Existing templates:\n\e[1m\e[33m\n b\e[0m Back to main menu.\n\e[1m\e[33m\n x\e[0m Exit jumpstart
|
496
|
+
assert_equal "\n\n******************************************************************************************************************************************\n\n\e[1m\e[35m CREATE A NEW JUMPSTART TEMPLATE\n\e[0m\n Existing templates:\n\e[1m\e[33m\n b\e[0m Back to main menu.\n\e[1m\e[33m\n x\e[0m Exit jumpstart.\n", @test_project.output.string
|
497
497
|
end
|
498
498
|
|
499
499
|
end
|
@@ -604,7 +604,7 @@ class TestJumpstartBase < Test::Unit::TestCase
|
|
604
604
|
@test_project.stubs(:set_default_template_options)
|
605
605
|
@test_project.expects(:set_default_template_options).once
|
606
606
|
@test_project.instance_eval {set_default_template_menu}
|
607
|
-
assert_equal "\n\n******************************************************************************************************************************************\n\n\e[1m\e[35m SELECT A DEFAULT JUMPSTART TEMPLATE\n\e[0m\n \e[1m\e[33m1\e[0m \e[32mtest_template_1\e[0m\n \e[1m\e[33m2\e[0m \e[32mtest_template_2\e[0m\n \e[1m\e[33m3\e[0m \e[32mtest_template_3\e[0m\n\e[1m\e[33m\n b\e[0m Back to main menu.\n\n\e[1m\e[33m x\e[0m Exit jumpstart
|
607
|
+
assert_equal "\n\n******************************************************************************************************************************************\n\n\e[1m\e[35m SELECT A DEFAULT JUMPSTART TEMPLATE\n\e[0m\n \e[1m\e[33m1\e[0m \e[32mtest_template_1\e[0m\n \e[1m\e[33m2\e[0m \e[32mtest_template_2\e[0m\n \e[1m\e[33m3\e[0m \e[32mtest_template_3\e[0m\n\e[1m\e[33m\n b\e[0m Back to main menu.\n\n\e[1m\e[33m x\e[0m Exit jumpstart.\n\n******************************************************************************************************************************************\n\n", @test_project.output.string
|
608
608
|
end
|
609
609
|
|
610
610
|
end
|
@@ -654,7 +654,7 @@ class TestJumpstartBase < Test::Unit::TestCase
|
|
654
654
|
@test_project.stubs(:templates_dir_options)
|
655
655
|
@test_project.expects(:templates_dir_options).once
|
656
656
|
@test_project.instance_eval {templates_dir_menu}
|
657
|
-
assert_equal "\n\n******************************************************************************************************************************************\n\n\e[1m\e[35m JUMPSTART TEMPLATES DIRECTORY OPTIONS\n\e[0m\n The JumpStart template directory is currently: \e[32m/Users/i0n/Sites/jumpstart/test/test_jumpstart_templates\e[0m\n\e[1m\e[33m\n 1\e[0m Change the templates directory.\n\e[1m\e[33m 2\e[0m Reset the templates directory to default
|
657
|
+
assert_equal "\n\n******************************************************************************************************************************************\n\n\e[1m\e[35m JUMPSTART TEMPLATES DIRECTORY OPTIONS\n\e[0m\n The JumpStart template directory is currently: \e[32m/Users/i0n/Sites/jumpstart/test/test_jumpstart_templates\e[0m\n\e[1m\e[33m\n 1\e[0m Change the templates directory.\n\e[1m\e[33m 2\e[0m Reset the templates directory to default.\n\n\e[1m\e[33m b\e[0m Back to main menu.\n\n\e[1m\e[33m x\e[0m Exit jumpstart.\n\n******************************************************************************************************************************************\n\n", @test_project.output.string
|
658
658
|
end
|
659
659
|
|
660
660
|
end
|