curlyq 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/bin/curlyq +2 -8
- data/lib/curly/version.rb +1 -1
- data/src/_README.md +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbd33a3d0d828e3574fa1dbf41a4237f52cd489a11ca00ab9146753b5a0d4fda
|
4
|
+
data.tar.gz: 222d5f050317d2c7b12462d65155180fc8e2222d6b05c974f76fbfdc4a65371a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84b926cfda6623ea508582e4c0d03fe99fe0153e4ae40772509922fe0efe00917f28f6176c1144a0c7cfbb80f51591b6d7432143a6fe2b664f552cb65eb2caba
|
7
|
+
data.tar.gz: b8a81553defeae0797d297937432a3271de65810e9cfaf2d4d4bbde12b54c645940d8674bf2995263f170151c4295a5a73c142851031e9d4f84fd3a66b3f6983
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -13,7 +13,7 @@ _If you find this useful, feel free to [buy me some coffee][donate]._
|
|
13
13
|
[jq]: https://github.com/jqlang/jq "Command-line JSON processor"
|
14
14
|
[yq]: https://github.com/mikefarah/yq "yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor"
|
15
15
|
|
16
|
-
The current version of `curlyq` is 0.0.
|
16
|
+
The current version of `curlyq` is 0.0.15.
|
17
17
|
|
18
18
|
CurlyQ is a utility that provides a simple interface for curl, with additional features for things like extracting images and links, finding elements by CSS selector or XPath, getting detailed header info, and more. It's designed to be part of a scripting pipeline, outputting everything as structured data (JSON or YAML). It also has rudimentary support for making calls to JSON endpoints easier, but it's expected that you'll use something like [jq] to parse the output.
|
19
19
|
|
@@ -46,7 +46,7 @@ SYNOPSIS
|
|
46
46
|
curlyq [global options] command [command options] [arguments...]
|
47
47
|
|
48
48
|
VERSION
|
49
|
-
0.0.
|
49
|
+
0.0.15
|
50
50
|
|
51
51
|
GLOBAL OPTIONS
|
52
52
|
--help - Show this message
|
data/bin/curlyq
CHANGED
@@ -149,10 +149,7 @@ command %i[html curl] do |c|
|
|
149
149
|
output.delete_if(&:nil?)
|
150
150
|
output.delete_if(&:empty?)
|
151
151
|
|
152
|
-
if output.nil? || output.empty?
|
153
|
-
print_out([], global_options[:yaml], raw: options[:raw], pretty: global_options[:pretty])
|
154
|
-
Process.exit 1
|
155
|
-
end
|
152
|
+
exit_now!('No results') if output.nil? || output.empty?
|
156
153
|
|
157
154
|
output.map! { |o| o[options[:raw].to_sym] } if options[:raw]
|
158
155
|
|
@@ -492,10 +489,7 @@ command :images do |c|
|
|
492
489
|
end
|
493
490
|
end
|
494
491
|
|
495
|
-
if output.nil? || output.empty?
|
496
|
-
print_out([], global_options[:yaml], raw: options[:raw], pretty: global_options[:pretty])
|
497
|
-
Process.exit 1
|
498
|
-
end
|
492
|
+
exit_now!('No results') if output.nil? || output.empty?
|
499
493
|
|
500
494
|
print_out(output, global_options[:yaml], pretty: global_options[:pretty])
|
501
495
|
end
|
data/lib/curly/version.rb
CHANGED
data/src/_README.md
CHANGED
@@ -13,7 +13,7 @@ _If you find this useful, feel free to [buy me some coffee][donate]._
|
|
13
13
|
[jq]: https://github.com/jqlang/jq "Command-line JSON processor"
|
14
14
|
[yq]: https://github.com/mikefarah/yq "yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor"
|
15
15
|
|
16
|
-
The current version of `curlyq` is <!--VER-->0.0.
|
16
|
+
The current version of `curlyq` is <!--VER-->0.0.14<!--END VER-->.
|
17
17
|
|
18
18
|
CurlyQ is a utility that provides a simple interface for curl, with additional features for things like extracting images and links, finding elements by CSS selector or XPath, getting detailed header info, and more. It's designed to be part of a scripting pipeline, outputting everything as structured data (JSON or YAML). It also has rudimentary support for making calls to JSON endpoints easier, but it's expected that you'll use something like [jq] to parse the output.
|
19
19
|
|