moodle2cc 0.2.37 → 0.2.38
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/moodle2cc/moodle2converter/html_converter.rb +1 -0
- data/lib/moodle2cc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ab8d0f7b274d3eef69be675e96bbd3c9ed5f146
|
4
|
+
data.tar.gz: 8dd875a45774f139e9f8a39fb91c21102678e645
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3152e488c7aa32f975a40c73a487c16d752df7e9fb9c8b5a44d82902ebb2b599780037d22249d22d66f2caca5e5f522bdae01fe326ec7254768bcca20c7bd1c
|
7
|
+
data.tar.gz: 9dfa3571c6fc9f514e101a6b1fbe05cf2e355ef7271f5d97e7d5a44ea1b2a94f2bea406869ca61f106c9055e0ff8ea51af89aaac9f3bc5d70be58602da2c8afe
|
@@ -27,6 +27,7 @@ module Moodle2CC::Moodle2Converter
|
|
27
27
|
|
28
28
|
def update_links(content)
|
29
29
|
html = Nokogiri::HTML.fragment(content)
|
30
|
+
return content if html.children.size == 1 && html.children.first.is_a?(Nokogiri::XML::Text)
|
30
31
|
html.css('img[src]').each { |img| img['src'] = update_url(img.attr('src')) }
|
31
32
|
html.css('a[href]').each do |tag|
|
32
33
|
tag['href'] = update_url(tag.attr('href'))
|
data/lib/moodle2cc/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moodle2cc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.38
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Durtschi
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2017-05-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rubyzip
|