Skip to content

Commit

Permalink
Merge pull request #1 from alphagov/uaa-auth-153072577
Browse files Browse the repository at this point in the history
[#153072577] First steps to admin app: Base rails app with OAuth
  • Loading branch information
dcarley authored Dec 14, 2017
2 parents f1b282e + 6d68e91 commit 9852b69
Show file tree
Hide file tree
Showing 92 changed files with 2,280 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
113 changes: 113 additions & 0 deletions .editorconfig
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 =
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export PATH="./bin:$PATH"
25 changes: 25 additions & 0 deletions .gitignore
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
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require spec_helper
35 changes: 35 additions & 0 deletions .rubocop.yml
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
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.4.2
16 changes: 16 additions & 0 deletions .travis.yml
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

32 changes: 32 additions & 0 deletions Gemfile
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]
Loading

0 comments on commit 9852b69

Please sign in to comment.