parlement 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. data/CHANGES +709 -0
  2. data/COPYING +223 -0
  3. data/README +20 -0
  4. data/Rakefile +136 -0
  5. data/app/controllers/account_controller.rb +181 -0
  6. data/app/controllers/application.rb +30 -0
  7. data/app/controllers/elt_controller.rb +83 -0
  8. data/app/helpers/account_helper.rb +2 -0
  9. data/app/helpers/application_helper.rb +4 -0
  10. data/app/helpers/elt_helper.rb +37 -0
  11. data/app/helpers/live_tree.rb +238 -0
  12. data/app/helpers/mailman.rb +96 -0
  13. data/app/models/attachment.rb +4 -0
  14. data/app/models/elt.rb +17 -0
  15. data/app/models/mail.rb +4 -0
  16. data/app/models/notifier.rb +13 -0
  17. data/app/models/person.rb +9 -0
  18. data/app/models/user.rb +7 -0
  19. data/app/models/user_notify.rb +75 -0
  20. data/app/views/account/_help.rhtml +23 -0
  21. data/app/views/account/_login.rhtml +57 -0
  22. data/app/views/account/_show.rhtml +31 -0
  23. data/app/views/account/logout.rhtml +10 -0
  24. data/app/views/account/signup.rhtml +17 -0
  25. data/app/views/account/welcome.rhtml +13 -0
  26. data/app/views/elt/_elt.rhtml +105 -0
  27. data/app/views/elt/_form.rhtml +31 -0
  28. data/app/views/elt/_list.rhtml +28 -0
  29. data/app/views/elt/new.rhtml +102 -0
  30. data/app/views/elt/rss.rxml +31 -0
  31. data/app/views/elt/show.rhtml +46 -0
  32. data/app/views/elt/show_tree.rhtml +8 -0
  33. data/app/views/layouts/scaffold.rhtml +13 -0
  34. data/app/views/layouts/top.rhtml +45 -0
  35. data/app/views/notifier/changeEmail.rhtml +10 -0
  36. data/config/boot.rb +17 -0
  37. data/config/database.yml +82 -0
  38. data/config/environment.rb +92 -0
  39. data/config/environments/development.rb +17 -0
  40. data/config/environments/production.rb +17 -0
  41. data/config/environments/test.rb +17 -0
  42. data/config/environments/user_environment.rb +1 -0
  43. data/config/routes.rb +28 -0
  44. data/db/ROOT/CV.txt +166 -0
  45. data/db/ROOT/IP.txt +3 -0
  46. data/db/ROOT/parleR.txt +3 -0
  47. data/db/ROOT/parlement/security.txt +34 -0
  48. data/db/ROOT/parlement/test.txt +4 -0
  49. data/db/ROOT/parlement.txt +51 -0
  50. data/db/ROOT/perso.txt +215 -0
  51. data/db/schema.sql +127 -0
  52. data/lib/data_import.rb +54 -0
  53. data/lib/file_column.rb +263 -0
  54. data/lib/file_column_helper.rb +45 -0
  55. data/lib/localization.rb +88 -0
  56. data/lib/localizer.rb +88 -0
  57. data/lib/login_system.rb +87 -0
  58. data/lib/rails_file_column.rb +19 -0
  59. data/lib/user_system.rb +101 -0
  60. data/public/404.html +8 -0
  61. data/public/500.html +8 -0
  62. data/public/dispatch.cgi +10 -0
  63. data/public/dispatch.fcgi +24 -0
  64. data/public/dispatch.rb +10 -0
  65. data/public/engine_files/README +5 -0
  66. data/public/engine_files/login_engine/stylesheets/login_engine.css +81 -0
  67. data/public/favicon.ico +0 -0
  68. data/public/favicon.png +0 -0
  69. data/public/images/live_tree_branch_collapsed_icon.gif +0 -0
  70. data/public/images/live_tree_branch_expanded_icon.gif +0 -0
  71. data/public/images/live_tree_leaf_icon.gif +0 -0
  72. data/public/images/live_tree_loading_spinner.gif +0 -0
  73. data/public/images/webfeed.gif +0 -0
  74. data/public/javascripts/controls.js +721 -0
  75. data/public/javascripts/dragdrop.js +519 -0
  76. data/public/javascripts/effects.js +992 -0
  77. data/public/javascripts/live_tree.js +749 -0
  78. data/public/javascripts/prototype.js +1726 -0
  79. data/public/javascripts/scriptaculous.js +47 -0
  80. data/public/javascripts/slider.js +258 -0
  81. data/public/oldREADME +190 -0
  82. data/public/oldindex.html +78 -0
  83. data/public/robots.txt +1 -0
  84. data/public/stylesheets/default.css +238 -0
  85. data/public/stylesheets/live_tree.css +62 -0
  86. data/public/stylesheets/scaffold.css +74 -0
  87. data/script/about +3 -0
  88. data/script/benchmarker +19 -0
  89. data/script/breakpointer +3 -0
  90. data/script/console +3 -0
  91. data/script/create_db +7 -0
  92. data/script/destroy +3 -0
  93. data/script/generate +3 -0
  94. data/script/performance/benchmarker +3 -0
  95. data/script/performance/profiler +3 -0
  96. data/script/plugin +3 -0
  97. data/script/process/reaper +3 -0
  98. data/script/process/spawner +3 -0
  99. data/script/process/spinner +3 -0
  100. data/script/profiler +34 -0
  101. data/script/runner +3 -0
  102. data/script/server +3 -0
  103. data/test/fixtures/attachments.yml +10 -0
  104. data/test/fixtures/elts.yml +15 -0
  105. data/test/fixtures/mails.yml +7 -0
  106. data/test/fixtures/people.yml +49 -0
  107. data/test/fixtures/users.yml +41 -0
  108. data/test/functional/account_controller_test.rb +239 -0
  109. data/test/functional/elt_controller_test.rb +18 -0
  110. data/test/mocks/test/time.rb +17 -0
  111. data/test/mocks/test/user_notify.rb +16 -0
  112. data/test/test_helper.rb +28 -0
  113. data/test/unit/attachment_test.rb +14 -0
  114. data/test/unit/elt_test.rb +14 -0
  115. data/test/unit/mail_test.rb +14 -0
  116. data/test/unit/notifier_test.rb +31 -0
  117. data/test/unit/person_test.rb +24 -0
  118. data/test/unit/user_test.rb +94 -0
  119. data/vendor/plugins/engines/CHANGELOG +7 -0
  120. data/vendor/plugins/engines/README +128 -0
  121. data/vendor/plugins/engines/init.rb +33 -0
  122. data/vendor/plugins/engines/lib/action_mailer_extensions.rb +160 -0
  123. data/vendor/plugins/engines/lib/action_view_extensions.rb +130 -0
  124. data/vendor/plugins/engines/lib/dependencies_extensions.rb +56 -0
  125. data/vendor/plugins/engines/lib/engines.rb +292 -0
  126. data/vendor/plugins/engines/lib/ruby_extensions.rb +127 -0
  127. data/vendor/plugins/engines/lib/testing_extensions.rb +33 -0
  128. data/vendor/plugins/engines/test/ruby_extensions_test.rb +94 -0
  129. data/vendor/plugins/login_engine/README +258 -0
  130. data/vendor/plugins/login_engine/app/controllers/user_controller.rb +248 -0
  131. data/vendor/plugins/login_engine/app/helpers/user_helper.rb +88 -0
  132. data/vendor/plugins/login_engine/app/models/user.rb +7 -0
  133. data/vendor/plugins/login_engine/app/models/user_notify.rb +75 -0
  134. data/vendor/plugins/login_engine/app/views/user/_edit.rhtml +11 -0
  135. data/vendor/plugins/login_engine/app/views/user/_password.rhtml +9 -0
  136. data/vendor/plugins/login_engine/app/views/user/change_password.rhtml +17 -0
  137. data/vendor/plugins/login_engine/app/views/user/edit.rhtml +23 -0
  138. data/vendor/plugins/login_engine/app/views/user/forgot_password.rhtml +18 -0
  139. data/vendor/plugins/login_engine/app/views/user/home.rhtml +7 -0
  140. data/vendor/plugins/login_engine/app/views/user/login.rhtml +17 -0
  141. data/vendor/plugins/login_engine/app/views/user/logout.rhtml +8 -0
  142. data/vendor/plugins/login_engine/app/views/user/signup.rhtml +17 -0
  143. data/vendor/plugins/login_engine/app/views/user_notify/change_password.rhtml +10 -0
  144. data/vendor/plugins/login_engine/app/views/user_notify/delete.rhtml +5 -0
  145. data/vendor/plugins/login_engine/app/views/user_notify/forgot_password.rhtml +11 -0
  146. data/vendor/plugins/login_engine/app/views/user_notify/pending_delete.rhtml +9 -0
  147. data/vendor/plugins/login_engine/app/views/user_notify/signup.rhtml +12 -0
  148. data/vendor/plugins/login_engine/db/schema.rb +25 -0
  149. data/vendor/plugins/login_engine/init_engine.rb +10 -0
  150. data/vendor/plugins/login_engine/lib/login_engine/authenticated_system.rb +107 -0
  151. data/vendor/plugins/login_engine/lib/login_engine/authenticated_user.rb +149 -0
  152. data/vendor/plugins/login_engine/lib/login_engine.rb +58 -0
  153. data/vendor/plugins/login_engine/public/stylesheets/login_engine.css +81 -0
  154. data/vendor/plugins/login_engine/tasks/tasks.rake +4 -0
  155. data/vendor/plugins/login_engine/test/fixtures/templates/users.yml +41 -0
  156. data/vendor/plugins/login_engine/test/fixtures/users.yml +41 -0
  157. data/vendor/plugins/login_engine/test/functional/user_controller_test.rb +533 -0
  158. data/vendor/plugins/login_engine/test/mocks/mail.rb +14 -0
  159. data/vendor/plugins/login_engine/test/mocks/time.rb +19 -0
  160. data/vendor/plugins/login_engine/test/test_helper.rb +15 -0
  161. data/vendor/plugins/login_engine/test/unit/user_test.rb +94 -0
  162. metadata +276 -0
data/CHANGES ADDED
@@ -0,0 +1,709 @@
1
+ *0.14.1* (October 19th, 2005)
2
+
3
+ * Don't clean RAILS_ROOT on windows
4
+
5
+ * Remove trailing '/' from RAILS_ROOT [Nicholas Seckar]
6
+
7
+ * Upgraded to Active Record 1.12.1 and Action Pack 1.10.1
8
+
9
+
10
+ *0.14.0* (October 16th, 2005)
11
+
12
+ * Moved generator folder from RAILS_ROOT/generators to RAILS_ROOT/lib/generators [Tobias Luetke]
13
+
14
+ * Fix rake dev and related commands [Nicholas Seckar]
15
+
16
+ * The rails command tries to deduce your MySQL socket by running `mysql_config
17
+ --socket`. If it fails, default to /path/to/your/mysql.sock
18
+
19
+ * Made the rails command use the application name for database names in the tailored database.yml file. Example: "rails ~/projects/blog" will use "blog_development" instead of "rails_development". [Florian Weber]
20
+
21
+ * Added Rails framework freezing tasks: freeze_gems (freeze to current gems), freeze_edge (freeze to Rails SVN trunk), unfreeze_rails (float with newest gems on system)
22
+
23
+ * Added update_javascripts task which will fetch all the latest js files from your current rails install. Use after updating rails. [Tobias Luetke]
24
+
25
+ * Added cleaning of RAILS_ROOT to useless elements such as '../non-dot-dot/'. Provides cleaner backtraces and error messages. [Nicholas Seckar]
26
+
27
+ * Made the instantiated/transactional fixtures settings be controlled through Rails::Initializer. Transactional and non-instantiated fixtures are default from now on. [Florian Weber]
28
+
29
+ * Support using different database adapters for development and test with ActiveRecord::Base.schema_format = :ruby [Sam Stephenson]
30
+
31
+ * Make webrick work with session(:off)
32
+
33
+ * Add --version, -v option to the Rails command. Closes #1840. [stancell]
34
+
35
+ * Update Prototype to V1.4.0_pre11, script.aculo.us to V1.5_rc3 [2504] and fix the rails generator to include the new .js files [Thomas Fuchs]
36
+
37
+ * Make the generator skip a file if it already exists and is identical to the new file.
38
+
39
+ * Add experimental plugin support #2335
40
+
41
+ * Made Rakefile aware of new .js files in script.aculo.us [Thomas Fuchs]
42
+
43
+ * Make table_name and controller_name in generators honor AR::Base.pluralize_table_names. #1216 #2213 [kazuhiko@fdiary.net]
44
+
45
+ * Clearly label functional and unit tests in rake stats output. #2297 [lasse.koskela@gmail.com]
46
+
47
+ * Make the migration generator only check files ending in *.rb when calculating the next file name #2317 [Chad Fowler]
48
+
49
+ * Added prevention of duplicate migrations from the generator #2240 [fbeausoleil@ftml.net]
50
+
51
+ * Add db_schema_dump and db_schema_import rake tasks to work with the new ActiveRecord::SchemaDumper (for dumping a schema to and reading a schema from a ruby file).
52
+
53
+ * Reformed all the config/environments/* files to conform to the new Rails::Configuration approach. Fully backwards compatible.
54
+
55
+ * Added create_sessions_table, drop_sessions_table, and purge_sessions_table as rake tasks for databases that supports migrations (MySQL, PostgreSQL, SQLite) to get a table for use with CGI::Session::ActiveRecordStore
56
+
57
+ * Added dump of schema version to the db_structure_dump task for databases that support migrations #1835 [Rick Olson]
58
+
59
+ * Fixed script/profiler for Ruby 1.8.2 #1863 [Rick Olson]
60
+
61
+ * Fixed clone_structure_to_test task for SQLite #1864 [jon@burningbush.us]
62
+
63
+ * Added -m/--mime-types option to the WEBrick server, so you can specify a Apache-style mime.types file to load #2059 [ask@develooper.com]
64
+
65
+ * Added -c/--svn option to the generator that'll add new files and remove destroyed files using svn add/revert/remove as appropriate #2064 [kevin.clark@gmail.com]
66
+
67
+ * Added -c/--charset option to WEBrick server, so you can specify a default charset (which without changes is UTF-8) #2084 [wejn@box.cz]
68
+
69
+ * Make the default stats task extendable by modifying the STATS_DIRECTORIES constant
70
+
71
+ * Allow the selected environment to define RAILS_DEFAULT_LOGGER, and have Rails::Initializer use it if it exists.
72
+
73
+ * Moved all the shared tasks from Rakefile into Rails, so that the Rakefile is empty and doesn't require updating.
74
+
75
+ * Added Rails::Initializer and Rails::Configuration to abstract all of the common setup out of config/environment.rb (uses config/boot.rb to bootstrap the initializer and paths)
76
+
77
+ * Fixed the scaffold generator to fail right away if the database isn't accessible instead of in mid-air #1169 [Chad Fowler]
78
+
79
+ * Corrected project-local generator location in scripts.rb #2010 [Michael Schuerig]
80
+
81
+ * Don't require the environment just to clear the logs #2093 [Scott Barron]
82
+
83
+ * Make the default rakefile read *.rake files from config/tasks (for easy extension of the rakefile by e.g. generators)
84
+
85
+ * Only load breakpoint in development mode and when BREAKPOINT_SERVER_PORT is defined.
86
+
87
+ * Allow the --toggle-spin switch on process/reaper to be negated
88
+
89
+ * Replace render_partial with render :partial in scaffold generator [Nicholas Seckar]
90
+
91
+ * Added -w flag to ps in process/reaper #1934 [Scott Barron]
92
+
93
+ * Allow ERb in the database.yml file (just like with fixtures), so you can pull out the database configuration in environment variables #1822 [Duane Johnson]
94
+
95
+ * Added convenience controls for FCGI processes (especially when managed remotely): spinner, spawner, and reaper. They reside in script/process. More details can be had by calling them with -h/--help.
96
+
97
+ * Added load_fixtures task to the Rakefile, which will load all the fixtures into the database for the current environment #1791 [Marcel Molina]
98
+
99
+ * Added an empty robots.txt to public/, so that web servers asking for it won't trigger a dynamic call, like favicon.ico #1738 [michael@schubert]
100
+
101
+ * Dropped the 'immediate close-down' of FCGI processes since it didn't work consistently and produced bad responses when it didn't. So now a TERM ensures exit after the next request (just as if the process is handling a request when it receives the signal). This means that you'll have to 'nudge' all FCGI processes with a request in order to ensure that they have all reloaded. This can be done by something like ./script/process/repear --nudge 'http://www.myapp.com' --instances 10, which will load the myapp site 10 times (and thus hit all of the 10 FCGI processes once, enough to shut down).
102
+
103
+
104
+ *0.13.1* (11 July, 2005)
105
+
106
+ * Look for app-specific generators in RAILS_ROOT/generators rather than the clunky old RAILS_ROOT/script/generators. Nobody really uses this feature except for the unit tests, so it's a negligible-impact change. If you want to work with third-party generators, drop them in ~/.rails/generators or simply install gems.
107
+
108
+ * Fixed that each request with the WEBrick adapter would open a new database connection #1685 [Sam Stephenson]
109
+
110
+ * Added support for SQL Server in the database rake tasks #1652 [ken.barker@gmail.com] Note: osql and scptxfr may need to be installed on your development environment. This involves getting the .exes and a .rll (scptxfr) from a production SQL Server (not developer level SQL Server). Add their location to your Environment PATH and you are all set.
111
+
112
+ * Added a VERSION parameter to the migrate task that allows you to do "rake migrate VERSION=34" to migrate to the 34th version traveling up or down depending on the current version
113
+
114
+ * Extend Ruby version check to include RUBY_RELEASE_DATE >= '2005-12-25', the final Ruby 1.8.2 release #1674 [court3nay@gmail.com]
115
+
116
+ * Improved documentation for environment config files #1625 [court3nay@gmail.com]
117
+
118
+
119
+ *0.13.0* (6 July, 2005)
120
+
121
+ * Changed the default logging level in config/environment.rb to INFO for production (so SQL statements won't be logged)
122
+
123
+ * Added migration generator: ./script/generate migration add_system_settings
124
+
125
+ * Added "migrate" as rake task to execute all the pending migrations from db/migrate
126
+
127
+ * Fixed that model generator would make fixtures plural, even if ActiveRecord::Base.pluralize_table_names was false #1185 [Marcel Molina]
128
+
129
+ * Added a DOCTYPE of HTML transitional to the HTML files generated by Rails #1124 [Michael Koziarski]
130
+
131
+ * SIGTERM also gracefully exits dispatch.fcgi. Ignore SIGUSR1 on Windows.
132
+
133
+ * Add the option to manually manage garbage collection in the FastCGI dispatcher. Set the number of requests between GC runs in your public/dispatch.fcgi [skaes@web.de]
134
+
135
+ * Allow dynamic application reloading for dispatch.fcgi processes by sending a SIGHUP. If the process is currently handling a request, the request will be allowed to complete first. This allows production fcgi's to be reloaded without having to restart them.
136
+
137
+ * RailsFCGIHandler (dispatch.fcgi) no longer tries to explicitly flush $stdout (CgiProcess#out always calls flush)
138
+
139
+ * Fixed rakefile actions against PostgreSQL when the password is all numeric #1462 [michael@schubert.cx]
140
+
141
+ * ActionMailer::Base subclasses are reloaded with the other rails components #1262
142
+
143
+ * Made the WEBrick adapter not use a mutex around action performance if ActionController::Base.allow_concurrency is true (default is false)
144
+
145
+ * Fixed that mailer generator generated fixtures/plural while units expected fixtures/singular #1457 [Scott Barron]
146
+
147
+ * Added a 'whiny nil' that's aim to ensure that when users pass nil to methods where that isn't appropriate, instead of NoMethodError? and the name of some method used by the framework users will see a message explaining what type of object was expected. Only active in test and development environments by default #1209 [Michael Koziarski]
148
+
149
+ * Fixed the test_helper.rb to be safe for requiring controllers from multiple spots, like app/controllers/article_controller.rb and app/controllers/admin/article_controller.rb, without reloading the environment twice #1390 [Nicholas Seckar]
150
+
151
+ * Fixed Webrick to escape + characters in URL's the same way that lighttpd and apache do #1397 [Nicholas Seckar]
152
+
153
+ * Added -e/--environment option to script/runner #1408 [fbeausoleil@ftml.net]
154
+
155
+ * Modernize the scaffold generator to use the simplified render and test methods and to change style from @params["id"] to params[:id]. #1367
156
+
157
+ * Added graceful exit from pressing CTRL-C during the run of the rails command #1150 [Caleb Tennis]
158
+
159
+ * Allow graceful exits for dispatch.fcgi processes by sending a SIGUSR1. If the process is currently handling a request, the request will be allowed to complete and then will terminate itself. If a request is not being handled, the process is terminated immediately (via #exit). This basically works like restart graceful on Apache. [Jamis Buck]
160
+
161
+ * Made dispatch.fcgi more robust by catching fluke errors and retrying unless its a permanent condition. [Jamis Buck]
162
+
163
+ * Added console --profile for profiling an IRB session #1154 [Jeremy Kemper]
164
+
165
+ * Changed console_sandbox into console --sandbox #1154 [Jeremy Kemper]
166
+
167
+
168
+ *0.12.1* (20th April, 2005)
169
+
170
+ * Upgraded to Active Record 1.10.1, Action Pack 1.8.1, Action Mailer 0.9.1, Action Web Service 0.7.1
171
+
172
+
173
+ *0.12.0* (19th April, 2005)
174
+
175
+ * Fixed that purge_test_database would use database settings from the development environment when recreating the test database #1122 [rails@cogentdude.com]
176
+
177
+ * Added script/benchmarker to easily benchmark one or more statement a number of times from within the environment. Examples:
178
+
179
+ # runs the one statement 10 times
180
+ script/benchmarker 10 'Person.expensive_method(10)'
181
+
182
+ # pits the two statements against each other with 50 runs each
183
+ script/benchmarker 50 'Person.expensive_method(10)' 'Person.cheap_method(10)'
184
+
185
+ * Added script/profiler to easily profile a single statement from within the environment. Examples:
186
+
187
+ script/profiler 'Person.expensive_method(10)'
188
+ script/profiler 'Person.expensive_method(10)' 10 # runs the statement 10 times
189
+
190
+ * Added Rake target clear_logs that'll truncate all the *.log files in log/ to zero #1079 [Lucas Carlson]
191
+
192
+ * Added lazy typing for generate, such that ./script/generate cn == ./script/generate controller and the likes #1051 [k@v2studio.com]
193
+
194
+ * Fixed that ownership is brought over in pg_dump during tests for PostgreSQL #1060 [pburleson@gmail.com]
195
+
196
+ * Upgraded to Active Record 1.10.0, Action Pack 1.8.0, Action Mailer 0.9.0, Action Web Service 0.7.0, Active Support 1.0.4
197
+
198
+
199
+ *0.11.1* (27th March, 2005)
200
+
201
+ * Fixed the dispatch.fcgi use of a logger
202
+
203
+ * Upgraded to Active Record 1.9.1, Action Pack 1.7.0, Action Mailer 0.8.1, Action Web Service 0.6.2, Active Support 1.0.3
204
+
205
+
206
+ *0.11.0* (22th March, 2005)
207
+
208
+ * Removed SCRIPT_NAME from the WEBrick environment to prevent conflicts with PATH_INFO #896 [Nicholas Seckar]
209
+
210
+ * Removed ?$1 from the dispatch.f/cgi redirect line to get rid of 'complete/path/from/request.html' => nil being in the @params now that the ENV["REQUEST_URI"] is used to determine the path #895 [dblack/Nicholas Seckar]
211
+
212
+ * Added additional error handling to the FastCGI dispatcher to catch even errors taking down the entire process
213
+
214
+ * Improved the generated scaffold code a lot to take advantage of recent Rails developments #882 [Tobias Luetke]
215
+
216
+ * Combined the script/environment.rb used for gems and regular files version. If vendor/rails/* has all the frameworks, then files version is used, otherwise gems #878 [Nicholas Seckar]
217
+
218
+ * Changed .htaccess to allow dispatch.* to be called from a sub-directory as part of the push with Action Pack to make Rails work on non-vhost setups #826 [Nicholas Seckar/Tobias Luetke]
219
+
220
+ * Added script/runner which can be used to run code inside the environment by eval'ing the first parameter. Examples:
221
+
222
+ ./script/runner 'ReminderService.deliver'
223
+ ./script/runner 'Mailer.receive(STDIN.read)'
224
+
225
+ This makes it easier to do CRON and postfix scripts without actually making a script just to trigger 1 line of code.
226
+
227
+ * Fixed webrick_server cookie handling to allow multiple cookes to be set at once #800, #813 [dave@cherryville.org]
228
+
229
+ * Fixed the Rakefile's interaction with postgresql to:
230
+
231
+ 1. Use PGPASSWORD and PGHOST in the environment to fix prompting for
232
+ passwords when connecting to a remote db and local socket connections.
233
+ 2. Add a '-x' flag to pg_dump which stops it dumping privileges #807 [rasputnik]
234
+ 3. Quote the user name and use template0 when dumping so the functions doesn't get dumped too #855 [pburleson]
235
+ 4. Use the port if available #875 [madrobby]
236
+
237
+ * Upgraded to Active Record 1.9.0, Action Pack 1.6.0, Action Mailer 0.8.0, Action Web Service 0.6.1, Active Support 1.0.2
238
+
239
+
240
+ *0.10.1* (7th March, 2005)
241
+
242
+ * Fixed rake stats to ignore editor backup files like model.rb~ #791 [skanthak]
243
+
244
+ * Added exception shallowing if the DRb server can't be started (not worth making a fuss about to distract new users) #779 [Tobias Luetke]
245
+
246
+ * Added an empty favicon.ico file to the public directory of new applications (so the logs are not spammed by its absence)
247
+
248
+ * Fixed that scaffold generator new template should use local variable instead of instance variable #778 [Dan Peterson]
249
+
250
+ * Allow unit tests to run on a remote server for PostgreSQL #781 [adamm@galacticasoftware.com]
251
+
252
+ * Added web_service generator (run ./script/generate web_service for help) #776 [Leon Bredt]
253
+
254
+ * Added app/apis and components to code statistics report #729 [Scott Barron]
255
+
256
+ * Fixed WEBrick server to use ABSOLUTE_RAILS_ROOT instead of working_directory #687 [Nicholas Seckar]
257
+
258
+ * Fixed rails_generator to be usable without RubyGems #686 [Cristi BALAN]
259
+
260
+ * Fixed -h/--help for generate and destroy generators #331
261
+
262
+ * Added begin/rescue around the FCGI dispatcher so no uncaught exceptions can bubble up to kill the process (logs to log/fastcgi.crash.log)
263
+
264
+ * Fixed that association#count would produce invalid sql when called sequentialy #659 [kanis@comcard.de]
265
+
266
+ * Fixed test/mocks/testing to the correct test/mocks/test #740
267
+
268
+ * Added early failure if the Ruby version isn't 1.8.2 or above #735
269
+
270
+ * Removed the obsolete -i/--index option from the WEBrick servlet #743
271
+
272
+ * Upgraded to Active Record 1.8.0, Action Pack 1.5.1, Action Mailer 0.7.1, Action Web Service 0.6.0, Active Support 1.0.1
273
+
274
+
275
+ *0.10.0* (24th February, 2005)
276
+
277
+ * Changed default IP binding for WEBrick from 127.0.0.1 to 0.0.0.0 so that the server is accessible both locally and remotely #696 [Marcel]
278
+
279
+ * Fixed that script/server -d was broken so daemon mode couldn't be used #687 [Nicholas Seckar]
280
+
281
+ * Upgraded to breakpoint 92 which fixes:
282
+
283
+ * overload IRB.parse_opts(), fixes #443
284
+ => breakpoints in tests work even when running them via rake
285
+ * untaint handlers, might fix an issue discussed on the Rails ML
286
+ * added verbose mode to breakpoint_client
287
+ * less noise caused by breakpoint_client by default
288
+ * ignored TerminateLineInput exception in signal handler
289
+ => quiet exit on Ctrl-C
290
+
291
+ * Added support for independent components residing in /components. Example:
292
+
293
+ Controller: components/list/items_controller.rb
294
+ (holds a List::ItemsController class with uses_component_template_root called)
295
+
296
+ Model : components/list/item.rb
297
+ (namespace is still shared, so an Item model in app/models will take precedence)
298
+
299
+ Views : components/list/items/show.rhtml
300
+
301
+
302
+ * Added --sandbox option to script/console that'll roll back all changes made to the database when you quit #672 [Jeremy Kemper]
303
+
304
+ * Added 'recent' as a rake target that'll run tests for files that changed in the last 10 minutes #612 [Jeremy Kemper]
305
+
306
+ * Changed script/console to default to development environment and drop --no-inspect #650 [Jeremy Kemper]
307
+
308
+ * Added that the 'fixture :posts' syntax can be used for has_and_belongs_to_many fixtures where a model doesn't exist #572 [Jeremy Kemper]
309
+
310
+ * Added that running test_units and test_functional now performs the clone_structure_to_test as well #566 [rasputnik]
311
+
312
+ * Added new generator framework that informs about its doings on generation and enables updating and destruction of generated artifacts. See the new script/destroy and script/update for more details #487 [Jeremy Kemper]
313
+
314
+ * Added Action Web Service as a new add-on framework for Action Pack [Leon Bredt]
315
+
316
+ * Added Active Support as an independent utility and standard library extension bundle
317
+
318
+ * Upgraded to Active Record 1.7.0, Action Pack 1.5.0, Action Mailer 0.7.0
319
+
320
+
321
+ *0.9.5* (January 25th, 2005)
322
+
323
+ * Fixed dependency reloading by switching to a remove_const approach where all Active Records, Active Record Observers, and Action Controllers are reloading by undefining their classes. This enables you to remove methods in all three types and see the change reflected immediately and it fixes #539. This also means that only those three types of classes will benefit from the const_missing and reloading approach. If you want other classes (like some in lib/) to reload, you must use require_dependency to do it.
324
+
325
+ * Added Florian Gross' latest version of Breakpointer and friends that fixes a variaty of bugs #441 [Florian Gross]
326
+
327
+ * Fixed skeleton Rakefile to work with sqlite3 out of the box #521 [rasputnik]
328
+
329
+ * Fixed that script/breakpointer didn't get the Ruby path rewritten as the other scripts #523 [brandt@kurowski.net]
330
+
331
+ * Fixed handling of syntax errors in models that had already been succesfully required once in the current interpreter
332
+
333
+ * Fixed that models that weren't referenced in associations weren't being reloaded in the development mode by reinstating the reload
334
+
335
+ * Fixed that generate scaffold would produce bad functional tests
336
+
337
+ * Fixed that FCGI can also display SyntaxErrors
338
+
339
+ * Upgraded to Active Record 1.6.0, Action Pack 1.4.0
340
+
341
+
342
+ *0.9.4.1* (January 18th, 2005)
343
+
344
+ * Added 5-second timeout to WordNet alternatives on creating reserved-word models #501 [Marcel Molina]
345
+
346
+ * Fixed binding of caller #496 [Alexey]
347
+
348
+ * Upgraded to Active Record 1.5.1, Action Pack 1.3.1, Action Mailer 0.6.1
349
+
350
+
351
+ *0.9.4* (January 17th, 2005)
352
+
353
+ * Added that ApplicationController will catch a ControllerNotFound exception if someone attempts to access a url pointing to an unexisting controller [Tobias Luetke]
354
+
355
+ * Flipped code-to-test ratio around to be more readable #468 [Scott Baron]
356
+
357
+ * Fixed log file permissions to be 666 instead of 777 (so they're not executable) #471 [Lucas Carlson]
358
+
359
+ * Fixed that auto reloading would some times not work or would reload the models twice #475 [Tobias Luetke]
360
+
361
+ * Added rewrite rules to deal with caching to public/.htaccess
362
+
363
+ * Added the option to specify a controller name to "generate scaffold" and made the default controller name the plural form of the model.
364
+
365
+ * Added that rake clone_structure_to_test, db_structure_dump, and purge_test_database tasks now pick up the source database to use from
366
+ RAILS_ENV instead of just forcing development #424 [Tobias Luetke]
367
+
368
+ * Fixed script/console to work with Windows (that requires the use of irb.bat) #418 [octopod]
369
+
370
+ * Fixed WEBrick servlet slowdown over time by restricting the load path reloading to mod_ruby
371
+
372
+ * Removed Fancy Indexing as a default option on the WEBrick servlet as it made it harder to use various caching schemes
373
+
374
+ * Upgraded to Active Record 1.5, Action Pack 1.3, Action Mailer 0.6
375
+
376
+
377
+ *0.9.3* (January 4th, 2005)
378
+
379
+ * Added support for SQLite in the auto-dumping/importing of schemas for development -> test #416
380
+
381
+ * Added automated rewriting of the shebang lines on installs through the gem rails command #379 [Manfred Stienstra]
382
+
383
+ * Added ActionMailer::Base.deliver_method = :test to the test environment so that mail objects are available in ActionMailer::Base.deliveries
384
+ for functional testing.
385
+
386
+ * Added protection for creating a model through the generators with a name of an existing class, like Thread or Date.
387
+ It'll even offer you a synonym using wordnet.princeton.edu as a look-up. No, I'm not kidding :) [Florian Gross]
388
+
389
+ * Fixed dependency management to happen in a unified fashion for Active Record and Action Pack using the new Dependencies module. This means that
390
+ the environment options needs to change from:
391
+
392
+ Before in development.rb:
393
+ ActionController::Base.reload_dependencies = true  
394
+ ActiveRecord::Base.reload_associations     = true
395
+
396
+ Now in development.rb:
397
+ Dependencies.mechanism = :load
398
+
399
+ Before in production.rb and test.rb:
400
+ ActionController::Base.reload_dependencies = false
401
+ ActiveRecord::Base.reload_associations     = false
402
+
403
+ Now in production.rb and test.rb:
404
+ Dependencies.mechanism = :require
405
+
406
+ * Fixed problems with dependency caching and controller hierarchies on Ruby 1.8.2 in development mode #351
407
+
408
+ * Fixed that generated action_mailers doesnt need to require the action_mailer since thats already done in the environment #382 [Lucas Carlson]
409
+
410
+ * Upgraded to Action Pack 1.2.0 and Active Record 1.4.0
411
+
412
+
413
+ *0.9.2*
414
+
415
+ * Fixed CTRL-C exists from the Breakpointer to be a clean affair without error dumping [Kent Sibilev]
416
+
417
+ * Fixed "rake stats" to work with sub-directories in models and controllers and to report the code to test ration [Scott Baron]
418
+
419
+ * Added that Active Record associations are now reloaded instead of cleared to work with the new const_missing hook in Active Record.
420
+
421
+ * Added graceful handling of an inaccessible log file by redirecting output to STDERR with a warning #330 [rainmkr]
422
+
423
+ * Added support for a -h/--help parameter in the generator #331 [Ulysses]
424
+
425
+ * Fixed that File.expand_path in config/environment.rb would fail when dealing with symlinked public directories [mjobin]
426
+
427
+ * Upgraded to Action Pack 1.1.0 and Active Record 1.3.0
428
+
429
+
430
+ *0.9.1*
431
+
432
+ * Upgraded to Action Pack 1.0.1 for important bug fix
433
+
434
+ * Updated gem dependencies
435
+
436
+
437
+ *0.9.0*
438
+
439
+ * Renamed public/dispatch.servlet to script/server -- it wasn't really dispatching anyway as its delegating calls to public/dispatch.rb
440
+
441
+ * Renamed AbstractApplicationController and abstract_application.rb to ApplicationController and application.rb, so that it will be possible
442
+ for the framework to automatically pick up on app/views/layouts/application.rhtml and app/helpers/application.rb
443
+
444
+ * Added script/console that makes it even easier to start an IRB session for interacting with the domain model. Run with no-args to
445
+ see help.
446
+
447
+ * Added breakpoint support through the script/breakpointer client. This means that you can break out of execution at any point in
448
+ the code, investigate and change the model, AND then resume execution! Example:
449
+
450
+ class WeblogController < ActionController::Base
451
+ def index
452
+ @posts = Post.find_all
453
+ breakpoint "Breaking out from the list"
454
+ end
455
+ end
456
+
457
+ So the controller will accept the action, run the first line, then present you with a IRB prompt in the breakpointer window.
458
+ Here you can do things like:
459
+
460
+ Executing breakpoint "Breaking out from the list" at .../webrick_server.rb:16 in 'breakpoint'
461
+
462
+ >> @posts.inspect
463
+ => "[#<Post:0x14a6be8 @attributes={\"title\"=>nil, \"body\"=>nil, \"id\"=>\"1\"}>,
464
+ #<Post:0x14a6620 @attributes={\"title\"=>\"Rails you know!\", \"body\"=>\"Only ten..\", \"id\"=>\"2\"}>]"
465
+ >> @posts.first.title = "hello from a breakpoint"
466
+ => "hello from a breakpoint"
467
+
468
+ ...and even better is that you can examine how your runtime objects actually work:
469
+
470
+ >> f = @posts.first
471
+ => #<Post:0x13630c4 @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>
472
+ >> f.
473
+ Display all 152 possibilities? (y or n)
474
+
475
+ Finally, when you're ready to resume execution, you press CTRL-D
476
+
477
+ * Changed environments to be configurable through an environment variable. By default, the environment is "development", but you
478
+ can change that and set your own by configuring the Apache vhost with a string like (mod_env must be available on the server):
479
+
480
+ SetEnv RAILS_ENV production
481
+
482
+ ...if you're using WEBrick, you can pick the environment to use with the command-line parameters -e/--environment, like this:
483
+
484
+ ruby public/dispatcher.servlet -e production
485
+
486
+ * Added a new default environment called "development", which leaves the production environment to be tuned exclusively for that.
487
+
488
+ * Added a start_server in the root of the Rails application to make it even easier to get started
489
+
490
+ * Fixed public/.htaccess to use RewriteBase and share the same rewrite rules for all the dispatch methods
491
+
492
+ * Fixed webrick_server to handle requests in a serialized manner (the Rails reloading infrastructure is not thread-safe)
493
+
494
+ * Added support for controllers in directories. So you can have:
495
+
496
+ app/controllers/account_controller.rb # URL: /account/
497
+ app/controllers/admin/account_controller.rb # URL: /admin/account/
498
+
499
+ NOTE: You need to update your public/.htaccess with the new rules to pick it up
500
+
501
+ * Added reloading for associations and dependencies under cached environments like FastCGI and mod_ruby. This makes it possible to use
502
+ those environments for development. This is turned on by default, but can be turned off with
503
+ ActiveRecord::Base.reload_associations = false and ActionController::Base.reload_dependencies = false in production environments.
504
+
505
+ * Added support for sub-directories in app/models. So now you can have something like Basecamp with:
506
+
507
+ app/models/accounting
508
+ app/models/project
509
+ app/models/participants
510
+ app/models/settings
511
+
512
+ It's poor man's namespacing, but only for file-system organization. You still require files just like before.
513
+ Nothing changes inside the files themselves.
514
+
515
+
516
+ * Fixed a few references in the tests generated by new_mailer [Jeremy Kemper]
517
+
518
+ * Added support for mocks in testing with test/mocks
519
+
520
+ * Cleaned up the environments a bit and added global constant RAILS_ROOT
521
+
522
+
523
+ *0.8.5* (9)
524
+
525
+ * Made dev-util available to all tests, so you can insert breakpoints in any test case to get an IRB prompt at that point [Jeremy Kemper]:
526
+
527
+ def test_complex_stuff
528
+ @david.projects << @new_project
529
+ breakpoint "Let's have a closer look at @david"
530
+ end
531
+
532
+ You need to install dev-utils yourself for this to work ("gem install dev-util").
533
+
534
+ * Added shared generator behavior so future upgrades should be possible without manually copying over files [Jeremy Kemper]
535
+
536
+ * Added the new helper style to both controller and helper templates [Jeremy Kemper]
537
+
538
+ * Added new_crud generator for creating a model and controller at the same time with explicit scaffolding [Jeremy Kemper]
539
+
540
+ * Added configuration of Test::Unit::TestCase.fixture_path to test_helper to concide with the new AR fixtures style
541
+
542
+ * Fixed that new_model was generating singular table/fixture names
543
+
544
+ * Upgraded to Action Mailer 0.4.0
545
+
546
+ * Upgraded to Action Pack 0.9.5
547
+
548
+ * Upgraded to Active Record 1.1.0
549
+
550
+
551
+ *0.8.0 (15)*
552
+
553
+ * Removed custom_table_name option for new_model now that the Inflector is as powerful as it is
554
+
555
+ * Changed the default rake action to just do testing and separate API generation and coding statistics into a "doc" task.
556
+
557
+ * Fixed WEBrick dispatcher to handle missing slashes in the URLs gracefully [alexey]
558
+
559
+ * Added user option for all postgresql tool calls in the rakefile [elvstone]
560
+
561
+ * Fixed problem with running "ruby public/dispatch.servlet" instead of "cd public; ruby dispatch.servlet" [alexey]
562
+
563
+ * Fixed WEBrick server so that it no longer hardcodes the ruby interpreter used to "ruby" but will get the one used based
564
+ on the Ruby runtime configuration. [Marcel Molina Jr.]
565
+
566
+ * Fixed Dispatcher so it'll route requests to magic_beans to MagicBeansController/magic_beans_controller.rb [Caio Chassot]
567
+
568
+ * "new_controller MagicBeans" and "new_model SubscriptionPayments" will now both behave properly as they use the new Inflector.
569
+
570
+ * Fixed problem with MySQL foreign key constraint checks in Rake :clone_production_structure_to_test target [Andreas Schwarz]
571
+
572
+ * Changed WEBrick server to by default be auto-reloading, which is slower but makes source changes instant.
573
+ Class compilation cache can be turned on with "-c" or "--cache-classes".
574
+
575
+ * Added "-b/--binding" option to WEBrick dispatcher to bind the server to a specific IP address (default: 127.0.0.1) [Kevin Temp]
576
+
577
+ * dispatch.fcgi now DOESN'T set FCGI_PURE_RUBY as it was slowing things down for now reason [Andreas Schwarz]
578
+
579
+ * Added new_mailer generator to work with Action Mailer
580
+
581
+ * Included new framework: Action Mailer 0.3
582
+
583
+ * Upgraded to Action Pack 0.9.0
584
+
585
+ * Upgraded to Active Record 1.0.0
586
+
587
+
588
+ *0.7.0*
589
+
590
+ * Added an optional second argument to the new_model script that allows the programmer to specify the table name,
591
+ which will used to generate a custom table_name method in the model and will also be used in the creation of fixtures.
592
+ [Kevin Radloff]
593
+
594
+ * script/new_model now turns AccountHolder into account_holder instead of accountholder [Kevin Radloff]
595
+
596
+ * Fixed the faulty handleing of static files with WEBrick [Andreas Schwarz]
597
+
598
+ * Unified function_test_helper and unit_test_helper into test_helper
599
+
600
+ * Fixed bug with the automated production => test database dropping on PostgreSQL [dhawkins]
601
+
602
+ * create_fixtures in both the functional and unit test helper now turns off the log during fixture generation
603
+ and can generate more than one fixture at a time. Which makes it possible for assignments like:
604
+
605
+ @people, @projects, @project_access, @companies, @accounts =
606
+ create_fixtures "people", "projects", "project_access", "companies", "accounts"
607
+
608
+ * Upgraded to Action Pack 0.8.5 (locally-scoped variables, partials, advanced send_file)
609
+
610
+ * Upgraded to Active Record 0.9.5 (better table_name guessing, cloning, find_all_in_collection)
611
+
612
+
613
+ *0.6.5*
614
+
615
+ * No longer specifies a template for rdoc, so it'll use whatever is default (you can change it in the rakefile)
616
+
617
+ * The new_model generator will now use the same rules for plural wordings as Active Record
618
+ (so Category will give categories, not categorys) [Kevin Radloff]
619
+
620
+ * dispatch.fcgi now sets FCGI_PURE_RUBY to true to ensure that it's the Ruby version that's loaded [danp]
621
+
622
+ * Made the GEM work with Windows
623
+
624
+ * Fixed bug where mod_ruby would "forget" the load paths added when switching between controllers
625
+
626
+ * PostgreSQL are now supported for the automated production => test database dropping [Kevin Radloff]
627
+
628
+ * Errors thrown by the dispatcher are now properly handled in FCGI.
629
+
630
+ * Upgraded to Action Pack 0.8.0 (lots and lots and lots of fixes)
631
+
632
+ * Upgraded to Active Record 0.9.4 (a bunch of fixes)
633
+
634
+
635
+ *0.6.0*
636
+
637
+ * Added AbstractionApplicationController as a superclass for all controllers generated. This class can be used
638
+ to carry filters and methods that are to be shared by all. It has an accompanying ApplicationHelper that all
639
+ controllers will also automatically have available.
640
+
641
+ * Added environments that can be included from any script to get the full Active Record and Action Controller
642
+ context running. This can be used by maintenance scripts or to interact with the model through IRB. Example:
643
+
644
+ require 'config/environments/production'
645
+
646
+ for account in Account.find_all
647
+ account.recalculate_interests
648
+ end
649
+
650
+ A short migration script for an account model that had it's interest calculation strategy changed.
651
+
652
+ * Accessing the index of a controller with "/weblog" will now redirect to "/weblog/" (only on Apache, not WEBrick)
653
+
654
+ * Simplified the default Apache config so even remote requests are served off CGI as a default.
655
+ You'll now have to do something specific to activate mod_ruby and FCGI (like using the force urls).
656
+ This should make it easier for new comers that start on an external server.
657
+
658
+ * Added more of the necessary Apache options to .htaccess to make it easier to setup
659
+
660
+ * Upgraded to Action Pack 0.7.9 (lots of fixes)
661
+
662
+ * Upgraded to Active Record 0.9.3 (lots of fixes)
663
+
664
+
665
+ *0.5.7*
666
+
667
+ * Fixed bug in the WEBrick dispatcher that prevented it from getting parameters from the URL
668
+ (through GET requests or otherwise)
669
+
670
+ * Added lib in root as a place to store app specific libraries
671
+
672
+ * Added lib and vendor to load_path, so anything store within can be loaded directly.
673
+ Hence lib/redcloth.rb can be loaded with require "redcloth"
674
+
675
+ * Upgraded to Action Pack 0.7.8 (lots of fixes)
676
+
677
+ * Upgraded to Active Record 0.9.2 (minor upgrade)
678
+
679
+
680
+ *0.5.6*
681
+
682
+ * Upgraded to Action Pack 0.7.7 (multipart form fix)
683
+
684
+ * Updated the generated template stubs to valid XHTML files
685
+
686
+ * Ensure that controllers generated are capitalized, so "new_controller TodoLists"
687
+ gives the same as "new_controller Todolists" and "new_controller todolists".
688
+
689
+
690
+ *0.5.5*
691
+
692
+ * Works on Windows out of the box! (Dropped symlinks)
693
+
694
+ * Added webrick dispatcher: Try "ruby public/dispatch.servlet --help" [Florian Gross]
695
+
696
+ * Report errors about initialization to browser (instead of attempting to use uninitialized logger)
697
+
698
+ * Upgraded to Action Pack 0.7.6
699
+
700
+ * Upgraded to Active Record 0.9.1
701
+
702
+ * Added distinct 500.html instead of reusing 404.html
703
+
704
+ * Added MIT license
705
+
706
+
707
+ *0.5.0*
708
+
709
+ * First public release