99 Commits

Author SHA1 Message Date
Tobias Lütke
77cc0f2ed9 Version bump v2.2.0 2010-08-23 20:22:35 -04:00
Tobias Lütke
101137045e remove swp files 2010-08-22 13:33:26 -04:00
DBA
8a0a8cfd99 FiltersTest
- added test that asserts nonexistent filters are ignored

Liquid
  - Bill's mind blowing liquid patch to support filter separators (|) in quoted strings (svn r7516).
  - This is a consolidation effort based on newrelic's liquid fork commit 88a5b891d009054d56b994c9448725c74e2b1e13
2010-08-23 01:30:05 +08:00
DBA
8304a046c9 Context
- Check arity of proc before calling, to prevent error when using ruby 1.9.1+

Code beautifer
  - context.rb
2010-08-23 01:30:03 +08:00
DBA
c72c84ea9b Tests
- Organized the files
  - Cleaned up some of the white spacing issues
  - A lot can still be done to make the tests more readable to the new developers
2010-08-23 01:30:01 +08:00
DBA
01145f872b Test Helper
- Removed unnecessary test helper file. The file being used is helper.rb
2010-08-23 01:30:00 +08:00
DBA
5409814552 Code beautifier
- standard_filter_test.rb
2010-08-23 01:30:00 +08:00
DBA
2d9331a234 StandardFilters
- Ruby 1.9.2-rc changed the float precision, thus the tests are now more generic and backwards compatible.
2010-08-23 01:30:00 +08:00
DBA
c59cde9d17 Code beautifier
- standardfilters.rb
  - standard_filter_test.rb
2010-08-23 01:30:00 +08:00
DBA
29e140b655 StandardFilters
- added escape_once, based on ActionView
2010-08-23 01:30:00 +08:00
DBA
a48332871a Test helper
- extras path now uses File.join instead of string concatenation
  - extras path is only loaded into $LOAD_PATH if it's not already part of it
2010-08-23 01:30:00 +08:00
DBA
bd7f867759 Code beautifier
- strainer_test.rb
2010-08-23 01:30:00 +08:00
DBA
8e4573a7bf Strainer
- respond_to_missing? is now a required method
2010-08-23 01:29:59 +08:00
DBA
5425679a96 Rakefile
- Updated to run with Ruby 1.9.2-p0
  - Fixed some indentations / white spacing
2010-08-23 01:29:59 +08:00
Tobias Lütke
6831eac902 Released gem 2.1.3 v2.1.3 2010-08-05 18:07:05 -04:00
Dennis Theisen
13f98de7f3 Change behavior of capture tag to use existing variables if they already have been initialized in an outer scope. 2010-08-06 06:02:37 +08:00
Dennis Theisen
e26f509277 Fixed minor typos in inline documentation for assign and capture 2010-08-06 06:02:37 +08:00
James MacAulay
0417c9e723 Gem v2.1.2 v2.1.2 2010-07-09 09:17:10 -04:00
James MacAulay
ffd48880e2 Gem v2.1.1 v2.1.1 2010-07-09 09:11:49 -04:00
James MacAulay
6b79f25c87 rake release 2010-07-09 09:11:41 -04:00
James MacAulay
ff829e7996 fix if tag parsing with expressions starting with and/or 2010-07-07 16:48:23 -04:00
James MacAulay
d53a4e1834 rake default task is 'test' 2010-07-06 16:01:15 -04:00
James MacAulay
5ff699bb8a Gem version 2.1.0. Don't use Hoe. v2.1.0 2010-07-06 13:19:38 -04:00
Jesse Storimer
d87500bfe3 Liquid strip_html strips out the content of <script> tags. [#173 state:resolved] 2010-02-08 11:35:45 -05:00
James MacAulay
fce8bcb1e7 Change behaviour of arithmetic filters to cast arguments to numbers 2010-02-04 11:45:55 -05:00
James MacAulay
97548d4f01 shopify performance tests: add 'compact' size to product_img_url filter 2010-02-04 10:57:14 -05:00
James MacAulay
cbf8986745 fix variable output with quoted strings containing pipe ("|") characters 2009-09-23 15:54:25 -04:00
James MacAulay
11dc18bfdf A better fix for "and"/"or" in strings
(now with less side effects)
2009-09-23 15:44:29 -04:00
James MacAulay
f42ce88456 fixed conditions with strings containing "and"/"or" 2009-09-14 15:01:26 -04:00
James MacAulay
d1d6febfc1 'contains' operator returns false if either operand is nil 2009-08-19 19:38:31 -04:00
James MacAulay
0150067c40 Revert "Raise FilterNotFound on use of non-existent filter"
This reverts commit 01c25a11a3.

Conflicts:

	test/context_test.rb
2009-08-19 19:24:33 -04:00
James MacAulay
2d0532e041 QuotedStrings can be empty 2009-08-19 18:37:40 -04:00
James MacAulay
167825aa92 further differentiate between environments and only evaluate Procs once 2009-08-07 11:24:15 -04:00
James MacAulay
c792c29066 Templates and Contexts differentiate between different sources of assigns 2009-08-06 18:33:41 -04:00
James MacAulay
a4d7c80ce0 now able to set file_system for include tag through registers 2009-08-06 18:24:27 -04:00
Tobias Lütke
7ff4352de2 Added convenience task rake profile:grind to load up KCacheGind 2009-06-15 10:35:49 -04:00
Tobias Lütke
44f35c0990 Performance improvement for Block parsing. ~ 10% speedup 2009-06-15 10:33:33 -04:00
Tobias Lütke
a65bd76e72 Merge branch 'master' of git@github.com:tobi/liquid
Conflicts:
	lib/liquid.rb
	lib/liquid/context.rb
	lib/liquid/variable.rb
	test/standard_tag_test.rb
2009-06-15 09:00:30 -04:00
Tobias Lütke
8ac4d6a92a cycle test coverage 2009-06-15 08:55:50 -04:00
Tobias Lütke
37e913f755 added 3 more themes to add veriety to the profiler run 2009-06-14 18:09:40 -04:00
Tobias Lütke
5e0ad75ff5 remove benchmark dir 2009-06-14 18:05:18 -04:00
Tobias Lütke
1b3b3e4958 added rake profile for easier invokation 2009-06-14 18:04:07 -04:00
Tobias Lütke
31a5606d42 fixed a bug with mock paginate tag 2009-06-14 17:42:28 -04:00
Tobias Lütke
f65ce254c7 added full profiler suite to liquid based on real-world code form Shopify and vision 2009-06-14 17:32:50 -04:00
Brian Candler
01c25a11a3 Raise FilterNotFound on use of non-existent filter 2009-06-06 16:32:20 +01:00
Brian Candler
f29b9335c5 Allow question-mark at end of variable name only 2009-06-06 16:20:34 +01:00
Brian Candler
cfe3e6f3be Allow Hash with default value or default proc to be used 2009-06-06 16:16:06 +01:00
Brian Candler
09c0b3b391 Allow template to be re-used without persisting assigns 2009-06-06 16:15:37 +01:00
Brian Candler
678fdfdb8a Add test case for presetting assigns 2009-06-06 15:47:52 +01:00
Jakub Kuźma
ed1b542abf All tests pass on Ruby 1.9.1
Signed-off-by: Tobias Lütke <tobi@leetsoft.com>
2009-04-17 06:33:28 +08:00