-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from alphagov/uaa-auth-153072577
[#153072577] First steps to admin app: Base rails app with OAuth
- Loading branch information
Showing
92 changed files
with
2,280 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# http://EditorConfig.org | ||
# https://gds-way.cloudapps.digital/manuals/programming-languages/editorconfig | ||
# Copy into project root and rename to .editorconfig | ||
|
||
# uncomment if top-most EditorConfig file | ||
# root = true | ||
|
||
[*.java] | ||
indent_size = 4 | ||
indent_style = space | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = false | ||
continuation_indent_size = 8 | ||
|
||
[*.scss] | ||
indent_size = 2 | ||
indent_style = space | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.erb] | ||
indent_size = 2 | ||
indent_style = space | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.html] | ||
indent_size = 2 | ||
indent_style = space | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.css] | ||
indent_size = 2 | ||
indent_style = space | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.js] | ||
indent_size = 2 | ||
indent_style = space | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.json] | ||
indent_size = 2 | ||
indent_style = space | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.py] | ||
indent_size = 4 | ||
indent_style = space | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
max_line_length = 119 | ||
|
||
[*.rb] | ||
indent_size = 2 | ||
indent_style = space | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.sh] | ||
indent_size = 2 | ||
indent_style = space | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.yml] | ||
indent_size = 2 | ||
indent_style = space | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[Makefile] | ||
indent_size = 2 | ||
indent_style = tab | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[**vendor**] | ||
indent_size = | ||
indent_style = | ||
charset = | ||
end_of_line = | ||
insert_final_newline = | ||
trim_trailing_whitespace = | ||
max_line_length = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export PATH="./bin:$PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# See https://help.github.com/articles/ignoring-files for more about ignoring files. | ||
# | ||
# If you find yourself ignoring temporary files generated by your text editor | ||
# or operating system, you probably want to add a global ignore instead: | ||
# git config --global core.excludesfile '~/.gitignore_global' | ||
|
||
# Ignore bundler config. | ||
/.bundle | ||
|
||
# Ignore vendor | ||
vendor | ||
|
||
# Ignore all logfiles and tempfiles. | ||
/log/* | ||
/tmp/* | ||
!/log/.keep | ||
!/tmp/.keep | ||
|
||
/node_modules | ||
/yarn-error.log | ||
|
||
.byebug_history | ||
|
||
# RSpec state | ||
spec/examples.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--require spec_helper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
require: rubocop-rspec | ||
inherit_gem: | ||
govuk-lint: | ||
- configs/rubocop/all.yml | ||
AllCops: | ||
Include: | ||
- '**/Rakefile' | ||
- '**/config.ru' | ||
Exclude: | ||
- 'bin/*' | ||
- 'vendor/**/*' | ||
TargetRubyVersion: 2.4.2 | ||
Metrics/BlockLength: | ||
Enabled: true | ||
Exclude: | ||
- "test/**/*" | ||
- "**/spec/**/*" | ||
- "config/**/*" | ||
Rails: | ||
Enabled: true | ||
RSpec/MultipleExpectations: | ||
Description: Checks if examples contain far too many `expect` calls. | ||
Enabled: true | ||
Max: 20 | ||
StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MultipleExpectations | ||
RSpec/ExampleLength: | ||
Description: Checks for excessively long examples. | ||
Enabled: true | ||
Max: 30 | ||
StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExampleLength | ||
RSpec/VerifiedDoubles: | ||
Description: Prefer using verifying doubles over normal doubles. | ||
Enabled: false | ||
IgnoreSymbolicNames: false | ||
StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/VerifiedDoubles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.4.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
language: ruby | ||
rvm: | ||
- 2.4.2 | ||
|
||
env: | ||
global: | ||
- CF_API_ENDPOINT=none | ||
- CF_AUTH_ENDPOINT=none | ||
- CF_TOKEN_ENDPOINT=none | ||
- CF_CLIENT_ID=none | ||
- CF_CLIENT_SECRET=none | ||
|
||
script: | ||
- ./bin/rspec | ||
- ./bin/rubocop | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
source "https://rubygems.org" | ||
|
||
ruby "2.4.2" | ||
|
||
git_source(:github) do |repo_name| | ||
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") | ||
"https://github.com/#{repo_name}.git" | ||
end | ||
|
||
gem "faraday" | ||
gem "omniauth-uaa-oauth2", github: "cloudfoundry/omniauth-uaa-oauth2" | ||
gem "puma", "~> 3.7" | ||
gem "rails", "~> 5.1.4" | ||
gem "uglifier", ">= 1.3.0" | ||
|
||
group :development, :test do | ||
gem "capybara" | ||
gem "pry-byebug" | ||
gem "rack_session_access" | ||
gem "rspec-rails" | ||
end | ||
|
||
group :development do | ||
gem "govuk-lint", "~> 3.4.0" | ||
gem "listen", ">= 3.0.5", "< 3.2" | ||
gem "rubocop", "~> 0.51.0", require: false | ||
gem "spring" | ||
gem "spring-watcher-listen", "~> 2.0.0" | ||
gem "web-console", ">= 3.3.0" | ||
end | ||
|
||
gem "tzinfo-data", platforms: %i[mingw mswin x64_mingw jruby] |
Oops, something went wrong.