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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 708bf93bee827c63e9ea791c7ec51131835623e3
4
- data.tar.gz: 2c7acc4e4d901efc04e53c0b4633765f482a7b58
3
+ metadata.gz: ede52d62fc43eaa6039e3636c9ef8af7e491157c
4
+ data.tar.gz: fa349791c0702290767d1b8f88ca167202669664
5
5
  SHA512:
6
- metadata.gz: 5937a5b5728312a8396a5915a3c83888660ab90f988b5c4bbb60e2657134bda14d05cbe298c8066050c160bcedcc36a68d11e5b8f35edb9176972249c70d493d
7
- data.tar.gz: 5d3c50a7690aa653425abd793a922735274775b87ea15ca130f32ef7cc3e5364acfd7bbf8e253bc59e51ddc50dbcef09097a7bf56a2bbfb86776c9ec9180df21
6
+ metadata.gz: c13fd476f6ff9e7938feeabcd43c3a983bca35e8492f4d1013afd43fab88013eefe0861d59c188ed6cfb322a1b898469a709865fef33845896dcd7e718a06b39
7
+ data.tar.gz: 3294c0f030fc53faed2aa2c42e25233a0ce1e901648e2d8a99faa9f54578077a753f08688ed6ef785dbdc19d3498af29fcb37d547ba9813bf309bbde3bec7d1f
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- flavour_saver (0.3.4)
4
+ flavour_saver (0.3.5)
5
5
  rltk (~> 2.2.0)
6
6
  tilt
7
7
 
@@ -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) }
@@ -1,3 +1,3 @@
1
1
  module FlavourSaver
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
@@ -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
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-01-26 00:00:00.000000000 Z
11
+ date: 2015-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake