cetus 0.1.34 → 0.1.36
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/bin/cetus +516 -250
- data/cetus.gemspec +1 -1
- data/scripts/create_dir_with_selection +21 -0
- data/scripts/encrypt.sh +17 -0
- data/scripts/zip +20 -0
- metadata +5 -2
data/cetus.gemspec
CHANGED
@@ -6,7 +6,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
6
6
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = 'cetus'
|
9
|
-
spec.version = '0.1.
|
9
|
+
spec.version = '0.1.36'
|
10
10
|
spec.authors = ['Rahul Kumar']
|
11
11
|
spec.email = ['oneness.univ@gmail.com']
|
12
12
|
spec.description = %q{lightning fast file navigator}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
# This creates a directory with selected files
|
3
|
+
IFILE=~/tmp/selected_files
|
4
|
+
TODAY=$(date +"%Y%m%d%H%M")
|
5
|
+
TARGET="NewDirectory"
|
6
|
+
if [[ -f $IFILE ]]; then
|
7
|
+
wc -l $IFILE
|
8
|
+
else
|
9
|
+
echo "No files selected."
|
10
|
+
exit 1
|
11
|
+
fi
|
12
|
+
printf "Enter directory name ($TARGET): "
|
13
|
+
read ANSWER
|
14
|
+
ANSWER=${ANSWER:-$TARGET}
|
15
|
+
mkdir "$ANSWER" || exit 1
|
16
|
+
pwd
|
17
|
+
|
18
|
+
while IFS= read -r file
|
19
|
+
do
|
20
|
+
[ -f "$file" ] && mv "$file" "$ANSWER"
|
21
|
+
done < "$IFILE"
|
data/scripts/encrypt.sh
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
# This zips selected files with a password
|
3
|
+
FILE=~/tmp/selected_files
|
4
|
+
TODAY=$(date +"%Y%m%d%H%M")
|
5
|
+
TARGET=enc_${TODAY}.zip
|
6
|
+
if [[ -f $FILE ]]; then
|
7
|
+
wc -l $FILE
|
8
|
+
else
|
9
|
+
# use $1 file under cursor
|
10
|
+
printf "Using $1. "
|
11
|
+
TARGET="$1.zip"
|
12
|
+
echo "$1" > $FILE
|
13
|
+
fi
|
14
|
+
printf "Enter zip file name ($TARGET): "
|
15
|
+
read ANSWER
|
16
|
+
ANSWER=${ANSWER:-$TARGET}
|
17
|
+
cat $FILE | zip -e $ANSWER -@
|
data/scripts/zip
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
# This script zips the contents of selected_files
|
3
|
+
# It prompts for a file name to create, and defaults to archive.zip
|
4
|
+
|
5
|
+
FILE=~/tmp/selected_files
|
6
|
+
TODAY=$(date +"%Y%m%d%H%M")
|
7
|
+
TARGET=archive_${TODAY}.zip
|
8
|
+
pwd
|
9
|
+
if [[ -f $FILE ]]; then
|
10
|
+
wc -l $FILE
|
11
|
+
else
|
12
|
+
printf "Using $1. "
|
13
|
+
TARGET="$1.zip"
|
14
|
+
echo "$1" > $FILE
|
15
|
+
fi
|
16
|
+
printf "Enter zip file name ($TARGET): "
|
17
|
+
read ANSWER
|
18
|
+
ANSWER=${ANSWER:-$TARGET}
|
19
|
+
cat $FILE | zip "$ANSWER" -@
|
20
|
+
printf "Created #{ANSWER}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cetus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.36
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rahul Kumar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -55,6 +55,9 @@ files:
|
|
55
55
|
- cetus.gemspec
|
56
56
|
- generators/viminfo
|
57
57
|
- generators/z
|
58
|
+
- scripts/create_dir_with_selection
|
59
|
+
- scripts/encrypt.sh
|
60
|
+
- scripts/zip
|
58
61
|
homepage: http://github.com/rkumar/cetus
|
59
62
|
licenses:
|
60
63
|
- MIT
|