md2key 0.8.3 → 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6573050b46408937115db1a9b75d302bc88665e4
4
- data.tar.gz: f2c3d580ff721a2cc9f69a24063ef16cca44514d
3
+ metadata.gz: cbd92251f22aada15ef3f7c4f0a857162d49381a
4
+ data.tar.gz: 8233265abc5fe0a51252b1c0373334d96b99232e
5
5
  SHA512:
6
- metadata.gz: 2649315fdae780cf2ccdbd0ae4372b4d12a144c2c88d7f3297c7a7bfcc91e4c91099f8d7366a8c605d5fc9ed40255c293b00cf351b96f7ab0ecce9be71c51e96
7
- data.tar.gz: 08170667203461dbf02caa1aaec779f32347f32488a28114d2c53d51b8d256ece4a28b713a1451319ac5ebffea858802da0f763e8f1fbc2adad501b2542018f3
6
+ metadata.gz: 6df6f091d045ed0b9b0c71a7496c96f8f8056afdc317cbd87cb91e6811f998aaf0768466b1ccf2fa58eb652c7a46241962136f0892bb824fef3b66c9b133e863
7
+ data.tar.gz: 006b538a2457e1d4ade2b84e6c129c74129dae4ba2beaa943e0d7ead775f683c78e1d447f0a9e979f66a0c2af9547a7bc480de5d8ea307badad223c105cd5918
@@ -1,3 +1,9 @@
1
+ # v0.8.4
2
+
3
+ - Add `md2key listen` subcommand to update Keynote by watching file
4
+ - https://github.com/k0kubun/md2key/pull/44
5
+ - Thanks to @sachin21
6
+
1
7
  # v0.8.3
2
8
 
3
9
  - Resurrect Ruby 2.0.0 support to work on macOS's default environment
data/README.md CHANGED
@@ -10,10 +10,10 @@ gem install md2key
10
10
 
11
11
  ## Usage
12
12
 
13
- - 1. Create a keynote document
14
- - 2. Create a first slide as a cover slide
15
- - 3. Create a second slide to choose a slide layout
16
- - 4. Then execute `md2key markdown.md`
13
+ 1. Create a keynote document
14
+ 2. Create a first slide as a cover slide
15
+ 3. Create a second slide to choose a slide layout
16
+ 4. Then execute `md2key markdown.md`
17
17
 
18
18
  ![](https://i.gyazo.com/9d4d00164683f516d44b3e536b3dd3e9.gif)
19
19
 
@@ -107,14 +107,30 @@ sequenceDiagram
107
107
  ^ Remember, what would Freddie Mercury do? Yes, I'm Freddie! We are the champions!!
108
108
  ```
109
109
 
110
- ## Experimental Features
111
-
112
- ### Configure master slide by header level
110
+ ### Configure master slide by header level (experimental)
113
111
 
114
112
  You can change master slide by header level if you have `.md2key`.
115
113
 
116
114
  See [#32](https://github.com/k0kubun/md2key/pull/32) for details.
117
115
 
116
+ ## Creating your own template
117
+
118
+ Follow the following steps:
119
+
120
+ 1. Open keynote application.
121
+ 2. Create empty presentation.
122
+ 3. Add **two master slides** (required) to the empty presentation:
123
+ - First slide is the cover.
124
+ - Second slide is the layout.
125
+
126
+ ### Sample
127
+ You can start to modify and learn from [assets/default.key](https://github.com/k0kubun/md2key/blob/master/assets/default.key?raw=true).
128
+
129
+ ### Important tips
130
+ In order to make md2key replaces the texts correctly you have to select `Title` and `Body` from the master template.
131
+
132
+ <img src='https://github.com/k0kubun/md2key/blob/master/assets/setup_master_slide.png?raw=true' width='40%'>
133
+
118
134
  ## License
119
135
 
120
136
  MIT License
Binary file
Binary file
@@ -23,6 +23,19 @@ module Md2key
23
23
  puts "# Successfully generated .md2key!\n#{yaml}"
24
24
  end
25
25
 
26
+ desc 'listen', 'Update the *.key file when each saves'
27
+ def listen(path)
28
+ require 'listen'
29
+ puts 'Watching the *.md file...'
30
+ listener = Listen.to('./', only: /\.md$/) do |_|
31
+ convert(path) && (puts "The *.key file has been updated. let's open *.key file!")
32
+ end
33
+ listener.start
34
+ sleep
35
+ rescue Interrupt
36
+ puts 'Bye.'
37
+ end
38
+
26
39
  private
27
40
 
28
41
  # Shorthand for `md2key convert *.md`
@@ -1,3 +1,3 @@
1
1
  module Md2key
2
- VERSION = '0.8.3'
2
+ VERSION = '0.8.4'
3
3
  end
@@ -25,6 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.add_dependency 'redcarpet', '~> 3.3'
26
26
  spec.add_dependency 'oga', '~> 1.2'
27
27
  spec.add_development_dependency 'bundler', '~> 1.12'
28
+ spec.add_development_dependency 'listen', '~> 3.0'
28
29
  spec.add_development_dependency 'rake', '~> 10.0'
29
30
  spec.add_development_dependency 'pry'
30
31
  end
metadata CHANGED
@@ -1,97 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: md2key
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-22 00:00:00.000000000 Z
11
+ date: 2017-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.19'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.19'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: redcarpet
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.3'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: oga
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.12'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.12'
69
+ - !ruby/object:Gem::Dependency
70
+ name: listen
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rake
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - ~>
87
+ - - "~>"
74
88
  - !ruby/object:Gem::Version
75
89
  version: '10.0'
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - ~>
94
+ - - "~>"
81
95
  - !ruby/object:Gem::Version
82
96
  version: '10.0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: pry
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - '>='
101
+ - - ">="
88
102
  - !ruby/object:Gem::Version
89
103
  version: '0'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - '>='
108
+ - - ">="
95
109
  - !ruby/object:Gem::Version
96
110
  version: '0'
97
111
  description: Convert markdown to keynote
@@ -102,14 +116,16 @@ executables:
102
116
  extensions: []
103
117
  extra_rdoc_files: []
104
118
  files:
105
- - .gitignore
106
- - .travis.yml
119
+ - ".gitignore"
120
+ - ".travis.yml"
107
121
  - CHANGELOG.md
108
122
  - Gemfile
109
123
  - LICENSE.txt
110
124
  - README.md
111
125
  - Rakefile
112
126
  - assets/background.png
127
+ - assets/default.key
128
+ - assets/setup_master_slide.png
113
129
  - bin/console
114
130
  - bin/setup
115
131
  - exe/md2key
@@ -157,17 +173,17 @@ require_paths:
157
173
  - lib
158
174
  required_ruby_version: !ruby/object:Gem::Requirement
159
175
  requirements:
160
- - - '>='
176
+ - - ">="
161
177
  - !ruby/object:Gem::Version
162
178
  version: '0'
163
179
  required_rubygems_version: !ruby/object:Gem::Requirement
164
180
  requirements:
165
- - - '>='
181
+ - - ">="
166
182
  - !ruby/object:Gem::Version
167
183
  version: '0'
168
184
  requirements: []
169
185
  rubyforge_project:
170
- rubygems_version: 2.0.14.1
186
+ rubygems_version: 2.5.2
171
187
  signing_key:
172
188
  specification_version: 4
173
189
  summary: Convert markdown to keynote