diff --git a/.firstdraft_project.yml b/.firstdraft_project.yml index 70d47ce..5e0ca3b 100644 --- a/.firstdraft_project.yml +++ b/.firstdraft_project.yml @@ -1,3 +1,3 @@ --- -submission_url: https://grades.firstdraft.com/builds +submission_url: https://grades-staging.firstdraft.com/builds project_token: deprecated diff --git a/Gemfile b/Gemfile index 86f60d3..3b515bd 100644 --- a/Gemfile +++ b/Gemfile @@ -51,7 +51,7 @@ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] group :development, :test do gem 'dotenv-rails' gem 'pry-rails' - gem 'grade_runner', github: 'firstdraft/grade_runner' + gem 'grade_runner', github: 'firstdraft/grade_runner', branch: "add-commit-sha" gem 'web_git', github: 'firstdraft/web_git' end diff --git a/Gemfile.lock b/Gemfile.lock index d911ad9..034b2e1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,7 @@ GIT remote: https://github.com/firstdraft/grade_runner.git - revision: 881cce30367bc9a5f15a3e4ac4cb48599dbecec2 + revision: b2880d874eff8447cc15fc9032eb92e10b493d50 + branch: add-commit-sha specs: grade_runner (0.0.1) @@ -62,7 +63,7 @@ GEM activerecord (>= 3.2, < 6.0) rake (>= 10.4, < 13.0) arel (8.0.0) - autoprefixer-rails (7.1.1.3) + autoprefixer-rails (7.1.2.1) execjs awesome_print (1.8.0) better_errors (2.1.1) @@ -113,7 +114,7 @@ GEM globalid (0.4.0) activesupport (>= 4.2.0) hashdiff (0.3.4) - i18n (0.8.4) + i18n (0.8.6) jbuilder (2.7.0) activesupport (>= 4.2.0) multi_json (>= 1.2) @@ -213,7 +214,7 @@ GEM rspec-support (3.6.0) ruby_dep (1.5.0) safe_yaml (1.0.4) - sass (3.4.24) + sass (3.4.25) sass-rails (5.0.6) railties (>= 4.0.0, < 6) sass (~> 3.1) diff --git a/app/controllers/calculations_controller.rb b/app/controllers/calculations_controller.rb index 0df2d0f..d087423 100644 --- a/app/controllers/calculations_controller.rb +++ b/app/controllers/calculations_controller.rb @@ -11,7 +11,7 @@ def word_count # ================================================================================ - @word_count = "Replace this string with your answer." + @word_count = @text.split.count @character_count_with_spaces = "Replace this string with your answer."