prmd 0.11.1 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prmd/templates/schemata/link_curl_example.md.erb +6 -6
- data/lib/prmd/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: 36618a2497f361cd82979268be66d90bd7fd7a4d
|
4
|
+
data.tar.gz: 6c812c38a238e1e5a9a029e7d63a07589566dbeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21fb292a232081b1353d9b7b81ab5d56722368425f9b95a00ebe15643915d13aaddea7dd727ba3f2d73e04e93d1dae3b3d7449347acf9ab725739054f99344da
|
7
|
+
data.tar.gz: 5e0565bda2265ecbcf978b84fe61089948846c6236f65a02b9bf8603bd2ba00ec1c30449fcf23e7898e8c20c69ced504ca1681dd3a2ae0d022dd7ab31af28873
|
@@ -21,12 +21,12 @@ $ curl -n -X <%= link['method'] %> <%= schema.href %><%= path -%><%- unless opti
|
|
21
21
|
<%- else %>
|
22
22
|
$ curl -n <%= schema.href %><%= path -%><%- unless options[:http_header].empty? %> \<%- end %>
|
23
23
|
<%- end %>
|
24
|
-
|
25
|
-
-
|
26
|
-
<%- end %>
|
27
|
-
<%- if !data.nil? && link['method'].upcase != 'GET' %> \
|
28
|
-
-d '<%= JSON.pretty_generate(data) %>'
|
24
|
+
<%- if !data.nil? && link['method'].upcase != 'GET' %>
|
25
|
+
-d '<%= JSON.pretty_generate(data) %>'<%- unless options[:http_header].empty? %> \<%- end %>
|
29
26
|
<%- elsif !get_params.empty? && link['method'].upcase == 'GET' %> -G \
|
30
|
-
-d <%= get_params.join(" \\\n -d ") %>
|
27
|
+
-d <%= get_params.join(" \\\n -d ") %><%- unless options[:http_header].empty? %> \<%- end %>
|
28
|
+
<%- end %>
|
29
|
+
<%- options[:http_header].each do |key, value| %>
|
30
|
+
-H "<%= key %>: <%= value %>"<%- if key != options[:http_header].keys.last %> \<%- end %>
|
31
31
|
<%- end %>
|
32
32
|
```
|
data/lib/prmd/version.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
module Prmd
|
3
3
|
# Well, duh, its a Version module, what did you expect?
|
4
4
|
module Version
|
5
|
-
MAJOR, MINOR, TEENY, PATCH = 0, 11,
|
5
|
+
MAJOR, MINOR, TEENY, PATCH = 0, 11, 2, nil
|
6
6
|
# version string
|
7
7
|
# @return [String]
|
8
8
|
STRING = [MAJOR, MINOR, TEENY, PATCH].compact.join('.').freeze
|