liquidizer 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.5.2
@@ -105,7 +105,7 @@ module Liquidizer
105
105
  end
106
106
  end
107
107
 
108
- UNLIQUIFIABLE_OPTIONS = [:partial, :template, :file, :text, :xml, :json, :js, :inline]
108
+ UNLIQUIFIABLE_OPTIONS = [:partial, :file, :text, :xml, :json, :js, :inline]
109
109
 
110
110
  def liquifiable_options?(options)
111
111
  (options.keys.map(&:to_sym) & UNLIQUIFIABLE_OPTIONS).empty?
data/liquidizer.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{liquidizer}
8
- s.version = "0.5.1"
8
+ s.version = "0.5.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Adam Cig\303\241nek"]
12
- s.date = %q{2010-03-10}
12
+ s.date = %q{2010-03-18}
13
13
  s.description = %q{WIth this gem, you can render your Ruby on Rails views with liquid templates that are loaded from database. This way, the look and feel of your site can be safely configured by it's users.
14
14
  }
15
15
  s.email = %q{adam.ciganek@gmail.com}
@@ -246,6 +246,17 @@ class ControllerExtensionsTest < ActionController::TestCase
246
246
  get :create
247
247
  assert_select '#layout', false
248
248
  end
249
+
250
+ test 'applies liquid layout to render :template' do
251
+ setup_controller(PostsController)
252
+
253
+ LiquidTemplate.create!(:name => 'more_awesome_new', :content => "<p>more awesome new</p>")
254
+ LiquidTemplate.create!(:name => 'layout',
255
+ :content => '<div id="layout">{{ content_for_layout }}</div>')
256
+
257
+ get :new
258
+ assert_select '#layout p', 'more awesome new'
259
+ end
249
260
 
250
261
  test 'dropifies instance variables' do
251
262
  setup_controller(PostsController)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 1
9
- version: 0.5.1
8
+ - 2
9
+ version: 0.5.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Adam Cig\xC3\xA1nek"
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-10 00:00:00 +01:00
17
+ date: 2010-03-18 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency