flavour_saver 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/flavour_saver/parser.rb +1 -0
- data/lib/flavour_saver/version.rb +1 -1
- data/spec/acceptance/handlebars_qunit_spec.rb +12 -0
- 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: ede52d62fc43eaa6039e3636c9ef8af7e491157c
|
4
|
+
data.tar.gz: fa349791c0702290767d1b8f88ca167202669664
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c13fd476f6ff9e7938feeabcd43c3a983bca35e8492f4d1013afd43fab88013eefe0861d59c188ed6cfb322a1b898469a709865fef33845896dcd7e718a06b39
|
7
|
+
data.tar.gz: 3294c0f030fc53faed2aa2c42e25233a0ce1e901648e2d8a99faa9f54578077a753f08688ed6ef785dbdc19d3498af29fcb37d547ba9813bf309bbde3bec7d1f
|
data/Gemfile.lock
CHANGED
data/lib/flavour_saver/parser.rb
CHANGED
@@ -56,6 +56,7 @@ module FlavourSaver
|
|
56
56
|
end
|
57
57
|
|
58
58
|
production(:partial) do
|
59
|
+
clause('EXPRST WHITE? GT WHITE? STRING WHITE? EXPRE') { |_,_,_,_,e,_,_| PartialNode.new(e,[]) }
|
59
60
|
clause('EXPRST WHITE? GT WHITE? IDENT WHITE? EXPRE') { |_,_,_,_,e,_,_| PartialNode.new(e,[]) }
|
60
61
|
clause('EXPRST WHITE? GT WHITE? IDENT WHITE? call WHITE? EXPRE') { |_,_,_,_,e0,_,e1,_,_| PartialNode.new(e0,e1,nil) }
|
61
62
|
clause('EXPRST WHITE? GT WHITE? IDENT WHITE? lit WHITE? EXPRE') { |_,_,_,_,e0,_,e1,_,_| PartialNode.new(e0,[],e1) }
|
@@ -748,6 +748,18 @@ describe FlavourSaver do
|
|
748
748
|
end
|
749
749
|
end
|
750
750
|
|
751
|
+
describe 'partials with string paths' do
|
752
|
+
let(:template) { "Dudes: {{> \"dude/man\"}}" }
|
753
|
+
before do
|
754
|
+
FS.register_partial("dude/man", "{{name}}")
|
755
|
+
end
|
756
|
+
example do
|
757
|
+
context.stub(:name).and_return('Jeepers')
|
758
|
+
context.stub(:another_dude).and_return('Creepers')
|
759
|
+
subject.should == "Dudes: Jeepers"
|
760
|
+
end
|
761
|
+
end
|
762
|
+
|
751
763
|
describe 'string literal parameters' do
|
752
764
|
|
753
765
|
describe 'simple literals work' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flavour_saver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Harton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|