abstractor 4.3.1 → 4.3.2

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
  SHA1:
3
- metadata.gz: d36a4ea709f125c6e0645f86a4ed3b465e636d21
4
- data.tar.gz: f15970922eafe5c42cfcc3ac4ee3963d21e338cf
3
+ metadata.gz: baaa1b6df1b052ab3bcf5f3ed7620290040328f2
4
+ data.tar.gz: cae4b1b08d93db0c37edb7436d52ceaad4c66766
5
5
  SHA512:
6
- metadata.gz: 827b8ec3e819dfad2c5730f5a3f006480e30b581f0fde61d065e640eee227bcb85df97abb3e3be4a196a6032b63e28c3932ef42bbded2d1156f98aaa8ef1cb49
7
- data.tar.gz: 5a14b265e150a75900ff975526b41d5d6636ce24994cb8f4565d5babdb5dae33972c557044601165e84b2ea814c53ce8d6bf3419750207a5d16265776656a9b7
6
+ metadata.gz: 93838c76aab24163a7b5745c679ed374206f4c5448c024d83c0e01dd0ec0938633a4ec50d03933f623e81bce7761a48f1f5e646c6eb391db73c5b291e51dbf1e
7
+ data.tar.gz: 798b93ed4755ca454c91f49a41886c7f53108173b9b7dbf859574319e136b000fa3c31695810cf1249f3786a7422aba8dfadde279f35aa9e5eb7e14af83f382c
@@ -35,9 +35,9 @@
35
35
  %i{ id: "abstraction_text_link_#{abstractor_suggestion_source.id}", class: "#{'abstraction_text_link_match' if has_text_match}" }
36
36
  %div{ id: "abstraction_text_#{abstractor_suggestion_source.id}", class: 'abstractor_abstraction_source_tooltip'}
37
37
  - if has_text_match
38
- = Abstractor::UserInterface.highlight(simple_format(abstractor_text), abstractor_suggestion_source.sentence_match_value.strip)
38
+ = simple_format(Abstractor::UserInterface.highlight(ERB::Util.html_escape(abstractor_text), ERB::Util.html_escape(abstractor_suggestion_source.sentence_match_value.strip)))
39
39
  - else
40
- = simple_format(abstractor_text)
40
+ = simple_format(ERB::Util.html_escape(abstractor_text))
41
41
  - if abstractor_suggestion_source.custom_explanation
42
42
  .custom_explanation
43
43
  %label
@@ -52,7 +52,7 @@
52
52
  %span{ class: 'abstractor_abstraction_source_tooltip_img', rel: "#abstraction_text_#{dom_id}", title: "#{source[:source_type]} #{source[:source_method]} #{source[:section_name]}"}
53
53
  %i{ id: "abstraction_text_link_#{dom_id}" }
54
54
  %div{ id: "abstraction_text_#{dom_id}", class: 'abstractor_abstraction_source_tooltip'}
55
- = simple_format(abstractor_text)
55
+ = simple_format(ERB::Util.html_escape(abstractor_text))
56
56
  .abstraction_edit_abstraction_actions
57
57
  = f.submit 'Save'
58
58
  = link_to 'Cancel', abstractor_abstraction, :remote => true
@@ -72,4 +72,4 @@
72
72
  - sources.each do |source|
73
73
  - hidden = abstractor_indirect_source_form.object.source_id == source.id ? '' : 'hidden'
74
74
  %div{ class: "indirect_source_text #{hidden} #{source_setup[:source_type]}_#{source.id}"}
75
- = simple_format(source.send(source_setup[:source_method]))
75
+ = simple_format(ERB::Util.html_escape(source.send(source_setup[:source_method])))
@@ -35,7 +35,8 @@ module Abstractor
35
35
  def self.format_body_for_suggestion_endpoint(abstractor_abstraction, abstractor_abstraction_source, abstractor_text, source)
36
36
  {
37
37
  abstractor_abstraction_schema_id: abstractor_abstraction.abstractor_subject.abstractor_abstraction_schema.id,
38
- abstractor_abstraction_schema_uri: Abstractor::Engine.routes.url_helpers.abstractor_abstraction_schema_url(abstractor_abstraction.abstractor_subject.abstractor_abstraction_schema),
38
+ abstractor_abstraction_schema_uri: Abstractor::Engine.routes.url_helpers.abstractor_abstraction_schema_url(abstractor_abstraction.abstractor_subject.abstractor_abstraction_schema, format: :json),
39
+ abstractor_abstraction_abstractor_suggestions_uri: Abstractor::Engine.routes.url_helpers.abstractor_abstraction_abstractor_suggestions_url(abstractor_abstraction, format: :json),
39
40
  abstractor_abstraction_id: abstractor_abstraction.id,
40
41
  abstractor_abstraction_source_id: abstractor_abstraction_source.id,
41
42
  source_id: source[:source_id],
@@ -1,3 +1,3 @@
1
1
  module Abstractor
2
- VERSION = '4.3.1'
2
+ VERSION = '4.3.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abstractor
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.1
4
+ version: 4.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Gurley, Yulia Bushmanova
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-24 00:00:00.000000000 Z
11
+ date: 2015-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails