absolutely 1.0.0 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4963a03132b55c8a4baaafc53ade13535e8330e1
4
- data.tar.gz: 534d96de67767fd4fa1583e6fd1f41cdf8403c8b
3
+ metadata.gz: a266a4993497cf9edb342e0136948454325ecbc1
4
+ data.tar.gz: 0bfa6efefdecdc78a76e2a61d4d70b0d8d69ccf6
5
5
  SHA512:
6
- metadata.gz: 2f756f5ad8de83f144928b4db0b80e9279d4fadaf573759c3b3841eb9299ea944ffe6e17477c60ef0219ac2855b90cc3e76bccc6d926843b97d7354d45562298
7
- data.tar.gz: 27742f498491e1e26e285ef0a63c800fbc6efe70d2d7844be93f9d5e53b900bfaf7d20959e1b35a9050de7900555e6c26a3524518d2890bf74eff35c0aaad8fb
6
+ metadata.gz: ec1f01924e86fb581d4878ba453b2ac1c2a651466bd30a3251a9570e32e689230d5c1a25869ab9e9027978baf2dc6f64b4a988d4674cf0fb578327d6b721ee74
7
+ data.tar.gz: 2367dd9222f23cbfca1949cbc572282ceafdad3e8d50dc137629843f059a259be5df55a6d03a03d693b86f6c43aa247f80b1fdc8ddebecb92a9df7778a87016b
data/CHANGELOG.md CHANGED
@@ -1,9 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.0 / 2018-07-05
4
+
5
+ - Sets `base` URI's path to `/` if empty to conform with browser behavior ([b0f657a](https://github.com/jgarber623/absolutely/commit/b0f657a)).
6
+ - Adds new tests from the [indieweb/php-mf2 URL test suite](https://github.com/indieweb/php-mf2/blob/master/tests/Mf2/URLTest.php) ([0b6417b](https://github.com/jgarber623/absolutely/commit/0b6417b)).
7
+
3
8
  ## 1.0.0 / 2018-07-05
4
9
 
5
- - **Breaking Change:** Return value passed as `relative` if `relative` is to determined to be an absolute URI, regardless of the value passed as `base`. ([e3996eb](https://github.com/jgarber623/absolutely/commit/e3996eb))
6
- - Update documentation to demonstrate new `relative` parameter behavior.
10
+ - **Breaking Change:** Return value passed as `relative` if `relative` is to determined to be an absolute URI, regardless of the value passed as `base` ([e3996eb](https://github.com/jgarber623/absolutely/commit/e3996eb)).
11
+ - Updates documentation to demonstrate new `relative` parameter behavior.
7
12
 
8
13
  ## 0.1.0 / 2018-07-04
9
14
 
@@ -29,6 +29,8 @@ module Absolutely
29
29
  def to_absolute_uri
30
30
  return relative_uri.to_s if relative_uri.absolute?
31
31
 
32
+ base_uri.path = '/' if base_uri.path.empty?
33
+
32
34
  (base_uri + relative_uri).to_s
33
35
  end
34
36
  end
@@ -1,3 +1,3 @@
1
1
  module Absolutely
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: absolutely
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Garber