liquid 2.1.2 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ * Make context and assign work the same
2
+
1
3
  * Ruby 1.9.1 bugfixes
2
4
 
3
5
  * Fix LiquidView for Rails 2.2. Fix local assigns for all versions of Rails
@@ -6,7 +6,7 @@ module Liquid
6
6
  #
7
7
  # You can then use the variable later in the page.
8
8
  #
9
- # {{ monkey }}
9
+ # {{ foo }}
10
10
  #
11
11
  class Assign < Tag
12
12
  Syntax = /(#{VariableSignature}+)\s*=\s*(#{QuotedFragment}+)/
@@ -23,11 +23,11 @@ module Liquid
23
23
  end
24
24
 
25
25
  def render(context)
26
- context.scopes.last[@to.to_s] = context[@from]
26
+ context.scopes.last[@to] = context[@from]
27
27
  ''
28
28
  end
29
29
 
30
30
  end
31
31
 
32
32
  Template.register_tag('assign', Assign)
33
- end
33
+ end
@@ -6,7 +6,7 @@ module Liquid
6
6
  # Monkeys!
7
7
  # {% endcapture %}
8
8
  # ...
9
- # <h1>{{ monkeys }}</h1>
9
+ # <h1>{{ heading }}</h1>
10
10
  #
11
11
  # Capture is useful for saving content for use later in your template, such as
12
12
  # in a sidebar or footer.
@@ -26,7 +26,7 @@ module Liquid
26
26
 
27
27
  def render(context)
28
28
  output = super
29
- context[@to] = output.join
29
+ context.scopes.last[@to] = output.join
30
30
  ''
31
31
  end
32
32
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquid
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 2
10
- version: 2.1.2
9
+ - 3
10
+ version: 2.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tobias Luetke
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-09 00:00:00 -04:00
18
+ date: 2010-08-05 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies: []
21
21