osx_trash 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 +4 -4
- data/README.md +14 -1
- data/lib/osx_trash/version.rb +1 -1
- data/osx_trash.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8501af5d273f1de26ecec13db2ba014bb84cab7c6bd047d7aec0a8bd5a96c448
|
4
|
+
data.tar.gz: 4005c7728efc409de68d0b776ad5bdee75ce5cc40ce22b9c8b32947efe74cd83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a083704c42833e5adc4c650d74b675f6bbfeb65016ad2683f90d793cdba24881952e25c7b407a1c56c35552cf49ce63a8073e295bc58d2d3c2fa4848dfdaf52b
|
7
|
+
data.tar.gz: 6910cf8f556d142d3835b66d464efd3d409c48c5cd327544c1121f693e5d7db85e494081d28da2dc9bfef031dea4cea4ec59bbb04f226e7f16409873ec75bd52
|
data/README.md
CHANGED
@@ -11,10 +11,23 @@ This gem relies on Applescript (`osax`), which all Apple computers should have.
|
|
11
11
|
## Usage
|
12
12
|
|
13
13
|
```
|
14
|
+
require 'osx_trash'
|
14
15
|
OSX.trash file:path_to_file_list
|
15
16
|
```
|
16
17
|
|
17
|
-
When running locally, `send_to_trash` may move files that are in a watched folder, such as by Dropbox or Google Filestream. These programs may raise a Finder dialog to confirm moving them. You will have to click "OK" for each one. This may cause problems on remote / headless systems. Please file an issue with bug report, or a PR. Thanks.
|
18
|
+
When running the gem locally, `send_to_trash` may move files that are in a watched folder, such as by Dropbox or Google Filestream. These programs may raise a Finder dialog to confirm moving them. You will have to click "OK" for each one. This may cause problems on remote / headless systems. Please file an issue with bug report, or a PR. Thanks.
|
19
|
+
|
20
|
+
You can also call from the CLI:
|
21
|
+
|
22
|
+
```
|
23
|
+
gem install osx_trash
|
24
|
+
|
25
|
+
trash /path/to/a/file.jpg
|
26
|
+
|
27
|
+
trash_all /path/to/file-with-list-of-paths.txt
|
28
|
+
```
|
29
|
+
|
30
|
+
I think that `zsh` may interfere with recognizing bin paths of installed gems. If you have this issue, or a fix, please open an Issue on the repo. Thanks.
|
18
31
|
|
19
32
|
|
20
33
|
## Development
|
data/lib/osx_trash/version.rb
CHANGED
data/osx_trash.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["zak@newalexandria.org"]
|
11
11
|
|
12
12
|
spec.summary = %q{Ruby class and CLI app for moving files to the OSX Trash}
|
13
|
-
spec.description = %q{The OSX Trash gem will take a filepath containing paths to files that should be moved to the OSX trash. The list can be a little noisy, with things that will go away with `strip`. When
|
13
|
+
spec.description = %q{The OSX Trash gem will take a filepath containing paths to files that should be moved to the OSX trash. The list can be a little noisy, with things that will go away with `strip`. When instantiating the class, you can pass a hash of file: with the pathname, or paths: with an array of paths. }
|
14
14
|
spec.homepage = "https://github.com/NewAlexandria/osx_trash"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: osx_trash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zachary Jones
|
@@ -40,8 +40,8 @@ dependencies:
|
|
40
40
|
version: '10.0'
|
41
41
|
description: 'The OSX Trash gem will take a filepath containing paths to files that
|
42
42
|
should be moved to the OSX trash. The list can be a little noisy, with things that
|
43
|
-
will go away with `strip`. When
|
44
|
-
with the pathname, or paths: with an array. '
|
43
|
+
will go away with `strip`. When instantiating the class, you can pass a hash of
|
44
|
+
file: with the pathname, or paths: with an array of paths. '
|
45
45
|
email:
|
46
46
|
- zak@newalexandria.org
|
47
47
|
executables: []
|