url_extract 0.1.0
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 +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +202 -0
- data/VERSION +1 -0
- data/lib/url_extract/encodings.rb +6 -0
- data/lib/url_extract/input/encoding_error_policy.rb +31 -0
- data/lib/url_extract/input/encodings.rb +60 -0
- data/lib/url_extract/input/reader.rb +61 -0
- data/lib/url_extract/match.rb +79 -0
- data/lib/url_extract/rules.rb +57 -0
- data/lib/url_extract/scanner.rb +59 -0
- data/lib/url_extract/trimming/ending_entity_size.rb +62 -0
- data/lib/url_extract/trimming/ending_string_size.rb +48 -0
- data/lib/url_extract/trimming/index_after_last_paired_bracket.rb +65 -0
- data/lib/url_extract/trimming/trim.rb +89 -0
- data/lib/url_extract/validations/failure.rb +27 -0
- data/lib/url_extract/validations/options.rb +106 -0
- data/lib/url_extract/validations/text.rb +48 -0
- data/lib/url_extract/version.rb +6 -0
- data/lib/url_extract.rb +202 -0
- data/sig/url_extract.rbs +35 -0
- metadata +75 -0
metadata
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: url_extract
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Andrey
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
description: 'A URL extractor / detector for plain text: finds each URL in a string,
|
|
13
|
+
with its position. Trims the punctuation, unpaired brackets and HTML entities around
|
|
14
|
+
a URL. Reads non-ASCII, localhost and IP URLs, www. links as an option, and a text
|
|
15
|
+
in another encoding. Linear time, no runtime dependencies.'
|
|
16
|
+
email:
|
|
17
|
+
- andreyruby@yandex.ru
|
|
18
|
+
executables: []
|
|
19
|
+
extensions: []
|
|
20
|
+
extra_rdoc_files:
|
|
21
|
+
- README.md
|
|
22
|
+
files:
|
|
23
|
+
- LICENSE.txt
|
|
24
|
+
- README.md
|
|
25
|
+
- VERSION
|
|
26
|
+
- lib/url_extract.rb
|
|
27
|
+
- lib/url_extract/encodings.rb
|
|
28
|
+
- lib/url_extract/input/encoding_error_policy.rb
|
|
29
|
+
- lib/url_extract/input/encodings.rb
|
|
30
|
+
- lib/url_extract/input/reader.rb
|
|
31
|
+
- lib/url_extract/match.rb
|
|
32
|
+
- lib/url_extract/rules.rb
|
|
33
|
+
- lib/url_extract/scanner.rb
|
|
34
|
+
- lib/url_extract/trimming/ending_entity_size.rb
|
|
35
|
+
- lib/url_extract/trimming/ending_string_size.rb
|
|
36
|
+
- lib/url_extract/trimming/index_after_last_paired_bracket.rb
|
|
37
|
+
- lib/url_extract/trimming/trim.rb
|
|
38
|
+
- lib/url_extract/validations/failure.rb
|
|
39
|
+
- lib/url_extract/validations/options.rb
|
|
40
|
+
- lib/url_extract/validations/text.rb
|
|
41
|
+
- lib/url_extract/version.rb
|
|
42
|
+
- sig/url_extract.rbs
|
|
43
|
+
homepage: https://github.com/andreyruby/url_extract
|
|
44
|
+
licenses:
|
|
45
|
+
- MIT
|
|
46
|
+
metadata:
|
|
47
|
+
source_code_uri: https://github.com/andreyruby/url_extract
|
|
48
|
+
documentation_uri: https://andreyruby.github.io/url_extract/
|
|
49
|
+
changelog_uri: https://github.com/andreyruby/url_extract/blob/master/CHANGELOG.md
|
|
50
|
+
bug_tracker_uri: https://github.com/andreyruby/url_extract/issues
|
|
51
|
+
rubygems_mfa_required: 'true'
|
|
52
|
+
rdoc_options:
|
|
53
|
+
- "--markup"
|
|
54
|
+
- markdown
|
|
55
|
+
- "--main"
|
|
56
|
+
- README.md
|
|
57
|
+
- "--title"
|
|
58
|
+
- UrlExtract
|
|
59
|
+
require_paths:
|
|
60
|
+
- lib
|
|
61
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
|
+
requirements:
|
|
63
|
+
- - ">="
|
|
64
|
+
- !ruby/object:Gem::Version
|
|
65
|
+
version: 3.3.0
|
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
|
+
requirements:
|
|
68
|
+
- - ">="
|
|
69
|
+
- !ruby/object:Gem::Version
|
|
70
|
+
version: '0'
|
|
71
|
+
requirements: []
|
|
72
|
+
rubygems_version: 4.0.13
|
|
73
|
+
specification_version: 4
|
|
74
|
+
summary: Find and extract URLs from plain text
|
|
75
|
+
test_files: []
|