keynote-client 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/lib/keynote/document.rb +2 -1
- data/lib/keynote/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfaa12b5f307472074fcc60d5e2a330bdf6fcf13
|
4
|
+
data.tar.gz: 5ca99f47532d3e67991094d08e3af33f1199715d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15ddfbbd78cd5b0a84eab6b0345748a7b3479333731321566df2ec0ea17842a0fdad29ba7b72f75cb2a4b6ba1bad66fef63dc161a0780cbd51786feda459df06
|
7
|
+
data.tar.gz: 197ce7995e427743efe033a8843e094ec4932e87a1ad802a62981bdd86eef7df38104d7e7f5a69aa9c0f0f96a55ffe0970c2ff34ff1f9e1b48a210f127a9987e
|
data/README.md
CHANGED
@@ -34,7 +34,7 @@ $ gem install keynote-client
|
|
34
34
|
|
35
35
|
```ruby
|
36
36
|
require 'keynote-client'
|
37
|
-
|
37
|
+
include Keynote
|
38
38
|
|
39
39
|
# Fetch all themes
|
40
40
|
themes = Theme.all
|
@@ -63,7 +63,8 @@ slide.body = "Hello, pen."
|
|
63
63
|
```
|
64
64
|
|
65
65
|
## Supported OS
|
66
|
-
-
|
66
|
+
- OS X El Capitan
|
67
|
+
- OS X Mavericks
|
67
68
|
|
68
69
|
|
69
70
|
## License
|
data/lib/keynote/document.rb
CHANGED
@@ -136,6 +136,7 @@ module Keynote
|
|
136
136
|
theme = arguments[:theme] || Theme.default
|
137
137
|
width = arguments[:wide] ? WIDE_WIDTH : DEFAULT_WIDTH
|
138
138
|
height = arguments[:wide] ? WIDE_HEIGHT : DEFAULT_HEIGHT
|
139
|
+
file_path = arguments[:file_path]
|
139
140
|
|
140
141
|
result = eval_script <<-APPLE.unindent
|
141
142
|
var Keynote = Application("Keynote")
|
@@ -145,7 +146,7 @@ module Keynote
|
|
145
146
|
JSON.stringify(doc.properties());
|
146
147
|
APPLE
|
147
148
|
|
148
|
-
self.new(symbolize_keys(result).merge(theme: theme, width: width, height: height))
|
149
|
+
self.new(symbolize_keys(result).merge(theme: theme, width: width, height: height, file_path: file_path))
|
149
150
|
end
|
150
151
|
|
151
152
|
def self.all
|
data/lib/keynote/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: keynote-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ryo katsuma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|