obst 0.1.9 → 0.1.11
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/.gitignore +1 -0
- data/lib/obst/notes.rb +0 -4
- data/lib/obst/pack_log.rb +1 -1
- data/lib/obst/tags_count.rb +10 -2
- data/lib/obst/version.rb +1 -1
- metadata +3 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb1ab67448bed4056e7bc000658fbb25a1f39c246edfa25a51a8b751bea7cb9f
|
4
|
+
data.tar.gz: a6093ed7116ca55c9c9009ba6d29972a948987780dbe2b0608dcd5d869b76428
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f04a1f4ea7e675e97fa9ecd83bcecaaa83c8c6a194dc4d6d5fb255448b0717f22a0dbf5db26221881e89f2d375bef11826b110e3f58c616a07429b25b4a3bc03
|
7
|
+
data.tar.gz: 067e2f2ba2b32a4088156a989aa5a0f3c9511bfe8c750e11117de4f1a7425dfc4bae3de9817a781bc30a06a2699ebd06b047b9c0366db65bd81ed465e8d549b7
|
data/.gitignore
CHANGED
data/lib/obst/notes.rb
CHANGED
data/lib/obst/pack_log.rb
CHANGED
@@ -62,7 +62,7 @@ module Obst
|
|
62
62
|
[:del, :d, '#c71585'],
|
63
63
|
[:nil, nil, 'grey']
|
64
64
|
].each do |long, short, color|
|
65
|
-
files = gbfs[short]
|
65
|
+
files = gbfs[short].compact
|
66
66
|
next if files.empty?
|
67
67
|
inline_str = files.sort!.map{ |name| "[[#{name}]]" }.join(' / ')
|
68
68
|
block.call("<font color='#{color}'>#{long} #{files.count}:</font> #{inline_str}")
|
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,16 +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.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ken
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-03-06 00:00:00.000000000 Z
|
12
11
|
dependencies: []
|
13
|
-
description:
|
14
12
|
email:
|
15
13
|
- block24block@gmail.com
|
16
14
|
executables:
|
@@ -47,7 +45,6 @@ homepage: https://github.com/turnon/obst
|
|
47
45
|
licenses:
|
48
46
|
- MIT
|
49
47
|
metadata: {}
|
50
|
-
post_install_message:
|
51
48
|
rdoc_options: []
|
52
49
|
require_paths:
|
53
50
|
- lib
|
@@ -62,8 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
59
|
- !ruby/object:Gem::Version
|
63
60
|
version: '0'
|
64
61
|
requirements: []
|
65
|
-
rubygems_version: 3.
|
66
|
-
signing_key:
|
62
|
+
rubygems_version: 3.6.3
|
67
63
|
specification_version: 4
|
68
64
|
summary: Obsidian stats
|
69
65
|
test_files: []
|