Commit Graph

  • 35570d4ee0 Fix regex for matching endraw tags #1346 pz-invalid-endraw-tag Peter Zhu 2020-11-06 14:16:40 -05:00
  • c7c21e88f0
    Merge pull request #1344 from Shopify/pz-test-space-in-dot Peter Zhu 2020-11-06 10:10:08 -05:00
  • a89371b0b9 Test space between dot #1344 Peter Zhu 2020-11-05 15:39:44 -05:00
  • 8493f95acb Test invalid floats #1343 pz-test-invalid-float Peter Zhu 2020-11-05 09:35:23 -05:00
  • 8f7f8761d1
    Use Array#each instead of Array#inject to avoid an object allocation (#1341) Dylan Thacker-Smith 2020-10-29 11:24:19 -04:00
  • 4897ed8bf1 Use Array#each instead of Array#inject to avoid an object allocation #1341 Dylan Thacker-Smith 2020-10-29 10:01:32 -04:00
  • a3ff300419
    Merge pull request #1330 from ashmaroli/exception-renderer-lambda Justin Li 2020-10-28 13:38:20 -04:00
  • ea6e326b9c
    Fix FrozenError for blank case tag with multiple expression when tag (#1340) Dylan Thacker-Smith 2020-10-28 13:37:17 -04:00
  • 740f8759cc Rename constant to RAISE_EXCEPTION_LAMBDA #1330 Ashwin Maroli 2020-10-28 23:06:13 +05:30
  • 76218ae56c Fix FrozenError for blank case tag with multiple expression when tag #1340 Dylan Thacker-Smith 2020-10-28 13:01:52 -04:00
  • bb9cd4eb6a Merge upstream branch 'master' into this branch Ashwin Maroli 2020-10-28 22:14:09 +05:30
  • 3a591fbf26
    Merge pull request #1336 from ashmaroli/trigger-github-actions-on-pull-requests Peter Zhu 2020-10-28 11:35:52 -04:00
  • 7754d5aef5
    Attempt to strict parse variables before lax parsing in lax error mode (#1338) Dylan Thacker-Smith 2020-10-28 10:37:00 -04:00
  • 1d63d5db5f
    Fix a leaky test that set Tempate.error_mode without resetting it (#1339) Dylan Thacker-Smith 2020-10-28 10:36:33 -04:00
  • 8d24d146f0 Fix a leaky test that set Tempate.error_mode without resetting it #1339 Dylan Thacker-Smith 2020-10-28 10:19:38 -04:00
  • f23b5fcefb Attempt to strict parse variables before lax parsing in lax error mode #1338 Dylan Thacker-Smith 2020-10-28 09:42:56 -04:00
  • 4f38b701f0 Parse only string expression markups #1337 Ashwin Maroli 2020-10-28 14:09:20 +05:30
  • 26640368e5 Run workflows for pull requests from repo forks #1336 Ashwin Maroli 2020-10-28 12:45:10 +05:30
  • f23c2a83f2
    Fix lax parsing expressions surrounded by spaces (#1335) Dylan Thacker-Smith 2020-10-27 14:53:57 -04:00
  • 254a96f320 Fix lax parsing expressions surrounded by spaces #1335 Dylan Thacker-Smith 2020-10-27 12:21:10 -04:00
  • 61d54d1b19
    Merge pull request #1331 from Shopify/pz-freeze-block Peter Zhu 2020-10-27 13:17:54 -04:00
  • 10ea6144e0
    Add Liquid::ParseContext#parse_expression for liquid-c node disabling (#1333) Dylan Thacker-Smith 2020-10-27 11:00:04 -04:00
  • 292d971937 Merge loops #1331 Peter Zhu 2020-10-27 10:42:30 -04:00
  • b08e6c3839 Add Liquid::ParseContext#parse_expression for liquid-c node disabling #1333 Dylan Thacker-Smith 2020-10-26 17:08:08 -04:00
  • 5c082472a1 Address comments Peter Zhu 2020-10-26 16:07:43 -04:00
  • 0bedc71854 Address comments Peter Zhu 2020-10-26 15:11:00 -04:00
  • fe66edb825 Freeze block body after parsing completes Peter Zhu 2020-10-23 10:53:16 -04:00
  • bfa2df7036 Stash exception_renderer lambda in a constant Ashwin Maroli 2020-10-26 19:44:00 +05:30
  • 0e52706a5b
    Remove redundant comment in Liquid::Template (#1328) Ashwin Maroli 2020-10-22 22:19:02 +05:30
  • e7265b50cc Reduce empty string allocations via string filters #1329 Ashwin Maroli 2020-10-22 16:43:39 +05:30
  • c913a238fb Remove redundant comment in Liquid::Template #1328 Ashwin Maroli 2020-10-22 14:36:19 +05:30
  • 4c6166f989
    Add parsing quirk test for lookup on variable with literal name (#1325) Dylan Thacker-Smith 2020-10-21 16:30:17 -04:00
  • b2d6fca593 Add parsing quirk test for lookup on variable with literal name #1325 Dylan Thacker-Smith 2020-10-21 16:00:44 -04:00
  • 8e99b3bd7f
    Merge pull request #1322 from ashmaroli/else-tag-names Justin Li 2020-10-21 12:09:14 -04:00
  • f6532de1fd
    Merge pull request #1323 from Shopify/assign-score-hash Dylan Thacker-Smith 2020-10-21 11:18:35 -04:00
  • 001fde7694 Avoid allocating arrays of key value pairs for hashes in assign_score_of #1323 Dylan Thacker-Smith 2020-10-21 10:09:02 -04:00
  • b872eac2b9 More comprehensively test assign_score_of Dylan Thacker-Smith 2020-10-21 09:57:36 -04:00
  • 038d0585cf Move some assign score increment tests to the tag that increments Dylan Thacker-Smith 2020-10-21 09:56:46 -04:00
  • b15428ea83 Stash array of tag names in a constant #1322 Ashwin Maroli 2020-10-21 18:50:56 +05:30
  • c9ad9d338c
    Extract method for raising a syntax error in the assign tag for liquid-c (#1321) Dylan Thacker-Smith 2020-10-20 16:59:52 -04:00
  • 3f72ada615 Extract method for raising a syntax error in the assign tag for liquid-c #1321 Dylan Thacker-Smith 2020-10-20 16:50:39 -04:00
  • ae6bd9f6b0
    Allow an empty variable tag during strict parsing for liquid-c compat (#1320) Dylan Thacker-Smith 2020-10-20 14:11:48 -04:00
  • e8649bd10e Allow an empty variable tag during strict parsing for liquid-c compat #1320 Dylan Thacker-Smith 2020-10-19 20:47:12 -04:00
  • 866e437c05
    Test tag disabling using custom tags (#1318) Dylan Thacker-Smith 2020-10-19 16:32:02 -04:00
  • 784db053f2
    Merge pull request #1317 from Shopify/strict-parse-dynamic-find-var Dylan Thacker-Smith 2020-10-19 13:43:26 -04:00
  • ff1c6bd26e
    Actually remove test file with no extension moved into another test file (#1316) Dylan Thacker-Smith 2020-10-19 12:40:02 -04:00
  • a5f109ae81 Test tag disabling using custom tags #1318 Dylan Thacker-Smith 2020-09-29 10:14:57 -04:00
  • 46fd63da5f Fix strict parsing of find variable with a name expression #1317 Dylan Thacker-Smith 2020-10-19 12:07:39 -04:00
  • 420a1c79e1 Refactor variable lookup strict parsing to reduce coupling on dot lookup Dylan Thacker-Smith 2020-10-19 12:10:32 -04:00
  • 6d39050e1e Use a case statement in Liquid::Parser#expression Dylan Thacker-Smith 2020-10-19 11:32:18 -04:00
  • 9ba7f089a1 Actually remove test file with no extension moved into another test file #1316 Dylan Thacker-Smith 2020-10-19 11:35:27 -04:00
  • 8bf0e7dfae
    Reduce allocations in truncatewords Aaron Patterson 2020-10-09 15:54:25 -07:00
  • 0348434f25 Raise when source is too large #1312 Peter Zhu 2020-10-09 12:03:05 -04:00
  • 077bf2a409
    Test reporting of liquid error for filter call with wrong number of arguments (#1311) Dylan Thacker-Smith 2020-10-08 11:55:40 -04:00
  • ba90ba1998 Test reporting of liquid error for filter call with wrong number of arguments #1311 Dylan Thacker-Smith 2020-10-07 18:21:41 -04:00
  • 1a3e38c018
    Merge pull request #1310 from Shopify/only-integration-test-liquid-c Dylan Thacker-Smith 2020-10-08 11:52:50 -04:00
  • e495f75cc2 Remove support for ruby 2.4, which is no longer supported upstream #1310 Dylan Thacker-Smith 2020-10-08 09:47:42 -04:00
  • e781449c36 Remove root directory from library search path for tests Dylan Thacker-Smith 2020-10-08 01:53:11 -04:00
  • 7eb03ea198 Only test liquid-c integration using the integration tests Dylan Thacker-Smith 2020-10-08 01:52:40 -04:00
  • 9cc410478e Refactor the Optimizer class no visit the AST #1309 optimize-append-filter Marc-André Cournoyer 2020-10-07 16:06:50 -04:00
  • bd34cd5613
    Merge pull request #1308 from Shopify/pz-gh-actions Peter Zhu 2020-10-07 14:38:15 -04:00
  • 4196a94aa3 Plug Optimizer in Document.parse Marc-André Cournoyer 2020-10-07 13:47:23 -04:00
  • 0de722968c Introduce the AST Optimizer Marc-André Cournoyer 2020-10-07 13:31:59 -04:00
  • c28d455f7b Use GitHub Actions for CI #1308 Peter Zhu 2020-10-07 13:29:39 -04:00
  • d250a7f502
    Set Context#initialize instance variables before squashing assigns (#1307) Dylan Thacker-Smith 2020-10-06 21:00:08 -04:00
  • b0f46326ca
    Merge pull request #1306 from Shopify/pz-raise-tag-never-closed Peter Zhu 2020-10-06 17:13:35 -04:00
  • 7864c316f4 Set Context#initialize instance variables before squashing assigns #1307 Dylan Thacker-Smith 2020-10-06 16:08:12 -04:00
  • 7aed2f122c Refactor raising tag never closed to method #1306 Peter Zhu 2020-10-06 15:55:55 -04:00
  • 5199a34d9b
    Merge pull request #1304 from Shopify/pz-raw-bug Peter Zhu 2020-10-05 10:59:15 -04:00
  • 4c2ab6f878 Fix bug in raw tags #1304 Peter Zhu 2020-10-05 10:47:28 -04:00
  • a818dd9d19
    Fix test with missing extension (#1302) Dylan Thacker-Smith 2020-09-30 13:44:28 -04:00
  • 8b67debc5d Fix test with missing extension #1302 Dylan Thacker-Smith 2020-09-30 11:08:36 -04:00
  • f0cc366cfc Fix missing freeze for array of static environments #1301 Dylan Thacker-Smith 2020-09-30 10:00:17 -04:00
  • efef03d944
    Merge pull request #1294 from Shopify/changes-for-liquid-c-vm-variable Dylan Thacker-Smith 2020-09-29 21:02:26 -04:00
  • 33760f083a Extract rescue code from BlockBody#render_node for re-use in liquid-c #1294 changes-for-liquid-c-vm-variable Dylan Thacker-Smith 2020-09-14 14:12:19 -04:00
  • 013802c877 Move some unit tests without internal coupling to integration tests Dylan Thacker-Smith 2020-09-15 09:11:38 -04:00
  • 3dcad3b3cd Move test/integration/parse_tree_visitor_test.rb to test/unit Dylan Thacker-Smith 2020-09-15 08:46:32 -04:00
  • db065315ba Allow creating symbols that are garbage collected in a test Dylan Thacker-Smith 2020-09-15 08:36:55 -04:00
  • a03f02789b
    Only use MethodLiteral in condition expressions (#1300) Dylan Thacker-Smith 2020-09-25 11:10:33 -04:00
  • 31cf714423 Remove now unused MethodLiteral#to_liquid #1300 Dylan Thacker-Smith 2020-09-24 11:48:57 -04:00
  • 9567794a7a Only use MethodLiteral in condition expressions refactor-for-liquid-c-expression Dylan Thacker-Smith 2020-09-22 00:59:05 -04:00
  • 353af7f978 Only use MethodLiteral in condition expressions Dylan Thacker-Smith 2020-09-22 00:59:05 -04:00
  • ca4b9b43af
    Port liquid-c bug compatible whitespace trimming (#1291) Dylan Thacker-Smith 2020-09-16 16:07:36 -04:00
  • cddd8ea4ff Extract rescue code from BlockBody#render_node for re-use in liquid-c Dylan Thacker-Smith 2020-09-14 14:12:19 -04:00
  • 9917924adb Move some unit tests without internal coupling to integration tests Dylan Thacker-Smith 2020-09-15 09:11:38 -04:00
  • 17c3e9989a Move test/integration/parse_tree_visitor_test.rb to test/unit Dylan Thacker-Smith 2020-09-15 08:46:32 -04:00
  • 2777b9d06c Allow creating symbols that are garbage collected in a test Dylan Thacker-Smith 2020-09-15 08:36:55 -04:00
  • 77084930e9
    Bring back silencing of errors in blank nodes for backwards compatibility (#1292) Dylan Thacker-Smith 2020-09-15 10:35:18 -04:00
  • 771b123d17 Add corresponding test without bug_compatible_whitespace_trimming #1291 Dylan Thacker-Smith 2020-09-11 10:29:05 -04:00
  • 8f173f0a2d Bring back silencing of errors in blank nodes for backwards compatibility #1292 Dylan Thacker-Smith 2020-09-10 12:31:05 -04:00
  • 8a73c5b353 Port liquid-c bug compatible whitespace trimming Dylan Thacker-Smith 2020-09-05 09:37:42 -04:00
  • fb77921b15
    Merge pull request #1290 from Shopify/document-unknown-tag-refactor Dylan Thacker-Smith 2020-09-11 09:34:16 -04:00
  • 0d02dea20b Rename Liquid::Block#unknown_tag parameters for clarity #1290 Dylan Thacker-Smith 2020-09-02 15:26:45 -04:00
  • 86b47ba28b Pass the tag markup and tokenizer to Document#unknown_tag Dylan Thacker-Smith 2020-09-07 21:03:20 -04:00
  • 95ff0595c6
    Merge pull request #1289 from Shopify/refactor-for-c-block-body Dylan Thacker-Smith 2020-09-11 09:15:58 -04:00
  • bbc56f35ec Add ParseContext#new_block_body to centralize the liquid-c override point #1289 Dylan Thacker-Smith 2020-09-09 12:25:35 -04:00
  • 9b6344f407 Port liquid-c bug compatible whitespace trimming all-changes-for-c-block-body Dylan Thacker-Smith 2020-09-05 09:37:42 -04:00
  • a372baa9cf Rename Liquid::Block#unknown_tag parameters for clarity Dylan Thacker-Smith 2020-09-02 15:26:45 -04:00
  • 60075ddda2 Pass the tag markup and tokenizer to Document#unknown_tag Dylan Thacker-Smith 2020-09-07 21:03:20 -04:00
  • dfbbf87ba9 Use BlockBody from Document using composition rather than inheritence Dylan Thacker-Smith 2020-09-02 09:32:19 -04:00