mirror of
https://github.com/github/choosealicense.com
synced 2024-11-05 19:28:50 +01:00
84a7bbbf96
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>'
24 lines
414 B
Ruby
24 lines
414 B
Ruby
# frozen_string_literal: true
|
|
|
|
source 'https://rubygems.org'
|
|
|
|
require 'json'
|
|
require 'open-uri'
|
|
versions = JSON.parse(open('https://pages.github.com/versions.json').read)
|
|
|
|
gem 'github-pages', versions['github-pages']
|
|
|
|
group :development do
|
|
gem 'colored'
|
|
gem 'fuzzy_match'
|
|
gem 'terminal-table'
|
|
end
|
|
|
|
group :test do
|
|
gem 'html-proofer', '~> 3.0'
|
|
gem 'licensee'
|
|
gem 'rake'
|
|
gem 'rspec'
|
|
gem 'rubocop'
|
|
end
|