jdoc 0.0.3 → 0.0.4

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: 8c7c44415c7c1e76bc511e88660570c29e10fd0f
4
- data.tar.gz: 8b104d651cb984afab5746e939942c7a4c6834cd
3
+ metadata.gz: 1e6ab788d64fd09d89645af3739586aa7d7c1e4a
4
+ data.tar.gz: 314edf5ea027976c109b6308defbc5c60e775956
5
5
  SHA512:
6
- metadata.gz: 90506aaf886cf63531b1c6f07256d5aa561525b43de88d27c7c80364efc65e334263c33401f88bd534272fed72f5dbd9c57407c4e252e81af637f673840bb7cb
7
- data.tar.gz: 7e030e0547db6a2b538098c69b04b70a46c4444d956fedc3a19212fd21658f03d7be580de0f492426d780f6637c233b02ca68e5151124167db704ee801c25e3b
6
+ metadata.gz: db73d88de36bc5639c4ff1494c19683decd3e7f60a4eec6ad50d84c15cad77b4fd516f86cb103cde5b7996fd3c40c3aefc0272e2097050d8a8779cccca28b7ef
7
+ data.tar.gz: 2bc1fe9dba2f79f086c5e90aef13c9f9489c846b69deed9f02a42c60db21a98d43a228d0a3a945e4a9db06c5701659058b49a28a4df8594a71bfa4d813abe317
@@ -1,3 +1,6 @@
1
+ ## 0.0.4
2
+ * Support whitespace and multiple templates in href
3
+
1
4
  ## 0.0.3
2
5
  * Fix missing gem dependencies
3
6
 
@@ -57,8 +57,8 @@ module Jdoc
57
57
  # @example
58
58
  # link.path #=> "GET /apps/:id"
59
59
  def path
60
- @path ||= @raw_link.href.gsub(/{(.+)}/) do |matched|
61
- ":" + CGI.unescape($1).gsub(/[()]/, "").split("/").last
60
+ @path ||= @raw_link.href.gsub(/{(.+?)}/) do |matched|
61
+ ":" + CGI.unescape($1).gsub(/[()\s]/, "").split("/").last
62
62
  end
63
63
  end
64
64
 
@@ -1,3 +1,3 @@
1
1
  module Jdoc
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-07 00:00:00.000000000 Z
11
+ date: 2014-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erubis