docstache 0.0.5 → 0.0.6

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: 04ff8795e16cfcc751bafdd1989b24e39cffe65e
4
- data.tar.gz: ce78be381a035afcc5df4384f6338e66907478f3
3
+ metadata.gz: 08c60c077ff86e003e3519a97b4cd6077987ddf7
4
+ data.tar.gz: d001afdb640660291ec819b83f709c10f2d3cfba
5
5
  SHA512:
6
- metadata.gz: 046d5ba48dd1ec60d1341bba04d19adec9ec3b228976754bc69a6fe3be02962f444f6e64711ee426ae9249c693a06f9abf569498540a2f35797f9949253aeff2
7
- data.tar.gz: dd61fda9dff0a969f7f6297b744a1810477dc8cbe4d042e2a6001c103ded6989bc2793ba4b5de6bff7818ce42a815895d5037988a9db8484a0f5258f2b7cbc3c
6
+ metadata.gz: 1fc33d73b305f1cba92607e1bd2181bc802f031f7c62a8b8956878b40b9920d0c70d0c74c841bd8b14a4ead40c2e596db818de8cd36296285fc47e1d66529869
7
+ data.tar.gz: 0f4f43d8b761f0c67e822613f26b6c54b54e2de24fd18a83b9c81a8b6a2770ccc9b7e58d03ca918e59e70cdbca42f4841ffbca8f252145d888d93d5c7582144d
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rspec/core/rake_task'
2
- require 'rubocop/rake_task'
2
+ require 'bundler'
3
3
 
4
4
  RSpec::Core::RakeTask.new(:spec)
5
- RuboCop::RakeTask.new
5
+ Bundler::GemHelper.install_tasks
6
6
 
7
- task default: [:spec, :rubocop]
7
+ task default: [:spec]
@@ -18,7 +18,9 @@ module Docstache
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 { |tag|
22
+ tag.text.scan(/\{\{[\w\.\^\#\/]+\}\}/)
23
+ }.flatten
22
24
  end
23
25
 
24
26
  def fix_errors
@@ -1,3 +1,3 @@
1
1
  module Docstache
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/lib/docstache.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'nokogiri'
2
2
  require 'zip'
3
3
 
4
+ require "docstache/version"
4
5
  require "docstache/data_scope"
5
6
  require "docstache/block"
6
7
  require "docstache/renderer"
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.5
4
+ version: 0.0.6
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-09 00:00:00.000000000 Z
11
+ date: 2015-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  requirements: []
102
102
  rubyforge_project:
103
- rubygems_version: 2.4.4
103
+ rubygems_version: 2.4.5
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Merges Hash of Data into Word docx template files using mustache syntax