autodoc 0.6.2 → 0.7.0

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: 6173952f06a2ef08f6eae60d4eb80ecb127a56c2
4
- data.tar.gz: dc2ef27a50a4167c3e4c24bde9a853402ee79e0f
3
+ metadata.gz: 9b8a2a488c593dd6b946457b2187939d4a2cf436
4
+ data.tar.gz: aebf189b5ae6d04fbdb7b3701db2e51243eca6da
5
5
  SHA512:
6
- metadata.gz: de2ed39634f28b7fecafe49e5f376c1b0e9eb1a68768214760cdc837a83896bb44d3552b1743e3eafe8add1d99b056cc27924a55a5caaee9b9cf1b9946a3991f
7
- data.tar.gz: bd0e7162163e3248b82c63ebbcfeb1b8165c5fcdfe78496e5b85dc2a6c51b99d2420db02b50f34eed7d08081039c4d57bc1782889cbc71c2c6302a75240eadd6
6
+ metadata.gz: 7591cf811cc061dec3a0a05d26a41b70a9c2caaa2420e760aa3bbb633a61837c91f16e57afd477ceb27689e3f8c968989d9d185f770ba8270f27dfe7605c3b67
7
+ data.tar.gz: 8207eb860795eca2f040cfe439b2d846d06d6f474b40eed344704128236246b5893f3d82e323be9fb3faf1800d98462029cd225475272cb1587d5426148eff01
@@ -1,3 +1,8 @@
1
+ ## 0.7.0
2
+
3
+ - Shell-escape given path
4
+ - Use `#to_hash` to response headers if it can respond it
5
+
1
6
  ## 0.6.2
2
7
 
3
8
  - Support multibyte query parameters (Thx @hiroki-uchida)
@@ -1,3 +1,4 @@
1
+ require 'shellwords'
1
2
  module Autodoc
2
3
  class Configuration
3
4
  class << self
@@ -50,7 +51,7 @@ module Autodoc
50
51
  end
51
52
 
52
53
  def pathname
53
- Pathname.new(path)
54
+ Pathname.new(Shellwords.shellescape(path))
54
55
  end
55
56
  end
56
57
  end
@@ -137,6 +137,7 @@ module Autodoc
137
137
 
138
138
  def response_header
139
139
  table = response.headers.clone
140
+ table = table.to_hash if table.respond_to?(:to_hash)
140
141
  table.except!(*Autodoc.configuration.suppressed_response_header)
141
142
  table.map {|key, value| [key, value].join(": ") }.sort.join("\n")
142
143
  end
@@ -1,3 +1,3 @@
1
1
  module Autodoc
2
- VERSION = "0.6.2"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autodoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-22 00:00:00.000000000 Z
11
+ date: 2018-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport