Commit Graph

  • fc8e6c8d3a Change Tokenizer test to fetch tokens instead of exposing ivar Gaurav Chande 2015-06-04 05:48:39 +00:00
  • 79d7dd06df Extract tag fetching into a method (which can be overriden then) Gaurav Chande 2015-06-03 19:44:52 +00:00
  • 3a907a4db7 Move DEFAULT_OPTIONS related logic to Document Gaurav Chande 2015-06-03 19:42:16 +00:00
  • 8b98f92c7f Extract tokenize logic from Template to a RubyTokenizer Gaurav Chande 2015-06-03 19:40:49 +00:00
  • b79c0c611c Merge pull request #586 from Shopify/string-contains-non-string Dylan Thacker-Smith 2015-06-03 10:58:38 -04:00
  • 8a2947865b Avoid an exception from checking if a string contains a non-string. Dylan Thacker-Smith 2015-06-03 02:21:51 -04:00
  • ea29f8b4b8 Merge pull request #583 from Shopify/slice-nil-offset Dylan Thacker-Smith 2015-06-03 01:43:56 -04:00
  • c84f4520cc Keep input out of error message and add test for slice Integer parsing. Dylan Thacker-Smith 2015-06-03 01:35:01 -04:00
  • 3dd6433e2f Merge pull request #584 from Shopify/replace-non-string Dylan Thacker-Smith 2015-06-02 16:41:15 -04:00
  • ab7109a335 Raise a Liquid::ArgumentError in slice filter for invalid integers. Dylan Thacker-Smith 2015-06-02 15:36:27 -04:00
  • 94fe050952 Convert arguments to replace filters to strings to avoid exceptions. Dylan Thacker-Smith 2015-06-02 15:58:52 -04:00
  • 9b98c436c4 Merge pull request #582 from Shopify/require-empty-raw-tag Justin Li 2015-06-02 15:58:15 -04:00
  • 889019f53a Keep old test as well Justin Li 2015-06-02 15:21:51 -04:00
  • c290375aec Remove unnecessary regex options Justin Li 2015-06-02 15:17:36 -04:00
  • 719a98a25e Ensure raw tag has no arguments Justin Li 2015-06-02 14:32:39 -04:00
  • 86d8b552da Merge pull request #581 from Shopify/require-closed-raw-tag Justin Li 2015-06-02 11:38:45 -04:00
  • b1ee9129e7 Raise SyntaxError if raw tag is unclosed Justin Li 2015-06-02 10:56:51 -04:00
  • be2e41e4d5 Merge pull request #579 from Shopify/ast-match Justin Li 2015-05-28 16:45:09 -04:00
  • 20ca2b9632 Update history to reflect merge of #570 Justin Li 2015-05-28 16:43:22 -04:00
  • 09de50dcb1 Bump version to 3.0.3 v3.0.3 Justin Li 2015-05-28 16:39:10 -04:00
  • 49f2af4209 Merge pull request #570 from Shopify/fix-strict-conditions Justin Li 2015-05-28 16:33:54 -04:00
  • 6c058823ad Merge pull request #570 from Shopify/fix-strict-conditions Justin Li 2015-05-28 16:33:54 -04:00
  • 27245c9eab Merge pull request #577 from Shopify/table-row-blank-string-collection Dylan Thacker-Smith 2015-05-28 16:20:42 -04:00
  • a639a13380 Use cleaner recursive solution Justin Li 2015-05-28 16:16:30 -04:00
  • 05a0fe56c8 Ensure For@reversed is a boolean Justin Li 2015-05-28 16:06:51 -04:00
  • c1eb694057 Remove the redundant iterable check in the for tag. Dylan Thacker-Smith 2015-05-28 16:04:23 -04:00
  • f53b31c867 Merge pull request #578 from Shopify/filter-error-handling Dylan Thacker-Smith 2015-05-28 15:00:57 -04:00
  • 363388e92f Handle some more standard filter errors. Dylan Thacker-Smith 2015-05-28 14:18:36 -04:00
  • 873eddbb85 Split a line and use String#empty? for readability Dylan Thacker-Smith 2015-05-28 12:55:04 -04:00
  • e790b60f60 Fix exception from using an empty string for the table row collection. Dylan Thacker-Smith 2015-05-28 11:56:52 -04:00
  • 3264d60425 Merge pull request #576 from Shopify/flexible-exception-handler Dylan Thacker-Smith 2015-05-28 11:38:44 -04:00
  • 8ff1b8e01f Test set_line_number_from_token after exception is converted. Dylan Thacker-Smith 2015-05-28 09:22:02 -04:00
  • 8d5e71f856 Allow the exception handler to convert exceptions to hide error messages. Dylan Thacker-Smith 2015-05-27 18:59:51 -04:00
  • 89c6e605f8 Merge pull request #575 from Shopify/zero-division-error Dylan Thacker-Smith 2015-05-26 10:43:23 -04:00
  • 6265c36ec9 Raise Liquid::ZeroDivisionError instead of ZeroDivisionError. Dylan Thacker-Smith 2015-05-25 15:40:17 -04:00
  • 169dfe5af3 Translate exceptions in filters to Liquid::FilterError errors. filter-error Dylan Thacker-Smith 2015-05-25 15:22:12 -04:00
  • 8af99ff918 Merge pull request #573 from Shopify/optional-error-rendering Dylan Thacker-Smith 2015-05-25 12:11:10 -04:00
  • 36200ff704 Make liquid error rendering optional. Dylan Thacker-Smith 2015-05-21 10:49:21 -04:00
  • 8daaad3b76 Make error locations available for non-Liquid::Error exceptions. out-of-band-errors Dylan Thacker-Smith 2015-05-21 18:36:56 -04:00
  • d36c6822da Include template name with line numbers in render errors. Dylan Thacker-Smith 2015-05-21 16:49:18 -04:00
  • 3d87d9ab1e Raise Liquid::ZeroDivisionError instead of ZeroDivisionError. Dylan Thacker-Smith 2015-05-21 12:18:58 -04:00
  • 71ff1f283a Make liquid rendering optional. Dylan Thacker-Smith 2015-05-21 10:49:21 -04:00
  • a9c7df931f Strict parse conditions in reverse order Justin Li 2015-05-15 13:37:53 -04:00
  • 070639daba Push to for_stack at the beginning of For#render Justin Li 2015-05-15 23:13:15 -04:00
  • dad98cfc89 Merge pull request #562 from Shopify/use-find_variable-for-parentloop Justin Li 2015-05-15 21:48:57 -04:00
  • 1d3c0b3dab Merge pull request #568 from Shopify/remove_liquid_methods Florian Weingarten 2015-05-14 22:19:02 +02:00
  • 648a4888af Pop the for_stack register in an ensure Justin Li 2015-05-14 15:02:20 -04:00
  • b4e5017c79 Add truth table test for multiple if conditions Justin Li 2015-05-14 14:11:03 -04:00
  • f1bc9f27df Include message in assert_template_result Justin Li 2015-05-14 14:10:45 -04:00
  • f4724f0db3 Remove support for liquid_methods Module extension Florian Weingarten 2015-05-14 14:44:13 +00:00
  • df74955ac4 Merge pull request #564 from Shopify/rubocop Florian Weingarten 2015-05-14 16:41:32 +02:00
  • 3372ca8136 Rubocop Florian Weingarten 2015-05-13 17:56:13 +00:00
  • 8cf524e91c Merge pull request #565 from Shopify/file-dirname Jean Boussier 2015-05-13 15:45:22 -04:00
  • 5e38626309 Force circle in ruby 2.0 Jean Boussier 2015-05-13 15:40:34 -04:00
  • b31df0fb3d Mordernize code base with __dir__ and require_relative Jean Boussier 2015-05-13 15:32:08 -04:00
  • 9e815ec594 Merge pull request #563 from Shopify/webscale_exceptions Florian Weingarten 2015-05-13 06:06:35 +02:00
  • 93b29b67ef Prefer Class.new() where possible Florian Weingarten 2015-05-13 02:47:43 +00:00
  • 863e8968f0 Use extra stack for forloop references Justin Li 2015-05-12 17:04:34 -04:00
  • 4c9d2009f9 Add find_own_variable method to look up internal context variables Justin Li 2015-05-12 16:49:39 -04:00
  • 239cfa5a44 Use find_variable for parentloop Justin Li 2015-05-12 16:11:32 -04:00
  • f2d760b0e9 Add to_hash for ResourceLimits for serialization resource-limits-keys Justin Li 2015-05-12 14:27:26 -04:00
  • f5ba7ae4b2 Update Include#format for recent changes in master formatter Justin Li 2015-05-12 13:24:40 -04:00
  • 9e666d7528 Use heredocs for multiline strings (backwards compat) Justin Li 2015-05-12 13:16:51 -04:00
  • 5ee8a32cb8 Include for tag arguments in formatted output Justin Li 2015-05-12 13:15:42 -04:00
  • d2cbc5610e Use Tag#raw as the fallback for #format Justin Li 2015-05-11 17:42:13 -04:00
  • 4a17d1a4ad Initial recursive AST formatting Justin Li 2015-05-11 17:33:23 -04:00
  • 8a8996387b Update history to reflect merge of #554 Justin Li 2015-05-12 13:20:06 -04:00
  • 9310640bdd Merge pull request #554 from arthanzel/529-sort_natural Justin Li 2015-05-12 13:19:24 -04:00
  • 4c3381a523 Update history to reflect merge of #559 Justin Li 2015-05-12 10:59:58 -04:00
  • 261aa2e726 Merge pull request #559 from Shopify/fix-include-var Justin Li 2015-05-12 10:50:13 -04:00
  • 247c51ac70 Call Context#find_variable directly Justin Li 2015-05-11 18:21:24 -04:00
  • 37dbec3610 Remove unnecessary parse Justin Li 2015-05-11 18:10:38 -04:00
  • ff253a04c6 Lazily evaluate template name for context variable injection Justin Li 2015-05-11 18:01:24 -04:00
  • 25ef0df671 Add tests for #461 Justin Li 2015-05-11 17:59:05 -04:00
  • 32460c255b Removed a few superfluous comments Martin Hanzel 2015-05-08 11:48:33 -04:00
  • 724d625f47 Update history to reflect merge of #555 [ci skip] Justin Li 2015-05-07 14:03:38 -04:00
  • f658dcee8b Merge pull request #555 from boobooninja/date_filter Justin Li 2015-05-07 13:59:22 -04:00
  • fa6cd6287e date filter gracefully accepts empty string Loren Hale 2015-05-07 17:04:21 +08:00
  • e853bf5b84 Also dump object distribution objects-opt Lourens Naudé 2015-05-06 10:45:20 -04:00
  • 27248f1eb1 Lazy init context errors and interrupts to prevent excess allocation Lourens Naudé 2015-05-05 23:40:52 -04:00
  • 174839fbef Reuse filters array during variable parsing Lourens Naudé 2015-05-05 23:30:05 -04:00
  • 01a86728f2 Remove needless intermediate local var in VariableLookup#initialize Lourens Naudé 2015-05-05 23:21:28 -04:00
  • 0e38f88b58 Recycle the array buffer in BlockBody#render Lourens Naudé 2015-05-05 23:02:08 -04:00
  • 5a48edae6a Introduce support for memory usage profiles Lourens Naudé 2015-05-05 23:00:28 -04:00
  • 76c24db039 Remove ruby-head from allowed failures Justin Li 2015-05-05 12:49:04 -04:00
  • 068791d698 Added method parens Martin Hanzel 2015-05-05 11:49:14 -04:00
  • 3a082ddbbd Changed sort_natural filter to use casecmp. Strings only. Martin Hanzel 2015-05-04 11:55:14 -04:00
  • 03b3446119 Resolves #529. Resolves #404. Added natural sorting filter and tests. Martin Hanzel 2015-05-03 20:53:58 -04:00
  • 251ce7483c Merge pull request #441 from Shopify/remove_context_from_read_template_file James Reid-Smith 2015-04-27 12:13:36 -04:00
  • 5d7c00a202 Merge pull request #553 from Shopify/cherry-pick-lookup v3.0.2 Justin Li 2015-04-27 11:56:13 -04:00
  • 4592afcc8b Updated History.md and removed a couple remaining methods using the old signature James Reid-Smith 2015-04-27 15:45:44 +00:00
  • 448766b0c4 Removed context from read_template_file, fixed tests to match new arity James Reid-Smith 2014-09-11 23:27:08 +00:00
  • 6390652c3f Update changelog with backported patches Justin Li 2015-04-24 16:09:37 -04:00
  • 9bd05110dc Update changelog Justin Li 2015-04-24 16:05:55 -04:00
  • 9dd24824f9 Disable minitest expectation interface due to reckless modification of Object Justin Li 2015-04-20 10:15:19 -04:00
  • 291b58bc91 Merge pull request #489 from alex-ross/patch-1 Florian Weingarten 2014-11-19 14:02:58 +01:00
  • 8c193e203f bump version Florian Weingarten 2015-04-24 11:25:16 -04:00
  • 47dbcd93a5 Merge pull request #551 from Shopify/expose-variable-name Justin Li 2015-04-21 23:33:13 -04:00
  • f266aee2e5 Slightly more concise issue# reference in changelog Justin Li 2015-04-21 23:40:42 -04:00
  • df0649a031 Update changelog Justin Li 2015-04-21 23:36:54 -04:00