zet 0.2.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/zet/cli.rb +1 -1
  3. data/lib/zet/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af846fb195d74e4da3745ebbfde379267f5624cb53ae1b7a7b5707701e49578b
4
- data.tar.gz: a08347e1ee4c3109da5fec9fba30413bcb7a8a2ea619ed801ee8b628b9fd3653
3
+ metadata.gz: 17f58752d4dd9330e991b51b7c5823526936a593ffe9c014a48d832389b08090
4
+ data.tar.gz: 485c68849415d2402d78b8266532bce4b8551dc312220d5a12443aedc5e81016
5
5
  SHA512:
6
- metadata.gz: a194f3c09c2a140ca5e075c7467a2d38d9e5113fb1c6cdcb418123f78b976a07d645d9d53a17c65bd615fcb195dc219696b61ad0875d25588954e163a4514017
7
- data.tar.gz: 60c78fe0b7678fe388484d1ef4ac8f119625828775c4ee7f1a4e1381412d03b44a9941a9eec2a71ac6a046cab632d049d3d86d68baa595c94474fbf4d7f3fd60
6
+ metadata.gz: e4c087398b337beb5d199419c6117505f044cdc3669271eafb899b84bc30611e4124f960f0b00810c64eda3437da5336d19361239abe9aebd034eefd04598bd9
7
+ data.tar.gz: 8a9f30263f94fedc32c997eac0e86e684fc985ef8fe36cfd3ea1f5170e2c93f700207a7d7dca5f7477926fe02874a470ecb6309d441427945c9304583ab9f1b5
@@ -57,7 +57,7 @@ module Zet
57
57
  end
58
58
 
59
59
  def note_file(name)
60
- slug = name.downcase.gsub(/\W/, "").split(" ").join("-")
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")
@@ -3,5 +3,5 @@
3
3
  # Module to keep the gem's version in. Make sure to bump it before release.
4
4
  #
5
5
  module Zet
6
- VERSION = "0.2.0".freeze
6
+ VERSION = "0.2.2".freeze
7
7
  end
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.0
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: 2020-12-31 00:00:00.000000000 Z
11
+ date: 2021-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler