abstractor 4.1.0 → 4.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzNiYjAyNWRiMDJhYzQwODJkMjJkNDFjMDIzMGRiYzM4NDA1MzZlMw==
4
+ MzNmZjFiYzZmN2M4YjMzMTA1YWE4ZTRmNjU4N2FmMTI4OTdiMDlkYg==
5
5
  data.tar.gz: !binary |-
6
- ZTVlMmQxZjFhM2M3Y2I2NGI5ODQ4ODE5MGVlY2M0MDAxNWZjNWYwOA==
6
+ YzRlM2RiNzI4NzQ2MWNkYzM1NDRjZjVhNGQ1MmZhYzU0ZTFhMDM0Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDhkMGRhZjc3ZmNkODk3ZmFhMjYwNTY2OTQxZGVjYWUyMjAyZDczOTA4ZmY0
10
- YzAwNDc1YWVjYmNiOGFjNDM5ODU0NmQ0YzBlMDY1YjNlMjg3ZTFmOTM3NTA1
11
- YzE2NjEyMGYyYjdjYWJmODRmMjAyZjIxZmVjOTdhNzQ2ZjlkOTI=
9
+ OWQwYjM2MDI5ZDgwN2E5YWU3OGY3MmJiNWI0MGFlODNmYjExNzRkOTVmMTA4
10
+ Yzk1ZmY3NWQ4ZWEwYmUzMzMwZWY3N2ZkYzQ2YTRjZjg1NTM5MWZhYTQ0MDQz
11
+ YWRkNmVlMTE5YzhiOGM0YjJlYmJkYzQwYzNkZDY5Yzc0MDBlNGU=
12
12
  data.tar.gz: !binary |-
13
- MDRkN2U5MDg1YTUxNzQzM2EwYmFmNzcxYjc1MTAzMjZkNmViNDdjZDdiNGQ0
14
- YmVkYjhkZDE0NjlmNzNmMWJjODhmMzA0NTU5NTFmODA5MzVlMzY2NzhkYTM2
15
- OTdkNmU4NjZkNDU3MWRlYTlmOTc4YzdkOWIxNzk1N2QyY2ZjNDc=
13
+ ZGIyYmUyZmU3MGNkYWJkZmQzYWYyYjdiYzQ3NTRhNTBlNWE0ZDkzNGZlZWE4
14
+ Yjk0OGM4M2RhY2QwYTk3OTg0ZmYyYTIxMGZlYWRkYjlkZmVkOTFlZjYxMWQ4
15
+ MDkxNGM5YjE2ZTU5N2JmNGRiYzM0NDhhZDA4MTU4OTY1YzIyZTY=
@@ -31,7 +31,7 @@
31
31
  - abstractor_text = Abstractor::AbstractorAbstractionSource.abstractor_text(source)
32
32
  - if abstractor_text
33
33
  - has_text_match = abstractor_text && abstractor_suggestion_source.sentence_match_value
34
- %span{ class: 'abstractor_abstraction_source_tooltip_img', rel: "#abstraction_text_#{abstractor_suggestion_source.id}", title: "#{abstractor_suggestion_source.source_type} #{abstractor_suggestion_source.source_method}"}
34
+ %span{ class: 'abstractor_abstraction_source_tooltip_img', rel: "#abstraction_text_#{abstractor_suggestion_source.id}", title: "#{abstractor_suggestion_source.source_type} #{abstractor_suggestion_source.source_method} #{abstractor_suggestion_source.section_name}"}
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
@@ -40,8 +40,8 @@ module Abstractor
40
40
  else
41
41
  regular_expression = abstractor_section.abstractor_section_type.regular_expression
42
42
  end
43
- regular_expression.gsub!('section_name_variants', abstractor_section.prepare_section_name_variants)
44
- regular_expression.gsub!('delimiter', abstractor_section.delimiter)
43
+ regular_expression = regular_expression.gsub('section_name_variants', abstractor_section.prepare_section_name_variants)
44
+ regular_expression = regular_expression.gsub('delimiter', abstractor_section.delimiter)
45
45
  Regexp.new(regular_expression, Regexp::IGNORECASE)
46
46
  end
47
47
  end
@@ -31,7 +31,8 @@ module Abstractor
31
31
 
32
32
  puts 'Setting up Abstractor::AbstractorSectionType'
33
33
  Abstractor::AbstractorSectionType.where(name: Abstractor::Enum::ABSTRACTOR_SECTION_TYPE_CUSTOM).first_or_create
34
- Abstractor::AbstractorSectionType.where(name: Abstractor::Enum::ABSTRACTOR_SECTION_TYPE_NAME_VALUE, regular_expression: "(?<=^|[\r\n])(section_name_variants)[\s]*delimiter([^\r\n]*(?:[\r\n]+(?![A-Z].*delimiter).*)*)").first_or_create
34
+ Abstractor::AbstractorSectionType.where(name: Abstractor::Enum::ABSTRACTOR_SECTION_TYPE_NAME_VALUE, regular_expression: '(?<=^|[\r\n])(section_name_variants)[\s]*delimiter([^\r\n]*(?:[\r\n]+(?![A-Z][\.]*delimiter).*)*)').first_or_create
35
35
  end
36
36
  end
37
- end
37
+ end
38
+
@@ -1,3 +1,3 @@
1
1
  module Abstractor
2
- VERSION = '4.1.0'
2
+ VERSION = '4.1.1'
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.1.0
4
+ version: 4.1.1
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: 2014-11-11 00:00:00.000000000 Z
11
+ date: 2014-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails