predominant
6782cb019c
Update CakePHP Project link.
2009-11-06 17:00:11 +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
renan.saddam
5ebdc88223
Fixing declaration of @access property.
2009-11-02 21:54:03 -02: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
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
0657afcf30
Removing use of low() from core classes. Refs #6525
2009-10-21 13:03:24 -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
0fc6f58cfb
Refactoring and merging duplicated code between CakeSchema and FixtureTask
2009-10-03 16:15:56 -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
ccbc6f35f0
Updating all calls to Shell::out().
2009-09-26 23:08:37 +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
mark_story
a3cd80bf52
Merge branch '1.3-bake' into 1.3
2009-09-20 17:42:43 -04:00
renan.saddam
78e01cdb47
Refactoring ExtractTask to support extraction from multi-directories and splitting domain in different files.
2009-09-15 00:43:59 -03:00
renan.saddam
7c100f3b75
Fixing notice error message. Fixes #34
2009-09-10 23:26:54 -03:00
mark_story
b8d3aae474
Fixing path to home page template.
2009-09-06 01:04:38 -04:00
mark_story
30f8709bb4
Removing use of low() in core classes and functions. Refs #6525
2009-08-27 22:46:00 -04:00
AD7six
7c4dfed299
Updating view and controller tasks to use (_singluar|_plural)HumanName functions
...
Modifying the test case to expect humanized forms
2009-08-19 10:17:10 +02:00
mark_story
34b6e18e8d
Adding help() for TestTask.
2009-08-16 21:32:10 -04:00
gwoo
368c7556d4
Merge branch '1.3-console' into 1.3
2009-08-14 12:32:54 -04:00
mark_story
ae628f7f72
Applying patch from 'savant' Fixes usage of deprecated methods. Fixes #11
2009-08-12 09:46:18 -04:00
mark_story
31d136ca67
Making constructClasses() call run against the correct object. test cases updated.
...
Fixes #4
2009-08-12 09:46:17 -04:00
mark_story
b731408deb
Fixing constant use in ProjectTask.
...
Fixing newline.
2009-08-12 09:46:17 -04:00
mark_story
29d03ab722
Adding __() to ProjectTask
2009-08-12 09:46:17 -04:00
renan.saddam
ae89e709d2
Refactoring extract shell. Supporting use of $foo['bar'] as $count.
2009-08-06 18:14:25 -03:00
mark_story
4583873379
Fixing issues in PluginTask test due to addition of cake/plugins. Fixing undefined variable.
2009-08-02 20:42:08 -04:00
mark_story
48a483e5ce
Fixing bake and bake related task test cases for PHP4.
2009-08-02 18:17:31 -04:00
AD7six
20b1dd795d
Revert "Changing the Plugin task to take the dirs to create from the App skeleton"
...
This reverts commit fe8b641cd3257b4aa82ce93ac8a2e8f624e4ec58.
Conflicts:
cake/console/libs/tasks/plugin.php
2009-08-02 23:39:59 +02:00
AD7six
db6f2cec96
Revert "Changing folder create logic to use Folder->tree"
...
This reverts commit a60677070d41f3a1c7841e4ca24f6ee2658f3067.
2009-08-02 23:26:15 +02:00
AD7six
d61e8736e4
Merge branch '1.3' into 1.3-bake
2009-08-02 22:44:28 +02:00
AD7six
7eb150b49a
Merge branch '1.3' into 1.3-bake
...
Conflicts:
cake/console/libs/tasks/model.php
2009-08-02 22:31:01 +02:00
gwoo
bf2b8a60e6
Merge branch '1.3-misc' into 1.3
2009-08-02 12:20:07 -07:00
gwoo
01d22ffd2e
fixing up some App::import calls
2009-07-30 15:01:22 -07:00
AD7six
77f371d1e1
Merge branch '1.3-bake' of dev@code.cakephp.org:cakephp into 1.3-bake
2009-07-30 22:14:51 +02:00
gwoo
1423b0067b
Merge branch '1.2' into 1.3
2009-07-30 11:34:33 -07:00
mark_story
8e152ada32
Updating model import()
2009-07-30 10:07:58 -04:00
mark_story
f6d6272f97
Changing guessed validation type for boolean.
2009-07-29 22:20:07 -04:00
AD7six
38e48e5f7f
Changing folder create logic to use Folder->tree
2009-07-29 21:52:20 +02:00
mark_story
ad3d34c239
Removing un-necessary if()
2009-07-29 14:15:17 -04:00
mark_story
189480e499
Correcting parameter names for ControllerTask. Updating tests in Controller and ViewTask.
2009-07-29 12:47:25 -04:00
AD7six
a87b6cdf91
allow rebaking all views based on available methods & templates
2009-07-29 12:48:31 +02:00
AD7six
d54369e29e
CONSOLE_LIBS isn't an absolute path
...
Adding app vendor folders
Correcting plugin test to match changes to the task
2009-07-29 10:12:54 +02:00
AD7six
b7b27e3f03
Changing the Plugin task to take the dirs to create from the App skeleton
2009-07-29 09:32:30 +02:00
mark_story
9092b25004
Fixing how scaffold arg works, now generates scaffolds.
...
Making admin arg only make admin methods and new both arg make both admin and non admin methods.
Adding test cases.
Adding new line to template.
2009-07-28 22:53:29 -04:00
mark_story
8ae8a086dd
Fixing template path detection for plugins.
2009-07-28 22:14:33 -04:00
AD7six
84e0e10d56
Merge branch '1.3-bake' of dev@code.cakephp.org:cakephp into 1.3-bake
...
Conflicts:
cake/console/libs/tasks/view.php
2009-07-28 23:54:56 +02:00
AD7six
5a5a4d86f5
Preventing a missing template from halting the bake console
...
Restructuring the view task to be lest nested
allowing anything_add and anything_edit to map to anything_form
2009-07-28 23:49:04 +02:00
mark_story
80f9e6f7d6
Finishing refactor on View task to use _methodsToBake
2009-07-28 17:06:39 -04:00
DarkAngelBGE
f88cc56cfe
Coding standards fixes
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8260 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-28 20:01:42 +00:00
AD7six
9d0d31409a
Allowing admin baking to work with plugin controllers
2009-07-28 09:13:30 +02:00
AD7six
c629d2c820
allow overriding the default templates
...
Allow templates to be distributed as plugins
Prevent any folder named skel or something_skel, or not containing any of the folders
that bake is expecting, from being considered a theme.
2009-07-28 09:02:29 +02:00
mark_story
478e90240d
Updating paths in ProjectTask and PluginTask to reflect changed dirs.
...
Updating tests.
2009-07-26 01:52:05 -04:00
mark_story
b4f4aeeec7
Moving shell templates dirs.
...
Updating TemplateTask to reflect changes in directories.
Updating test cases to use App::build()/App::path()
2009-07-26 01:29:08 -04:00
AD7six
b2142df2bc
adding a newline before all comment blocks
2009-07-24 21:18:37 +02:00
jperras
e40428801e
Removing all uses of uses() global method & replacing with require or App::import.
2009-07-24 13:41:08 -04:00
DarkAngelBGE
9eaad7528f
Removing usage of up() and low() from core
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8253 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-23 21:04:40 +00:00
mark_story
19eca9003d
Adding ability to generate fixtures from data in app tables, with custom conditions. Test cases added.
2009-07-21 00:00:39 -04:00
mark_story
10f5ae22a9
Adding prompt for supplying custom conditions for fixture.
2009-07-20 00:59:18 -04:00
mark_story
de51d880fb
Adding prompts for PluginTask with no args.
...
Test cases added.
2009-07-20 00:20:58 -04:00
mark_story
2ab3986d14
Removing extra ; from generated code.
2009-07-17 16:00:44 -04:00
mark_story
ad3e5f43e0
Removing newlines in files.
...
Adding and update bake.test to bake group test.
Fixing doc blocks.
2009-07-16 23:55:41 -04:00
mark_story
7b06ba2b3d
Adding support for -admin flag when baking a controller's views. Using -admin will only bake admin methods. Refactoring some methods, removing newlines.
2009-07-16 23:12:47 -04:00
mark_story
22c98cc712
Adding empty files to baked plugins.
2009-07-16 21:49:26 -04:00
mark_story
2e3a311b0d
Adding config/sql to plugin baking.
2009-07-16 21:34:14 -04:00
mark_story
cbb568b3c7
Fixing getAdmin() method location to reflect changes in API.
2009-07-16 12:50:37 -04:00
mark_story
08ce38c6cc
Updating bake all to reflect changes in Task apis. Adding additional messages.
2009-07-16 08:52:33 -04:00
mark_story
1e8d01992e
Adding test generation for controllers baked with ControllerTask::all()
2009-07-15 10:14:16 -04:00
mark_story
80b9692856
Adding test and fixture generation to ModelTask::all
2009-07-15 10:00:35 -04:00
mark_story
f712d84d33
Applying patch from 'slywalker'. Updating datetime generation in baked files.
...
Fixed #6505
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8229 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-14 02:30:51 +00:00
mark_story
7e1f9eeebd
Updating tests for ModelTask. Making it impossible to bake a model which does not have a table on the active connection. Fixes #6035
2009-07-08 23:30:29 -04:00
mark_story
9bbb33ef2f
Fixing Configure::read() use in PluginTask. Adding PluginTask to the bake group test. Adding vendors directory generation to baked plugins. Fixes #5200 .
2009-07-08 22:25:27 -04:00
mark_story
41eecdaa91
Adding the ability to set $displayField from bake. Refactoring ModelTask::bake() Fixes #4438 .
2009-07-08 22:06:42 -04:00
mark_story
d671056044
Adding displayField detection and interaction to ModelTask. Test Cases added.
2009-07-08 09:10:18 -04:00
mark_story
dc98184086
Updating Shell and Bake tasks to use App::path() instead of Configure::read().
2009-07-06 23:11:57 -04:00
mark_story
5c9b5febdf
Merge branch '1.3' into 1.3-bake-integration
...
Conflicts:
cake/console/libs/tasks/controller.php
2009-07-06 23:03:04 -04:00
mark_story
8d1457e048
Merge branch '1.3' into 1.3-bake-integration
...
Conflicts:
cake/console/libs/tasks/controller.php
cake/console/libs/tasks/model.php
2009-07-06 22:20:03 -04:00
gwoo
bc359259a2
Merge branch '1.2' into 1.3
2009-07-02 09:27:00 -07:00
mark_story
1a7965fde0
Adding output to getThemePath()
...
Adding param setting to getThemePath() as well so template choice is saved between file generations in the same session. Test cases added.
2009-07-01 23:49:50 -04:00
mark_story
659414f04f
Fixing template location in Project task.
2009-07-01 23:48:51 -04:00
mark_story
4cb70580a2
Expanding test cases for ViewTask to be more specific and finer tests for admin_ methods.
2009-07-01 23:21:41 -04:00
mark_story
544188197d
Fixing use of TemplateTask in other Tasks. Updating bake.group.
2009-07-01 00:50:38 -04:00
mark_story
ad98139e35
Moving bake templates into templates/default.
...
Adding 'console template themes' to TemplateTask.
Adding test cases for console themes.
Moving files around.
2009-07-01 00:24:20 -04:00
mark_story
11ecde194d
Updating ViewTask to use the ProjectTask.
...
Adding tests for previously missed code branch.
2009-06-30 21:50:28 -04:00
mark_story
ddc341e4de
Updating ControllerTask to use ProjectTask.
2009-06-30 20:49:58 -04:00
mark_story
da99aa1c6a
Moved Shell::getAdmin() to ProjectTask
2009-06-30 20:44:09 -04:00
mark_story
198511f639
Adding tests for security salt generation.
2009-06-30 18:30:39 -04:00
mark_story
8c2a027842
Pointing test directory creation to TMP/tests/
...
Adding tests for ProjectTask::bake()
2009-06-16 23:05:48 -04:00
mark_story
981503755e
Fixing camelCasing of plugin name for single word plugin names.
...
tests added.
2009-06-16 22:29:48 -04:00
mark_story
a2a7727c00
Fixing plugin prefix handling when using plugin task to bake plugin controllers. Plugin Models are correctly found, allowing bake to work.
...
Fixes #5069
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8199 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-17 02:17:18 +00:00
mark_story
88f95bc0c4
Making plugin task find plugins on $pluginPaths
...
Fixing i18n.
Adding tests for execute with 2 params.
2009-06-11 00:04:22 -04:00
mark_story
701d93c61c
Adding test cases for execute()
...
Adding more i18n
Fixing issues with folders being left behind by tests.
2009-06-10 23:21:42 -04:00
mark_story
22c575595d
Using more constants in paths.
2009-06-10 22:56:26 -04:00
mark_story
62199dba59
Adding $pluginPaths support to PluginTask
2009-06-10 22:52:38 -04:00
mark_story
8ca30f2d22
Adding test folder structure to PluginTask creation
2009-06-10 22:22:06 -04:00
mark_story
5eae9fcba5
Adding test case for PluginTask::bake()
2009-06-10 22:19:14 -04:00
mark_story
fd7ad7e861
Removing dead options.
...
Removing extra uses()
2009-06-08 23:15:05 -04:00
mark_story
ea0d5c84be
Removing dead comparisons, extra uses() call.
2009-06-08 23:13:29 -04:00
mark_story
d810b43e80
Adding tests so no empty helpers/components
...
can be added. Refs #6383
2009-06-07 12:22:43 -04:00
mark_story
4d7f00504a
Making -plugin function with ViewTask
...
Adding tests for -plugin parameter
Removing extra Folder calls.
2009-06-06 21:18:34 -04:00
mark_story
44bffc5bae
Adding support for -plugin parameter to TestTask
...
Test cases for plugin path generation added.
2009-06-06 21:03:26 -04:00
mark_story
21818460a2
Additional tests for fixture baking to ensure
...
parameters are passed from model to fixture task
Adding -plugin support to ModelTask
2009-06-06 20:37:01 -04:00
mark_story
4d89086146
Adding -plugin support to Controller Task
...
Test cases added.
2009-06-06 20:25:57 -04:00
mark_story
84a496083f
Adding proper -plugin parameter handling
...
Fixtures can now be baked into plugins.
Adding test cases.
2009-06-06 20:03:04 -04:00
mark_story
928ec36acf
Removing garbage methods.
2009-06-04 23:48:58 -04:00
mark_story
3d39feeac9
Adding help() entry for bake view all
2009-06-04 23:43:59 -04:00
mark_story
0099c8a428
Removing more if() blocks
...
Silencing Controller task in all()
2009-06-04 23:42:06 -04:00
mark_story
7cf7a0440c
Removing extra if() that are not needed
...
as __loadController will stop() execution on error.
2009-06-04 23:40:03 -04:00
mark_story
bb566c3841
Adding test cases for various permutations of execute()
...
Allowing admin methods to be baked separately of regular methods.
2009-06-04 23:35:36 -04:00
mark_story
8040cc31e5
Adding connection prompts.
...
Fixing hard coded $ds
Adding i18n
Extracting customAction()
Test cases added.
2009-06-03 23:18:14 -04:00
mark_story
3c5e4a68fb
Fixing notice errors.
2009-06-03 22:03:57 -04:00
mark_story
0a3af5b792
Refactoring out bakeActions
...
Adding tests for bake()
2009-06-03 21:59:46 -04:00
gwoo
6f21c18366
Merge branch '1.3-lib_renames' into 1.3
2009-06-02 10:17:02 -07:00
gwoo
fdd63d4e8e
Merge branch 'master' into 1.3
2009-06-02 10:12:14 -07:00
mark_story
4c76b2f1a8
Unifying formatting of help() messages.
2009-05-30 00:55:44 -04:00
mark_story
03e7ca71b6
Reformatting help()
2009-05-30 00:46:25 -04:00
mark_story
9967b10b58
Removing dead options.
2009-05-30 00:34:45 -04:00
mark_story
fb2be781f2
Refactoring to use TemplateTask
2009-05-30 00:32:57 -04:00
mark_story
2b6ea8748c
Adding flush so models in registry are always fresh
...
fixes issues baking model + test
2009-05-26 00:36:25 -04:00
mark_story
79568cc742
Fixing controller test file generation
2009-05-25 23:57:15 -04:00
mark_story
518c318887
Adding tests and code for controller stub generation.
2009-05-25 23:48:41 -04:00
mark_story
66b36ba3b8
Adding tests for other object types.
2009-05-25 01:02:59 -04:00
mark_story
975aab8009
Fixing plugin imports
...
Adding contstructor generation.
and test case for controller construction.
2009-05-25 00:54:23 -04:00
mark_story
587b0ca07d
Test generation for models is partially complete.
...
fixtures and introspected methods work.
2009-05-24 23:50:21 -04:00
mark_story
eb9f40c6f4
extracting out object type interaction.
...
test case added.
2009-05-24 20:12:17 -04:00
mark_story
1d6ceffb92
Adding test case and function for generating
...
fixture lists from controller objects.
2009-05-24 01:30:04 -04:00
mark_story
61191d88cd
Adding test cases and ability to pull all
...
fixtures for a model.
2009-05-24 01:15:31 -04:00
mark_story
f20a7e4f61
Adding method extraction and test case.
2009-05-23 23:48:25 -04:00
mark_story
4fe3c2efe1
Removing ability to bake $useTable = false models.
2009-05-23 23:25:14 -04:00
mark_story
fe2e3d82fd
Removing while() loops wrapping in() with concrete options.
2009-05-20 23:21:36 -04:00
mark_story
5843d5e40a
Adding test case for DbConfig task
...
making DbConfigTask testable.
2009-05-20 23:15:31 -04:00