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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a482e647c8669ba7464c6dbbfd457f700b3c9db
4
- data.tar.gz: 401c1ba54443be6f7067bddc3b5b6b7d99fea719
3
+ metadata.gz: 36618a2497f361cd82979268be66d90bd7fd7a4d
4
+ data.tar.gz: 6c812c38a238e1e5a9a029e7d63a07589566dbeb
5
5
  SHA512:
6
- metadata.gz: 17bfb840374dfe63c6057338d78e6af32ca72bbf5b2d6fc34b47f290496c4dc6188ac8101f02b1ac7dcfebee56751aa826cdf806f5665ddb4a6794d9b1f9ac33
7
- data.tar.gz: 23d81754545209c013a7ad01743c548766c59937e1e144551882479602aaceab5be1f4c934b9e17c2b6486d6eb3d09f583519a51eac6b9faa3d0c41198292116
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
- <%- options[:http_header].each do |key, value| %>
25
- -H "<%= key %>: <%= value %>"<%- unless key == options[:http_header].keys.last %> \<%- end %>
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, 1, nil
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prmd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - geemus