keynote-client provides a high level API (like ActiveRecord style) to control your Keynote
Ruby
Latest commit 3e0252b Feb 17, 2016 @katsuma Merge pull request #12 from pazjacket/tachikoma/update-20160217154503
Exec tachikoma update 20160217154503
Permalink
Failed to load latest commit information.
lib Bump up version to 0.1.2 Dec 8, 2015
spec
.gitignore Create a new repo Aug 9, 2015
.rspec Create a new repo Aug 9, 2015
.travis.yml Add .travis.yml Dec 6, 2015
Gemfile Create a new repo Aug 9, 2015
Guardfile Add Keynote::Slide spec Dec 6, 2015
LICENSE.txt Create a new repo Aug 9, 2015
README.md Fix supported OS. Dec 6, 2015
Rakefile Add Keynote::Slide spec Dec 6, 2015
keynote-client.gemspec Add Keynote::Slide spec Dec 6, 2015

README.md

keynote-client

keynote-client will provide a high level API (like ActiveRecord style) to control your Keynote.

Currently this project is in alpha stage. It supports these features.

  • Create a new document with specified theme
  • Append a new slide with specified master slide
  • Update slides
  • Save a document

Install

Add this line to your application's Gemfile:

gem 'keynote-client'

And then execute:

$ bundle

Or install it yourself as:

$ gem install keynote-client

Usage

require 'keynote-client'
include Keynote

# Fetch all themes
themes = Theme.all

# Fetch theme specified name
theme = Theme.find_by(name: 'ブラック').first

# Create a new document with theme
doc = Document.create(theme: theme, file_path: '/path/to/foo.key')

# Save a document at file_path
doc.save

# Initialize a new slide
slide = Slide.new("タイトル & 箇条書き", title: 'Pen', body: ["This is a pen", "Is this a pen?"].join("\n"))

# Append slides
doc.slides << slide

# Fetch last slide
slide = doc.slides.last

# Update a slide
slide.title = "About pen"
slide.body = "Hello, pen."

Supported OS

  • OS X El Capitan
  • OS X Yosemite

License

keynote-client is released under the MIT License.

Contributing

  1. Fork it ( https://github.com/katsuma/keynote-client/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