Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ end
group :development do
gem 'annotate'
gem 'rubocop'
gem 'web-console', '~> 2.0'
gem 'web-console'
end

group :test do
Expand Down
47 changes: 22 additions & 25 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,16 @@ GEM
ansi (1.5.0)
arel (6.0.3)
ast (2.2.0)
aws-sdk (2.2.13)
aws-sdk-resources (= 2.2.13)
aws-sdk-core (2.2.13)
aws-sdk (2.2.14)
aws-sdk-resources (= 2.2.14)
aws-sdk-core (2.2.14)
jmespath (~> 1.0)
aws-sdk-resources (2.2.13)
aws-sdk-core (= 2.2.13)
aws-sdk-resources (2.2.14)
aws-sdk-core (= 2.2.14)
bcrypt (3.1.10)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
bootstrap_form (2.3.0)
builder (3.2.2)
byebug (8.2.1)
byebug (8.2.2)
cancancan (1.13.1)
capybara (2.6.2)
addressable
Expand Down Expand Up @@ -92,19 +90,19 @@ GEM
delayed_job_active_record (4.1.0)
activerecord (>= 3.0, < 5)
delayed_job (>= 3.0, < 5)
devise (3.5.5)
devise (3.5.6)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5)
responders
thread_safe (~> 0.1)
warden (~> 1.2.3)
docile (1.1.5)
domain_name (0.5.25)
domain_name (0.5.20160128)
unf (>= 0.0.5, < 1.0.0)
erubis (2.7.0)
execjs (2.6.0)
fakes3 (0.2.3)
fakes3 (0.2.4)
builder
thor
faraday (0.9.2)
Expand All @@ -127,7 +125,7 @@ GEM
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (1.8.3)
jwt (1.5.2)
jwt (1.5.1)
less (2.6.0)
commonjs (~> 0.2.7)
less-rails (2.7.1)
Expand Down Expand Up @@ -168,12 +166,12 @@ GEM
netrc (0.11.0)
nokogiri (1.6.7.2)
mini_portile2 (~> 2.0.0.rc2)
oauth2 (1.0.0)
oauth2 (1.1.0)
faraday (>= 0.8, < 0.10)
jwt (~> 1.0)
jwt (~> 1.0, < 1.5.2)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (~> 1.2)
rack (>= 1.2, < 3)
omniauth (1.3.1)
hashie (>= 1.2, < 4)
rack (>= 1.0, < 3)
Expand All @@ -185,7 +183,7 @@ GEM
orm_adapter (0.5.0)
parser (2.3.0.2)
ast (~> 2.2)
passenger (5.0.23)
passenger (5.0.24)
rack
rake (>= 0.8.1)
pg (0.18.4)
Expand Down Expand Up @@ -215,7 +213,7 @@ GEM
rails_12factor (0.0.3)
rails_serve_static_assets
rails_stdout_logging
rails_serve_static_assets (0.0.4)
rails_serve_static_assets (0.0.5)
rails_stdout_logging (0.0.4)
railties (4.2.5.1)
actionpack (= 4.2.5.1)
Expand Down Expand Up @@ -250,7 +248,7 @@ GEM
sprockets (3.5.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.0.0)
sprockets-rails (3.0.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
Expand Down Expand Up @@ -278,13 +276,12 @@ GEM
unf_ext
unf_ext (0.0.7.1)
vcr (3.0.1)
warden (1.2.5)
warden (1.2.6)
rack (>= 1.0)
web-console (2.3.0)
activemodel (>= 4.0)
binding_of_caller (>= 0.7.2)
railties (>= 4.0)
sprockets-rails (>= 2.0, < 4.0)
web-console (3.1.1)
activemodel (>= 4.2)
debug_inspector
railties (>= 4.2)
webmock (1.22.6)
addressable (>= 2.3.6)
crack (>= 0.3.2)
Expand Down Expand Up @@ -333,7 +330,7 @@ DEPENDENCIES
twitter-bootstrap-rails
uglifier (>= 1.3.0)
vcr
web-console (~> 2.0)
web-console
webmock

BUNDLED WITH
Expand Down
21 changes: 21 additions & 0 deletions app/controllers/submissions_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# == Schema Information
#
# Table name: submissions
#
# id :integer not null, primary key
# user_id :integer
# title :string not null
# journal :string
# doi :string
# author :string
# doe :boolean
# grant_number :string
# agreed_to_license :boolean
# created_at :datetime not null
# updated_at :datetime not null
# documents :string
# status :string
# handle :string
# uuid :string
#

class SubmissionsController < ApplicationController
before_action :authenticate_user!
before_action :set_s3_direct_post, only: [:new, :create]
Expand Down
21 changes: 21 additions & 0 deletions test/controllers/submissions_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# == Schema Information
#
# Table name: submissions
#
# id :integer not null, primary key
# user_id :integer
# title :string not null
# journal :string
# doi :string
# author :string
# doe :boolean
# grant_number :string
# agreed_to_license :boolean
# created_at :datetime not null
# updated_at :datetime not null
# documents :string
# status :string
# handle :string
# uuid :string
#

require 'test_helper'

class SubmissionsControllerTest < ActionController::TestCase
Expand Down