grade_runner 0.0.3.pre.4.pls.work.3.6.2 → 0.0.3.pre.4.pls.work.3.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/tasks/grade.rake +13 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca0c1c710af315b50aad8a40e576931d721af0a284016b5cb894f8a8318ce1e5
4
- data.tar.gz: 5153e46efed869de63a4a179e92f07f3d40ff937deef16d6112cc0cf0b8445b2
3
+ metadata.gz: e97ee28a2581f1d5fcd05af08b40f18999b680ad05b0a1cd7baf2733b5dea6ef
4
+ data.tar.gz: 3cd46cbbd7c3344fc1e6ef2e8c539112a75894ec82fe58498af29ad6c90ca5e2
5
5
  SHA512:
6
- metadata.gz: a975b11f6354e80bf6167c446e95a5e6ab7bf466c4d2cf7a1dce8ab706088ad5bd83b1821d065676a27eb8ad421cfc7f971c5c26a4b2716733b463366e8e287d
7
- data.tar.gz: b657a14352dead614041d24c23d1bf972e5bf916a975c6e2cdced6a578028903132399e40a6a226d7c6720594094196d25de83a09bfce580945c157f228fc392
6
+ metadata.gz: '0968d81770b41cb2628826c5223d8b23f7a1023694bed58d3754682d9370b6f2e896178d26cdc3bd2597ccc80a045b1b4b87f9e6b1ad94ae8c43a008f0586281'
7
+ data.tar.gz: 677fc77a2c043da2874dce0975473a2919fe3d4786179ef0107105cc740fbf875d09d1798e608f96bc4f06c3629b36134163cdc9e97d32cb9a688f4b63f0ec15
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3.pre.4.pls.work.3.6.2
1
+ 0.0.3.pre.4.pls.work.3.6.3
data/lib/tasks/grade.rake CHANGED
@@ -84,7 +84,7 @@ namespace :grade do
84
84
  update_config_file(config_file_name, student_config)
85
85
  puts "Your access token looked invalid, so we've reset it to be blank. Please re-run rake grade and, when asked, copy-paste your token carefully from the assignment page."
86
86
  else
87
- path = File.join(__dir__, "/tmp/output/#{Time.now.to_i}.json")
87
+ path = File.join(project_root, "/tmp/output/#{Time.now.to_i}.json")
88
88
  # `bin/rails db:migrate RAILS_ENV=test`
89
89
  if Dir.exist?("bin")
90
90
  `bin/rake db:migrate`
@@ -153,3 +153,15 @@ rescue => e
153
153
  p e
154
154
  return false
155
155
  end
156
+
157
+ def project_root
158
+ if defined?(Rails)
159
+ return Rails.root
160
+ end
161
+
162
+ if defined?(Bundler)
163
+ return Bundler.root
164
+ end
165
+
166
+ Dir.pwd
167
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grade_runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.pre.4.pls.work.3.6.2
4
+ version: 0.0.3.pre.4.pls.work.3.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raghu Betina