Commit graph

787 commits

Author SHA1 Message Date
Mark Story
980a85cec4 Updating testsuite shell to use new CodeCoverage methods. 2010-01-10 15:55:09 -05:00
Mark Story
f4bda62ea3 Adding doc blocks and correcting constructor of CakeCliReporter
Fixing TestSuite console code coverage output.
2010-01-09 23:00:03 -05:00
Mark Story
081509a09c Fixing typos.
Removing useless constant.
Fixing constructor
2010-01-09 21:30:46 -05:00
Mark Story
696af91aa0 Refactoring testsuite shell features, and adding i18n text. 2010-01-09 21:25:05 -05:00
Mark Story
80670d85fb Updating TestSuite shell to use refactored classes and methods in the TestSuite. 2010-01-09 20:20:51 -05:00
Mark Story
1e0215b7c1 Correcting whitespace. 2010-01-09 19:44:50 -05:00
Mark Story
a9a8c0b0e4 Adding access tags and additional param/return docs. 2009-12-29 22:50:43 -05:00
Mark Story
fdd8cf0138 Making FixtureTask always refresh schema for models. 2009-12-29 22:39:49 -05:00
Mark Story
31fff5e390 Making ViewTask always refresh model schema so baked views reflect current schema. 2009-12-29 22:23:52 -05:00
Mark Story
ec88bd9c8c Forcing ModelTask to always reload schema for models when baking. Also setting the dbo's cacheSources = false so table listings are always fresh as well. 2009-12-29 22:23:03 -05:00
Mark Story
780e85a031 Refactoring ModelTask::_confirmAssociations() so it doesn't fail with $i counter. 2009-12-15 23:14:03 -05:00
Mark Story
76780ab99c Updating uses of Routing.admin to be Routing.prefixes, as Routing.admin is deprecated. 2009-12-08 23:52:02 -05:00
predominant
8b9ee22c84 Removing "Long description for file" from /cake/console tree. 2009-12-08 20:18:19 +11:00
mark_story
dd4fbbab45 Updating PluginTask to create webroot dir and no longer create vendors/css, vendors/js and vendors/img 2009-11-25 22:50:50 -05:00
mark_story
d758dbc343 Updating cake.generic.css to let .altrow class to apply to dd and dt elements. Fixes #361 2009-11-24 19:57:20 -05:00
mark_story
8cdee90b4f Merge branch '1.3-misc' into 1.3-merger
Conflicts:
	cake/libs/view/helpers/html.php
2009-11-22 21:28:14 -05:00
mark_story
4d37e75f18 Merge branch '1.2' into 1.3-merger
Conflicts:
	cake/console/libs/tasks/controller.php
	cake/console/libs/tasks/extract.php
	cake/console/libs/tasks/model.php
	cake/libs/configure.php
	cake/libs/controller/components/cookie.php
	cake/libs/debugger.php
	cake/libs/flay.php
	cake/libs/http_socket.php
	cake/libs/inflector.php
	cake/libs/model/cake_schema.php
	cake/libs/model/connection_manager.php
	cake/libs/model/datasources/dbo/dbo_mysql.php
	cake/libs/model/datasources/dbo_source.php
	cake/libs/router.php
	cake/libs/view/helper.php
	cake/libs/view/helpers/form.php
	cake/libs/view/helpers/html.php
	cake/libs/view/helpers/js.php
2009-11-22 20:38:50 -05:00
ceeram
cd6fd74caf Added -empty flag for ProjectTask to bake with empty dir files, tests included
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-22 18:18:14 -05:00
Juan Basso
1c0c1bc9c7 Replace function split by explode when possible.
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-21 13:45:04 -05:00
Juan Basso
df9e1e0bd1 Replace function join (alias) by implode.
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-21 13:43:11 -05:00
Juan Basso
1acc60b04c Replace function die (alias) by exit.
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-21 13:38:11 -05:00
mark_story
89558dc4af Fixing issues with models using default inflected tables instead of their actual tables when detecting associations. Fixes #315 2009-11-16 09:24:52 -05:00
mark_story
ddb9f8924c Updating i18n shell to use updated schema shell api. 2009-11-16 09:12:41 -05:00
mark_story
acd2c15690 Merge branch '1.3-misc' into 1.3-merger
Conflicts:
	cake/tests/cases/libs/configure.test.php
2009-11-15 20:09:12 -05:00
mark_story
0783176238 Replacing duplicated code with pluginSplit().
Updating test case.
2009-11-15 19:55:20 -05:00
mark_story
ea6e3dd076 Fixing issue with bake model <name> 2009-11-15 16:47:58 -05:00
mark_story
e1d60368f6 Adding missing reference operator. 2009-11-15 16:38:15 -05:00
predominant
0977b3fe15 Standardising docblock endings throughout. 2009-11-14 23:19:25 +11:00
mark_story
13f9b79dc9 Removing console/libs/templates. Has been moved in 1.3 and a merge with 1.2 added it again. 2009-11-13 09:15:31 -05:00
mark_story
38f578199d Changing new Model() for ClassRegistry::init(). Fixes issues when baking admin and non-admin methods for a controller that uses bound translations + TranslateBehavior. Fixes #245 2009-11-12 09:32:45 -05:00
mark_story
61d56cd275 Changing order of text in project task.
Making ProjectTask::getPrefix silent when interactive = false.
Making ProjectTask silent from View task if all or a controller name is provided.
2009-11-11 09:56:35 -05:00
mark_story
0d37beca75 Removing duplicate variable assignment. 2009-11-10 09:23:43 -05:00
mark_story
b39b38aac9 Adding missing variable.
Adding Test case for previous commit.
2009-11-10 09:17:54 -05:00
mark_story
2af5318e7a Moving import in ModelTask to fix issue running bake model all. 2009-11-09 23:54:59 -05:00
mark_story
adaa2b689c Adding test case for previous commit.
Fixing function for non-windows paths.
2009-11-09 20:10:24 -05:00
ceeram
c810b3cde4 Making ProjectTask bake constants with DS instead of hardcoded / or \.
Makes developing/deploying to mixed systems easier.

refs #278

Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-09 18:58:21 -05:00
ceeram
d251a1d5ca Adding config() call to ensure that DATABASE_CONFIG has been
loaded before attempting to use it.
refs #277

Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-09 18:55:37 -05:00
mark_story
c4b493c934 Manually merging changes from ModelTask in 1.2 to FixtureTask
Adding test cases for FixtureTask.
2009-11-08 22:22:08 -05:00
mark_story
7981b44db4 Merge branch '1.3-misc' into mergers 2009-11-08 21:39:55 -05:00
mark_story
95cafc7138 Adding missing help text. 2009-11-08 13:46:45 -05:00
predominant
1185681549 Removing newline caused by Subversion line removal. 2009-11-06 18:01:22 +11:00
predominant
384bb7a0e0 Update license lines throughout. 2009-11-06 17:51:51 +11:00
predominant
d7b604c8ed Fixing links throughout 2009-11-06 17:46:59 +11:00
predominant
8ff6505fe8 Removing excess whitespace 2009-11-06 17:08:23 +11:00
predominant
6782cb019c Update CakePHP Project link. 2009-11-06 17:00:11 +11:00
predominant
5dfe1777af Removing Subversion file headers. 2009-11-06 16:51:09 +11:00
predominant
ceee56013c Remove Subversion $Date$ lines. 2009-11-06 16:17:01 +11:00
predominant
04f1b6cdfe Remove Subversion $LastChangedBy$ lines. 2009-11-06 16:11:16 +11:00
predominant
42f3f16d60 Remove subversion $Revision$ lines. 2009-11-06 16:08:02 +11:00
predominant
1b9b0aae5e Updating Copyright date to include 2009. 2009-11-06 15:34:28 +11:00
predominant
8f75ff58c7 Removing @filesource 2009-11-06 15:24:02 +11:00
mark_story
b4f6dd9c6e Adding tests and support for binary columns in model task. Fixes #241 2009-11-04 22:57:43 -05:00
mark_story
5f1d090bf0 Adding import()s to DbConfigTask and ModelTask to fix missing class errors, when methods are run in certain orders. 2009-11-04 13:21:05 -05:00
mark_story
f81d3da175 Moving import to fix issue where cakeschema would not be found when baking models. 2009-11-04 12:59:32 -05:00
mark_story
1d22adbc1a Merge branch '1.3-misc' into 1.3 2009-11-03 22:50:11 -05:00
renan.saddam
5ebdc88223 Fixing declaration of @access property. 2009-11-02 21:54:03 -02:00
mark_story
a3bb77c4f3 Merge branch '1.2' into 1.3-merger
Conflicts:
	cake/console/libs/acl.php
	cake/console/libs/tasks/controller.php
	cake/console/libs/tasks/db_config.php
	cake/console/libs/tasks/model.php
	cake/console/libs/templates/skel/views/layouts/xml/default.ctp
	cake/libs/model/datasources/dbo/dbo_mysql.php
	cake/libs/model/datasources/dbo/dbo_mysqli.php
	cake/libs/validation.php
	cake/libs/view/helpers/form.php
	cake/tests/cases/basics.test.php
	cake/tests/cases/console/libs/tasks/model.test.php
	cake/tests/cases/libs/cake_test_case.test.php
	cake/tests/cases/libs/model/datasources/dbo/dbo_mysql.test.php
	cake/tests/cases/libs/model/datasources/dbo/dbo_mysqli.test.php
	cake/tests/cases/libs/view/helpers/javascript.test.php
	cake/tests/cases/libs/view/helpers/session.test.php
	cake/tests/groups/controller.group.php
	cake/tests/groups/lib.group.php
	cake/tests/groups/no_database.group.php
2009-11-01 12:11:49 -05:00
mark_story
e6c58e8030 Fixing wierd workflows in bake when project baking was aborted, it would ask if you wanted to create a database config file for the aborted app. 2009-10-30 22:08:06 -04:00
mark_story
ad8cba41e6 Merge branch '1.3' into 1.3-misc 2009-10-30 22:04:20 -04:00
mark_story
bc26a6ab67 Updating fixture task to change when CakeSchema is loaded to fix issues with errors being generated when baking new projects.
Fixes #226
2009-10-30 22:03:23 -04:00
Gordon Pettey
2e3bbe363d Array coding convention and extraneous punctuation
Signed-off-by: Mark Story <mark@mark-story.com>
2009-10-30 16:38:27 -04:00
renan.saddam
df8895a266 Adding a optinal parameter and question for merge action. Refs #147. 2009-10-29 21:26:59 -02:00
mark_story
1e7c2bbfde Adding libs dir generation to PluginTask. Baked plugins now come with a libs dir. 2009-10-28 09:21:42 -04:00
mark_story
3b391e30df Adding help text for new -records flag in the FixtureTask 2009-10-28 08:26:52 -04:00
mark_story
102f10365f Implementing -records flag to enable quick access to building fixtures off of live data. Refs #196 2009-10-24 14:32:56 -04:00
mark_story
857b7c2399 Merge branch '1.3' into fixture-task 2009-10-24 14:08:16 -04:00
mark_story
72830cb125 Adding test case for model task
Fixing missing case for float datatypes when generating fixtures.
Fixes #204
2009-10-24 11:26:06 -04:00
mark_story
6847d34d80 Updating fixture test to fix issues caused by refactoring in CakeSchema. 2009-10-22 13:11:30 -04:00
mark_story
1ee9771efb Removing ife() from AclShell. Refs #6562 2009-10-21 13:12:03 -04:00
mark_story
0657afcf30 Removing use of low() from core classes. Refs #6525 2009-10-21 13:03:24 -04:00
mark_story
0cc1d84737 Removing use of e() from core and test suite. 2009-10-21 12:57:03 -04:00
mark_story
957be00d2e Adding return to Shell::out() and ShellDispatcher::stdout(). They now return the number of bytes written to stdout. Fixes #164 2009-10-15 00:23:54 -04:00
mark_story
2f81c29def Updating $pluginPath loops to use App::pluginPath(). 2009-10-14 09:47:07 -04:00
mark_story
a3f38c77dd Merge branch '1.3-console' into 1.3 2009-10-11 21:51:02 -04:00
mark_story
7d4bc20fbd Updating model to reflect changes in Validation. 2009-10-11 21:35:06 -04:00
mark_story
4b862de085 Fixing interactions with Routing.prefixes in Controller and View task. 2009-10-07 01:35:29 -04:00
mark_story
1110f3e1c2 Updating Validation method extraction. 2009-10-07 00:51:55 -04:00
mark_story
651a3f16b2 Updating ProjectTask::getAdmin(). Renamed to ProjectTask::getPrefix(). Now returns the user selected prefix to use for baking.
Test cases updated.  Use of method updated.
2009-10-07 00:46:13 -04:00
mark_story
5021d11124 Updating the help() for bake task to include information about plugin shortcuts. 2009-10-04 17:59:12 -04:00
mark_story
b15471095b Updating the help file for schema shell. 2009-10-04 15:12:05 -04:00
mark_story
2dc0fbf3b3 Making schema dump work with plugins.
Adding tests.
Making output of dump file more flexible.
2009-10-04 14:47:35 -04:00
mark_story
75f2106420 Made SchemaShell::view() work better with plugins. Tests added. 2009-10-04 14:06:07 -04:00
mark_story
30ef7960ac Removing method that is no longer needed. 2009-10-04 13:39:43 -04:00
mark_story
05f6099def Enabling plugin.name schema file creation and addition.
Making CakeSchema::load() use plugin parameter, tests added.
Plugin schema file added to test_app.
2009-10-04 13:32:33 -04:00
mark_story
c2a53d3c69 Removing cake schema run. Replacing it with cake schema create and cake schema update. Removes extra typing and simplifies schema shell commands.
Updating test cases.
2009-10-04 11:16:23 -04:00
mark_story
e1d0be610c Splitting help() into more readable format. 2009-10-04 10:24:15 -04:00
mark_story
76a88fc477 Updating help() for Schema shell. 2009-10-04 10:04:48 -04:00
mark_story
0fc6f58cfb Refactoring and merging duplicated code between CakeSchema and FixtureTask 2009-10-03 16:15:56 -04:00
mark_story
71aa460a48 Continuing work on getting plugin support for CakeSchema and SchemaShell. Applied patch from 'SkieDr', test cases added. 2009-10-03 11:48:02 -04:00
mark_story
58ec259714 Merge branch '1.3-router' into 1.3-misc 2009-09-30 00:51:20 -04:00
SkieDr
86d0a04c8d fixture generator for new table and field level parameters 2009-09-29 22:54:43 +04:00
mark_story
f0276414ad Fixing out() from merge 2009-09-27 16:28:26 -04:00
mark_story
bc90f0aa01 Merge branch '1.3-console' into 1.3
Conflicts:
	cake/console/libs/tasks/fixture.php
2009-09-27 16:26:45 -04:00
davidpersson
7fc14f47b3 Updating formatting. 2009-09-26 23:41:42 +02:00
davidpersson
ccbc6f35f0 Updating all calls to Shell::out(). 2009-09-26 23:08:37 +02:00
davidpersson
0f6bca7496 Making first parameter of Shell::out() and err() optional. 2009-09-26 23:02:54 +02:00
mark_story
c330934b93 Adding test cases for view task. 2009-09-23 13:27:47 -04:00
José Lorenzo Rodríguez
6dd144b3cf Adding getTemplate to view task
Signed-off-by: Mark Story <mark@mark-story.com>
2009-09-23 13:13:58 -04:00
mark_story
32198c58d0 Removing date validation suggestion for datetime fields. Fixes #106 2009-09-22 18:49:30 -04:00
davidpersson
86274357b9 Updating Shell class to use nl() where possible. 2009-09-21 23:01:43 +02:00