slim-mustache 1.0.0 → 1.0.1

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: eceda48db1bdc2a3923f662fe2631a9e73d289b9
4
- data.tar.gz: 892b6783b80e955bf2cf4b75d4fae5a98f8db441
3
+ metadata.gz: 562500bd8d243874a5d5e1a5ab40bb57eaf56ef9
4
+ data.tar.gz: 57a5be165c197e98faa623d342dd695fe451759a
5
5
  SHA512:
6
- metadata.gz: 8758c648a3215a7044e5f6632340b5836f2bbd779ebf66c901e2ae99c8944beef74a4da036b5b0f95b899c61fe7e35f7d6ce4a3cb718d6faf39992dd0a3f0976
7
- data.tar.gz: 6dd93b91ed571966959318c3112666e88d4f9fc0c6063356c0fa36e618c9151fd6b5bd1e2f33941bea6640642b6cd4e407288d636604e5ce5d1fa1cfb00af944
6
+ metadata.gz: b9a7402dbbffdcf453ac8d29670857fbccf74f7ac5a9b369f32873864991aac4c51e4bf3e3d2b8ff3a19abbdb00079a355c29d81e8f053368c927b14f605cc12
7
+ data.tar.gz: cee9251a2e407a82cc0b5de0b1d0a1d9066e057116104ebca1bc103de8a1a373d86b3ba5ac1221ebe68e0b7896c9c7e6d4d4688415d99fba6be2f4dcb24c00d6
data/Rakefile CHANGED
@@ -21,7 +21,7 @@ Jeweler::Tasks.new do |gem|
21
21
  gem.description = %Q{use a ~tilde to generate \{\{mustache\}\} syntax}
22
22
  gem.email = "michelbenevento@yahoo.com"
23
23
  gem.authors = ["Michel Benevento"]
24
- gem.version = "1.0.0"
24
+ gem.version = "1.0.1"
25
25
  # dependencies defined in Gemfile
26
26
  end
27
27
  Jeweler::RubygemsDotOrgTasks.new
@@ -18,7 +18,12 @@ module Slim
18
18
  matches.each do |first, prefix, text, clean_text, _, last|
19
19
  prefix = "#{prefix} " if prefix
20
20
  text = clean_text if clean_text
21
- stack << [:multi, [:static, "{{#{prefix}"], [:slim, :interpolate, text], [:static, "}}"], [:slim, :interpolate, last]]
21
+ stack << [:multi,
22
+ [:slim, :interpolate, first],
23
+ [:static, "{{#{prefix}"],
24
+ [:slim, :interpolate, text],
25
+ [:static, "}}"],
26
+ [:slim, :interpolate, last]]
22
27
  end
23
28
  stack
24
29
  else
@@ -0,0 +1,61 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+ # stub: slim-mustache 1.0.1 ruby lib
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "slim-mustache"
9
+ s.version = "1.0.1"
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
13
+ s.authors = ["Michel Benevento"]
14
+ s.date = "2015-06-25"
15
+ s.description = "use a ~tilde to generate {{mustache}} syntax"
16
+ s.email = "michelbenevento@yahoo.com"
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt",
19
+ "README.rdoc"
20
+ ]
21
+ s.files = [
22
+ ".document",
23
+ "Gemfile",
24
+ "LICENSE.txt",
25
+ "README.rdoc",
26
+ "Rakefile",
27
+ "lib/slim/mustache.rb",
28
+ "lib/slim/mustache/filter.rb",
29
+ "lib/slim/mustache/grammar.rb",
30
+ "lib/slim/mustache/parser.rb",
31
+ "slim-mustache.gemspec",
32
+ "test/helper.rb",
33
+ "test/test_slim-mustache.rb"
34
+ ]
35
+ s.homepage = "http://github.com/beno/slim-mustache"
36
+ s.licenses = ["MIT"]
37
+ s.rubygems_version = "2.4.5"
38
+ s.summary = "mustache/handlebars support for slim"
39
+
40
+ if s.respond_to? :specification_version then
41
+ s.specification_version = 4
42
+
43
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
44
+ s.add_runtime_dependency(%q<slim>, ["~> 3.0"])
45
+ s.add_development_dependency(%q<minitest>, ["~> 5.7"])
46
+ s.add_development_dependency(%q<bundler>, ["~> 1.0"])
47
+ s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
48
+ else
49
+ s.add_dependency(%q<slim>, ["~> 3.0"])
50
+ s.add_dependency(%q<minitest>, ["~> 5.7"])
51
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
52
+ s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
53
+ end
54
+ else
55
+ s.add_dependency(%q<slim>, ["~> 3.0"])
56
+ s.add_dependency(%q<minitest>, ["~> 5.7"])
57
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
58
+ s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
59
+ end
60
+ end
61
+
@@ -17,6 +17,13 @@ class TestSlimMustache < TestSlim
17
17
  assert_html '{{foo}} bar {{baz}}', source
18
18
  end
19
19
 
20
+ def test_line_deep
21
+ source = %q{
22
+ h2 some more ~foo
23
+ }
24
+ assert_html '<h2>some more {{foo}}</h2>', source
25
+ end
26
+
20
27
  def test_dots
21
28
  source = %q{
22
29
  ~foo.bar. baz
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slim-mustache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Benevento
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-20 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: slim
@@ -83,6 +83,7 @@ files:
83
83
  - lib/slim/mustache/filter.rb
84
84
  - lib/slim/mustache/grammar.rb
85
85
  - lib/slim/mustache/parser.rb
86
+ - slim-mustache.gemspec
86
87
  - test/helper.rb
87
88
  - test/test_slim-mustache.rb
88
89
  homepage: http://github.com/beno/slim-mustache
@@ -105,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
106
  version: '0'
106
107
  requirements: []
107
108
  rubyforge_project:
108
- rubygems_version: 2.4.2
109
+ rubygems_version: 2.4.5
109
110
  signing_key:
110
111
  specification_version: 4
111
112
  summary: mustache/handlebars support for slim