grade_runner 0.0.9 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 126dec678889c8e49764337f85a40e87a389e960ad813a4cb04e297446bbf74e
4
- data.tar.gz: f4f36124eca6fecf133c6f2fe42ab1d3fa03cf8e1e26f3cf5f94bd6d88ca737f
3
+ metadata.gz: b45590a9a30c53dfa993e986ce49f4bc33696f1a35f0e8587a4d9b54dad3f380
4
+ data.tar.gz: 76e02456149f91f875c029add83bbdf1d31c7ce4b02fd9dd2729410911cf38b7
5
5
  SHA512:
6
- metadata.gz: 6c3eb6813b2d0babbb39974430b7b7ba36e658f4970cc77a102f2ee0522feab2de89b2f7c42ecbed63acdfaed6c98544f64a4d8a9572c4e3fe462e574fc1fcfc
7
- data.tar.gz: 28d9326401af07677e5f6358b708695aa717571056ba0c0842cd71126b9f90594b12764cdca0790ab530c94e7fda818a67b2d9faef04bfab082a241a3069a6ef
6
+ metadata.gz: 25ccf695386404cf691960d213fed68402ba1269361af0ccf0a82a463d3dadb4065766e0380c6beaf83020eadf31241ee6b72a9041a339fd9930155959f3d664
7
+ data.tar.gz: 31adbef7665e978f6292cbf8663f79bc77bc6828c76a8b9afeb740914d762cbefdf1a5c2f88b6d2495819169f9f1a689b355a110ae44597366983e0c6e84c311
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.9
1
+ 0.0.11
data/grade_runner.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: grade_runner 0.0.9 ruby lib
5
+ # stub: grade_runner 0.0.11 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "grade_runner".freeze
9
- s.version = "0.0.9"
9
+ s.version = "0.0.11"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Raghu Betina".freeze, "Jelani Woods".freeze]
14
- s.date = "2023-11-20"
14
+ s.date = "2024-07-09"
15
15
  s.description = "This gem runs your RSpec test suite and posts the JSON output to grades.firstdraft.com.".freeze
16
16
  s.email = ["raghu@firstdraft.com".freeze, "jelani@firstdraft.com".freeze]
17
17
  s.extra_rdoc_files = [
data/lib/tasks/grade.rake CHANGED
@@ -74,7 +74,7 @@ namespace :grade do
74
74
 
75
75
  path = File.join(project_root, "/tmp/output/#{Time.now.to_i}.json")
76
76
  `bin/rails db:migrate RAILS_ENV=test` if defined?(Rails)
77
- `RAILS_ENV=test bundle exec rspec --order default --format JsonOutputFormatter --out #{path}`
77
+ `RAILS_ENV=test bundle exec rspec --format JsonOutputFormatter --out #{path}`
78
78
  rspec_output_json = Oj.load(File.read(path))
79
79
  github_email = `git config user.email`.chomp
80
80
  username = github_username(github_email)
@@ -151,6 +151,11 @@ def sync_specs_with_source(full_reponame)
151
151
  default_branch = `git remote show upstream | grep 'HEAD branch' | cut -d' ' -f5`.chomp
152
152
  # Overwrite local contents of spec folder with contents from upstream branch
153
153
  `git checkout upstream/#{default_branch} spec/ -q`
154
+ # Unstage new spec file contents
155
+ # - if wrong token is used, spec files can be removed properly when unstaged
156
+ # - spec file changes committed by learner are removed and updated
157
+ # - we are not committing spec file changes by default to avoid confusing the git history
158
+ `git restore --staged spec/*`
154
159
  end
155
160
  else
156
161
  abort("The project #{full_reponame} does not exist.")
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grade_runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raghu Betina
8
8
  - Jelani Woods
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-11-20 00:00:00.000000000 Z
12
+ date: 2024-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -264,7 +264,7 @@ homepage: http://github.com/firstdraft/grade_runner
264
264
  licenses:
265
265
  - MIT
266
266
  metadata: {}
267
- post_install_message:
267
+ post_install_message:
268
268
  rdoc_options: []
269
269
  require_paths:
270
270
  - lib
@@ -279,8 +279,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
279
279
  - !ruby/object:Gem::Version
280
280
  version: '0'
281
281
  requirements: []
282
- rubygems_version: 3.1.6
283
- signing_key:
282
+ rubygems_version: 3.4.6
283
+ signing_key:
284
284
  specification_version: 4
285
285
  summary: A Ruby client for [firstdraft Grades](https://grades.firstdraft.com)
286
286
  test_files: []