canvas-workflow 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/_layouts/assignment.html +3 -0
- data/lib/canvas/workflow/travis.rb +10 -3
- data/lib/canvas/workflow/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0cee87581d05203c12b9f61c519c2db329ac8793e135bfe129d4ab8bf95ad5c5
|
|
4
|
+
data.tar.gz: a48c462cff8fecf7b508fdd1ac249bd93e7c4f16a7e3c426c2f56d6d8a6c84bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 93f92907b4668e520f001355bf5de304d4aabf9cc2731283435c877e2bfff16497e2093580008fbad5f4a0b5066f35617344274a7e379f9ccafc310c32a5bdb5
|
|
7
|
+
data.tar.gz: e2eb2aa8882c3abf95c53cf181b0c707b8b597d22403259c4567c564bb4e8ca1da37fb4d69614f0763aa140fca74c30ee13df6acbee00978c2e8f09ed9190bc6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## Unreleased
|
|
2
|
+
|
|
3
|
+
## [0.8.0](https://github.com/jiverson002/canvas-workflow/releases/tag/0.8.0)
|
|
4
|
+
|
|
5
|
+
### Enhancements
|
|
6
|
+
* Added points_possible key to assignment yaml.
|
|
7
|
+
* Added use of TRAVIS\_PRO\_API\_TOKEN environment variable to trigger use of
|
|
8
|
+
travis-ci.com endpoint instead of travis-ci.org.
|
|
9
|
+
|
|
1
10
|
## [0.7.0](https://github.com/jiverson002/canvas-workflow/releases/tag/0.7.0)
|
|
2
11
|
|
|
3
12
|
### Enhancements
|
data/_layouts/assignment.html
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
require 'travis'
|
|
1
|
+
require 'travis' # travis-ci api
|
|
2
|
+
require 'travis/pro' # travis-ci pro api
|
|
2
3
|
|
|
3
4
|
module Canvas
|
|
4
5
|
module Workflow
|
|
@@ -98,8 +99,14 @@ module Canvas
|
|
|
98
99
|
return @commit_sha unless @commit_sha.nil?
|
|
99
100
|
|
|
100
101
|
# get the builds for the travis repo
|
|
101
|
-
repo
|
|
102
|
-
|
|
102
|
+
repo = ENV['TRAVIS_REPO_SLUG']
|
|
103
|
+
|
|
104
|
+
if ENV['TRAVIS_PRO_API_TOKEN'].nil?
|
|
105
|
+
travis = ::Travis::Repository.find(repo)
|
|
106
|
+
else
|
|
107
|
+
::Travis::Pro.access_token = ENV['TRAVIS_PRO_API_TOKEN']
|
|
108
|
+
travis = ::Travis::Pro::Repository.find(repo)
|
|
109
|
+
end
|
|
103
110
|
|
|
104
111
|
# search the builds for last succesful build
|
|
105
112
|
builds = travis.each_build.select do |build|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: canvas-workflow
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeremy Iverson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-08-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|