github-to-canvas 0.0.45 → 0.0.46
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/github-to-canvas/repository_converter.rb +2 -2
- data/lib/github-to-canvas/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddda58c3ed202c82e6c0f71a80178a7fbc72e593b9357b5449ee2116d35f68cf
|
4
|
+
data.tar.gz: ea08df0af727814a06508291e9e2d0159f5e268ed7b54858002a74cb6529a26d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a62890799c51f119081bca8a26455ff46d55e9f796a3a3f783f2b39a47c16439b2ca1528eee528b54c2c8453fc865ec62e7b5526cdf925199b24a243fddc7e33
|
7
|
+
data.tar.gz: 980f0d8f8265f2cffa75e8f5659bbb4e7d34efaf76c4d8ff1748e9ee2357fbca3c10903ff63a5bcf9f0fc7c60c8a38a2374174c18235dfb4a70843f4350baf23
|
@@ -54,9 +54,9 @@ class RepositoryConverter
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def self.adjust_local_html_images(readme, raw_remote_url)
|
57
|
-
readme.gsub!(/src
|
57
|
+
readme.gsub!(/src=(\'|\")[\s\S]*?(\'|\")/) { |image_source|
|
58
58
|
if !image_source.match?('amazonaws.com') && !image_source.match?('https://') && !image_source.match?('http://') && !image_source.match?('youtube')
|
59
|
-
image_source.gsub!(
|
59
|
+
image_source.gsub!(/(\'|\")/, "")
|
60
60
|
image_source.gsub!(/src=/, '')
|
61
61
|
image_source.strip!
|
62
62
|
'src="' + raw_remote_url + '/master/' + image_source + '"'
|