docstache 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/changelog.md +4 -0
- data/lib/docstache/document.rb +2 -2
- data/lib/docstache/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04ff8795e16cfcc751bafdd1989b24e39cffe65e
|
4
|
+
data.tar.gz: ce78be381a035afcc5df4384f6338e66907478f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 046d5ba48dd1ec60d1341bba04d19adec9ec3b228976754bc69a6fe3be02962f444f6e64711ee426ae9249c693a06f9abf569498540a2f35797f9949253aeff2
|
7
|
+
data.tar.gz: dd61fda9dff0a969f7f6297b744a1810477dc8cbe4d042e2a6001c103ded6989bc2793ba4b5de6bff7818ce42a815895d5037988a9db8484a0f5258f2b7cbc3c
|
data/changelog.md
CHANGED
data/lib/docstache/document.rb
CHANGED
@@ -14,11 +14,11 @@ module Docstache
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def tags
|
17
|
-
@document.text.gsub(/\s+/, '').scan(/\{\{[\w
|
17
|
+
@document.text.gsub(/\s+/, '').scan(/\{\{[\w\.\^\#\/]+\}\}/)
|
18
18
|
end
|
19
19
|
|
20
20
|
def usable_tags
|
21
|
-
@document.css('w|t').select { |tag| tag.text =~ /\{\{[\w
|
21
|
+
@document.css('w|t').select { |tag| tag.text =~ /\{\{[\w\.\^\#\/]+\}\}/ }.map(&:text)
|
22
22
|
end
|
23
23
|
|
24
24
|
def fix_errors
|
data/lib/docstache/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docstache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Will Cosgrove
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|