mirror of
https://github.com/github/choosealicense.com
synced 2024-11-05 19:28:50 +01:00
24fbf6685d
The old root object has been moved under 'licenses' with wking/fsf-api@8398a357 (pull: Add JSON-LD markup, 2018-01-04, wking/fsf-api#12) for better forward/backward compatibility. Unfortunately, this results in another one-time incompatible change, which this commit accommodates. The protection from future changes (which should be rare) isn't great, because we're still parsing the document as JSON. There is at least one JSON-LD parser for Ruby [1], but I've stuck with vanilla JSON to avoid pullling in an external dependency just for this rather peripheral functionality. [1]: https://github.com/ruby-rdf/json-ld/ |
||
---|---|---|
.. | ||
ci_ruby_version_spec.rb | ||
license_bom_spec.rb | ||
license_fields_spec.rb | ||
license_meta_spec.rb | ||
license_rules_spec.rb | ||
license_shown_spec.rb | ||
license_spec.rb | ||
license_wrap_spec.rb | ||
self_license_spec.rb | ||
spec_helper.rb |