zet 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zet/cli.rb +1 -1
- data/lib/zet/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17f58752d4dd9330e991b51b7c5823526936a593ffe9c014a48d832389b08090
|
4
|
+
data.tar.gz: 485c68849415d2402d78b8266532bce4b8551dc312220d5a12443aedc5e81016
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4c087398b337beb5d199419c6117505f044cdc3669271eafb899b84bc30611e4124f960f0b00810c64eda3437da5336d19361239abe9aebd034eefd04598bd9
|
7
|
+
data.tar.gz: 8a9f30263f94fedc32c997eac0e86e684fc985ef8fe36cfd3ea1f5170e2c93f700207a7d7dca5f7477926fe02874a470ecb6309d441427945c9304583ab9f1b5
|
data/lib/zet/cli.rb
CHANGED
@@ -57,7 +57,7 @@ module Zet
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def note_file(name)
|
60
|
-
slug = name.downcase.gsub(/\W/, "")
|
60
|
+
slug = name.downcase.split(" ").map { |w| w.gsub(/\W/, "") }.join("-")
|
61
61
|
timestamp = Time.now.strftime("%Y%m%d%H%M")
|
62
62
|
|
63
63
|
File.join(Dir.pwd, "notes", "#{timestamp}-#{slug}.md")
|
data/lib/zet/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anatoli Makarevich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|