plz 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/plz.rb +1 -0
- data/lib/plz/commands/help.rb +3 -3
- data/lib/plz/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f816c8d4bae071f929bcf28be92356e8e0f09e6
|
4
|
+
data.tar.gz: 629ccafae62941b40f0bba8f2c940f930224db9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c89e94a5db1039fb38a36acdc2d1a73c5b36adc4789e8421b0436f314015b29e118bb773afa2c587d8451e60421ebd5f9918bab6b28b5740c0f6156dc08b7a7d
|
7
|
+
data.tar.gz: 52dc00c48044fd44de75551d6bd909eb9135381e6578f56ed6021147e120e941f2f857032fcb1d5f733c5adc83666aff8385f129ed7a7271341b82f54a4d9c13
|
data/CHANGELOG.md
CHANGED
data/lib/plz.rb
CHANGED
@@ -3,6 +3,7 @@ require "active_support/core_ext/hash/slice"
|
|
3
3
|
require "active_support/core_ext/module/delegation"
|
4
4
|
require "active_support/core_ext/string/inflections"
|
5
5
|
require "active_support/core_ext/string/strip"
|
6
|
+
require "cgi"
|
6
7
|
require "faraday"
|
7
8
|
require "faraday_middleware"
|
8
9
|
require "json"
|
data/lib/plz/commands/help.rb
CHANGED
@@ -21,12 +21,12 @@ module Plz
|
|
21
21
|
schema.links.select do |link|
|
22
22
|
link.href && link.method && link.title
|
23
23
|
end.map do |link|
|
24
|
-
str = " plz #{link.title.underscore} #{target_name
|
24
|
+
str = " plz #{link.title.underscore} #{target_name}"
|
25
25
|
if key = link.href[/{(.+)}/, 1]
|
26
|
-
name = key.gsub(/[()]/, "").split("/").last
|
26
|
+
name = CGI.unescape(key).gsub(/[()]/, "").split("/").last
|
27
27
|
if property = link.parent.properties[name]
|
28
28
|
if example = property.data["example"]
|
29
|
-
str << " #{name}=#{example
|
29
|
+
str << " #{name}=#{example}"
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
data/lib/plz/version.rb
CHANGED