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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b28731821e3bad40e0d51ce6689f426f20a877a56467237f5707e269da1e57f
4
- data.tar.gz: df5f3992733edf5ff876a7a80da8e88876462328a91e71f1f82821484f778249
3
+ metadata.gz: ddda58c3ed202c82e6c0f71a80178a7fbc72e593b9357b5449ee2116d35f68cf
4
+ data.tar.gz: ea08df0af727814a06508291e9e2d0159f5e268ed7b54858002a74cb6529a26d
5
5
  SHA512:
6
- metadata.gz: a86f2918add3b43cbdb3df0854bba20610307fcb8f93cfb10ae4be6360a4fa10e13c3718b8391947264390cf2bc844e8cce8ef6b9f41b9b37a0cc546c5413442
7
- data.tar.gz: 1824173a9ca13b42ddd793f0eb61cf8a2b2ceee9d7b94de2599734545d8e0e003d7c679515a6494bcf7fe85ecd33f4a1a3b47795277f0d31a67d87a615da7bf6
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=\"[\s\S]*?"/) { |image_source|
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 + '"'
@@ -1,3 +1,3 @@
1
1
  class GithubToCanvas
2
- VERSION = "0.0.45"
2
+ VERSION = "0.0.46"
3
3
  end
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.45
4
+ version: 0.0.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - maxwellbenton