Use Liquid::Expression::LITERALS to look up parsed literal names#23
Conversation
There was a problem hiding this comment.
I had to do this since for some strange reason rb_hash_has_key is a static method...
There was a problem hiding this comment.
There was a patch submitted in 2002 to change this haha. http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/86
|
LGTM |
|
@csfrancis can you take a look? My Ruby C is weak |
|
For context: This is to make Shopify/liquid#592 work with liquid/c |
There was a problem hiding this comment.
What's the naming convention for values? I picked v arbitrarily, not sure what's commonly used.
|
@trishume would be a good review as well, @csfrancis is super-busy |
There was a problem hiding this comment.
You could maybe be defensive here and assert this is a hash.
|
LGTM. |
Use Liquid::Expression::LITERALS to look up parsed literal names
|
Should we release a new gem version? Any non-backwards compatible changes since the last release? |
@fw42 @dylanahsmith