obst 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/obst/notes.rb +0 -4
- data/lib/obst/tags_count.rb +10 -2
- data/lib/obst/version.rb +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: 7e034c9801c0f95847ebff1b7538619cc3a4d2fd54fcb8b237719ef1ef14b021
|
4
|
+
data.tar.gz: '059acbb56ec335954730fd95dfab999065fd35c20065568ed61338d69b7a007a'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0a819a3308f2cc93e03a358fc52d366ecff5d8ff2eba8042ccb1416919732db129d1206cdcf091c7828ceacbf0e6a09ff5fa5d7f1e253b6461a9e699532ab9f
|
7
|
+
data.tar.gz: 58edfed39383f457dfd4c5739a928f05f39a8c0eb7918ff9597fd4f463de87ca242a6e331bb088159727b08d66c747bfa931274d6d897295509142c25b6fbb70
|
data/.gitignore
CHANGED
data/lib/obst/notes.rb
CHANGED
data/lib/obst/tags_count.rb
CHANGED
@@ -8,9 +8,17 @@ module Obst
|
|
8
8
|
|
9
9
|
def to_s
|
10
10
|
buffer = ["# Tags\n"]
|
11
|
-
|
12
|
-
|
11
|
+
|
12
|
+
@notes.map(&:tags).flatten.tally.sort do |t1, t2|
|
13
|
+
if (compare_count = (t2[1] <=> t1[1])) == 0
|
14
|
+
t1[0] <=> t2[0]
|
15
|
+
else
|
16
|
+
compare_count
|
17
|
+
end
|
18
|
+
end.each_with_index do |(tag, count), idx|
|
19
|
+
buffer << "#{idx + 1}. #{tag}: #{count}"
|
13
20
|
end
|
21
|
+
|
14
22
|
buffer.join("\n")
|
15
23
|
end
|
16
24
|
end
|
data/lib/obst/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: obst
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ken
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '0'
|
64
64
|
requirements: []
|
65
|
-
rubygems_version: 3.4.
|
65
|
+
rubygems_version: 3.4.1
|
66
66
|
signing_key:
|
67
67
|
specification_version: 4
|
68
68
|
summary: Obsidian stats
|