github-to-canvas 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 292c75129f49e571976390d008441b48b83af93ffcecbabc5071799aef6656f8
4
- data.tar.gz: 831f32335f994923d179b8e819bbed986ee7a57ababa8789064b904b39407f32
3
+ metadata.gz: 2d54831d66ba0cb1fa64c3fcdd88316bdc49b05e92a66c9efb26c5a3e969bf9f
4
+ data.tar.gz: 8b712c82ca2d2c2963cb2afa63fb51a3440942502460e0243c2f6d0d90364c76
5
5
  SHA512:
6
- metadata.gz: c0b0a5114f5e92d37ba700713c6d8071034f5915e9000e9e0174fef948f56b32ed42355badddf367fc6863e2f6947efbbaa450a7d0887a5b343c97fb75e76d22
7
- data.tar.gz: df8a0118fccacf35ac7c93823899830c4ec7e82f62915f15d29ae4e713161a097997b254510089f1b79aca1c298939f2c01bd42f55cc1aab15d89808f4b8b982
6
+ metadata.gz: 8048d01da1fa1e62c53b369748ad25e4408078ed3f879c367806451c9e078133f28fc87f3ecd31e14b519b2fc4665e2e791d86041f7492aa1a35eda6acbce3af
7
+ data.tar.gz: 7940c42a9915fcbe7f2a838d931da579471b8aa90f0037b159a9bf2441ea6fc96dfad1e8ee8d5cd4ec29d160e79e12ddaef150f1f5c1ca150fa221a7a0994887
data/README.md CHANGED
@@ -31,7 +31,7 @@ called `CANVAS_API_KEY`. Use the following command to add your new key to
31
31
  `~/.zshrc`:
32
32
 
33
33
  ```sh
34
- echo "$(echo 'CANVAS_API_KEY=<your-new-API-key-here>' | cat - ~/.zshrc)" > ~/.zshrc
34
+ echo "$(export 'CANVAS_API_KEY=<your-new-API-key-here>' | cat - ~/.zshrc)" > ~/.zshrc
35
35
  ```
36
36
 
37
37
  > **Note:** The command above assumes you are using Zsh. Change the dotfile if
@@ -44,7 +44,7 @@ Flatiron School's base path is `https://learning.flatironschool.com/api/v1`. Add
44
44
  as an `ENV` variable like the API key. **Do not add a `/` at the end after `/api/v1`.**
45
45
 
46
46
  ```sh
47
- echo "$(echo 'CANVAS_API_PATH=<your-base-api-path>' | cat - ~/.zshrc)" > ~/.zshrc
47
+ echo "$(export 'CANVAS_API_PATH=<your-base-api-path>' | cat - ~/.zshrc)" > ~/.zshrc
48
48
  ```
49
49
 
50
50
  After both the API key and path are added to `~/.zshrc`, run `source ~/.zshrc`
@@ -106,5 +106,11 @@ You can override the default behaviors with the following arguments:
106
106
  appropriate Canvas lesson type instead of relying on the repository's
107
107
  directory structure
108
108
 
109
+ ![example in-line image](https://curriculum-content.s3.amazonaws.com/fewpjs/fewpjs-fetch-lab/Image_25_AsynchronousJavaScript.png)
110
+
111
+ <p align="center">
112
+ <img src="https://curriculum-content.s3.amazonaws.com/fewpjs/fewpjs-fetch-lab/Image_25_AsynchronousJavaScript.png" width="500">
113
+ </p>
114
+
109
115
  [Canvas LMS API]: https://canvas.instructure.com/doc/api/index.html
110
116
  [Flatiron School]: https://flatironschool.com/
@@ -35,12 +35,14 @@ class RepositoryConverter
35
35
 
36
36
  def self.adjust_local_html_images(readme, raw_remote_url)
37
37
  readme.gsub!(/src=\"[\s\S]*?" /) { |img|
38
- if !image.match('amazonaws.com') && !image.match('https://') && !image.match('youtube')
38
+ if !img.match('amazonaws.com') && !img.match('https://') && !img.match('youtube')
39
39
  img.gsub!(/\"/, "")
40
40
  img.gsub!(/src=/, '')
41
41
  img.strip!
42
+ 'src="' + raw_remote_url + '/master/' + img + '"'
43
+ else
44
+ img
42
45
  end
43
- 'src="' + raw_remote_url + '/master/' + img + '"'
44
46
  }
45
47
  end
46
48
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-to-canvas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - maxwellbenton