Variety of small changes (mostly to properties) plus a few "in the
[selectricity] / vendor / plugins / engines / init.rb
1 #--
2 # Copyright (c) 2006 James Adam
3 #
4 # Permission is hereby granted, free of charge, to any person obtaining
5 # a copy of this software and associated documentation files (the
6 # "Software"), to deal in the Software without restriction, including
7 # without limitation the rights to use, copy, modify, merge, publish,
8 # distribute, sublicense, and/or sell copies of the Software, and to
9 # permit persons to whom the Software is furnished to do so, subject to
10 # the following conditions:
11 #
12 # The above copyright notice and this permission notice shall be
13 # included in all copies or substantial portions of the Software.
14 #
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 #
23 #
24 #
25 # = IN OTHER WORDS:
26 #
27 # You are free to use this software as you please, but if it breaks you'd
28 # best not come a'cryin...
29 #++
30
31 # Load the engines & bundles extensions
32 require 'engines'
33 require 'bundles'
34
35 module ::Engines::Version
36   Major = 1 # change implies compatibility breaking with previous versions
37   Minor = 1 # change implies backwards-compatible change to API
38   Release = 4 # incremented with bug-fixes, updates, etc.
39 end
40
41 #--
42 # Create the Engines directory if it isn't present
43 #++
44 if !File.exist?(Engines.config(:root))
45   Engines.log.debug "Creating engines directory in /vendor"
46   FileUtils.mkdir_p(Engines.config(:root))
47 end
48
49 # Keep a hold of the Rails Configuration object
50 Engines.rails_config = config
51
52 # Initialize the routing (controller_paths)
53 Engines.initialize_routing

Benjamin Mako Hill || Want to submit a patch?