Project

wingtips

0.0
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Put your best foot forward, present with Shoes!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 0.10.0
~> 10.0
~> 3.2

Runtime

~> 4.0.0.pre3
 Project Readme

Wingtips

A presentation tool written in ruby - write your slides in Ruby!

Installation

Ensure that JRuby is installed.

Add this line to your application's Gemfile:

gem 'wingtips'

Or to grab it straight from github

gem 'wingtips', github: 'PragTob/wingtips'

And then execute:

$ bundle

Or install it yourself as:

$ gem install wingtips

Usage

A wingtips presentation expects this layout:

presentation_folder/
  code/*.rb
  images/*.*
  slides/*.rb
  config.rb

And a basic slide looks like this:

class Bullets < Wingtips::Slide
  def content
    headline 'Use bullet points, would you?'

    bullet "It's easy isn't it?"
    bullet 'Just keep on'
    bullet 'with ease!'
  end
end

You can express the same slide an even more fluent DSL like this:

slide do
  headline 'Use bullet points, would you?'

  bullet "It's easy isn't it?"
  bullet 'Just keep on'
  bullet 'with ease!'
end

For more examples please refer to the samples directory!

OS X

You need need a special flag to start the presentation as it is needed by the JVM. You need to add JRUBY_OPTS=-J-XstartOnFirstThread when trying to launch a presentation. So to launch the sample you need to type:

JRUBY_OPTS=-J-XstartOnFirstThread bin/wingtips samples/wingtips_introduction

Otherwise without the JRUBYY_OPTS, you will encounter the following error on Mac OSX:

Presenting 12 slides
***WARNING: Display must be created on main thread due to Cocoa restrictions.
LoadError: Couldn't load backend Shoes::Swt'. Error: load error: shoes/swt -- org.eclipse.swt.SWTException: Invalid thread access
org/jruby/RubyKernel.java:1065:in `require'

Contributing

  1. Fork it ( https://github.com/[my-github-username]/wingtips/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request