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.new("タイトル & 箇条書き", title: 'Pen', body: ["This is a pen", "Is this a pen?"].join("\n"))
# Append slides
doc. <<
# Fetch last slide
= doc..last
# Update a slide
.title = "About pen"
.body = "Hello, pen."
Supported OS
- OS X El Capitan
- OS X Yosemite
License
keynote-client
is released under the MIT License.
Contributing
- Fork it ( https://github.com/katsuma/keynote-client/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request