Commit Graph
1186 Commits
Author SHA1 Message Date
Dylan Thacker-Smith 1f8bafcb84 Add allowed_push_host to gemspec to allow releases 2023-01-11 10:31:25 -05:00
Dylan Thacker-SmithandGitHub 30a656920d Merge pull request #1668 from Shopify/4-0-backports
Backport ruby 3.2 support for liquid 4
2023-01-11 10:03:57 -05:00
Dylan Thacker-Smith a19320f8f8 rubocop: Exclude vendored dependencies in CI 2023-01-10 15:34:56 -05:00
Dylan Thacker-Smith 8983fcb47e Update History.md 2023-01-10 15:26:38 -05:00
Dylan Thacker-Smith c1c9157e75 Use 4-0-stable liquid-c branch to fix extension compilation in CI 2023-01-10 15:22:13 -05:00
Dylan Thacker-Smith f199ba0715 Backport CI migration 2023-01-10 14:41:56 -05:00
Dylan Thacker-Smith dd70fcfec8 Bump rake for ruby 3.2 compatibility 2023-01-10 14:00:38 -05:00
Dylan Thacker-Smith abfcec9a57 Fix ParseTreeVisitorTest for ruby 3 compatibility
(cherry picked from commit 81149344a5)
2023-01-10 13:53:40 -05:00
Dylan Thacker-Smith 0487badd03 Use liquid-c 4.0.0 2023-01-10 13:30:55 -05:00
Dylan Thacker-Smith 01d52d72d9 Remove use of ruby taint API for ruby 3.2 compatibility 2023-01-10 13:11:18 -05:00
Justin Li f2f467bdbc v4.0.3 v4.0.3 2019-03-12 12:43:48 -04:00
Justin LiandGitHub ff99d92c18 Merge pull request #1072 from Shopify/fix-interrupts
Fix interrupts through includes
2019-03-12 12:26:12 -04:00
Justin Li 39fecd06db Fix interrupts through includes 2019-03-12 12:18:22 -04:00
Justin Li 8013df8ca2 v4.0.2 v4.0.2 2019-03-08 15:43:46 -05:00
Clayton SmithandGitHub 14cd011cb5 Merge pull request #1070 from Shopify/url-decode-validation
Validate the character encoding in url_decode.
2019-03-08 11:09:40 -05:00
Clayton Smith e2d9907df2 Validate the character encoding in url_decode. 2019-03-07 14:01:10 -05:00
Justin LiandGitHub 23d669f5e6 Merge pull request #1032 from printercu/patch-1
Single regexp for strip_html
2019-02-22 13:04:04 -05:00
Justin Li ed73794f82 Preserve existing strip_html behaviour for weird inputs 2019-02-22 13:00:36 -05:00
Ashwin MaroliandJustin Li f59f6dea83 Fix simple RuboCop offenses and update TODO file (#1062)
* Fix Layout/EmptyLineAfterMagicComment offense

* Fix Layout/ExtraSpacing offense

* Fix Layout/ClosingParenthesisIndentation offenses

* Fix Style/MutableConstant offense

* Fix Style/UnneededInterpolation offenses

* Fix Style/RedundantParentheses offenses

* Update TODO config for RuboCop

* Add executable bit to test/test_helper.rb

ref: https://travis-ci.org/Shopify/liquid/jobs/488169512#L578
2019-02-22 12:32:56 -05:00
Garland ZhangandGitHub 7a81fb821a Merge pull request #1059 from Shopify/map_error_checking
Apply error-checking to sort, sort_natural, where, uniq, map, compact filter(s)
2019-02-22 10:42:16 -05:00
Garland Zhang cec27ea326 Extract raise error line and some filters with begin/rescue blocks 2019-02-21 17:00:20 -05:00
Justin LiandGitHub 14999e8f7c Merge pull request #1053 from er1/update-changelog-v4.0.1
Updated changelog for v4.0.1 for (#1038)
2019-02-10 10:37:31 -05:00
Eric Chan b41fc10d8e Updated changelog for v4.0.1 2018-12-03 23:54:00 -05:00
David CornuandGitHub 2b3c81cfd0 Merge pull request #1046 from Shopify/make-builds-green
Make builds green
2018-10-24 10:46:01 -04:00
David Cornu 2a2376bfd9 Run :test before :rubocop in the default Rake task 2018-10-19 15:06:36 -04:00
David Cornu ca9e75db53 Reduce perceived complexity for #sort and #sort_natural 2018-10-19 14:57:33 -04:00
David Cornu 407c8abf30 Use TrailingCommaInLiteral
TrailingCommaInArrayLiteral and TrailingCommaInHashLiteral were introduced in v0.53.0 and we're running v0.49.0.

https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md#0530-2018-03-05
2018-10-19 14:52:16 -04:00
Justin LiandGitHub 43f181e211 Merge pull request #1044 from Shopify/enable-cla-bot
Enable CLA bot
2018-10-19 09:34:30 -04:00
Tim Layton 7c613e87cb Enable CLA bot 2018-10-18 23:10:56 -07:00
Stephen Paul Weber (Work)andGitHub fe4034ccf9 Merge pull request #1025 from Shopify/traverse-ast
Liquid::ParseTreeVisitor
2018-10-18 09:42:56 -04:00
Stephen Paul Weber 52ee303a36 s/block.call/yield 2018-10-18 09:41:53 -04:00
Stephen Paul Weber 8217a8d86c Add test for the full array structure 2018-10-18 09:39:05 -04:00
Stephen Paul Weber 7d13d88258 s/Traversal/ParseTreeVisitor 2018-10-18 09:38:33 -04:00
Stephen Paul Weber ff727016ef s/callback_for/add_callback_for 2018-10-18 09:37:48 -04:00
Stephen Paul Weber c11fc656cf Colocate Traversal classes with classes they traverse
This puts all knowledge of the traversal in the same file, and removes
the need for a CASES registry.
2018-10-18 09:37:48 -04:00
Stephen Paul Weber d789ec4175 Liquid::Traversal
This enables traversal over whole document tree.
2018-10-15 10:11:58 -04:00
Samuel DoironandGitHub fd09f049b0 Merge pull request #1026 from Shopify/where-filter
Add `where` filter to standard filters
2018-10-11 17:45:30 -04:00
Samuel 842986a972 Add where filter to standard filters
Users of Liquid will often wish to filter an array to only those items that match a certain criteria. For example, showing "pinned" messages at the top of a list.

Example usage:

`{{ comments | where: "pinned" | first }}`

or

`{{ products | where: "category", "kitchen" }}`

* Add where filter to standard filters
* Add tests for new where functionality
2018-10-11 16:52:32 -04:00
Florian Weingarten 4661700a97 bump to v4.0.1 v4.0.1 2018-10-09 11:13:19 +02:00
Justin LiandGitHub cd5a6dd225 Merge pull request #930 from er1/fix-sort-natural-on-nil
Fix sort and sort_natural on sorting with non-string and nil values
2018-10-04 22:32:37 -04:00
printercuandGitHub 89c1ba2b0e Fix rubocop warning 2018-09-27 17:24:01 +03:00
printercuandGitHub 479d8fb4a4 Single regexp for strip_html 2018-09-27 17:13:35 +03:00
Justin LiandGitHub 53b8babf52 Merge pull request #1027 from Shopify/rubocop-fix
Update deprecated rubocop name
2018-09-13 17:16:36 -04:00
Justin Li 76b4920d3e Update deprecated rubocop name 2018-09-13 17:15:32 -04:00
Justin LiandGitHub 8dcc319128 Merge pull request #1024 from koic/suppress_warning_bigdecimal_new
Suppress warning: `BigDecimal.new` is deprecated
2018-09-09 08:28:24 -04:00
Koichi ITO 0b36461d80 Suppress warning: BigDecimal.new is deprecated
## Summary

`BigDecimal.new` is deprecated since BigDecimal 1.3.3 for Ruby 2.5.

This PR suppresses the following warnings.

```console
% ruby -v
ruby 2.6.0dev (2018-09-06 trunk 64648) [x86_64-darwin17]
% RUBYOPT=-w bundle exec rake
(snip)
/Users/koic/src/github.com/Shopify/liquid/lib/liquid/utils.rb:49:
warning: BigDecimal.new is deprecated; use Kernel.BigDecimal method
instead.
/Users/koic/src/github.com/Shopify/liquid/lib/liquid/utils.rb:53:
warning: BigDecimal.new is deprecated; use Kernel.BigDecimal method
instead.
```

## Other Information

The following is a change of BigDecimal 1.3.3 for Ruby 2.5 related to this PR.

- https://github.com/ruby/bigdecimal/commit/533737338db915b00dc7168c3602e4b462b23503
- https://github.com/ruby/bigdecimal/commit/16738ad0aca158d3c70123990d8caa5789818177
2018-09-09 21:10:20 +09:00
Justin LiandGitHub 70e75719de Merge pull request #1010 from Shopify/circle-ci-remove-38409b
Goodbye CircleCI 👋
2018-05-15 10:53:51 -04:00
shopify-admins b037b19688 Removing CircleCI 1.0 [ci skip] 2018-05-15 10:35:38 -04:00
Florian WeingartenandGitHub d0f77f6cf4 Merge pull request #1006 from Benhgift/master
add installation instruction
2018-04-26 18:20:02 +01:00
Ben Gift 0be260bc97 add installation instruction 2018-04-26 08:12:47 -07:00