Permalink
Browse files

Released version 0.26

  • Loading branch information...
1 parent 34e5a9d commit c395794d663ac8e247ddf63a64c3809f538d297a @ingydotnet committed Oct 12, 2011
Showing with 63 additions and 301 deletions.
  1. +3 −1 Changes
  2. +0 −28 MANIFEST.SKIP
  3. +1 −19 Makefile.PL
  4. +8 −3 README
  5. 0 { → bin}/vroom
  6. +46 −55 lib/Vroom.pm
  7. +5 −0 lib/Vroom/Mo.pm
  8. +0 −195 lib/Vroom/OO.pm
View
@@ -1,9 +1,11 @@
---
version: 0.26
-date: Tue Nov 23 15:16:42 EST 2010
+date: Tue Oct 11 21:47:43 EDT 2011
changes:
- Add inline script support for running external programs
for things like images and browser.
+- Support for auto-sizing slides (wolfsage++)
+- Switch from Gloom to Mo.
---
version: 0.25
date: Tue Oct 5 22:18:50 PDT 2010
View
@@ -1,28 +0,0 @@
-^Makefile$
-^Makefile\.old$
-^pm_to_blib$
-^blib/
-^pod2htm.*
-^MANIFEST\.SKIP$
-^MANIFEST\.bak$
-^\.git/
-^\.gitignore
-^\.gitmodules
-/\.git/
-\.svn/
-^\.vimrc$
-\.sw[op]$
-^core$
-^out$
-^tmon.out$
-^\w$
-^foo.*
-^notes
-^todo
-^ToDo$
-## avoid OS X finder files
-\.DS_Store$
-## skip komodo project files
-\.kpf$
-## ignore emacs and vim backup files
-~$
View
@@ -1,19 +1 @@
-use inc::Module::Install;
-
-all_from 'lib/Vroom.pm';
-readme_from;
-manifest_skip;
-ack_xxx;
-version_check;
-
-requires 'IO::All';
-requires 'YAML::XS';
-requires 'File::HomeDir';
-requires 'Template::Toolkit::Simple';
-requires 'Term::Size';
-
-use_gloom 'Vroom::OO';
-
-install_script 'vroom';
-
-WriteAll;
+use inc::Module::Package 'Ingy:modern 0.17';
View
11 README
@@ -94,6 +94,7 @@ INPUT FORMAT
height: 84
width: 20
# skip: 12 # Skip 12 slides. Useful when making slides.
+ # auto_size: 1 # Determines height/width automatically
---- center
My Presentation
@@ -182,6 +183,10 @@ CONFIGURATION OPTIONS
The number of columns in the terminal you plan to use when
presenting the show. Used for centering the content.
+ auto_size: <0|1>
+ When set to 1, the height/width options above will be ignored and
+ determined each time you start the slideshow.
+
indent: <number>
All slides will be indented by this number of spaces by default.
@@ -304,10 +309,10 @@ GITHUB NOTES
gh-pages at <http://ingydotnet.github.com/vroom-pm/>.
AUTHOR
- Ingy döt Net <ingy@cpan.org>
+ Ingy döt Net <ingy@ingy.net>
-COPYRIGHT
- Copyright (c) 2008, 2009. Ingy döt Net.
+COPYRIGHT AND LICENSE
+ Copyright (c) 2008, 2009, 2010, 2011. Ingy döt Net.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
View
0 vroom → bin/vroom 100644 → 100755
File renamed without changes.
View
@@ -1,43 +1,56 @@
-package Vroom;
+##
+# name: Vroom
+# abstract: Slide Shows in Vim
+# author: Ingy döt Net <ingy@ingy.net>
+# license: perl
+# copyright: 2008, 2009, 2010, 2011
+
use 5.006001;
-use Vroom::OO -base;
+package Vroom;
+use Vroom::Mo;
our $VERSION = '0.26';
-use IO::All;
-use YAML::XS;
+use File::HomeDir 0.97;
+use IO::All 0.44;
+use Template::Toolkit::Simple 0.13;
+use Term::Size 0.2;
+use YAML::XS 0.37;
+
use Getopt::Long;
-use File::HomeDir;
use Cwd;
use Carp;
-use Term::Size;
-
-has input => 'slides.vroom';
-has stream => '';
-has ext => '';
-has help => 0;
-has clean => 0;
-has compile => 0;
-has sample => 0;
-has run => 0;
-has html => 0;
-has text => 0;
-has ghpublish => 0;
-has start => 0;
-has digits => 0;
-has skip => 0;
-has config => {
- title => 'Untitled Presentation',
- height => 24,
- width => 80,
- list_indent => 10,
- skip => 0,
- vim => 'vim',
- vimrc => '',
- gvimrc => '',
- script => '',
- auto_size => 0,
-};
+
+has input => (default => sub {'slides.vroom'});
+has stream => (default => sub {''});
+has ext => (default => sub {''});
+has help => (default => sub{0});
+has clean => (default => sub{0});
+has compile => (default => sub{0});
+has sample => (default => sub{0});
+has run => (default => sub{0});
+has html => (default => sub{0});
+has text => (default => sub{0});
+has ghpublish => (default => sub{0});
+has start => (default => sub{0});
+has digits => (default => sub{0});
+has skip => (default => sub{0});
+has config => (
+ default => sub {
+ +{
+ title => 'Untitled Presentation',
+ height => 24,
+ width => 80,
+ list_indent => 10,
+ skip => 0,
+ vim => 'vim',
+ vimrc => '',
+ gvimrc => '',
+ script => '',
+ auto_size => 0,
+ };
+ }
+);
sub usage {
return <<'...';
@@ -215,7 +228,6 @@ sub makeText {
sub makeHTML {
my $self = shift;
- require Template::Toolkit::Simple;
$self->cleanAll;
$self->makeSlides;
io('html')->mkdir;
@@ -842,12 +854,6 @@ If it makes sense to you, run it. (at your own risk :)
...
}
-=encoding utf8
-
-=head1 NAME
-
-Vroom - Slide Shows in Vim
-
=head1 SYNOPSIS
> mkdir MySlides # Make a Directory for Your Slides
@@ -1213,18 +1219,3 @@ ones above, to publish your slides to a gh-pages branch.
You can see an example of a talk published to HTML and posted via gh-pages
at L<http://ingydotnet.github.com/vroom-pm/>.
-
-=head1 AUTHOR
-
-Ingy döt Net <ingy@cpan.org>
-
-=head1 COPYRIGHT
-
-Copyright (c) 2008, 2009. Ingy döt Net.
-
-This program is free software; you can redistribute it and/or modify it
-under the same terms as Perl itself.
-
-See http://www.perl.com/perl/misc/Artistic.html
-
-=cut
View
@@ -0,0 +1,5 @@
+package Vroom::Mo;
+# use Mo qw'default import';
+# The following line of code was produced from the previous line by
+# Mo::Inline version 0.27
+no warnings;my$M=__PACKAGE__.::;*{$M.Object::new}=sub{bless{@_[1..$#_]},$_[0]};*{$M.import}=sub{import warnings;$^H|=1538;my($P,%e,%o)=caller.::;shift;eval"no Mo::$_",&{$M.$_.::e}($P,\%e,\%o,\@_)for@_;return if$e{M};%e=(extends,sub{eval"no $_[0]()";@{$P.ISA}=$_[0]},has,sub{my$n=shift;my$m=sub{$#_?$_[0]{$n}=$_[1]:$_[0]{$n}};$m=$o{$_}->($m,$n,@_)for sort keys%o;*{$P.$n}=$m},%e,);*{$P.$_}=$e{$_}for keys%e;@{$P.ISA}=$M.Object};*{$M.'default::e'}=sub{my($P,$e,$o)=@_;$o->{default}=sub{my($m,$n,%a)=@_;$a{default}or return$m;sub{$#_?$m->(@_):!exists$_[0]{$n}?$_[0]{$n}=$a{default}->(@_):$m->(@_)}}};my$i=\&import;*{$M.import}=sub{(@_==2 and not $_[1])?pop@_:@_==1?push@_,grep!/import/,@f:();goto&$i};@f=qw[default import];use strict;use warnings;
Oops, something went wrong.

0 comments on commit c395794

Please sign in to comment.