jtplparser 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/jtplparser.gemspec +2 -2
  3. data/lib/jtplparser.rb +5 -0
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/jtplparser.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jtplparser}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Eric Himmelreich"]
12
- s.date = %q{2011-06-14}
12
+ s.date = %q{2011-06-17}
13
13
  s.description = %q{ruby approximation of http//jtpl.sourceforge.net/}
14
14
  s.email = %q{eric@rawsyntax.com}
15
15
  s.extra_rdoc_files = [
data/lib/jtplparser.rb CHANGED
@@ -20,4 +20,9 @@ class JtplParser
20
20
  def self.variables(string)
21
21
  string.strip.scan(/\{.*?\}/).map {|s| s.gsub('{', '').gsub('}', '') }
22
22
  end
23
+
24
+ def self.begin_end_strings(block_name)
25
+ ["<!-- BEGIN: #{block_name.strip} -->", "<!-- END: #{block_name.strip} -->"]
26
+ end
27
+
23
28
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: jtplparser
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Eric Himmelreich
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-14 00:00:00 -04:00
13
+ date: 2011-06-17 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -123,7 +123,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
123
  requirements:
124
124
  - - ">="
125
125
  - !ruby/object:Gem::Version
126
- hash: -2646409932083893848
126
+ hash: 2000388779110966095
127
127
  segments:
128
128
  - 0
129
129
  version: "0"