snibbets 2.0.38 → 2.0.39
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/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/snibbets/string.rb +4 -0
- data/lib/snibbets/version.rb +1 -1
- data/lib/snibbets.rb +2 -2
- 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: ecbc8c54241157725b6bc023b6ae061efb7cea7e107589ecbac0ddbae684c771
|
|
4
|
+
data.tar.gz: 44ca5362a8223dd32d175ed546734e1cfae050aeba9979727834013c80ddc8de
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f4f1e4fc2032763573c57a9d9f3ce7e3b1abda0a8436d66a5870a389de6bc8253f19bb0c9f1d1a3b5ef1530a34e50e836a52d16966863049a13cfac71afc1ff7
|
|
7
|
+
data.tar.gz: a4f1e41a4bb8857b71e46f3825b666507aa485714f3eff66e4bc020448d804ceace6f5ab938dacade05a8c2b6b92e667facc75b6fac3e23e1bb650bec4a4092e
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -160,7 +160,7 @@ Snibbet's implementation of Skylighting has limited but better-looking themes, a
|
|
|
160
160
|
### Usage
|
|
161
161
|
|
|
162
162
|
```
|
|
163
|
-
Snibbets v2.0.
|
|
163
|
+
Snibbets v2.0.39
|
|
164
164
|
|
|
165
165
|
Usage: snibbets [options] query
|
|
166
166
|
-a, --all If a file contains multiple snippets, output all of them (no menu)
|
data/lib/snibbets/string.rb
CHANGED
data/lib/snibbets/version.rb
CHANGED
data/lib/snibbets.rb
CHANGED
|
@@ -183,7 +183,7 @@ module Snibbets
|
|
|
183
183
|
exts = langs if exts.empty?
|
|
184
184
|
|
|
185
185
|
filename = "#{title}#{exts.map { |x| ".#{x}" }.join('')}.#{Snibbets.options[:extension]}"
|
|
186
|
-
filepath = File.join(File.expand_path(Snibbets.options[:source]), filename)
|
|
186
|
+
filepath = File.join(File.expand_path(Snibbets.options[:source]), filename.escape_filename)
|
|
187
187
|
File.open(filepath, 'w') do |f|
|
|
188
188
|
f.puts "tags: #{tags.join(', ')}
|
|
189
189
|
|
|
@@ -240,7 +240,7 @@ module Snibbets
|
|
|
240
240
|
exts = langs if exts.empty?
|
|
241
241
|
|
|
242
242
|
filename = "#{title}#{exts.map { |x| ".#{x}" }.join('')}.#{Snibbets.options[:extension]}"
|
|
243
|
-
filepath = File.join(File.expand_path(Snibbets.options[:source]), filename)
|
|
243
|
+
filepath = File.join(File.expand_path(Snibbets.options[:source]), filename.escape_filename)
|
|
244
244
|
|
|
245
245
|
output =<<~EOOUTPUT
|
|
246
246
|
tags: #{tags.join(', ')}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: snibbets
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.39
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brett Terpstra
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-09-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -330,7 +330,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
330
330
|
- !ruby/object:Gem::Version
|
|
331
331
|
version: '0'
|
|
332
332
|
requirements: []
|
|
333
|
-
rubygems_version: 3.2.
|
|
333
|
+
rubygems_version: 3.2.16
|
|
334
334
|
signing_key:
|
|
335
335
|
specification_version: 4
|
|
336
336
|
summary: Snibbets
|