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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d6eca2df23be413bc70fce4013c32e8a33727a309d8fc93b065575865663e24
4
- data.tar.gz: 840966af55829acc2af8e6853fb39a194904e9be776d551a328560a4c02fd3b7
3
+ metadata.gz: 0cee87581d05203c12b9f61c519c2db329ac8793e135bfe129d4ab8bf95ad5c5
4
+ data.tar.gz: a48c462cff8fecf7b508fdd1ac249bd93e7c4f16a7e3c426c2f56d6d8a6c84bf
5
5
  SHA512:
6
- metadata.gz: 54e7cf140bb34011498b48f98a2adcc62976515c79d1f1264ce8429c2e21ab1e38902d6fcc703496be6052fa9fc037e10a1945e050fefba7c2a26bc0de276aca
7
- data.tar.gz: 6e129630ae936d3d8bb60bee24ecbd6427074cec94eab51ca4c334c25bd70b401d5425eec6643de0de1afc55bae27e89842755f6a4c9bcc044380da826fcd70a
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
@@ -18,3 +18,6 @@ assignment:
18
18
 
19
19
  # assignment[notify_of_update]
20
20
  notify_of_update: {{ page.notify_of_update }}
21
+
22
+ # assignment[points_possible]
23
+ points_possible: {{ page.points_possible }}
@@ -1,4 +1,5 @@
1
- require 'travis' # travis-ci api
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 = ENV['TRAVIS_REPO_SLUG']
102
- travis = ::Travis::Repository.find(repo)
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|
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Canvas
4
4
  module Workflow
5
- VERSION = "0.7.0".freeze
5
+ VERSION = "0.8.0".freeze
6
6
  end
7
7
  end
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.7.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-02-17 00:00:00.000000000 Z
11
+ date: 2018-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll