furi 0.2.7 → 0.2.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5923ee7cbb73b1b035612324a274790d95ec2cef4369558fc6874e28da4fe77b
4
- data.tar.gz: bebdc6c2ab8ae6b5a8cc262c2c70d53a8d1721020fcd7581a713f9f2f629b010
3
+ metadata.gz: 28c6de657a741c4c62ac676e81317f2e617d11d4f694545898fd9125fb203503
4
+ data.tar.gz: 69e7ae9549a184162029248bef0c700e7587d2eeb6dbb5fc4c53dc055f3cd00a
5
5
  SHA512:
6
- metadata.gz: 9b9a3c1d0116faa7828205294fc22b6eb2045536ffdd3c3665d7d8ea8dc4de3ac88bd43904f82c9c33948e943c073e9c0a44dc5a6c6a80e4b30252fd690b49f4
7
- data.tar.gz: 5ef899e9301205592801d7f037d7193d4f1f13c057198fa3eff06e559e86bcdb8b209df0e77e24aad04f8d555ff4aaf443e8373adc3f79dc17360c24e330787a
6
+ metadata.gz: d81ad22779d9b940820e9af740e99095776cd1565e5e093c90514e428640dfee689d33cc163eaa7a5f7b5e6ae45c9d4857ad47b1ecab4a8bda967d214a0e12e2
7
+ data.tar.gz: fcca9bac6df451646952725e7ad3ca913a636798e81cf6cce124cb8f251930e9c093cedcb6fa46968460a879a13b92ac5af2c3dd14716fd8c74b8acaa56ef92d
data/CHANGELOG.md CHANGED
@@ -1,12 +1,12 @@
1
- # v0.2.7
1
+ # v0.2.8
2
2
 
3
- * Add `origin` part (location + path, without query string and anchor)
3
+ * Add `endpoint` part (location + path, without query string and anchor)
4
4
 
5
5
  ```ruby
6
- Furi.parse("http://gusiev.com/articles/index.html?a=1#top").origin
6
+ Furi.parse("http://gusiev.com/articles/index.html?a=1#top").endpoint
7
7
  # => "http://gusiev.com/articles/index.html"
8
8
 
9
- Furi.replace("http://gusiev.com/index.html?a=1#top", origin: "http://gusiev.com/blog.html")
9
+ Furi.replace("http://gusiev.com/index.html?a=1#top", endpoint: "http://gusiev.com/blog.html")
10
10
  # => "http://gusiev.com/blog.html?a=1#top"
11
11
  ```
12
12
 
data/lib/furi/uri.rb CHANGED
@@ -207,11 +207,11 @@ module Furi
207
207
  end
208
208
  end
209
209
 
210
- def origin
210
+ def endpoint
211
211
  [location, path].join
212
212
  end
213
213
 
214
- def origin=(string)
214
+ def endpoint=(string)
215
215
  string ||= ""
216
216
  string = parse_protocol(string)
217
217
  authority, path = string.split("/", 2)
data/lib/furi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Furi
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
data/lib/furi.rb CHANGED
@@ -15,7 +15,7 @@ module Furi
15
15
 
16
16
  COMBINED_PARTS = [
17
17
  :hostinfo, :userinfo, :authority, :ssl, :domain, :domainname,
18
- :domainzone, :request, :location, :origin, :query,
18
+ :domainzone, :request, :location, :endpoint, :query,
19
19
  :directory, :extension, :file
20
20
  ]
21
21
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: furi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bogdan Gusiev