Initial implementation if license template selector and /licenses/:key API endpoint
显示
- Gemfile 3 个添加, 0 个删除Gemfile
- Gemfile.lock 3 个添加, 0 个删除Gemfile.lock
- app/assets/javascripts/api.js.coffee 13 个添加, 0 个删除app/assets/javascripts/api.js.coffee
- app/assets/javascripts/blob/blob_license_selector.js.coffee 24 个添加, 0 个删除app/assets/javascripts/blob/blob_license_selector.js.coffee
- app/assets/stylesheets/pages/editor.scss 9 个添加, 0 个删除app/assets/stylesheets/pages/editor.scss
- app/controllers/projects/blob_controller.rb 9 个添加, 0 个删除app/controllers/projects/blob_controller.rb
- app/helpers/projects_helper.rb 7 个添加, 0 个删除app/helpers/projects_helper.rb
- app/views/projects/blob/_editor.html.haml 10 个添加, 1 个删除app/views/projects/blob/_editor.html.haml
- app/views/projects/empty.html.haml 4 个添加, 2 个删除app/views/projects/empty.html.haml
- lib/api/api.rb 1 个添加, 0 个删除lib/api/api.rb
- lib/api/licenses.rb 27 个添加, 0 个删除lib/api/licenses.rb
- spec/requests/api/licenses_spec.rb 46 个添加, 0 个删除spec/requests/api/licenses_spec.rb
... | ... | @@ -190,6 +190,9 @@ gem 'babosa', '~> 1.0.2' |
# Sanitizes SVG input | ||
gem "loofah", "~> 2.0.3" | ||
# Working with license | ||
gem 'licensee', "~> 7.0.0" | ||
# Protect against bruteforcing | ||
gem "rack-attack", '~> 4.3.1' | ||
... | ... |
lib/api/licenses.rb
0 → 100644
spec/requests/api/licenses_spec.rb
0 → 100644
想要评论请 注册 或 登录