parlement 0.10 → 0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. data/CHANGES +11 -0
  2. data/MEMORY +9 -1
  3. data/README +5 -4
  4. data/app/controllers/account_controller.rb +10 -13
  5. data/app/controllers/application.rb +4 -5
  6. data/app/controllers/elt_controller.rb +9 -7
  7. data/app/controllers/person_controller.rb +1 -3
  8. data/app/controllers/subscriber_controller.rb +10 -10
  9. data/app/helpers/elt_helper.rb +2 -0
  10. data/app/models/elt.rb +28 -19
  11. data/app/models/mail.rb +26 -14
  12. data/app/models/mail_notify.rb +5 -4
  13. data/app/models/person.rb +11 -2
  14. data/app/views/account/_login.rhtml +3 -3
  15. data/app/views/account/_show.rhtml +12 -14
  16. data/app/views/elt/_choice.rhtml +3 -3
  17. data/app/views/elt/_elt.rhtml +4 -4
  18. data/app/views/elt/_list.rhtml +2 -2
  19. data/app/views/elt/_listByDate.rhtml +1 -1
  20. data/app/views/elt/_listByVote.rhtml +1 -1
  21. data/app/views/elt/new.rhtml +3 -3
  22. data/app/views/elt/show.rhtml +2 -2
  23. data/app/views/layouts/top.rhtml +6 -0
  24. data/app/views/mail_notify/publish.text.html.rhtml +1 -1
  25. data/app/views/person/_listElts.rhtml +5 -3
  26. data/app/views/person/show.rhtml +1 -2
  27. data/config/boot.rb +5 -4
  28. data/config/environment.rb +6 -4
  29. data/config/routes.rb +3 -2
  30. data/db/development_structure.sql +15 -4
  31. data/db/migrate/006_last_activity.rb +10 -0
  32. data/db/schema.rb +67 -49
  33. data/public/dispatch.fcgi +1 -0
  34. data/public/javascripts/controls.js +41 -23
  35. data/public/javascripts/dragdrop.js +317 -99
  36. data/public/javascripts/effects.js +301 -166
  37. data/public/javascripts/prototype.js +932 -402
  38. data/public/stylesheets/default.css +3 -2
  39. data/test/unit/elt_test.rb +13 -0
  40. data/test/unit/mail_test.rb +3 -1
  41. data/vendor/plugins/engines/CHANGELOG +203 -99
  42. data/vendor/plugins/engines/MIT-LICENSE +1 -1
  43. data/vendor/plugins/engines/README +32 -384
  44. data/vendor/plugins/engines/Rakefile +14 -0
  45. data/vendor/plugins/engines/UPGRADING +93 -0
  46. data/vendor/plugins/engines/about.yml +7 -0
  47. data/vendor/plugins/engines/generators/plugin_migration/USAGE +45 -0
  48. data/vendor/plugins/engines/generators/plugin_migration/plugin_migration_generator.rb +79 -0
  49. data/vendor/plugins/engines/generators/plugin_migration/templates/plugin_migration.erb +13 -0
  50. data/vendor/plugins/engines/init.rb +34 -47
  51. data/vendor/plugins/engines/install.rb +32 -0
  52. data/vendor/plugins/engines/lib/engines/{ruby_extensions.rb → deprecated_config_support.rb} +135 -113
  53. data/vendor/plugins/engines/lib/engines/plugin.rb +214 -0
  54. data/vendor/plugins/engines/lib/engines/plugin_list.rb +31 -0
  55. data/vendor/plugins/engines/lib/engines/plugin_migrator.rb +60 -0
  56. data/vendor/plugins/engines/lib/engines/rails_extensions/active_record.rb +19 -0
  57. data/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb +143 -0
  58. data/vendor/plugins/engines/lib/engines/rails_extensions/migrations.rb +155 -0
  59. data/vendor/plugins/engines/lib/engines/rails_extensions/public_asset_helpers.rb +116 -0
  60. data/vendor/plugins/engines/lib/engines/rails_extensions/rails.rb +20 -0
  61. data/vendor/plugins/engines/lib/engines/rails_extensions/rails_initializer.rb +86 -0
  62. data/vendor/plugins/engines/lib/engines/rails_extensions/routing.rb +77 -0
  63. data/vendor/plugins/engines/lib/engines/rails_extensions/templates.rb +140 -0
  64. data/vendor/plugins/engines/lib/engines/rails_extensions.rb +6 -0
  65. data/vendor/plugins/engines/lib/engines/testing.rb +88 -0
  66. data/vendor/plugins/engines/lib/engines.rb +281 -425
  67. data/vendor/plugins/engines/tasks/engines.rake +108 -137
  68. metadata +218 -250
  69. data/db/ROOT/perso.txt +0 -214
  70. data/public/images/indicator.gif +0 -0
  71. data/public/images/orange_by_darren_Hester_350o.jpg +0 -0
  72. data/public/images/smile.png +0 -0
  73. data/vendor/plugins/engines/generators/engine/USAGE +0 -26
  74. data/vendor/plugins/engines/generators/engine/engine_generator.rb +0 -199
  75. data/vendor/plugins/engines/generators/engine/templates/README +0 -85
  76. data/vendor/plugins/engines/generators/engine/templates/init_engine.erb +0 -15
  77. data/vendor/plugins/engines/generators/engine/templates/install.erb +0 -4
  78. data/vendor/plugins/engines/generators/engine/templates/lib/engine.erb +0 -6
  79. data/vendor/plugins/engines/generators/engine/templates/licenses/GPL +0 -18
  80. data/vendor/plugins/engines/generators/engine/templates/licenses/LGPL +0 -19
  81. data/vendor/plugins/engines/generators/engine/templates/licenses/MIT +0 -22
  82. data/vendor/plugins/engines/generators/engine/templates/licenses/None +0 -1
  83. data/vendor/plugins/engines/generators/engine/templates/public/javascripts/engine.js +0 -0
  84. data/vendor/plugins/engines/generators/engine/templates/public/stylesheets/engine.css +0 -0
  85. data/vendor/plugins/engines/generators/engine/templates/tasks/engine.rake +0 -0
  86. data/vendor/plugins/engines/generators/engine/templates/test/test_helper.erb +0 -17
  87. data/vendor/plugins/engines/lib/bundles/require_resource.rb +0 -124
  88. data/vendor/plugins/engines/lib/bundles.rb +0 -77
  89. data/vendor/plugins/engines/lib/engines/action_mailer_extensions.rb +0 -140
  90. data/vendor/plugins/engines/lib/engines/action_view_extensions.rb +0 -141
  91. data/vendor/plugins/engines/lib/engines/active_record_extensions.rb +0 -21
  92. data/vendor/plugins/engines/lib/engines/dependencies_extensions.rb +0 -129
  93. data/vendor/plugins/engines/lib/engines/migration_extensions.rb +0 -53
  94. data/vendor/plugins/engines/lib/engines/routing_extensions.rb +0 -28
  95. data/vendor/plugins/engines/lib/engines/testing_extensions.rb +0 -327
  96. data/vendor/plugins/engines/tasks/deprecated_engines.rake +0 -7
  97. data/vendor/plugins/engines/test/action_view_extensions_test.rb +0 -9
  98. data/vendor/plugins/engines/test/ruby_extensions_test.rb +0 -115
  99. data/vendor/plugins/guid/README.TXT +0 -29
  100. data/vendor/plugins/guid/init.rb +0 -30
  101. data/vendor/plugins/guid/lib/usesguid.rb +0 -37
  102. data/vendor/plugins/guid/lib/uuid22.rb +0 -43
  103. data/vendor/plugins/guid/lib/uuidtools.rb +0 -572
  104. data/vendor/plugins/responds_to_parent/MIT-LICENSE +0 -20
  105. data/vendor/plugins/responds_to_parent/README +0 -42
  106. data/vendor/plugins/responds_to_parent/Rakefile +0 -22
  107. data/vendor/plugins/responds_to_parent/init.rb +0 -1
  108. data/vendor/plugins/responds_to_parent/lib/responds_to_parent.rb +0 -46
  109. data/vendor/plugins/responds_to_parent/test/responds_to_parent_test.rb +0 -115
@@ -14,6 +14,7 @@ body {
14
14
  color: black;
15
15
  padding: 0 3%;
16
16
  background: white;
17
+ font-size: smaller;
17
18
  margin: 3em 4% 4% 4%; }
18
19
 
19
20
  /* _ _ _ _ _
@@ -300,7 +301,7 @@ blockquote {
300
301
  margin: 0 1%;
301
302
  padding: 0 1%;
302
303
  font-size: smaller;
303
- border-left: solid thin blue;
304
+ border-left: solid 4px #aaf;
304
305
  background: #ddd url("/images/eltBackground.jng") repeat-x;
305
306
  /* So that IE doesn't go into some strange mode */
306
307
  _background: #ddd; }
@@ -359,7 +360,7 @@ label.selected, .choice label:hover { border: solid 3px; }
359
360
  .eltSub, .eltNew {
360
361
  margin-left: 1%;
361
362
  padding-left: 1%;
362
- border-left: solid 0.4em #fd8;
363
+ border-left: solid 0.4em #ffc;
363
364
  border-bottom: solid 1px #fd8; }
364
365
 
365
366
  .eltMore {
@@ -46,5 +46,18 @@ class EltTest < Test::Unit::TestCase
46
46
 
47
47
  assert_equal 3, e.position
48
48
  end
49
+
50
+ def test_last_activity
51
+ e = @elt.children.new
52
+ e.subject = "Test de position"
53
+ e.body = "position: 3.0"
54
+ e.save
55
+ @elt.add_child e
56
+ e.publish
57
+
58
+ assert_equal e.created_on, e.last_activity
59
+ assert_equal e.created_on, e.parent.last_activity
60
+ assert_equal e.created_on, e.parent.parent.last_activity
61
+ end
49
62
  end
50
63
 
@@ -205,7 +205,9 @@ class MailTest < Test::Unit::TestCase
205
205
  mailFile = TMail::Mail.parse(read_fixture('accents').to_s)
206
206
  elt = Mail.receive(mailFile).elt
207
207
 
208
- #print mailFile.to_yaml
208
+ mailFile.to[0] = mailFile.to[0].gsub(/\"/, '')
209
+ #print mailFile.to[0]
210
+ assert_equal "test@leparlement.org", mailFile.to[0]
209
211
  #puts
210
212
  #puts mailFile.type_param('charset')
211
213
 
@@ -1,137 +1,241 @@
1
- *SVN*
1
+ = 1.2.0 - MASSIVE INTERNAL REFACTORING
2
2
 
3
3
 
4
- -----
5
- 1.1.4
4
+ * !!!Support for Rails < 1.2 has been dropped!!!; if you are using Rails =< 1.1.6, please use Engines 1.1.6, available from http://svn.rails-engines.org/engines/tags/rel_1.1.6
6
5
 
7
- Fixed creation of multipart emails (Ticket #190)
8
- Added a temporary fix to the code-mixing issue. In your engine's test/test_helper.rb, please add the following lines:
6
+ * Engines are dead! Long live plugins! There is now no meaningful notion of an engine - all plugins can take advantage of the more powerful features that the engines plugin provides by including app directories, etc.
9
7
 
10
- # Ensure that the code mixing and view loading from the application is disabled
11
- Engines.disable_app_views_loading = true
12
- Engines.disable_app_code_mixing = true
8
+ * Init_engine.rb is no longer used; please use the plugin-standard init.rb instead.
13
9
 
14
- is will prevent code mixing for controllers and helpers, and loading views from the application. One thing to remember is to load any controllers/helpers using 'require_or_load' in your tests, to ensure that the engine behaviour is respected (Ticket #135)
15
- Added tasks to easily test engines individually (Ticket #120)
16
- Fixture extensions will now fail with an exception if the corresponding class cannot be loaded (Ticket #138)
17
- Patch for new routing/controller loading in Rails 1.1.6. The routing code is now replaced with the contents of config.controller_paths, along with controller paths from any started engines (Ticket #196)
18
- Rails' Configuration instance is now stored, and available from all engines and plugins.
10
+ * Engines.start is no longer required; please use the config.plugins array provided by Rails instead
19
11
 
12
+ * To get the most benefit from Engines, set config.plugins to ["engines", "*"] to load the engines plugin first, and then all other plugins in their normal order after.
20
13
 
21
- -----
22
- 1.1.3
14
+ * Access all loaded plugins via the new Rails.plugins array, and by name using Rails.plugins[:plugin_name].
23
15
 
24
- Fixed README to show 'models' rather than 'model' class (Ticket #167)
25
- Fixed dependency loading to work with Rails 1.1.4 (Ticket #180)
16
+ * Access plugin metadata loaded automatically from about.yml: Rails.plugins[:name].about. Plugin#version is provided directly, for easy access.
26
17
 
18
+ * Module.config is has been removed - use mattr_accessor instead, and initialize your default values via the init.rb mechanism.
27
19
 
28
- -----
29
- 1.1.2
20
+ * Public asset helpers have been rewritten; instead of engine_stylesheet, now use stylesheet_link_tag :name, :plugin => "plugin_name"
30
21
 
31
- Added better fix to version checking (Ticket #130, jdell@gbdev.com).
32
- Fixed generated init_engine.rb so that VERSION module doesn't cause probems (Ticket #131, japgolly@gmail.com)
33
- Fixed error with Rails 1.0 when trying to ignore the engine_schema_info table (Ticket #132, snowblink@gmail.com)
34
- Re-added old style rake tasks (Ticket #133)
35
- No longer adding all subdirectories of <engine>/app or <engine>/lib, as this can cause issues when files are grouped in modules (Ticket #149, kasatani@gmail.com)
36
- Fixed engine precidence ordering for Rails 1.1 (Ticket #146)
37
- Added new Engines.each method to assist in processing the engines in the desired order (Ticket #146)
38
- Fixed annoying error message at appears when starting the console in development mode (Ticket #134)
39
- Engines is now super-careful about loading the correct version of Rails from vendor (Ticket #154)
22
+ * Plugin migrations have been reworked to integrate into the main migration stream. Please run script/generate plugin_migration to create plugin migrations in your main application.
40
23
 
24
+ * The fixture method for loading fixtures against any class has been removed; instead, engines will now provide a mechanism for loading fixtures from all plugins, by mirroring fixtures into a common location.
41
25
 
42
- -----
43
- 1.1.1
26
+ * All references to engines have been removed; For example, any rake tasks which applied to engines now apply to all plugins. The default Rails rake tasks for plugins are overridden where necessary.
44
27
 
45
- Fixed migration rake task failing when given a specific version (Ticket #115)
46
- Added new rake task "test:engines" which will test engines (and other plugins) but ensure that the test database is cloned from development beforehand (Ticket #125)
47
- Fixed issue where 'engine_schema_info' table was included in schema dumps (Ticket #87)
48
- Fixed multi-part emails (Ticket #121)
49
- Added an 'install.rb' file to new engines created by the bundled generator, which installs the engines plugin automatically if it doesn't already exist (Ticket #122)
50
- Added a default VERSION module to generated engines (Ticket #123)
51
- Refactored copying of engine's public files to a method of an Engine instance. You can now call Engines.get(:engine_name).copy_public_files (Ticket #108)
52
- Changed engine generator templates from .rb files to .erb files (Ticket #106)
53
- Fixed the test_helper.erb file to use the correct testing extensions and not load any schema - the schema will be cloned automatically via rake test:engines
54
- Fixed problem when running with Rails 1.1.1 where version wasn't determined correctly (Ticket #129)
55
- Fixed bug preventing engines from loading when both Rails 1.1.0 and 1.1.1 gems are installed and in use.
56
- Updated version (d'oh!)
28
+ * Layouts can now be shared via plugins - inspiration gratefully taken from PluginAWeek's plugin_routing :)
57
29
 
30
+ * Actual routing from plugins is now possible, by including routes.rb in your plugin directory and using the from_plugin method in config/routes.rb (Ticket #182)
58
31
 
59
- -----
60
- 1.1.0
32
+ * Controllers are no longer loaded twice if they're not present in the normal app/ directory (Ticket #177)
61
33
 
62
- Improved regexp matching for Rails 1.0 engines with peculiar paths
63
- Engine instance objects can be accessed via Engines[:name], an alias for Engines.get(:name) (Ticket #99)
64
- init_engine.rb is now processed as the final step in the Engine.start process, so it can access files within the lib directory, which is now in the $LOAD_PATH at that point. (Ticket #99)
65
- Clarified MIT license (Ticket #98)
66
- Updated Rake tasks to integrate smoothly with Rails 1.1 namespaces
67
- Changed the version to "1.1.0 (svn)"
68
- Added more information about using the plugin with Edge Rails to the README
69
- moved extensions into lib/engines/ directory to enable use of Engines module in extension code.
70
- Added conditional require_or_load method which attempts to detect the current Rails version. To use the Edge Rails version of the loading mechanism, add the line:
71
- Engines.config :edge, true
72
- to your environment.rb file.
73
- Merged changes from /branches/edge and /branches/rb_1.0 into /trunk
74
- engine_schema_info now respects the prefix/suffixes set for ActiveRecord::Base (Ticket #67)
75
- added ActiveRecord::Base.wrapped_table_name(name) method to assist in determining the correct table name
34
+ * The preferred location for javascripts/stylesheets/etc is now 'assets' rather than 'public'
76
35
 
36
+ * Ensure that plugins started before routing have their controllers appropriately added to config.controller_paths (Ticket #258)
77
37
 
78
- -----
79
- 1.0.6
38
+ * Removed Engines.version - it's not longer relevant, now we're loading version information from about.yml files.
80
39
 
81
- Added ability to determine version information for engines: rake engine_info
82
- Added a custom logger for the Engines module, to stop pollution of the Rails logs.
83
- Added some more tests (in particular, see rails_engines/applications/engines_test).
84
- Another attempt at solving Ticket #53 - controllers and helpers should now be loadable from modules, and if a full path (including RAILS_ROOT/ENGINES_ROOT) is given, it should be safely stripped from the require filename such that corresponding files can be located in any active engines. In other words, controller/helper overloading should now completely work, even if the controllers/helpers are in modules.
85
- Added (finally) patch from Ticket #22 - ActionMailer helpers should now load
86
- Removed support for Engines.start :engine, :engine_name => 'whatever'. It was pointless.
87
- Fixed engine name referencing; engine_stylesheet/engine_javascript can now happily use shorthand engine names (i.e. :test == :test_engine) (Ticket #45)
88
- Fixed minor documentation error ('Engine.start' ==> 'Engines.start') (Ticket #57)
89
- Fixed double inclusion of RAILS_ROOT in engine_migrate rake task (Ticket #61)
90
- Added ability to force config values even if given as a hash (Ticket #62)
40
+ * Added a huge amount of documentation to all new modules.
91
41
 
42
+ * Added new warning message if installation of engines 1.2.x is attempted in a Rails 1.1.x application
92
43
 
93
- -----
94
- 1.0.5
44
+ * Added details of the removal of the config method to UPGRADING
95
45
 
96
- Fixed bug stopping fixtures from loading with PostgreSQL
46
+ * Removed the plugins:info rake task in favour of adding information to script/about via the Rails::Info module (Ticket #261)
97
47
 
48
+ * Improved handling of testing and documentation tasks for plugins
98
49
 
99
- -----
100
- 1.0.4
101
50
 
102
- Another attempt at loading controllers within modules (Ticket #56)
103
51
 
52
+ = 1.1.4
104
53
 
105
- -----
106
- 1.0.3
54
+ * Fixed creation of multipart emails (Ticket #190)
107
55
 
108
- Fixed serious dependency bug stopping controllers being loaded (Ticket #56)
56
+ * Added a temporary fix to the code-mixing issue. In your engine's test/test_helper.rb, please add the following lines:
109
57
 
58
+ # Ensure that the code mixing and view loading from the application is disabled
59
+ Engines.disable_app_views_loading = true
60
+ Engines.disable_app_code_mixing = true
110
61
 
111
- -----
112
- 1.0.2
62
+ which will prevent code mixing for controllers and helpers, and loading views from the application. One thing to remember is to load any controllers/helpers using 'require_or_load' in your tests, to ensure that the engine behaviour is respected (Ticket #135)
113
63
 
114
- Fixed bug with overloading controllers in modules from /app directory
115
- Fixed exception thrown when public files couldn't be created; exception is now logged (Ticket #52)
116
- Fixed problem with generated test_helper.rb file via File.expand_path (Ticket #50)
64
+ * Added tasks to easily test engines individually (Ticket #120)
117
65
 
66
+ * Fixture extensions will now fail with an exception if the corresponding class cannot be loaded (Ticket #138)
118
67
 
119
- -----
120
- 1.0.1
68
+ * Patch for new routing/controller loading in Rails 1.1.6. The routing code is now replaced with the contents of config.controller_paths, along with controller paths from any started engines (Ticket #196)
121
69
 
122
- Added engine generator for creation of new engines
123
- Fixed 'Engine' typo in README
124
- Fixed bug in fixtures extensions
125
- Fixed /lib path management bug
126
- Added method to determine public directory location from Engine object
127
- Fixed bug in the error message in get_engine_dir()
128
- Added proper component loading
129
- Added preliminary tests for the config() methods module
70
+ * Rails' Configuration instance is now stored, and available from all engines and plugins.
130
71
 
131
72
 
132
- -----
133
- pre-v170
134
73
 
135
- Fixed copyright notices to point to DHH, rather than me.
136
- Moved extension require statements into lib/engines.rb, so the will be loaded if another module/file calls require 'engines
137
- Added a CHANGELOG file (this file)
74
+ = 1.1.3
75
+
76
+ * Fixed README to show 'models' rather than 'model' class (Ticket #167)
77
+ * Fixed dependency loading to work with Rails 1.1.4 (Ticket #180)
78
+
79
+
80
+
81
+ = 1.1.2
82
+
83
+ * Added better fix to version checking (Ticket #130, jdell@gbdev.com).
84
+
85
+ * Fixed generated init_engine.rb so that VERSION module doesn't cause probems (Ticket #131, japgolly@gmail.com)
86
+
87
+ * Fixed error with Rails 1.0 when trying to ignore the engine_schema_info table (Ticket #132, snowblink@gmail.com)
88
+
89
+ * Re-added old style rake tasks (Ticket #133)
90
+
91
+ * No longer adding all subdirectories of <engine>/app or <engine>/lib, as this can cause issues when files are grouped in modules (Ticket #149, kasatani@gmail.com)
92
+
93
+ * Fixed engine precidence ordering for Rails 1.1 (Ticket #146)
94
+
95
+ * Added new Engines.each method to assist in processing the engines in the desired order (Ticket #146)
96
+
97
+ * Fixed annoying error message at appears when starting the console in development mode (Ticket #134)
98
+
99
+ * Engines is now super-careful about loading the correct version of Rails from vendor (Ticket #154)
100
+
101
+
102
+
103
+ = 1.1.1
104
+
105
+ * Fixed migration rake task failing when given a specific version (Ticket #115)
106
+
107
+ * Added new rake task "test:engines" which will test engines (and other plugins) but ensure that the test database is cloned from development beforehand (Ticket #125)
108
+
109
+ * Fixed issue where 'engine_schema_info' table was included in schema dumps (Ticket #87)
110
+
111
+ * Fixed multi-part emails (Ticket #121)
112
+
113
+ * Added an 'install.rb' file to new engines created by the bundled generator, which installs the engines plugin automatically if it doesn't already exist (Ticket #122)
114
+
115
+ * Added a default VERSION module to generated engines (Ticket #123)
116
+
117
+ * Refactored copying of engine's public files to a method of an Engine instance. You can now call Engines.get(:engine_name).copy_public_files (Ticket #108)
118
+
119
+ * Changed engine generator templates from .rb files to .erb files (Ticket #106)
120
+
121
+ * Fixed the test_helper.erb file to use the correct testing extensions and not load any schema - the schema will be cloned automatically via rake test:engines
122
+
123
+ * Fixed problem when running with Rails 1.1.1 where version wasn't determined correctly (Ticket #129)
124
+
125
+ * Fixed bug preventing engines from loading when both Rails 1.1.0 and 1.1.1 gems are installed and in use.
126
+
127
+ * Updated version (d'oh!)
128
+
129
+
130
+
131
+ = 1.1.0
132
+
133
+ * Improved regexp matching for Rails 1.0 engines with peculiar paths
134
+
135
+ * Engine instance objects can be accessed via Engines[:name], an alias for Engines.get(:name) (Ticket #99)
136
+
137
+ * init_engine.rb is now processed as the final step in the Engine.start process, so it can access files within the lib directory, which is now in the $LOAD_PATH at that point. (Ticket #99)
138
+
139
+ * Clarified MIT license (Ticket #98)
140
+
141
+ * Updated Rake tasks to integrate smoothly with Rails 1.1 namespaces
142
+
143
+ * Changed the version to "1.1.0 (svn)"
144
+
145
+ * Added more information about using the plugin with Edge Rails to the README
146
+
147
+ * moved extensions into lib/engines/ directory to enable use of Engines module in extension code.
148
+
149
+ * Added conditional require_or_load method which attempts to detect the current Rails version. To use the Edge Rails version of the loading mechanism, add the line:
150
+
151
+ * Engines.config :edge, true
152
+
153
+ * to your environment.rb file.
154
+
155
+ * Merged changes from /branches/edge and /branches/rb_1.0 into /trunk
156
+
157
+ * engine_schema_info now respects the prefix/suffixes set for ActiveRecord::Base (Ticket #67)
158
+
159
+ * added ActiveRecord::Base.wrapped_table_name(name) method to assist in determining the correct table name
160
+
161
+
162
+
163
+ = 1.0.6
164
+
165
+ * Added ability to determine version information for engines: rake engine_info
166
+
167
+ * Added a custom logger for the Engines module, to stop pollution of the Rails logs.
168
+
169
+ * Added some more tests (in particular, see rails_engines/applications/engines_test).
170
+
171
+ * Another attempt at solving Ticket #53 - controllers and helpers should now be loadable from modules, and if a full path (including RAILS_ROOT/ENGINES_ROOT) is given, it should be safely stripped from the require filename such that corresponding files can be located in any active engines. In other words, controller/helper overloading should now completely work, even if the controllers/helpers are in modules.
172
+
173
+ * Added (finally) patch from Ticket #22 - ActionMailer helpers should now load
174
+
175
+ * Removed support for Engines.start :engine, :engine_name => 'whatever'. It was pointless.
176
+
177
+ * Fixed engine name referencing; engine_stylesheet/engine_javascript can now happily use shorthand engine names (i.e. :test == :test_engine) (Ticket #45)
178
+
179
+ * Fixed minor documentation error ('Engine.start' ==> 'Engines.start') (Ticket #57)
180
+
181
+ * Fixed double inclusion of RAILS_ROOT in engine_migrate rake task (Ticket #61)
182
+
183
+ * Added ability to force config values even if given as a hash (Ticket #62)
184
+
185
+
186
+
187
+ = 1.0.5
188
+
189
+ * Fixed bug stopping fixtures from loading with PostgreSQL
190
+
191
+
192
+
193
+ = 1.0.4
194
+
195
+ * Another attempt at loading controllers within modules (Ticket #56)
196
+
197
+
198
+
199
+ = 1.0.3
200
+
201
+ * Fixed serious dependency bug stopping controllers being loaded (Ticket #56)
202
+
203
+
204
+
205
+ = 1.0.2
206
+
207
+ * Fixed bug with overloading controllers in modules from /app directory
208
+
209
+ * Fixed exception thrown when public files couldn't be created; exception is now logged (Ticket #52)
210
+
211
+ * Fixed problem with generated test_helper.rb file via File.expand_path (Ticket #50)
212
+
213
+
214
+
215
+ = 1.0.1
216
+
217
+ * Added engine generator for creation of new engines
218
+
219
+ * Fixed 'Engine' typo in README
220
+
221
+ * Fixed bug in fixtures extensions
222
+
223
+ * Fixed /lib path management bug
224
+
225
+ * Added method to determine public directory location from Engine object
226
+
227
+ * Fixed bug in the error message in get_engine_dir()
228
+
229
+ * Added proper component loading
230
+
231
+ * Added preliminary tests for the config() methods module
232
+
233
+
234
+
235
+ = pre-v170
236
+
237
+ * Fixed copyright notices to point to DHH, rather than me.
238
+
239
+ * Moved extension require statements into lib/engines.rb, so the will be loaded if another module/file calls require 'engines
240
+
241
+ * Added a CHANGELOG file (this file)
@@ -1,4 +1,4 @@
1
- Copyright (c) 2006 James Adam
1
+ Copyright (c) 2007 James Adam
2
2
 
3
3
  The MIT License
4
4