maremma 4.2.4 → 4.2.5

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: ea20c84e27eb6be3f752bb38fda926ee2aa1ec585e53ba526739bd74b0de569e
4
- data.tar.gz: 0f1379f39973c54056a18d13d072204887d78a332a0a2a8e83532962c48cf07e
3
+ metadata.gz: 198e61768096de61bfa4f3357b222a9cc1d378f72d3918479661e5ad5f174a44
4
+ data.tar.gz: 8ed803da27bbbb4c77aecb6c4d467b19311249ec7880acc1405cc8eab86a0d39
5
5
  SHA512:
6
- metadata.gz: 6c4932b932e51cab41daaeeebc38bc61808275a92005170bdb675e2ec2c200eaa629f22272647f7f507e46b230c3dce692b738fcf23cbdd2c0a74f2f73cb28ea
7
- data.tar.gz: 399843bd7b7960da78ec36f2e8e5032b397b7dffd61310e0a0b5a72b0c96adaa314c0422f2715e54e4c8564c2c55385e889702c734ae30a2916c548970fde925
6
+ metadata.gz: b558420af890526a673070156949466a5794cfdb2c171c995b8b878fbae5c431749c9b91b0aac9d55a9ae7942fdef2e206e2b1e2d2220357e77d20d58b402333
7
+ data.tar.gz: bde35e5b17f83171118cfc0f2221350efff71bac2108ac7a2abe1404ff460824fdff9fbb57f9015ab6c013252084c6742867c87ea6dc8f1b9ea60e3029a6bd55
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- maremma (4.2.4)
4
+ maremma (4.2.5)
5
5
  activesupport (>= 4.2.5, < 6)
6
6
  addressable (>= 2.3.6)
7
7
  builder (~> 3.2, >= 3.2.2)
@@ -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
- string.gsub!("<#{tag}>", "&lt;#{tag}&gt;")
231
- string.gsub!("</#{tag}>", "&lt;/#{tag}&gt;")
232
- end
229
+ # ALLOWED_CONTENT_TAGS.each do |tag|
230
+ # string.gsub!("<#{tag}>", "&lt;#{tag}&gt;")
231
+ # string.gsub!("</#{tag}>", "&lt;/#{tag}&gt;")
232
+ # end
233
233
 
234
234
  if Nokogiri::XML(string, nil, 'UTF-8').errors.empty?
235
235
  Hash.from_xml(string)
@@ -1,3 +1,3 @@
1
1
  module Maremma
2
- VERSION = "4.2.4"
2
+ VERSION = "4.2.5"
3
3
  end
@@ -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
- 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
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>'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maremma
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.4
4
+ version: 4.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner