masterview 0.0.8 → 0.0.9
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.
- data/README +3 -1
- data/Rakefile +0 -1
- data/lib/masterview/masterview_version.rb +1 -1
- data/lib/masterview/parser.rb +2 -1
- metadata +2 -2
data/README
CHANGED
@@ -44,8 +44,10 @@ Install in one of the two following ways depending on whether you can use gems o
|
|
44
44
|
If you can use gems you may simply do the following
|
45
45
|
|
46
46
|
gem install masterview
|
47
|
+
gem install masterview_generator
|
48
|
+
gem install masterview_plugin_generator
|
47
49
|
|
48
|
-
Now your gem is installed and you can skip
|
50
|
+
Now your gem is installed and you can skip these steps in the future. After creating your rails directory, change directory to it and run the following to create a very lightweight plugin instance for this application mainly consisting of an init.rb file which will get loaded at runtime. This init.rb refers to the gem for everything but allows you to override any constants or setup that has been provided. See MasterView module masterview.rb for a list of the available constants.
|
49
51
|
|
50
52
|
script/generate masterview_plugin
|
51
53
|
|
data/Rakefile
CHANGED
@@ -136,7 +136,6 @@ task :repackage_all => ['masterview_complete:repackage',
|
|
136
136
|
desc 'Release all files'
|
137
137
|
task :release_all_files => ['masterview_complete:release_files',
|
138
138
|
'masterview:release_files',
|
139
|
-
'masterview_parser:release_files',
|
140
139
|
'masterview_generator:release_files',
|
141
140
|
'masterview_plugin_generator:release_files']
|
142
141
|
|
data/lib/masterview/parser.rb
CHANGED
@@ -269,13 +269,14 @@ module MasterView
|
|
269
269
|
|
270
270
|
# Sets directive_load_paths, re-requiring all the new load paths, however any directives that were
|
271
271
|
# already required (and loaded) will still be in memory because these are not reset.
|
272
|
-
def directive_load_paths=( directive_paths )
|
272
|
+
def directive_load_paths=( directive_paths )
|
273
273
|
@directive_classes = {}
|
274
274
|
@auto_directives = []
|
275
275
|
directive_paths.each do |directive_path|
|
276
276
|
next if directive_path.nil?
|
277
277
|
raise InvalidPathException.new('directive_path does not exist, path='+directive_path) unless File.exist? directive_path
|
278
278
|
Dir.open( directive_path ).each { |fn| require "#{directive_path}/#{fn}" if fn =~ /[.]rb$/ }
|
279
|
+
|
279
280
|
end
|
280
281
|
|
281
282
|
Log.debug { 'directive plugins loaded:' +
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: masterview
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
7
|
-
date: 2006-04-
|
6
|
+
version: 0.0.9
|
7
|
+
date: 2006-04-19 00:00:00 -05:00
|
8
8
|
summary: A (x)html friendly template engine for rails with the power of layouts, and partials. Main gem which requires all others
|
9
9
|
require_paths:
|
10
10
|
- lib
|