hookapp 0.0.5 → 0.0.6

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
  SHA256:
3
- metadata.gz: af7f2f009d2c02cad8385099d036499770fc256c7ee62f54bb154dddef391450
4
- data.tar.gz: a57bea2c1682d71e5f37f95ef81f2cc20a25f18b53febbc29630abd2d73dfa9a
3
+ metadata.gz: 667d13c4181eb18ebfc69b3f9083480d0f18ee4268b5b018306c3afa6ea44b9b
4
+ data.tar.gz: d47999cb2f4ee58cdeafbc139d07d414ef99321dc754b1656d938b22ede92321
5
5
  SHA512:
6
- metadata.gz: fd32ce6c7e9348e398acce8988f2e50a762d2cf4dae21e3a3c02d1f2310371a8c79b22bda56e60bd5398329769b66f5a94cf6af95c4d1701e489cbd7f9cdc8a3
7
- data.tar.gz: 0e4d669d29e3121ac1f7411550b853abf5bafc32d05fd480892e4276a74af4c310aa9d4afa9aadab4ab99164badfb4146a8343ea4e5212a803fbcd34aa570d2b
6
+ metadata.gz: 3bd71e5c85dd7e8d68de294ee74f37456a646c3d301e9ad3f371bf45a2324357787801d9a5d9f8af63464fcb02063276bbd6e719984c00024906520c226ea854
7
+ data.tar.gz: 289cc16cc69b43c7a031af43a372ac6e582a0dede831731f28dd28fa167592163da23137d56971cb5871d90137cb4475322172d1894cb347f7802385a0f86b51
@@ -0,0 +1,18 @@
1
+ #### 0.0.6
2
+
3
+ - Fix missing variable in clipboard functions
4
+ - Mv `cp` alias to mean `clip` instead of `clone`
5
+
6
+ #### 0.0.5
7
+
8
+ - `hook from APP_NAME` command
9
+ - General code cleanup
10
+
11
+ #### 0.0.4
12
+
13
+ - Fix "conversion of nil into string" error
14
+
15
+ #### 0.0.3
16
+
17
+ - Fix to handle all url types, not just hook: and http:
18
+
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hookapp (0.0.4)
4
+ hookapp (0.0.5)
5
5
  gli (= 2.19.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -10,7 +10,7 @@ If you're on a stock Ruby install (i.e. have never installed `rvm` or `rbenv`),
10
10
 
11
11
  ## Usage
12
12
 
13
- Run `hook help` for usage:
13
+ Run `hook help` for usage.
14
14
 
15
15
  NAME
16
16
  hook - CLI interface for Hook.app (macOS)
@@ -26,8 +26,8 @@ Run `hook help` for usage:
26
26
  --version - Display the program version
27
27
 
28
28
  COMMANDS
29
- clip - Copy Hook URL for file/url to clipboard
30
- clone, cp - Clone all hooks from one file or url onto another
29
+ clip, cp - Copy Hook URL for file/url to clipboard
30
+ clone - Clone all hooks from one file or url onto another
31
31
  from - Get a Hook URL for the frontmost window of an app
32
32
  help - Shows a list of commands or help for one command
33
33
  link, ln - Create bidirectional hooks between two or more files/urls
@@ -44,9 +44,9 @@ Run `hook help COMMAND` on any of the commands for more details.
44
44
 
45
45
  The `link` command always creates bidirectional hooks. Give it two or more files or urls and it will create links between them. By default it links all files to the last file in the list. Add the `--all` flag to link all files to every other file in the list. This can be abbreviated as `hook ln -a file1.md file2.pdf "https://brettterpstra.com"`.
46
46
 
47
- Similar to the way you would use the GUI, you can use `hook clip file1.md` to copy a Hook URL to the clipboard, and then use `hook ln -p file2.pdf` to create a link from the clipboard to `file2.pdf`.
47
+ Similar to the way you would use the GUI, you can use `hook clip file1.md` to copy a Hook URL to the clipboard (aliased as `cp`), and then use `hook ln -p file2.pdf` to create a link from the clipboard to `file2.pdf`.
48
48
 
49
- You can also clone all of the links on one file to another, great for adding a new file to a group that's fully crosslinked. Just use `hook clone file1.md file2.pdf`. This command is abbreviated as `cp`.
49
+ You can also clone all of the links on one file to another, great for adding a new file to a group that's fully crosslinked. Just use `hook clone file1.md file2.pdf`.
50
50
 
51
51
  ### Listing hooks
52
52
 
@@ -66,18 +66,3 @@ You can open a hooked file or URL by running `hook select file1.md`. This will d
66
66
 
67
67
  You can also open a file in the Hook GUI using `hook open file1.md`.
68
68
 
69
- ### Changelog
70
-
71
- #### 0.0.5
72
-
73
- - `hook from APP_NAME` command
74
- - General code cleanup
75
-
76
- #### 0.0.4
77
-
78
- - Fix "conversion of nil into string" error
79
-
80
- #### 0.0.3
81
-
82
- - Fix to handle all url types, not just hook: and http:
83
-
data/bin/hook CHANGED
@@ -71,7 +71,7 @@ class App
71
71
 
72
72
  desc 'Copy Hook URL for file/url to clipboard'
73
73
  arg_name 'FILE_OR_URL'
74
- command %i[clip] do |c|
74
+ command %i[clip cp] do |c|
75
75
  c.desc 'Copy as Markdown'
76
76
  c.switch %i[m markdown], { negatable: false, default_value: false }
77
77
 
@@ -119,7 +119,7 @@ class App
119
119
 
120
120
  desc 'Clone all hooks from one file or url onto another'
121
121
  arg_name 'SOURCE TARGET'
122
- command %i[clone cp] do |c|
122
+ command %i[clone] do |c|
123
123
  c.action do |_global_options, _options, args|
124
124
  raise "Wrong number of arguments. Two file paths or urls required (#{args.length} given)" if args.length != 2
125
125
 
data/hook.rdoc CHANGED
@@ -1,6 +1,6 @@
1
1
  == hook - CLI interface for Hook.app (macOS)
2
2
 
3
- v0.0.4
3
+ v0.0.5
4
4
 
5
5
  === Global Options
6
6
  === --help
@@ -14,7 +14,7 @@ Display the program version
14
14
 
15
15
 
16
16
  === Commands
17
- ==== Command: <tt>clip FILE_OR_URL</tt>
17
+ ==== Command: <tt>clip|cp FILE_OR_URL</tt>
18
18
  Copy Hook URL for file/url to clipboard
19
19
 
20
20
 
@@ -31,7 +31,7 @@ Copy as Markdown
31
31
 
32
32
 
33
33
 
34
- ==== Command: <tt>clone|cp SOURCE TARGET</tt>
34
+ ==== Command: <tt>clone SOURCE TARGET</tt>
35
35
  Clone all hooks from one file or url onto another
36
36
 
37
37
 
@@ -134,7 +134,7 @@ class Hooker
134
134
 
135
135
  def copy_bookmark(title, url, opts)
136
136
  raise "No URL found" if url.empty?
137
- title = title.empty? ? 'No title' : mark[:name]
137
+ title = title.empty? ? 'No title' : title
138
138
  output = opts[:markdown] ? "[#{title}](#{url})" : url
139
139
  output.clip
140
140
  %(Copied #{opts[:markdown] ? 'Markdown link' : 'Hook URL'} for '#{title}' to clipboard)
@@ -1,3 +1,3 @@
1
1
  module Hook
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hookapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
@@ -76,6 +76,7 @@ extra_rdoc_files:
76
76
  - hook.rdoc
77
77
  files:
78
78
  - ".gitignore"
79
+ - CHANGELOG.md
79
80
  - Gemfile
80
81
  - Gemfile.lock
81
82
  - README.md