senkyoshi 1.0.9 → 1.0.10

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
  SHA1:
3
- metadata.gz: 99658502a8221b6898e129443137b24fb32e6428
4
- data.tar.gz: d1e6c9a353a2c2bef8f800bbf1c660809b72264b
3
+ metadata.gz: 734aa6a4182cbe1cc084141e348a86de31e79e8f
4
+ data.tar.gz: da8a96c3f60cd2b8afd6bde2633336db2838facf
5
5
  SHA512:
6
- metadata.gz: eb318a13ce550e2d7da69a49c58d6f1ae36b3d549c25eb4158f2c74d28d166f2f3f103f2a847c5efc22bf771dd11d500a22a79ce62d3fa3f16ff7cc35b53e1a0
7
- data.tar.gz: 8f602f3422c21effdd47d583c102d61f6a1971e01f7e026a767acaf73c65c3babd32c6eb587a8798a5c930e4708b51b856a282539881fba1ca9fcb3bd58d3af6
6
+ metadata.gz: 9c53c165560b8b087b256eadecb60b0f0106c3987532ba845155b1fcd905ef0db32f6fd0bd93e9e6bf869867f40d7961916f501047aa182db93372e3716175ed
7
+ data.tar.gz: 90efec004135f970851a3a9c3e8c8d893bcf6930b3111811500302ec22f7be2706ddbfd54b616d45e97a349e1710948bef12097350fe7fb49bc6951ec7d6e7e5
data/README.md CHANGED
@@ -67,6 +67,10 @@ Create a `senkyoshi.yml` and add credentials:
67
67
  # Adhesion, this will look like https://<adhesion url>/scorm_course
68
68
  :scorm_launch_url: <scorm launch url>
69
69
 
70
+ # This should be the oauth_consumer_key for scorm. In the case of
71
+ # Adhesion, it would just be `scorm`.
72
+ :scorm_oauth_consumer_key: <scorm oauth consumer key>
73
+
70
74
  # This is the secret to authenticate requests to the SCORM manager. In the case
71
75
  # of Adhesion, you can generate a shared secret by logging into the server and
72
76
  # running rake shared_auth, which will generate and save a token
@@ -147,15 +147,16 @@ module Senkyoshi
147
147
  ##
148
148
  def upload_scorm_package(scorm_package, course_id, tmp_name)
149
149
  zip = scorm_package.write_zip tmp_name
150
+ config = Senkyoshi.configuration
150
151
  File.open(zip, "rb") do |file|
151
152
  RestClient.post(
152
153
  "#{Senkyoshi.configuration.scorm_url}/api/scorm_courses",
153
154
  {
154
- oauth_consumer_key: "scorm-player",
155
+ oauth_consumer_key: config.scorm_oauth_consumer_key,
155
156
  lms_course_id: course_id,
156
157
  file: file,
157
158
  },
158
- SharedAuthorization: Senkyoshi.configuration.scorm_shared_auth,
159
+ SharedAuthorization: config.scorm_shared_auth,
159
160
  ) do |resp|
160
161
  result = JSON.parse(resp.body)["response"]
161
162
  result["points_possible"] = scorm_package.points_possible
@@ -14,5 +14,5 @@
14
14
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
15
 
16
16
  module Senkyoshi
17
- VERSION = "1.0.9".freeze
17
+ VERSION = "1.0.10".freeze
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: senkyoshi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Atomic Jolt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-11 00:00:00.000000000 Z
11
+ date: 2017-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry-byebug
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  version: '0'
234
234
  requirements: []
235
235
  rubyforge_project:
236
- rubygems_version: 2.6.8
236
+ rubygems_version: 2.6.13
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: Converts Blackboard zip file to Canvas Common Cartridge