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 84a7bbbf96 spec_helper: Extract FSF approval from wking.github.io/fsf-api
Ideally the FSF would be maintaining the API (or any API), but until
someone can talk them into that I think we can save work by
collaborating on the mock API.  Using a JSON API also allows us to
drop the Nokogiri dependency.

The parens feel excessive, and I'm not familiar with Ruby, so they
might be.  However, removing the parens from the libre check resulted
in:

  $ ./script/check-approval ISC
  ./script/check-approval:8:in `require_relative': /.../choosealicense.com/spec/spec_helper.rb:108: syntax error, unexpected tSTRING_BEG, expecting keyword_then or ';' or '\n' (SyntaxError)
  ...gs') && meta['tags'].include? 'libre'
  ...                               ^
  /.../choosealicense.com/spec/spec_helper.rb:116: syntax error, unexpected keyword_end, expecting end-of-input
          from ./script/check-approval:8:in `<main>'
2018-01-03 11:53:36 -08: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 add test that this project's license detected as MIT 2017-12-30 15:38:31 -08: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: Extract FSF approval from wking.github.io/fsf-api 2018-01-03 11:53:36 -08:00