0.01
No commit activity in last 3 years
No release in over 3 years
keynote-client provides a high level API like ActiveRecord style to control your Keynote.
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.8.2
~> 2.13.0
~> 4.6.2
~> 0.10.1
~> 10.0
~> 3.3.0
~> 0.10.0

Runtime

~> 1.0
 Project Readme

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