url_regexp 0.1.3 → 0.1.4

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: 62ed69e94460e3c50d9d20160d88c50e31fe0928
4
- data.tar.gz: 2ca60a8b537b2b446e0979f2fb575db9aecb78bc
3
+ metadata.gz: 487e781ddee01fc474a062b437845457cc9d7726
4
+ data.tar.gz: 772dfd3b93f25bde5d00fbecd0ae12ff07b98d67
5
5
  SHA512:
6
- metadata.gz: a904285e2bf5e22d4f7ad48056227814d811b986919a402a649b9a3ae878caa01eb1f819fafe6300121f68b7268c27aea62882c88a20594bc8810390cd27d00c
7
- data.tar.gz: 69cc43725809e521e016d00a8c6e7178482835040bbf68ea48783349cb2f11561d7bd5b8885e32c43e74d717f5d63397b54d33a7911a05c69762bfec3e9b9bcf
6
+ metadata.gz: 8563e2a4b1c52c99fc7c17437fa3fc0a7c36bf366de1da0ee92bbe71c36f035400befe2f668ea8425e123cd0ca78e3796793f90aa5dcfb7b89866b6ab39c7c69
7
+ data.tar.gz: a4619b8a4b79af7c40756354dcb3a8174dad1aebf71a3c66bfe018a75a1a03f3b36df22055e45d5959c2001a9c641fa4941f243bf2fa7b36b7618328c0cf135e
@@ -6,7 +6,7 @@ AllCops:
6
6
  Metrics/AbcSize:
7
7
  Max: 40
8
8
  Metrics/LineLength:
9
- Max: 99
9
+ Max: 120
10
10
  Metrics/CyclomaticComplexity:
11
11
  Max: 20
12
12
  Metrics/PerceivedComplexity:
@@ -15,7 +15,20 @@ Metrics/MethodLength:
15
15
  Max: 30
16
16
  Metrics/BlockNesting:
17
17
  Max: 4
18
+ Metrics/BlockLength:
19
+ Exclude:
20
+ - 'spec/**/*'
18
21
  Documentation:
19
22
  Enabled: false
20
23
  Style/SignalException:
21
24
  EnforcedStyle: only_raise
25
+ RSpec/NamedSubject:
26
+ Enabled: false
27
+ RSpec/ExampleLength:
28
+ Max: 20
29
+ RSpec/MultipleExpectations:
30
+ Max: 10
31
+ RSpec/NestedGroups:
32
+ Max: 5
33
+ RSpec/SubjectStub:
34
+ Enabled: false
@@ -1,8 +1,11 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1
4
- - 2.2
5
- - 2.3.0
6
- before_install: gem install bundler -v 1.11.2
3
+ - 2.1.10
4
+ - 2.2.6
5
+ - 2.3.3
6
+ - 2.4.0
7
+ before_install:
8
+ - gem update --system
9
+ - gem --version
7
10
  script:
8
11
  - bundle exec rake
data/Gemfile CHANGED
@@ -1,11 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'simplecov'
4
- gem 'coveralls'
5
- # FIXME:
6
- # Wait for the merge of https://github.com/bbatsov/rubocop/pull/2936
7
- gem 'rubocop', '~> 0.37.0', require: false
8
- gem 'rubocop-rspec', require: false
9
3
  gem 'pry'
10
4
  gem 'gem-release'
11
5
 
@@ -35,17 +35,17 @@ module UrlRegexp
35
35
  else
36
36
  label, rest = path.split('/', 2)
37
37
  end
38
- if label
39
- p = @paths.find { |pp| pp.label == label }
40
- if p.nil?
41
- p = Path.new(label, self, @options)
42
- @paths.append(p)
43
- end
44
- if rest.nil?
45
- p.path_end = true
46
- else
47
- p.append(rest)
48
- end
38
+ return if label.nil?
39
+
40
+ p = @paths.find { |pp| pp.label == label }
41
+ if p.nil?
42
+ p = Path.new(label, self, @options)
43
+ @paths.append(p)
44
+ end
45
+ if rest.nil?
46
+ p.path_end = true
47
+ else
48
+ p.append(rest)
49
49
  end
50
50
  end
51
51
 
@@ -18,14 +18,16 @@ module UrlRegexp
18
18
  def to_regexp_s
19
19
  common_queries = @queries.reduce { |a, e| a & e } || []
20
20
  common_queries = common_queries.map { |q| Regexp.quote(q) }
21
- regexp_s = if 1 < common_queries.size
22
- "\\?(#{common_queries.permutation.map { |qs| "(.*&)?#{qs.join('.*&')}(&.*)?" }.join('|')})"
23
- elsif 1 == common_queries.size
24
- "\\?(.*&)?#{common_queries.first}(&.*)?"
21
+ if 1 <= common_queries.size
22
+ if 1 == common_queries.size
23
+ regexp_s = "\\?(.*&)?#{common_queries.first}(&.*)?"
24
+ else
25
+ regexp_s = "\\?(#{common_queries.permutation.map { |qs| "(.*&)?#{qs.join('.*&')}(&.*)?" }.join('|')})"
26
+ end
27
+ @include_nil ? "(#{regexp_s})?" : regexp_s
25
28
  else
26
29
  '(\\?.*)?'
27
30
  end
28
- @include_nil ? "(#{regexp_s})?" : regexp_s
29
31
  end
30
32
  end
31
33
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UrlRegexp
4
- VERSION = '0.1.3'.freeze
4
+ VERSION = '0.1.4'.freeze
5
5
  end
@@ -0,0 +1,27 @@
1
+ require 'rubygems'
2
+ require 'rspec'
3
+ require 'simplecov'
4
+ require 'coveralls'
5
+ Coveralls.wear!
6
+
7
+ resultset_path = SimpleCov::ResultMerger.resultset_path
8
+ FileUtils.rm resultset_path if File.exist? resultset_path
9
+ SimpleCov.use_merging true
10
+ SimpleCov.at_exit do
11
+ SimpleCov.command_name "fork-#{$PID}"
12
+ SimpleCov.result.format!
13
+ end
14
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
15
+ SimpleCov::Formatter::HTMLFormatter,
16
+ Coveralls::SimpleCov::Formatter
17
+ ]
18
+ SimpleCov.start do
19
+ add_filter 'spec/'
20
+ end
21
+
22
+ require 'url_regexp'
23
+
24
+ Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }
25
+
26
+ RSpec.configure do |config|
27
+ end
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ describe UrlRegexp::Host do
4
+ subject { described_class.new }
5
+
6
+ describe '#to_regexp_s' do
7
+ context 'single host' do
8
+ it 'returns regexp string' do
9
+ subject.append('www.example.com')
10
+ expect(subject.to_regexp_s).to eq 'www\\.example\\.com'
11
+ end
12
+ end
13
+ context 'multiple hosts' do
14
+ it 'returns regexp string' do
15
+ subject.append('www.example1.com')
16
+ subject.append('www.example2.com')
17
+ expect(subject.to_regexp_s).to eq '(www\\.example1\\.com|www\\.example2\\.com)'
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,22 @@
1
+ require 'spec_helper'
2
+
3
+ describe UrlRegexp::Node do
4
+ subject { described_class.new }
5
+
6
+ describe '#append' do
7
+ it 'raises NotImplementedError' do
8
+ expect { subject.append('') }.to raise_error(NotImplementedError)
9
+ end
10
+ end
11
+ describe '#to_regexp_s' do
12
+ it 'raises NotImplementedError' do
13
+ expect { subject.to_regexp_s }.to raise_error(NotImplementedError)
14
+ end
15
+ end
16
+ describe '#to_regexp' do
17
+ it 'returns regexp of to_regexp_s' do
18
+ allow(subject).to receive(:to_regexp_s).and_return('foo[bar]')
19
+ expect(subject.to_regexp).to eq(/foo[bar]/)
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,117 @@
1
+ require 'spec_helper'
2
+
3
+ describe UrlRegexp::PathSet do
4
+ subject { described_class.new }
5
+
6
+ describe '#to_regexp_s' do
7
+ context 'empty set' do
8
+ it 'returns nil' do
9
+ expect(subject.to_regexp_s).to eq nil
10
+ end
11
+ end
12
+ context 'single path' do
13
+ it 'returns regexp string' do
14
+ subject.append(UrlRegexp::Path.new('foo'))
15
+ expect(subject.to_regexp_s).to eq 'foo'
16
+ end
17
+ end
18
+ context 'multiple paths' do
19
+ it 'returns regexp string' do
20
+ subject.append(UrlRegexp::Path.new('foo'))
21
+ subject.append(UrlRegexp::Path.new('bar'))
22
+ expect(subject.to_regexp_s).to eq '(foo|bar)'
23
+ end
24
+ context 'same prefix paths' do
25
+ it 'returns regexp string' do
26
+ subject.append(UrlRegexp::Path.new('bar'))
27
+ subject.append(UrlRegexp::Path.new('bal'))
28
+ subject.append(UrlRegexp::Path.new('baz'))
29
+ expect(subject.to_regexp_s).to eq 'ba(r|l|z)'
30
+ end
31
+ end
32
+ end
33
+ context 'massive paths' do
34
+ context '6 paths' do
35
+ it 'returns regexp string' do
36
+ subject.append(UrlRegexp::Path.new('a'))
37
+ subject.append(UrlRegexp::Path.new('b'))
38
+ subject.append(UrlRegexp::Path.new('c'))
39
+ subject.append(UrlRegexp::Path.new('d'))
40
+ subject.append(UrlRegexp::Path.new('e'))
41
+ expect(subject.to_regexp_s).to eq '(a|b|c|d|e)'
42
+ end
43
+ end
44
+ context '6 paths' do
45
+ it 'returns regexp string' do
46
+ subject.append(UrlRegexp::Path.new('a'))
47
+ subject.append(UrlRegexp::Path.new('b'))
48
+ subject.append(UrlRegexp::Path.new('c'))
49
+ subject.append(UrlRegexp::Path.new('d'))
50
+ subject.append(UrlRegexp::Path.new('e'))
51
+ subject.append(UrlRegexp::Path.new('f'))
52
+ expect(subject.to_regexp_s).to eq '([^#?]*)'
53
+ end
54
+ end
55
+ context 'with wildcard_threshold option' do
56
+ subject { described_class.new(nil, wildcard_threshold: 3) }
57
+ context 'equal length' do
58
+ it 'returns regexp string' do
59
+ subject.append(UrlRegexp::Path.new('a'))
60
+ subject.append(UrlRegexp::Path.new('b'))
61
+ subject.append(UrlRegexp::Path.new('c'))
62
+ expect(subject.to_regexp_s).to eq '(a|b|c)'
63
+ end
64
+ end
65
+ context 'more than the value' do
66
+ it 'returns regexp string' do
67
+ subject.append(UrlRegexp::Path.new('a'))
68
+ subject.append(UrlRegexp::Path.new('b'))
69
+ subject.append(UrlRegexp::Path.new('c'))
70
+ subject.append(UrlRegexp::Path.new('d'))
71
+ expect(subject.to_regexp_s).to eq '([^#?]*)'
72
+ end
73
+ end
74
+ end
75
+ end
76
+ context 'merge paths' do
77
+ it 'returns regexp string' do
78
+ parent = UrlRegexp::Path.new
79
+ p1 = UrlRegexp::Path.new('foo', parent)
80
+ p1.append('wow')
81
+ p2 = UrlRegexp::Path.new('bar', parent)
82
+ p2.append('wow')
83
+
84
+ subject.append(p1)
85
+ subject.append(p2)
86
+ expect(subject.to_regexp_s).to eq '(foo|bar)/wow'
87
+ end
88
+ context 'with multiple paths' do
89
+ it 'returns regexp string' do
90
+ parent = UrlRegexp::Path.new
91
+ p1 = UrlRegexp::Path.new('foo', parent)
92
+ p1.append('wow/yay')
93
+ p2 = UrlRegexp::Path.new('bar', parent)
94
+ p2.append('wow/yay')
95
+
96
+ subject.append(p1)
97
+ subject.append(p2)
98
+ expect(subject.to_regexp_s).to eq '(foo|bar)/wow/yay'
99
+ end
100
+ end
101
+ context 'include path_end' do
102
+ it 'returns regexp string' do
103
+ parent = UrlRegexp::Path.new
104
+ p1 = UrlRegexp::Path.new('foo', parent)
105
+ p1.path_end = true
106
+ p1.append('wow')
107
+ p2 = UrlRegexp::Path.new('bar', parent)
108
+ p2.append('wow')
109
+
110
+ subject.append(p1)
111
+ subject.append(p2)
112
+ expect(subject.to_regexp_s).to eq '(foo(/wow)?|bar/wow)'
113
+ end
114
+ end
115
+ end
116
+ end
117
+ end
@@ -0,0 +1,39 @@
1
+ require 'spec_helper'
2
+
3
+ describe UrlRegexp::Path do
4
+ subject { described_class.new }
5
+
6
+ describe '#to_regexp_s' do
7
+ context 'only root' do
8
+ it 'returns regexp string' do
9
+ subject.append('/')
10
+ expect(subject.to_regexp_s).to eq '/'
11
+ end
12
+ end
13
+ context 'append same paths' do
14
+ it 'returns regexp string' do
15
+ subject.append('/foo')
16
+ expect(subject.to_regexp_s).to eq '/foo'
17
+ subject.append('/foo')
18
+ expect(subject.to_regexp_s).to eq '/foo'
19
+ end
20
+ end
21
+ context 'simple paths' do
22
+ it 'returns regexp string' do
23
+ subject.append('/foo/bar')
24
+ expect(subject.to_regexp_s).to eq '/foo/bar'
25
+ subject.append('/foo/wow')
26
+ expect(subject.to_regexp_s).to eq '/foo/(bar|wow)'
27
+ end
28
+ end
29
+ context 'include path end' do
30
+ it 'returns regexp string' do
31
+ subject.append('/foo')
32
+ subject.append('/foo/')
33
+ expect(subject.to_regexp_s).to eq '/foo(/)?'
34
+ subject.append('/foo/bar')
35
+ expect(subject.to_regexp_s).to eq '/foo(/(|bar))?'
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,47 @@
1
+ require 'spec_helper'
2
+
3
+ describe UrlRegexp::Query do
4
+ subject { described_class.new }
5
+ describe '#to_regexp_s' do
6
+ context 'with various query' do
7
+ it 'generates regexp' do
8
+ subject.append('a=1')
9
+ subject.append('b=1')
10
+ regexp_s = subject.to_regexp_s
11
+ expect(regexp_s).to eq '(\\?.*)?'
12
+ end
13
+ end
14
+ context 'with common query' do
15
+ it 'generates regexp' do
16
+ subject.append('a=1')
17
+ subject.append('a=1&b=1')
18
+ regexp_s = subject.to_regexp_s
19
+ expect(regexp_s).to eq '\\?(.*&)?a=1(&.*)?'
20
+ end
21
+ end
22
+ context 'with multiple common queries' do
23
+ it 'generates regexp' do
24
+ subject.append('a=1&b=1')
25
+ subject.append('a=1&b=1')
26
+ regexp_s = subject.to_regexp_s
27
+ expect(regexp_s).to eq '\\?((.*&)?a=1.*&b=1(&.*)?|(.*&)?b=1.*&a=1(&.*)?)'
28
+ end
29
+ end
30
+ context 'with empty query' do
31
+ it 'generates regexp' do
32
+ subject.append('')
33
+ subject.append('a=1')
34
+ regexp_s = subject.to_regexp_s
35
+ expect(regexp_s).to eq '(\\?(.*&)?a=1(&.*)?)?'
36
+ end
37
+ end
38
+ context 'with only empty queries' do
39
+ it 'generates regexp' do
40
+ subject.append('')
41
+ subject.append('')
42
+ regexp_s = subject.to_regexp_s
43
+ expect(regexp_s).to eq '(\\?.*)?'
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ describe UrlRegexp::Root do
4
+ subject { described_class.new }
5
+ describe '#to_regexp_s' do
6
+ it 'generates regexp' do
7
+ subject.append('http://example.com/foo/bar?a=1&b=2')
8
+ subject.append('http://example.com/foo/wow?a=1&b=1')
9
+ regexp_s = subject.to_regexp_s
10
+ expect(regexp_s).to eq '^http://example\\.com/foo/(bar|wow)\\?(.*&)?a=1(&.*)?(#|$)'
11
+ end
12
+ context 'Replace redundant URL end' do
13
+ it 'generates regexp' do
14
+ subject.append('http://example.com/foo/bar')
15
+ subject.append('http://example.com/foo/wow')
16
+ regexp_s = subject.to_regexp_s
17
+ expect(regexp_s).to eq '^http://example\\.com/foo/(bar|wow)([?#]|$)'
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,34 @@
1
+ require 'spec_helper'
2
+
3
+ describe UrlRegexp::Scheme do
4
+ subject { described_class.new }
5
+
6
+ describe '#to_regexp_s' do
7
+ context 'single scheme' do
8
+ it 'returns regexp string' do
9
+ subject.append('http')
10
+ expect(subject.to_regexp_s).to eq 'http://'
11
+ end
12
+ end
13
+ context 'multiple schemes' do
14
+ it 'returns regexp string' do
15
+ subject.append('http')
16
+ subject.append('https')
17
+ subject.append('ftp')
18
+ expect(subject.to_regexp_s).to eq '(http|https|ftp)://'
19
+ end
20
+ end
21
+ context 'http and https' do
22
+ it 'returns regexp string' do
23
+ subject.append('http')
24
+ subject.append('https')
25
+ expect(subject.to_regexp_s).to eq 'https?://'
26
+ end
27
+ end
28
+ context 'no scheme' do
29
+ it 'returns regexp string' do
30
+ expect(subject.to_regexp_s).to eq ''
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe UrlRegexp do
4
+ it 'has a version number' do
5
+ expect(UrlRegexp::VERSION).not_to be nil
6
+ end
7
+ end
@@ -6,18 +6,26 @@ require 'url_regexp/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "url_regexp"
8
8
  spec.version = UrlRegexp::VERSION
9
- spec.authors = ["Daisuke Taniwaki"]
9
+ spec.authors = ["dtaniwaki"]
10
10
  spec.email = ["daisuketaniwaki@gmail.com"]
11
- spec.license = "MIT"
11
+ spec.license = "MIT"
12
12
 
13
13
  spec.summary = %q{Generate regular expression for URL}
14
14
  spec.description = %q{Generate regular expression for URL}
15
15
  spec.homepage = "https://github.com/dtaniwaki/url_regexp"
16
16
 
17
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ spec.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
18
20
  spec.require_paths = ["lib"]
19
21
 
20
- spec.add_development_dependency "bundler", "~> 1.11"
21
- spec.add_development_dependency "rake", "~> 10.0"
22
- spec.add_development_dependency "rspec", "~> 3.0"
22
+ spec.required_ruby_version = [">= 2.1.0", "< 2.5"]
23
+
24
+ spec.add_development_dependency "rake", ">= 10.0", "< 13"
25
+ spec.add_development_dependency "rspec", ">= 3.0", "< 4"
26
+ spec.add_development_dependency "simplecov", "~> 0.12"
27
+ spec.add_development_dependency "timecop", "~> 0.8"
28
+ spec.add_development_dependency "rubocop", "~> 0.47"
29
+ spec.add_development_dependency "rubocop-rspec", "~> 1.4"
30
+ spec.add_development_dependency "coveralls", "~> 0.8"
23
31
  end
metadata CHANGED
@@ -1,57 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: url_regexp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
- - Daisuke Taniwaki
7
+ - dtaniwaki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2017-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '10.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '13'
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '10.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '13'
33
+ - !ruby/object:Gem::Dependency
34
+ name: rspec
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '3.0'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '4'
43
+ type: :development
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '3.0'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '4'
53
+ - !ruby/object:Gem::Dependency
54
+ name: simplecov
15
55
  requirement: !ruby/object:Gem::Requirement
16
56
  requirements:
17
57
  - - "~>"
18
58
  - !ruby/object:Gem::Version
19
- version: '1.11'
59
+ version: '0.12'
20
60
  type: :development
21
61
  prerelease: false
22
62
  version_requirements: !ruby/object:Gem::Requirement
23
63
  requirements:
24
64
  - - "~>"
25
65
  - !ruby/object:Gem::Version
26
- version: '1.11'
66
+ version: '0.12'
27
67
  - !ruby/object:Gem::Dependency
28
- name: rake
68
+ name: timecop
29
69
  requirement: !ruby/object:Gem::Requirement
30
70
  requirements:
31
71
  - - "~>"
32
72
  - !ruby/object:Gem::Version
33
- version: '10.0'
73
+ version: '0.8'
34
74
  type: :development
35
75
  prerelease: false
36
76
  version_requirements: !ruby/object:Gem::Requirement
37
77
  requirements:
38
78
  - - "~>"
39
79
  - !ruby/object:Gem::Version
40
- version: '10.0'
80
+ version: '0.8'
41
81
  - !ruby/object:Gem::Dependency
42
- name: rspec
82
+ name: rubocop
43
83
  requirement: !ruby/object:Gem::Requirement
44
84
  requirements:
45
85
  - - "~>"
46
86
  - !ruby/object:Gem::Version
47
- version: '3.0'
87
+ version: '0.47'
48
88
  type: :development
49
89
  prerelease: false
50
90
  version_requirements: !ruby/object:Gem::Requirement
51
91
  requirements:
52
92
  - - "~>"
53
93
  - !ruby/object:Gem::Version
54
- version: '3.0'
94
+ version: '0.47'
95
+ - !ruby/object:Gem::Dependency
96
+ name: rubocop-rspec
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '1.4'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: '1.4'
109
+ - !ruby/object:Gem::Dependency
110
+ name: coveralls
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '0.8'
116
+ type: :development
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "~>"
121
+ - !ruby/object:Gem::Version
122
+ version: '0.8'
55
123
  description: Generate regular expression for URL
56
124
  email:
57
125
  - daisuketaniwaki@gmail.com
@@ -76,6 +144,15 @@ files:
76
144
  - lib/url_regexp/root.rb
77
145
  - lib/url_regexp/scheme.rb
78
146
  - lib/url_regexp/version.rb
147
+ - spec/spec_helper.rb
148
+ - spec/url_regexp/host_spec.rb
149
+ - spec/url_regexp/node_spec.rb
150
+ - spec/url_regexp/path_set_spec.rb
151
+ - spec/url_regexp/path_spec.rb
152
+ - spec/url_regexp/query_spec.rb
153
+ - spec/url_regexp/root_spec.rb
154
+ - spec/url_regexp/scheme_spec.rb
155
+ - spec/url_regexp_spec.rb
79
156
  - url_regexp.gemspec
80
157
  homepage: https://github.com/dtaniwaki/url_regexp
81
158
  licenses:
@@ -89,7 +166,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
166
  requirements:
90
167
  - - ">="
91
168
  - !ruby/object:Gem::Version
92
- version: '0'
169
+ version: 2.1.0
170
+ - - "<"
171
+ - !ruby/object:Gem::Version
172
+ version: '2.5'
93
173
  required_rubygems_version: !ruby/object:Gem::Requirement
94
174
  requirements:
95
175
  - - ">="
@@ -101,4 +181,13 @@ rubygems_version: 2.6.10
101
181
  signing_key:
102
182
  specification_version: 4
103
183
  summary: Generate regular expression for URL
104
- test_files: []
184
+ test_files:
185
+ - spec/spec_helper.rb
186
+ - spec/url_regexp/host_spec.rb
187
+ - spec/url_regexp/node_spec.rb
188
+ - spec/url_regexp/path_set_spec.rb
189
+ - spec/url_regexp/path_spec.rb
190
+ - spec/url_regexp/query_spec.rb
191
+ - spec/url_regexp/root_spec.rb
192
+ - spec/url_regexp/scheme_spec.rb
193
+ - spec/url_regexp_spec.rb