You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/rdf/model/uri.rb
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -431,7 +431,9 @@ def join(*uris)
431
431
joined_parts[:query]=uri.query
432
432
else
433
433
# Merge path segments from section 5.2.3
434
-
base_path=path.to_s.sub(/\/[^\/]*$/,'/')
434
+
# Note that if the path includes no segments, the entire path is removed
435
+
# > return a string consisting of the reference's path component appended to all but the last segment of the base URI's path (i.e., excluding any characters after the right-most "/" in the base URI path, or excluding the entire base URI path if it does not contain any "/" characters).
# Open the file, returning or yielding {RemoteDocument}.
251
262
#
252
-
# Adds Accept header based on available reader content types to allow
253
-
# for content negotiation based on available readers.
254
-
#
255
263
# Input received as non-unicode, is transformed to UTF-8. With Ruby >= 2.2, all UTF is normalized to [Unicode Normalization Form C (NFC)](http://unicode.org/reports/tr15/#Norm_Forms).
256
264
#
257
265
# HTTP resources may be retrieved via proxy using the `proxy` option. If `RestClient` is loaded, they will use the proxy globally by setting something like the following:
# When retrieving documents over HTTP(S), use the mechanism described in [Providing and Discovering URI Documentation](http://www.w3.org/2001/tag/awwsw/issue57/latest/) to pass the appropriate `base_uri` to the block or as the return.
260
268
#
261
-
# Applications needing HTTP caching may consider
262
-
# [Rest Client](https://rubygems.org/gems/rest-client) and
# allowing the use of `Rack::Cache` as a local file cache.
269
+
# Applications needing HTTP caching may consider [Rest Client](https://rubygems.org/gems/rest-client) and [REST Client Components](https://rubygems.org/gems/rest-client-components) allowing the use of `Rack::Cache` as a local file cache.
0 commit comments