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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 498cab83d9bdadd7f60741682832abff60440b8b
4
- data.tar.gz: 7ae7842084c4e2f9d32e06df3d4892664975dd68
3
+ metadata.gz: 04ff8795e16cfcc751bafdd1989b24e39cffe65e
4
+ data.tar.gz: ce78be381a035afcc5df4384f6338e66907478f3
5
5
  SHA512:
6
- metadata.gz: 33dcab26cfadbc1c6af24fb888faa084c7a31e00abdc2975b1ddab8a4946d4c684063d764b41e14efb0f2973b70e2d8c5229887fffef6b3288c602c8669be27e
7
- data.tar.gz: c8f53d99e0b6c00d23533f046826ec9fd042b0678e5c09d8a1df5ea618dd0d0eaf90989510039dff02db27c8cd0fd4eecc94037d4ce4bbc55cdd79098bd515bd
6
+ metadata.gz: 046d5ba48dd1ec60d1341bba04d19adec9ec3b228976754bc69a6fe3be02962f444f6e64711ee426ae9249c693a06f9abf569498540a2f35797f9949253aeff2
7
+ data.tar.gz: dd61fda9dff0a969f7f6297b744a1810477dc8cbe4d042e2a6001c103ded6989bc2793ba4b5de6bff7818ce42a815895d5037988a9db8484a0f5258f2b7cbc3c
data/changelog.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.5
4
+
5
+ * Fixed a bug that caused {{^tags}} to always show up as errors
6
+
3
7
  ## 0.0.4
4
8
 
5
9
  * Rewrite of the Renderer class
@@ -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\.\/\#]+\}\}/ }.map(&:text)
21
+ @document.css('w|t').select { |tag| tag.text =~ /\{\{[\w\.\^\#\/]+\}\}/ }.map(&:text)
22
22
  end
23
23
 
24
24
  def fix_errors
@@ -1,3 +1,3 @@
1
1
  module Docstache
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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
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-08 00:00:00.000000000 Z
11
+ date: 2014-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri