masterview_gem_pack 0.3.2 → 0.3.3

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 (6) hide show
  1. data/CHANGELOG +15 -0
  2. data/RELEASE_NOTES +26 -2
  3. data/Rakefile +35 -10
  4. data/ReleaseAnnouncement +124 -0
  5. data/TODO +6 -0
  6. metadata +6 -5
data/CHANGELOG CHANGED
@@ -1,3 +1,18 @@
1
+ 0.3.3
2
+ Added xml doctype to generated code
3
+ Fixed bug in gen_replace where it was generating <% %> rather than <%= %> (Thanks to Jon Frisby for indentifying)
4
+ Fix defect in form tag not setting :multipart => true when form enctype=multipart/form-data (Thanks to Rajavel Lenin for identifying)
5
+ Fix defect in stylesheet_link, was looking at attribute src rather than href (Thanks to Rajavel Lenin for identifying)
6
+ Make REXML sax2parser selection configurable and use patched sax2parser if compatible REXML version 3.1.4-3.1.5 is installed (Thanks to David Koontz for help in indentifying issue)
7
+ Update masterview_plugin generator which generates plugin stub to create examples/rails_app_admin_auth/admin_auth_mixin.rb
8
+ Added auto_copy feature that can be configured to auto copy static files like stylesheets, images, and javascripts from a non-standard location to the proper location at runtime (under public).
9
+ Fixed defect with integration of other plugins that can change view_base, causing templates to not be found from MasterView
10
+ Fix rebuild template so that doctypes are retained when rebuilding or copying and in scaffold generation
11
+ Fix rails runtime detection to include RadRails launch using -e
12
+ Added rake mv:clean_mv_rhtml task which removes MasterView generated rhtml if generating to file system
13
+
14
+
15
+
1
16
  0.3.2 - February 20, 2007
2
17
  Fix bug in mv:attr directive where multiparam eval method like :a => #{hello 1,2} was not being parsed properly
3
18
  Added mv:select to alphabetical list on bottom of directives html doc page
data/RELEASE_NOTES CHANGED
@@ -1,6 +1,30 @@
1
1
  = MasterView - Rails-optimized (x)html friendly template engine
2
2
 
3
- == Recent changes (Release 0.3.2 - Maintenance release plus custom admin auth
3
+ == Recent changes (Release 0.3.3) - Maintenance release plus auto_copy
4
+ Added auto copy feature which can be configured to automatically copy static files
5
+ like stylesheets, images, and javascripts from a non-standard location to the proper
6
+ location at runtime (under Rails public). This makes it easy to use HTML prototypes
7
+ and associated files with MasterView eliminating any manual copying.
8
+
9
+ This release fix adds doctype to generated code, and a bug in gen_replace which
10
+ outputted <% %> rather than <%= %> (thanks Jon Frisby). Fixed defect in multipart
11
+ form and stylesheet_link directives (thanks Rajavel Lenin).
12
+
13
+ Made REXML sax2parser configurable. Generator now creates example for custom
14
+ admin auth mixin controlling authentication with custom code. (thanks David Koontz)
15
+
16
+ Fix defect which prevented MasterView to be used with Goldberg or other plugins which
17
+ alter the view base unless MasterView was configured to generate the rhtml files.
18
+
19
+ Fix rails runtime detection when running in RadRails which launches using -e
20
+
21
+ Added rake task mv:clean_mv_rhtml task which removes the MasterView generated rhtml
22
+ if you have configured MasterView to generate to the file system. Only removes
23
+ files that it generates leaving other rhtml untouched. This is useful when switching
24
+ to not generating rhtml mode when it was previously enabled.
25
+
26
+
27
+ == Release 0.3.2 - Maintenance release plus custom admin auth
4
28
  This release addresses a compatibility problem with Rails 1.2 where a view syntax
5
29
  error would not display the normal debug output but instead displayed only a blank
6
30
  screen. Also fixed a parsing problem with multiple parameters in some directives.
@@ -8,7 +32,7 @@ Added the ability to use custom mixin for authorization to MasterView admin scre
8
32
  Changed the MasterView generator to use request, flash, and params rather than
9
33
  deprecated @request, @flash, and @params. Tested with Rails 1.2.2
10
34
 
11
- == Recent changes (Release 0.3.1 - Maintenance release
35
+ == Release 0.3.1 - Maintenance release
12
36
  This release addresses an issue with ruby 1.8.5, fixes a problem with the
13
37
  deprecated/directive_base used for custom directives, updates a few out of
14
38
  date docs, and accomodates a change to the API of the Rails 1.2 generator
data/Rakefile CHANGED
@@ -212,6 +212,7 @@ task :copy_duplicated_files do
212
212
  copy_if_different 'init.rb', 'generators/masterview_plugin/templates/init.rb'
213
213
  copy_if_different 'tasks/masterview.rake', 'generators/masterview_plugin/templates/masterview.rake'
214
214
  copy_if_different 'lib/masterview/extras/app/views/masterview/admin/empty.rhtml', 'generators/masterview_plugin/templates/empty.rhtml'
215
+ copy_if_different 'examples/rails_app_admin_auth/admin_auth_mixin.rb', 'generators/masterview_plugin/templates/admin_auth_mixin.rb'
215
216
  copy_if_different 'examples/rails_app_config/masterview/settings.rb', 'generators/masterview_plugin/templates/settings.rb'
216
217
  copy_if_different 'examples/rails_app_config/masterview/environment/development.rb', 'generators/masterview_plugin/templates/development.rb'
217
218
  copy_if_different 'examples/rails_app_config/masterview/environment/production.rb', 'generators/masterview_plugin/templates/production.rb'
@@ -635,15 +636,15 @@ end
635
636
 
636
637
 
637
638
  desc "Publish news on RubyForge"
638
- task :publish_news => [ :verify_rubyforge, :tar, :gem, :demotar] do
639
- Rake::XForge::NewsPublisher.new(Ruby_PDF) do |news|
639
+ task :publish_news => [ :verify_rubyforge] do
640
+ Rake::XForge::NewsPublisher.new(MASTERVIEW) do |news|
640
641
  news.user_name = ENV['RUBYFORGE_USER']
641
642
  news.password = ENV['RUBYFORGE_PASSWORD']
642
- news.subject = "PDF::Writer #{PDF::Writer::VERSION} Released"
643
+ news.subject = "MasterView #{MasterView::VERSION::STRING} Rails-optimized (x)html template engine"
643
644
  news.changes_file = nil
644
645
 
645
646
  details = []
646
- File.open("Release-Announcement") do |file|
647
+ File.open("ReleaseAnnouncement") do |file|
647
648
  file.each do |line|
648
649
  line.chomp!
649
650
  break if line =~ /^=/
@@ -654,14 +655,38 @@ task :publish_news => [ :verify_rubyforge, :tar, :gem, :demotar] do
654
655
  end
655
656
  end
656
657
 
657
- desc "Post a release announcement via GMail."
658
- #task :email_announcement => [ :verify_gmail, :tar, :gem, :demotar] do
659
- task :email_announcement => [ :verify_gmail ] do
658
+ # encapsulate gmail email call
659
+ # takes mail_to address using form - Foo <foo@bar.com>
660
+ def email_announcement_to(mail_to)
660
661
  require 'gmailer'
662
+ puts "Emailing #{mail_to}"
661
663
  GMailer.connect(ENV["GMAIL_USER"], ENV["GMAIL_PASSWORD"]) do |gmail|
662
- gmail.send :to => "ruby-talk@ruby-lang.org",
663
- :subject => "[ANN] PDF::Writer #{PDF::Writer::VERSION}",
664
- :body => File.read("Release-Announcement")
664
+ gmail.send :to => mail_to,
665
+ :subject => "[ANN] MasterView #{MasterView::VERSION::STRING} Rails-optimized (x)html template engine",
666
+ :body => File.read("ReleaseAnnouncement")
665
667
  end
668
+ end
669
+
670
+ desc "Post a release announcement via GMail to all mailing lists"
671
+ task :email_announcements => [ :email_ruby, :email_rails, :email_masterview, :email_stl ]
672
+
666
673
 
674
+ task :email_ruby => [ :verify_gmail ] do
675
+ email_announcement_to "Ruby-Talk <ruby-talk@ruby-lang.org>"
667
676
  end
677
+
678
+ task :email_rails => [ :verify_gmail ] do
679
+ email_announcement_to "Ruby on Rails - Talk <rubyonrails-talk@googlegroups.com>"
680
+ end
681
+
682
+ task :email_masterview => [ :verify_gmail ] do
683
+ email_announcement_to "MasterView-Devel <masterview-devel@rubyforge.org>"
684
+ email_announcement_to "MasterView-Users <masterview-users@rubyforge.org>"
685
+ email_announcement_to "MasterView-Announce <masterview-announce@rubyforge.org>"
686
+ end
687
+
688
+ task :email_stl => [ :verify_gmail ] do
689
+ email_announcement_to "St. Louis Ruby Users <stlruby@googlegroups.com>"
690
+ end
691
+
692
+
@@ -0,0 +1,124 @@
1
+ = MasterView - Rails-optimized (x)html friendly template engine
2
+
3
+ MasterView is a template engine plugin that provides another option to the existing rails view templates (rhtml and rxml). This template engine has all the power of layouts, partials, and rails helpers but is still editable/styleable in a WYSIWYG editor.
4
+
5
+ Another major goal it to have the syntax of these attribute directives be very similar to rails helpers so that one could intuitively start using MasterView with little learning curve other than knowing rails. MasterView users can additionally create their own directives to encapsulate custom functionality so the system can be easily extended into specific uses.
6
+
7
+ MasterView was inspired by Amrita, Kwartz, Tapestry, Zope/PHP TAL, Liquid, and Web Objects but designed with a fresh approach and specifically targetted for rails users.
8
+
9
+ There are several ways to use MasterView:
10
+
11
+ - Start with a pure HTML prototype of your site and add directives to the pages to make them live. You can continue to WYSIWYG edit HTML prototype throughout project life cycle. (See screencast for demonstration)
12
+
13
+ - If you don't have an HTML prototype and want to generate a CRUD application, you may use the MasterView generator which creates a styled CRUD application which you can then change as needed.
14
+
15
+ - If you already have an application but would like to use MasterView, you can start to use MasterView for new pages. MasterView will co-exist nicely with existing rhtml and you can slowly evolve the site over time.
16
+
17
+
18
+ == Recent changes (Release 0.3.3) - Maintenance release plus auto_copy
19
+ Added auto copy feature which can be configured to automatically copy static files like stylesheets, images, and javascripts from a non-standard location to the proper location at runtime (under Rails public). This makes it easy to use HTML prototypes and associated files with MasterView eliminating any manual copying.
20
+
21
+ This release fix adds doctype to generated code, and a bug in gen_replace which outputted <% %> rather than <%= %> (thanks Jon Frisby). Fixed defect in multipart form and stylesheet_link directives (thanks Rajavel Lenin).
22
+
23
+ Made REXML sax2parser configurable. Generator now creates example for custom admin auth mixin controlling authentication with custom code. (thanks David Koontz)
24
+
25
+ Fix defect which prevented MasterView to be used with Goldberg or other plugins which alter the view base unless MasterView was configured to generate the rhtml files.
26
+
27
+ Fix rails runtime detection when running in RadRails which launches using -e
28
+
29
+ Added rake task mv:clean_mv_rhtml task which removes the MasterView generated rhtml if you have configured MasterView to generate to the file system. Only removes files that it generates leaving other rhtml untouched. This is useful when switching to not generating rhtml mode when it was previously enabled.
30
+
31
+ == Release 0.3.2 - Maintenance release plus custom admin auth
32
+ This release addresses a compatibility problem with Rails 1.2 where a view syntax error would not display the normal debug output but instead displayed only a blank screen. Also fixed a parsing problem with multiple parameters in some directives. Added the ability to use custom mixin for authorization to MasterView admin screens. Changed the MasterView generator to use request, flash, and params rather than deprecated @request, @flash, and @params. Tested with Rails 1.2.2
33
+
34
+
35
+ == Details
36
+
37
+ Author:: Jeff Barczewski
38
+ Email:: jeff.barczewski (at) gmail (dot) com
39
+ Primary developers:: Jeff Barczewski, Deb Lewis
40
+ Website:: http://masterview.org
41
+ Rubyforge project:: masterview (http://rubyforge.org/projects/masterview)
42
+ License:: MIT open source license like Rails
43
+
44
+
45
+ === Video ===
46
+
47
+ A short video demonstrating use of MasterView converting an HTML prototype into a live application while still allowing round trip WYSIWYG editing.
48
+ http://masterview.org/media/html-to-live/screencast.html
49
+
50
+
51
+ === Screenshots, illustrations, other video ===
52
+
53
+ http://masterview.org/media_list.html
54
+
55
+
56
+ === Packaging ===
57
+
58
+ MasterView is distributed as a gem or a plugin. You may install it as a gem and then generate a lightweight plugin which mainly refers to the gem *or* you can simply install as a plugin which is self contained. I personally prefer installing as a gem for ease of management, however if you are running at a shared hosting environment you might not have authority to install this gem so you may install as a self contained plugin.
59
+
60
+
61
+ == Goals
62
+
63
+ - Create/extend a template engine for rails that would be XHTML friendly and thus could be edited/styled with a WYSIWYG HTML editor even late in development without breaking template.
64
+ - Keep it simple. DRY. No extra config files, simple syntax with ruby flavor.
65
+ - Design it specifically for ruby and rails. Use the full power and not be limited in its capabilities over what can be done with ERb
66
+ - Work nicely with layouts, partials, and rails html helpers.
67
+ - Reduce complexity, work with existing rails code, no extra view logic or hashes than what is used by ERb. Scaffold generate initial templates or work from existing html prototype.
68
+ - Reduce the numbers of files, simplifying editing. Define partials and layouts naturallyl right in the template, no need to go to another file.
69
+ - Preview in browser without running an app. Allow for dummy data in the template so that the page can be viewed and styled independently of the application.
70
+ - Performance equal to ERb
71
+
72
+
73
+ == Prerequisites
74
+
75
+ Requires::
76
+ No external dependencies
77
+
78
+ Optional::
79
+ tidy (gem) and tidy library
80
+ if these are installed you can use tidy to cleanup
81
+ html into valid xhtml for use by MasterView
82
+
83
+ log4r (gem)
84
+ if this gem is installed then MasterView will use
85
+ it for logging otherwise it defaults to using built
86
+ in Logger.
87
+
88
+
89
+
90
+ == User Documentation
91
+
92
+ MasterView documentation is available online at the MasterView site:
93
+ http://www.masterview.org
94
+ and on the rubyforge project
95
+ http://rubyforge.org/projects/masterview/
96
+
97
+
98
+ == Installation
99
+
100
+ Detailed installation instructions for installing the masterview gems or a self-contained copy of the plugin is provided in the MasterView Installation Guide.
101
+
102
+ The Configuration Guide describes how to customize the configuration of the MasterView template engine for your application.
103
+
104
+
105
+ == Usage
106
+
107
+ The MasterView User's Guide and a complete Directives Reference are provided in the MasterView user documentation. MasterView templates can be created by adding masterview directives markup to an (x)html ptototype, or can be generated for typical Rails controller/view scenarios using the supplied masterview generator developer tool.
108
+
109
+ A MasterView Admin controller can optionally be activated in your application to assist you during development with creating and managing your templates.
110
+
111
+
112
+ == Next Steps
113
+
114
+ Visit the online documentation page at http://masterview.org/ for screenshots, illustrations, complete installation and usage information.
115
+
116
+ We would love to hear your feedback and ideas around this project! Visit the rubyforge project to join the users mailing list or to add yourself to the announce list to receive future announcements. Check out the video to see MasterView in action!
117
+
118
+ Thanks for your time!!
119
+
120
+
121
+ MasterView Development Team
122
+ Jeff Barczewski and Deb Lewis
123
+
124
+
data/TODO CHANGED
@@ -59,3 +59,9 @@ TODO LIST
59
59
  - link_to can now take simple string as options rather than hash, but the implied name thing causes a problem since we don't know whether name was passed or not
60
60
 
61
61
  - REST generator
62
+
63
+ - mongrel + erb MERB, camping, nitro, examples
64
+
65
+ - image button submit directive
66
+
67
+ - other directive ideas from components (address block, nav menus, calendar, tree, tabbed pane, file upload, add/remove idiom, alert, editable list, sortable list, wizard)
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: masterview_gem_pack
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.2
7
- date: 2007-02-21 00:00:00 -06:00
6
+ version: 0.3.3
7
+ date: 2007-07-01 00:00:00 -05:00
8
8
  summary: A (x)html friendly template engine for rails with the power of layouts, and partials. This gem package includes the other masterview gems for easy installation
9
9
  require_paths:
10
10
  - .
@@ -35,6 +35,7 @@ files:
35
35
  - RELEASE_NOTES
36
36
  - README
37
37
  - MIT-LICENSE
38
+ - ReleaseAnnouncement
38
39
  test_files: []
39
40
 
40
41
  rdoc_options: []
@@ -55,7 +56,7 @@ dependencies:
55
56
  requirements:
56
57
  - - ">="
57
58
  - !ruby/object:Gem::Version
58
- version: 0.3.2
59
+ version: 0.3.3
59
60
  version:
60
61
  - !ruby/object:Gem::Dependency
61
62
  name: masterview_generator
@@ -64,7 +65,7 @@ dependencies:
64
65
  requirements:
65
66
  - - ">="
66
67
  - !ruby/object:Gem::Version
67
- version: 0.3.2
68
+ version: 0.3.3
68
69
  version:
69
70
  - !ruby/object:Gem::Dependency
70
71
  name: masterview_plugin_generator
@@ -73,5 +74,5 @@ dependencies:
73
74
  requirements:
74
75
  - - ">="
75
76
  - !ruby/object:Gem::Version
76
- version: 0.3.2
77
+ version: 0.3.3
77
78
  version: