Akinori MUSHA
5031cbbbac
Migrate to RSpec's new expect syntax using Transpec.
...
We set `config.infer_spec_type_from_file_location!`, so the command I
ran is `transpec --no-explicit-spec-type`.
2014-10-03 16:16:15 +09:00
Akinori MUSHA
ca6de90fc5
Add a new filter to_uri
.
2014-09-08 17:45:57 +09:00
Akinori MUSHA
23bdb7be7b
Define a default #to_s in Drop.
2014-09-02 20:04:07 +09:00
Akinori MUSHA
2db902a316
Prefer "stringify" over "stringize".
2014-09-02 20:01:55 +09:00
Akinori MUSHA
4c938f14e5
Make to_xpath
stringize a non-string operand as the standard filters do.
2014-08-28 20:34:59 +09:00
Akinori MUSHA
d378795176
Merge pull request #462 from knu/liquid-to_xpath
...
Add a Liquid filter `to_xpath`, which quotes a string for use in XPath expression.
2014-08-28 18:49:58 +09:00
Akinori MUSHA
64802bd457
uri_escape
: Do not fail when nil is given.
...
Do just the same as the standard filter `url_encode`.
2014-08-27 23:52:03 +09:00
Akinori MUSHA
c706bebcc1
Add a dedicated validator for interpolation.
...
We need this because not all agents perform interpolation in their
validate_options methods. Now that we have validate_interpolation,
interpolation failure in other validators are simply ignored.
2014-08-27 22:23:48 +09:00
Akinori MUSHA
3e0741d100
Agent#valid?: Rescue Liquid::Error and save it in errors.
...
Calling valid? should not raise any exception in general, and in our
case it is undesirable for a syntactically wrong Liquid template in
options to cause Internal Server Error in validation.
2014-08-27 22:08:32 +09:00
Akinori MUSHA
0c490aa82d
Add a Liquid filter to_xpath
, which quotes a string for use in XPath expression.
2014-08-26 16:57:09 +09:00
Akinori MUSHA
e483061bed
Add a spec for LiquidInterpolatable::Filters.
2014-08-25 21:24:07 +09:00
Andrew Cantino
663250227d
allow exporting of a set of Agents with their links from a Scenario; Scenario guid is now generated and copied to export, as well as a source link when public
2014-05-31 23:36:33 -07:00