uri 0.12.2 → 1.1.1
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 +4 -4
- data/.document +5 -0
- data/.rdoc_options +5 -0
- data/{LICENSE.txt → BSDL} +3 -3
- data/COPYING +56 -0
- data/README.md +2 -1
- data/docs/kernel.rb +2 -0
- data/lib/uri/common.rb +351 -158
- data/lib/uri/file.rb +4 -4
- data/lib/uri/ftp.rb +1 -1
- data/lib/uri/generic.rb +60 -55
- data/lib/uri/http.rb +14 -2
- data/lib/uri/rfc2396_parser.rb +25 -17
- data/lib/uri/rfc3986_parser.rb +121 -34
- data/lib/uri/version.rb +2 -2
- data/lib/uri.rb +9 -9
- metadata +12 -16
- data/.github/dependabot.yml +0 -6
- data/.github/workflows/test.yml +0 -21
- data/.gitignore +0 -9
- data/Gemfile +0 -10
- data/Rakefile +0 -17
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/uri.gemspec +0 -31
data/lib/uri/rfc3986_parser.rb
CHANGED
|
@@ -1,9 +1,73 @@
|
|
|
1
|
-
# frozen_string_literal:
|
|
1
|
+
# frozen_string_literal: true
|
|
2
2
|
module URI
|
|
3
3
|
class RFC3986_Parser # :nodoc:
|
|
4
4
|
# URI defined in RFC3986
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
HOST = %r[
|
|
6
|
+
(?<IP-literal>\[(?:
|
|
7
|
+
(?<IPv6address>
|
|
8
|
+
(?:\h{1,4}:){6}
|
|
9
|
+
(?<ls32>\h{1,4}:\h{1,4}
|
|
10
|
+
| (?<IPv4address>(?<dec-octet>[1-9]\d|1\d{2}|2[0-4]\d|25[0-5]|\d)
|
|
11
|
+
\.\g<dec-octet>\.\g<dec-octet>\.\g<dec-octet>)
|
|
12
|
+
)
|
|
13
|
+
| ::(?:\h{1,4}:){5}\g<ls32>
|
|
14
|
+
| \h{1,4}?::(?:\h{1,4}:){4}\g<ls32>
|
|
15
|
+
| (?:(?:\h{1,4}:)?\h{1,4})?::(?:\h{1,4}:){3}\g<ls32>
|
|
16
|
+
| (?:(?:\h{1,4}:){,2}\h{1,4})?::(?:\h{1,4}:){2}\g<ls32>
|
|
17
|
+
| (?:(?:\h{1,4}:){,3}\h{1,4})?::\h{1,4}:\g<ls32>
|
|
18
|
+
| (?:(?:\h{1,4}:){,4}\h{1,4})?::\g<ls32>
|
|
19
|
+
| (?:(?:\h{1,4}:){,5}\h{1,4})?::\h{1,4}
|
|
20
|
+
| (?:(?:\h{1,4}:){,6}\h{1,4})?::
|
|
21
|
+
)
|
|
22
|
+
| (?<IPvFuture>v\h++\.[!$&-.0-9:;=A-Z_a-z~]++)
|
|
23
|
+
)\])
|
|
24
|
+
| \g<IPv4address>
|
|
25
|
+
| (?<reg-name>(?:%\h\h|[!$&-.0-9;=A-Z_a-z~])*+)
|
|
26
|
+
]x
|
|
27
|
+
|
|
28
|
+
USERINFO = /(?:%\h\h|[!$&-.0-9:;=A-Z_a-z~])*+/
|
|
29
|
+
|
|
30
|
+
SCHEME = %r[[A-Za-z][+\-.0-9A-Za-z]*+].source
|
|
31
|
+
SEG = %r[(?:%\h\h|[!$&-.0-9:;=@A-Z_a-z~/])].source
|
|
32
|
+
SEG_NC = %r[(?:%\h\h|[!$&-.0-9;=@A-Z_a-z~])].source
|
|
33
|
+
FRAGMENT = %r[(?:%\h\h|[!$&-.0-9:;=@A-Z_a-z~/?])*+].source
|
|
34
|
+
|
|
35
|
+
RFC3986_URI = %r[\A
|
|
36
|
+
(?<seg>#{SEG}){0}
|
|
37
|
+
(?<URI>
|
|
38
|
+
(?<scheme>#{SCHEME}):
|
|
39
|
+
(?<hier-part>//
|
|
40
|
+
(?<authority>
|
|
41
|
+
(?:(?<userinfo>#{USERINFO.source})@)?
|
|
42
|
+
(?<host>#{HOST.source.delete(" \n")})
|
|
43
|
+
(?::(?<port>\d*+))?
|
|
44
|
+
)
|
|
45
|
+
(?<path-abempty>(?:/\g<seg>*+)?)
|
|
46
|
+
| (?<path-absolute>/((?!/)\g<seg>++)?)
|
|
47
|
+
| (?<path-rootless>(?!/)\g<seg>++)
|
|
48
|
+
| (?<path-empty>)
|
|
49
|
+
)
|
|
50
|
+
(?:\?(?<query>[^\#]*+))?
|
|
51
|
+
(?:\#(?<fragment>#{FRAGMENT}))?
|
|
52
|
+
)\z]x
|
|
53
|
+
|
|
54
|
+
RFC3986_relative_ref = %r[\A
|
|
55
|
+
(?<seg>#{SEG}){0}
|
|
56
|
+
(?<relative-ref>
|
|
57
|
+
(?<relative-part>//
|
|
58
|
+
(?<authority>
|
|
59
|
+
(?:(?<userinfo>#{USERINFO.source})@)?
|
|
60
|
+
(?<host>#{HOST.source.delete(" \n")}(?<!/))?
|
|
61
|
+
(?::(?<port>\d*+))?
|
|
62
|
+
)
|
|
63
|
+
(?<path-abempty>(?:/\g<seg>*+)?)
|
|
64
|
+
| (?<path-absolute>/\g<seg>*+)
|
|
65
|
+
| (?<path-noscheme>#{SEG_NC}++(?:/\g<seg>*+)?)
|
|
66
|
+
| (?<path-empty>)
|
|
67
|
+
)
|
|
68
|
+
(?:\?(?<query>[^#]*+))?
|
|
69
|
+
(?:\#(?<fragment>#{FRAGMENT}))?
|
|
70
|
+
)\z]x
|
|
7
71
|
attr_reader :regexp
|
|
8
72
|
|
|
9
73
|
def initialize
|
|
@@ -14,14 +78,14 @@ module URI
|
|
|
14
78
|
begin
|
|
15
79
|
uri = uri.to_str
|
|
16
80
|
rescue NoMethodError
|
|
17
|
-
raise InvalidURIError, "bad URI(is not URI?): #{uri.inspect}"
|
|
81
|
+
raise InvalidURIError, "bad URI (is not URI?): #{uri.inspect}"
|
|
18
82
|
end
|
|
19
83
|
uri.ascii_only? or
|
|
20
84
|
raise InvalidURIError, "URI must be ascii only #{uri.dump}"
|
|
21
85
|
if m = RFC3986_URI.match(uri)
|
|
22
|
-
query = m["query"
|
|
23
|
-
scheme = m["scheme"
|
|
24
|
-
opaque = m["path-rootless"
|
|
86
|
+
query = m["query"]
|
|
87
|
+
scheme = m["scheme"]
|
|
88
|
+
opaque = m["path-rootless"]
|
|
25
89
|
if opaque
|
|
26
90
|
opaque << "?#{query}" if query
|
|
27
91
|
[ scheme,
|
|
@@ -32,38 +96,38 @@ module URI
|
|
|
32
96
|
nil, # path
|
|
33
97
|
opaque,
|
|
34
98
|
nil, # query
|
|
35
|
-
m["fragment"
|
|
99
|
+
m["fragment"]
|
|
36
100
|
]
|
|
37
101
|
else # normal
|
|
38
102
|
[ scheme,
|
|
39
|
-
m["userinfo"
|
|
40
|
-
m["host"
|
|
41
|
-
m["port"
|
|
103
|
+
m["userinfo"],
|
|
104
|
+
m["host"],
|
|
105
|
+
m["port"],
|
|
42
106
|
nil, # registry
|
|
43
|
-
(m["path-abempty"
|
|
44
|
-
m["path-absolute"
|
|
45
|
-
m["path-empty"
|
|
107
|
+
(m["path-abempty"] ||
|
|
108
|
+
m["path-absolute"] ||
|
|
109
|
+
m["path-empty"]),
|
|
46
110
|
nil, # opaque
|
|
47
111
|
query,
|
|
48
|
-
m["fragment"
|
|
112
|
+
m["fragment"]
|
|
49
113
|
]
|
|
50
114
|
end
|
|
51
115
|
elsif m = RFC3986_relative_ref.match(uri)
|
|
52
116
|
[ nil, # scheme
|
|
53
|
-
m["userinfo"
|
|
54
|
-
m["host"
|
|
55
|
-
m["port"
|
|
117
|
+
m["userinfo"],
|
|
118
|
+
m["host"],
|
|
119
|
+
m["port"],
|
|
56
120
|
nil, # registry,
|
|
57
|
-
(m["path-abempty"
|
|
58
|
-
m["path-absolute"
|
|
59
|
-
m["path-noscheme"
|
|
60
|
-
m["path-empty"
|
|
121
|
+
(m["path-abempty"] ||
|
|
122
|
+
m["path-absolute"] ||
|
|
123
|
+
m["path-noscheme"] ||
|
|
124
|
+
m["path-empty"]),
|
|
61
125
|
nil, # opaque
|
|
62
|
-
m["query"
|
|
63
|
-
m["fragment"
|
|
126
|
+
m["query"],
|
|
127
|
+
m["fragment"]
|
|
64
128
|
]
|
|
65
129
|
else
|
|
66
|
-
raise InvalidURIError, "bad URI(is not URI?): #{uri.inspect}"
|
|
130
|
+
raise InvalidURIError, "bad URI (is not URI?): #{uri.inspect}"
|
|
67
131
|
end
|
|
68
132
|
end
|
|
69
133
|
|
|
@@ -71,12 +135,35 @@ module URI
|
|
|
71
135
|
URI.for(*self.split(uri), self)
|
|
72
136
|
end
|
|
73
137
|
|
|
74
|
-
|
|
75
138
|
def join(*uris) # :nodoc:
|
|
76
139
|
uris[0] = convert_to_uri(uris[0])
|
|
77
140
|
uris.inject :merge
|
|
78
141
|
end
|
|
79
142
|
|
|
143
|
+
# Compatibility for RFC2396 parser
|
|
144
|
+
def extract(str, schemes = nil, &block) # :nodoc:
|
|
145
|
+
warn "URI::RFC3986_PARSER.extract is obsolete. Use URI::RFC2396_PARSER.extract explicitly.", uplevel: 1 if $VERBOSE
|
|
146
|
+
RFC2396_PARSER.extract(str, schemes, &block)
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Compatibility for RFC2396 parser
|
|
150
|
+
def make_regexp(schemes = nil) # :nodoc:
|
|
151
|
+
warn "URI::RFC3986_PARSER.make_regexp is obsolete. Use URI::RFC2396_PARSER.make_regexp explicitly.", uplevel: 1 if $VERBOSE
|
|
152
|
+
RFC2396_PARSER.make_regexp(schemes)
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Compatibility for RFC2396 parser
|
|
156
|
+
def escape(str, unsafe = nil) # :nodoc:
|
|
157
|
+
warn "URI::RFC3986_PARSER.escape is obsolete. Use URI::RFC2396_PARSER.escape explicitly.", uplevel: 1 if $VERBOSE
|
|
158
|
+
unsafe ? RFC2396_PARSER.escape(str, unsafe) : RFC2396_PARSER.escape(str)
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Compatibility for RFC2396 parser
|
|
162
|
+
def unescape(str, escaped = nil) # :nodoc:
|
|
163
|
+
warn "URI::RFC3986_PARSER.unescape is obsolete. Use URI::RFC2396_PARSER.unescape explicitly.", uplevel: 1 if $VERBOSE
|
|
164
|
+
escaped ? RFC2396_PARSER.unescape(str, escaped) : RFC2396_PARSER.unescape(str)
|
|
165
|
+
end
|
|
166
|
+
|
|
80
167
|
@@to_s = Kernel.instance_method(:to_s)
|
|
81
168
|
if @@to_s.respond_to?(:bind_call)
|
|
82
169
|
def inspect
|
|
@@ -92,14 +179,14 @@ module URI
|
|
|
92
179
|
|
|
93
180
|
def default_regexp # :nodoc:
|
|
94
181
|
{
|
|
95
|
-
SCHEME:
|
|
96
|
-
USERINFO:
|
|
97
|
-
HOST:
|
|
98
|
-
ABS_PATH:
|
|
99
|
-
REL_PATH:
|
|
100
|
-
QUERY:
|
|
101
|
-
FRAGMENT:
|
|
102
|
-
OPAQUE:
|
|
182
|
+
SCHEME: %r[\A#{SCHEME}\z]o,
|
|
183
|
+
USERINFO: %r[\A#{USERINFO}\z]o,
|
|
184
|
+
HOST: %r[\A#{HOST}\z]o,
|
|
185
|
+
ABS_PATH: %r[\A/#{SEG}*+\z]o,
|
|
186
|
+
REL_PATH: %r[\A(?!/)#{SEG}++\z]o,
|
|
187
|
+
QUERY: %r[\A(?:%\h\h|[!$&-.0-9:;=@A-Z_a-z~/?])*+\z],
|
|
188
|
+
FRAGMENT: %r[\A#{FRAGMENT}\z]o,
|
|
189
|
+
OPAQUE: %r[\A(?:[^/].*)?\z],
|
|
103
190
|
PORT: /\A[\x09\x0a\x0c\x0d ]*+\d*[\x09\x0a\x0c\x0d ]*\z/,
|
|
104
191
|
}
|
|
105
192
|
end
|
data/lib/uri/version.rb
CHANGED
data/lib/uri.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: false
|
|
2
2
|
# URI is a module providing classes to handle Uniform Resource Identifiers
|
|
3
|
-
# (RFC2396[
|
|
3
|
+
# (RFC2396[https://www.rfc-editor.org/rfc/rfc2396]).
|
|
4
4
|
#
|
|
5
5
|
# == Features
|
|
6
6
|
#
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
# A good place to view an RFC spec is http://www.ietf.org/rfc.html.
|
|
48
48
|
#
|
|
49
49
|
# Here is a list of all related RFC's:
|
|
50
|
-
# - RFC822[
|
|
51
|
-
# - RFC1738[
|
|
52
|
-
# - RFC2255[
|
|
53
|
-
# - RFC2368[
|
|
54
|
-
# - RFC2373[
|
|
55
|
-
# - RFC2396[
|
|
56
|
-
# - RFC2732[
|
|
57
|
-
# - RFC3986[
|
|
50
|
+
# - RFC822[https://www.rfc-editor.org/rfc/rfc822]
|
|
51
|
+
# - RFC1738[https://www.rfc-editor.org/rfc/rfc1738]
|
|
52
|
+
# - RFC2255[https://www.rfc-editor.org/rfc/rfc2255]
|
|
53
|
+
# - RFC2368[https://www.rfc-editor.org/rfc/rfc2368]
|
|
54
|
+
# - RFC2373[https://www.rfc-editor.org/rfc/rfc2373]
|
|
55
|
+
# - RFC2396[https://www.rfc-editor.org/rfc/rfc2396]
|
|
56
|
+
# - RFC2732[https://www.rfc-editor.org/rfc/rfc2732]
|
|
57
|
+
# - RFC3986[https://www.rfc-editor.org/rfc/rfc3986]
|
|
58
58
|
#
|
|
59
59
|
# == Class tree
|
|
60
60
|
#
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: uri
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Akira Yamada
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies: []
|
|
13
12
|
description: URI is a module providing classes to handle Uniform Resource Identifiers
|
|
14
13
|
email:
|
|
@@ -17,15 +16,12 @@ executables: []
|
|
|
17
16
|
extensions: []
|
|
18
17
|
extra_rdoc_files: []
|
|
19
18
|
files:
|
|
20
|
-
- ".
|
|
21
|
-
- ".
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
- LICENSE.txt
|
|
19
|
+
- ".document"
|
|
20
|
+
- ".rdoc_options"
|
|
21
|
+
- BSDL
|
|
22
|
+
- COPYING
|
|
25
23
|
- README.md
|
|
26
|
-
-
|
|
27
|
-
- bin/console
|
|
28
|
-
- bin/setup
|
|
24
|
+
- docs/kernel.rb
|
|
29
25
|
- lib/uri.rb
|
|
30
26
|
- lib/uri/common.rb
|
|
31
27
|
- lib/uri/file.rb
|
|
@@ -41,15 +37,16 @@ files:
|
|
|
41
37
|
- lib/uri/version.rb
|
|
42
38
|
- lib/uri/ws.rb
|
|
43
39
|
- lib/uri/wss.rb
|
|
44
|
-
- uri.gemspec
|
|
45
40
|
homepage: https://github.com/ruby/uri
|
|
46
41
|
licenses:
|
|
47
42
|
- Ruby
|
|
48
43
|
- BSD-2-Clause
|
|
49
44
|
metadata:
|
|
45
|
+
bug_tracker_uri: https://github.com/ruby/uri/issues
|
|
46
|
+
changelog_uri: https://github.com/ruby/uri/releases
|
|
47
|
+
documentation_uri: https://ruby.github.io/uri/
|
|
50
48
|
homepage_uri: https://github.com/ruby/uri
|
|
51
49
|
source_code_uri: https://github.com/ruby/uri
|
|
52
|
-
post_install_message:
|
|
53
50
|
rdoc_options: []
|
|
54
51
|
require_paths:
|
|
55
52
|
- lib
|
|
@@ -57,15 +54,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
57
54
|
requirements:
|
|
58
55
|
- - ">="
|
|
59
56
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '2.
|
|
57
|
+
version: '2.5'
|
|
61
58
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
59
|
requirements:
|
|
63
60
|
- - ">="
|
|
64
61
|
- !ruby/object:Gem::Version
|
|
65
62
|
version: '0'
|
|
66
63
|
requirements: []
|
|
67
|
-
rubygems_version: 3.
|
|
68
|
-
signing_key:
|
|
64
|
+
rubygems_version: 3.6.9
|
|
69
65
|
specification_version: 4
|
|
70
66
|
summary: URI is a module providing classes to handle Uniform Resource Identifiers
|
|
71
67
|
test_files: []
|
data/.github/dependabot.yml
DELETED
data/.github/workflows/test.yml
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on: [push, pull_request]
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
build:
|
|
7
|
-
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
|
|
8
|
-
strategy:
|
|
9
|
-
matrix:
|
|
10
|
-
ruby: [ 3.1, '3.0', 2.7, 2.6, 2.5, 2.4, head, truffleruby ]
|
|
11
|
-
os: [ ubuntu-latest, macos-latest ]
|
|
12
|
-
runs-on: ${{ matrix.os }}
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/checkout@v3
|
|
15
|
-
- name: Set up Ruby
|
|
16
|
-
uses: ruby/setup-ruby@v1
|
|
17
|
-
with:
|
|
18
|
-
ruby-version: ${{ matrix.ruby }}
|
|
19
|
-
- run: bundle install --jobs 4 --retry 3
|
|
20
|
-
- name: Run test
|
|
21
|
-
run: rake test
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
require "bundler/gem_tasks"
|
|
2
|
-
require "rake/testtask"
|
|
3
|
-
|
|
4
|
-
Rake::TestTask.new(:test) do |t|
|
|
5
|
-
t.libs << "test/lib"
|
|
6
|
-
t.ruby_opts << "-rhelper"
|
|
7
|
-
t.test_files = FileList["test/**/test_*.rb"]
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
task :sync_tool do
|
|
11
|
-
require 'fileutils'
|
|
12
|
-
FileUtils.cp "../ruby/tool/lib/test/unit/core_assertions.rb", "./test/lib"
|
|
13
|
-
FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
|
|
14
|
-
FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
task :default => :test
|
data/bin/console
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
require "bundler/setup"
|
|
4
|
-
require "uri"
|
|
5
|
-
|
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
|
8
|
-
|
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
-
# require "pry"
|
|
11
|
-
# Pry.start
|
|
12
|
-
|
|
13
|
-
require "irb"
|
|
14
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
data/uri.gemspec
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
begin
|
|
2
|
-
require_relative "lib/uri/version"
|
|
3
|
-
rescue LoadError # Fallback to load version file in ruby core repository
|
|
4
|
-
require_relative "version"
|
|
5
|
-
end
|
|
6
|
-
|
|
7
|
-
Gem::Specification.new do |spec|
|
|
8
|
-
spec.name = "uri"
|
|
9
|
-
spec.version = URI::VERSION
|
|
10
|
-
spec.authors = ["Akira Yamada"]
|
|
11
|
-
spec.email = ["akira@ruby-lang.org"]
|
|
12
|
-
|
|
13
|
-
spec.summary = %q{URI is a module providing classes to handle Uniform Resource Identifiers}
|
|
14
|
-
spec.description = spec.summary
|
|
15
|
-
spec.homepage = "https://github.com/ruby/uri"
|
|
16
|
-
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
|
17
|
-
|
|
18
|
-
spec.required_ruby_version = '>= 2.4'
|
|
19
|
-
|
|
20
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
|
21
|
-
spec.metadata["source_code_uri"] = spec.homepage
|
|
22
|
-
|
|
23
|
-
# Specify which files should be added to the gem when it is released.
|
|
24
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
25
|
-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
|
26
|
-
`git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
27
|
-
end
|
|
28
|
-
spec.bindir = "exe"
|
|
29
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
30
|
-
spec.require_paths = ["lib"]
|
|
31
|
-
end
|