maremma 4.2.4 → 4.2.5
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/maremma.rb +4 -4
- data/lib/maremma/version.rb +1 -1
- data/spec/maremma_spec.rb +4 -4
- 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: 198e61768096de61bfa4f3357b222a9cc1d378f72d3918479661e5ad5f174a44
|
|
4
|
+
data.tar.gz: 8ed803da27bbbb4c77aecb6c4d467b19311249ec7880acc1405cc8eab86a0d39
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b558420af890526a673070156949466a5794cfdb2c171c995b8b878fbae5c431749c9b91b0aac9d55a9ae7942fdef2e206e2b1e2d2220357e77d20d58b402333
|
|
7
|
+
data.tar.gz: bde35e5b17f83171118cfc0f2221350efff71bac2108ac7a2abe1404ff460824fdff9fbb57f9015ab6c013252084c6742867c87ea6dc8f1b9ea60e3029a6bd55
|
data/Gemfile.lock
CHANGED
data/lib/maremma.rb
CHANGED
|
@@ -226,10 +226,10 @@ module Maremma
|
|
|
226
226
|
# keep XML attributes, http://stackoverflow.com/a/10794044
|
|
227
227
|
# escape tags allowed in content
|
|
228
228
|
def self.from_xml(string)
|
|
229
|
-
ALLOWED_CONTENT_TAGS.each do |tag|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
end
|
|
229
|
+
# ALLOWED_CONTENT_TAGS.each do |tag|
|
|
230
|
+
# string.gsub!("<#{tag}>", "<#{tag}>")
|
|
231
|
+
# string.gsub!("</#{tag}>", "</#{tag}>")
|
|
232
|
+
# end
|
|
233
233
|
|
|
234
234
|
if Nokogiri::XML(string, nil, 'UTF-8').errors.empty?
|
|
235
235
|
Hash.from_xml(string)
|
data/lib/maremma/version.rb
CHANGED
data/spec/maremma_spec.rb
CHANGED
|
@@ -573,10 +573,10 @@ describe Maremma do
|
|
|
573
573
|
expect(subject.parse_success_response(string)).to eq("data"=>{"word"=>{"type"=>"small", "__content__"=>"abc"}})
|
|
574
574
|
end
|
|
575
575
|
|
|
576
|
-
it 'from_xml with allowed content attributes' do
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
end
|
|
576
|
+
# it 'from_xml with allowed content attributes' do
|
|
577
|
+
# string = '<title>Sexual conflict and correlated evolution between male persistence and female resistance traits in the seed beetle <i>Callosobruchus maculatus</i></title>'
|
|
578
|
+
# expect(subject.parse_success_response(string)).to eq("data"=>{"title"=>"Sexual conflict and correlated evolution between male persistence and female resistance traits in the seed beetle <i>Callosobruchus maculatus</i>"})
|
|
579
|
+
# end
|
|
580
580
|
|
|
581
581
|
it 'from_xml with attribute type string' do
|
|
582
582
|
string = '<crm-item name="publisher-name" type="string">eLife Sciences Publications, Ltd</crm-item>'
|