1
0
mirror of https://github.com/github/choosealicense.com synced 2024-11-05 19:28:50 +01:00
choosealicense.com/spec
W. Trevor King 24fbf6685d spec_helper: Adjust to new 'licenses' key in the FSF API
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/
2018-04-07 16:22:44 -07:00
..
ci_ruby_version_spec.rb mindlessly satisfy rubocop 0.48 2017-03-26 17:19:44 -07:00
license_bom_spec.rb whoops, test looking at wrong file extension 2017-11-19 11:13:21 -08:00
license_fields_spec.rb match _ fields, require preceding space (ex CECILL-2.1) 2018-01-02 14:35:04 -08:00
license_meta_spec.rb Rubocop 0.53 doesn't like kernel#open use more specific OpenURI.open_uri instead 2018-03-14 18:45:10 -07:00
license_rules_spec.rb mindlessly satisfy rubocop 0.48 2017-03-26 17:19:44 -07:00
license_shown_spec.rb Add EPL-2.0 2017-11-24 14:15:52 -08:00
license_spec.rb mindlessly satisfy rubocop 0.48 2017-03-26 17:19:44 -07:00
license_wrap_spec.rb @benbalter review comments 2017-11-20 12:56:03 -08:00
self_license_spec.rb rubocop 2017-12-30 15:48:07 -08:00
spec_helper.rb spec_helper: Adjust to new 'licenses' key in the FSF API 2018-04-07 16:22:44 -07:00