md2key 0.5.1 → 0.5.2

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: 5a4a8a15e795cb012a1ab056caa02dfe34672b12
4
- data.tar.gz: e0ed66c03aea32312bc75a6a305d72d56cb733b3
3
+ metadata.gz: ee2b4a206c2e364066144e6078e33d3568249fb7
4
+ data.tar.gz: db51f92d93466e01e6de76feffb63648351a96a5
5
5
  SHA512:
6
- metadata.gz: 985d2448e312c48f15041c6935ecc7cf16c7d61942f537cb1acb2e1ee072f5c53412e22a08289c0702293cebc3b9210c8d0f9d5d4ddda545100eddd69de01f82
7
- data.tar.gz: 90a63f9d4143c0500a02a4079b579f1f7e0002f91728225fe25f931e1b177d6b61cf34b19444afecb75ed78096c0621b11f919fabeb05d6fa05322618a116289
6
+ metadata.gz: 1d7ca73cc1e3179ad8c2aa68a89cb50b8efd9c78d9ca2dc514559122398909b55647d301292dcb487097864a8631fc554d8e099e537c0f0ebf4dcc1b614af6e1
7
+ data.tar.gz: 42da1d21e7f0583186b65f431cbf0ff11b25139b5b8f721a43ee8209d3d7af5b0e981ba29e86aa870290def24aa0981b5ee95c34201801392495a4cafe9af6d3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # v0.5.2
2
+
3
+ - Use delay before paste to prevent pasting wrong text
4
+
1
5
  # v0.5.1
2
6
 
3
7
  - Escape HTML in markdown
@@ -1,3 +1,3 @@
1
1
  module Md2key
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
@@ -1,8 +1,13 @@
1
+ -- NOTE: Using delay to prevent pbcopy overlap before pasting event.
2
+ -- We should think of a good way to prevent it or provide an option
3
+ -- to change the delay...
1
4
  on run argv
2
5
  set indent to item 1 of argv as number
3
6
  set insertNewline to item 2 of argv as boolean
4
7
 
5
8
  tell application "System Events"
9
+ delay 0.05 -- TODO: this should be configurable or removed
10
+
6
11
  keystroke "v" using { command down }
7
12
 
8
13
  if indent is greater than 0 then
@@ -18,6 +23,8 @@ on run argv
18
23
  end if
19
24
 
20
25
  if insertNewline is true then
26
+ delay 0.05 -- TODO: this should be configurable or removed
27
+
21
28
  key code 36 -- return
22
29
  end if
23
30
  end tell
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: md2key
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-23 00:00:00.000000000 Z
11
+ date: 2016-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  version: '0'
153
153
  requirements: []
154
154
  rubyforge_project:
155
- rubygems_version: 2.4.5.1
155
+ rubygems_version: 2.5.1
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: Convert markdown to keynote