canvas_lms_api 0.1.0 → 0.1.1

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: 8e327db5daad3366209150d82923fb620bc1788b99f73185f5bdadf581bd10eb
4
- data.tar.gz: 4f6f1a8aded691287101a3b1a0f7ea6abb271f7d719066d6957f5491443ee441
3
+ metadata.gz: 9796d2e660c7aa9d3c315c84fd87c090f9b4a2fa4a642df7822f1a57e89ded12
4
+ data.tar.gz: 30d20ed74c57c768612166a7ecbb5cf59d1ad7b0c05aa00eda2e803d4a7a03a1
5
5
  SHA512:
6
- metadata.gz: '090d56fd98b5307b71f8b0f59cec7ca56bb960061087f261567534afc45d1af50a5245037ff3bbe493109d9a67b59ec5ed57edbbb4e5d0e43306ac95af9a3749'
7
- data.tar.gz: c5c53cbac27ebd568993e69d18f015cd3f465e3b9c51ed29c5f35b54fba268e0ce2f0e70025371838b1326215c2cf5ed8e3ae007a806f03057526c02594346fe
6
+ metadata.gz: 7f59e96ba62146aaf79d186a70068fffa79806cef4ec21da81430e3fee250fe7575611e08c5f4b4de3582627bdf1b6cf87bd8da7db6ab8edb64581124adab22b
7
+ data.tar.gz: 8252746726b085668c98081b4ebc25cc71e92353d2fe175f51522593c98ae801ac9a630b839cee7eda5a1924d8660391510e87be97a1d109cf431ebb75d1a7fa
data/README.md CHANGED
@@ -4,8 +4,6 @@ A simple ruby API client for CanvasLMS.
4
4
 
5
5
  ## Installation
6
6
 
7
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
8
-
9
7
  Install the gem and add to the application's Gemfile by executing:
10
8
 
11
9
  ```bash
@@ -15,7 +13,7 @@ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
15
13
  If bundler is not being used to manage dependencies, install the gem by executing:
16
14
 
17
15
  ```bash
18
- gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
16
+ gem install canvas_lms_api
19
17
  ```
20
18
 
21
19
  ## Usage
@@ -23,6 +23,7 @@ module CanvasLmsApi
23
23
  loop do
24
24
  response = CanvasLmsApi::Request.new(
25
25
  uri,
26
+ @api_key,
26
27
  params[:method],
27
28
  params[:payload]
28
29
  ).call
@@ -6,8 +6,9 @@ require "canvas_lms_api/response"
6
6
 
7
7
  module CanvasLmsApi
8
8
  class Request
9
- def initialize(uri, method = nil, payload = nil)
9
+ def initialize(uri, api_key, method = nil, payload = nil)
10
10
  @uri = uri
11
+ @api_key = api_key
11
12
  @method = method
12
13
  @payload = payload
13
14
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CanvasLmsApi
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_lms_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Bennell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-04 00:00:00.000000000 Z
11
+ date: 2024-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -126,5 +126,5 @@ requirements: []
126
126
  rubygems_version: 3.3.7
127
127
  signing_key:
128
128
  specification_version: 4
129
- summary: A simple API client for CanvasLMS.
129
+ summary: A simple ruby API client for CanvasLMS.
130
130
  test_files: []