addressable 2.2.3 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of addressable might be problematic. Click here for more details.

@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 73a7a5a0dfea976017780e3b434e97aa58216019
4
+ data.tar.gz: a708925a0882de04f840e9e54d279eb954775921
5
+ SHA512:
6
+ metadata.gz: c311a5594d7f1051df67287badef72551c52c6bc47598017099d5e8b5c2a9638144bcc6d635b418dfc1970e185cf31016ad54f681c7156d440223ef62f060bc5
7
+ data.tar.gz: 78527879654347fcf16be86684e1b37ca240c5a80d3baf2217cfdfb501cd6255de47a7cc8058c10e98e558b073981a27be06672f4dec8cf7d18e88a34609e6a1
@@ -0,0 +1,235 @@
1
+ # Addressable 2.7.0
2
+ - added `:compacted` flag to `normalized_query`
3
+ - `heuristic_parse` handles `mailto:` more intuitively
4
+ - refactored validation to use a prepended module
5
+ - dropped explicit support for JRuby 9.0.5.0
6
+ - compatibility w/ public_suffix 4.x
7
+ - performance improvements
8
+
9
+ # Addressable 2.6.0
10
+ - added `tld=` method to allow assignment to the public suffix
11
+ - most `heuristic_parse` patterns are now case-insensitive
12
+ - `heuristic_parse` handles more `file://` URI variations
13
+ - fixes bug in `heuristic_parse` when uri starts with digit
14
+ - fixes bug in `request_uri=` with query strings
15
+ - fixes template issues with `nil` and `?` operator
16
+ - `frozen_string_literal` pragmas added
17
+ - minor performance improvements in regexps
18
+ - fixes to eliminate warnings
19
+
20
+ # Addressable 2.5.2
21
+ - better support for frozen string literals
22
+ - fixed bug w/ uppercase characters in scheme
23
+ - IDNA errors w/ emoji URLs
24
+ - compatibility w/ public_suffix 3.x
25
+
26
+ # Addressable 2.5.1
27
+ - allow unicode normalization to be disabled for URI Template expansion
28
+ - removed duplicate test
29
+
30
+ # Addressable 2.5.0
31
+ - dropping support for Ruby 1.9
32
+ - adding support for Ruby 2.4 preview
33
+ - add support for public suffixes and tld; first runtime dependency
34
+ - hostname escaping should match RFC; underscores in hostnames no longer escaped
35
+ - paths beginning with // and missing an authority are now considered invalid
36
+ - validation now also takes place after setting a path
37
+ - handle backslashes in authority more like a browser for `heuristic_parse`
38
+ - unescaped backslashes in host now raise an `InvalidURIError`
39
+ - `merge!`, `join!`, `omit!` and `normalize!` don't disable deferred validation
40
+ - `heuristic_parse` now trims whitespace before parsing
41
+ - host parts longer than 63 bytes will be ignored and not passed to libidn
42
+ - normalized values always encoded as UTF-8
43
+
44
+ # Addressable 2.4.0
45
+ - support for 1.8.x dropped
46
+ - double quotes in a host now raises an error
47
+ - newlines in host will no longer get unescaped during normalization
48
+ - stricter handling of bogus scheme values
49
+ - stricter handling of encoded port values
50
+ - calling `require 'addressable'` will now load both the URI and Template files
51
+ - assigning to the `hostname` component with an `IPAddr` object is now supported
52
+ - assigning to the `origin` component is now supported
53
+ - fixed minor bug where an exception would be thrown for a missing ACE suffix
54
+ - better partial expansion of URI templates
55
+
56
+ # Addressable 2.3.8
57
+ - fix warnings
58
+ - update dependency gems
59
+ - support for 1.8.x officially deprecated
60
+
61
+ # Addressable 2.3.7
62
+ - fix scenario in which invalid URIs don't get an exception until inspected
63
+ - handle hostnames with two adjacent periods correctly
64
+ - upgrade of RSpec
65
+
66
+ # Addressable 2.3.6
67
+ - normalization drops empty query string
68
+ - better handling in template extract for missing values
69
+ - template modifier for `'?'` now treated as optional
70
+ - fixed issue where character class parameters were modified
71
+ - templates can now be tested for equality
72
+ - added `:sorted` option to normalization of query strings
73
+ - fixed issue with normalization of hosts given in `'example.com.'` form
74
+
75
+ # Addressable 2.3.5
76
+ - added Addressable::URI#empty? method
77
+ - Addressable::URI#hostname methods now strip square brackets from IPv6 hosts
78
+ - compatibility with Net::HTTP in Ruby 2.0.0
79
+ - Addressable::URI#route_from should always give relative URIs
80
+
81
+ # Addressable 2.3.4
82
+ - fixed issue with encoding altering its inputs
83
+ - query string normalization now leaves ';' characters alone
84
+ - FakeFS is detected before attempting to load unicode tables
85
+ - additional testing to ensure frozen objects don't cause problems
86
+
87
+ # Addressable 2.3.3
88
+ - fixed issue with converting common primitives during template expansion
89
+ - fixed port encoding issue
90
+ - removed a few warnings
91
+ - normalize should now ignore %2B in query strings
92
+ - the IDNA logic should now be handled by libidn in Ruby 1.9
93
+ - no template match should now result in nil instead of an empty MatchData
94
+ - added license information to gemspec
95
+
96
+ # Addressable 2.3.2
97
+ - added Addressable::URI#default_port method
98
+ - fixed issue with Marshalling Unicode data on Windows
99
+ - improved heuristic parsing to better handle IPv4 addresses
100
+
101
+ # Addressable 2.3.1
102
+ - fixed missing unicode data file
103
+
104
+ # Addressable 2.3.0
105
+ - updated Addressable::Template to use RFC 6570, level 4
106
+ - fixed compatibility problems with some versions of Ruby
107
+ - moved unicode tables into a data file for performance reasons
108
+ - removing support for multiple query value notations
109
+
110
+ # Addressable 2.2.8
111
+ - fixed issues with dot segment removal code
112
+ - form encoding can now handle multiple values per key
113
+ - updated development environment
114
+
115
+ # Addressable 2.2.7
116
+ - fixed issues related to Addressable::URI#query_values=
117
+ - the Addressable::URI.parse method is now polymorphic
118
+
119
+ # Addressable 2.2.6
120
+ - changed the way ambiguous paths are handled
121
+ - fixed bug with frozen URIs
122
+ - https supported in heuristic parsing
123
+
124
+ # Addressable 2.2.5
125
+ - 'parsing' a pre-parsed URI object is now a dup operation
126
+ - introduced conditional support for libidn
127
+ - fixed normalization issue on ampersands in query strings
128
+ - added additional tests around handling of query strings
129
+
130
+ # Addressable 2.2.4
131
+ - added origin support from draft-ietf-websec-origin-00
132
+ - resolved issue with attempting to navigate below root
133
+ - fixed bug with string splitting in query strings
134
+
135
+ # Addressable 2.2.3
136
+ - added :flat_array notation for query strings
137
+
138
+ # Addressable 2.2.2
139
+ - fixed issue with percent escaping of '+' character in query strings
140
+
141
+ # Addressable 2.2.1
142
+ - added support for application/x-www-form-urlencoded.
143
+
144
+ # Addressable 2.2.0
145
+ - added site methods
146
+ - improved documentation
147
+
148
+ # Addressable 2.1.2
149
+ - added HTTP request URI methods
150
+ - better handling of Windows file paths
151
+ - validation_deferred boolean replaced with defer_validation block
152
+ - normalization of percent-encoded paths should now be correct
153
+ - fixed issue with constructing URIs with relative paths
154
+ - fixed warnings
155
+
156
+ # Addressable 2.1.1
157
+ - more type checking changes
158
+ - fixed issue with unicode normalization
159
+ - added method to find template defaults
160
+ - symbolic keys are now allowed in template mappings
161
+ - numeric values and symbolic values are now allowed in template mappings
162
+
163
+ # Addressable 2.1.0
164
+ - refactored URI template support out into its own class
165
+ - removed extract method due to being useless and unreliable
166
+ - removed Addressable::URI.expand_template
167
+ - removed Addressable::URI#extract_mapping
168
+ - added partial template expansion
169
+ - fixed minor bugs in the parse and heuristic_parse methods
170
+ - fixed incompatibility with Ruby 1.9.1
171
+ - fixed bottleneck in Addressable::URI#hash and Addressable::URI#to_s
172
+ - fixed unicode normalization exception
173
+ - updated query_values methods to better handle subscript notation
174
+ - worked around issue with freezing URIs
175
+ - improved specs
176
+
177
+ # Addressable 2.0.2
178
+ - fixed issue with URI template expansion
179
+ - fixed issue with percent escaping characters 0-15
180
+
181
+ # Addressable 2.0.1
182
+ - fixed issue with query string assignment
183
+ - fixed issue with improperly encoded components
184
+
185
+ # Addressable 2.0.0
186
+ - the initialize method now takes an options hash as its only parameter
187
+ - added query_values method to URI class
188
+ - completely replaced IDNA implementation with pure Ruby
189
+ - renamed Addressable::ADDRESSABLE_VERSION to Addressable::VERSION
190
+ - completely reworked the Rakefile
191
+ - changed the behavior of the port method significantly
192
+ - Addressable::URI.encode_segment, Addressable::URI.unencode_segment renamed
193
+ - documentation is now in YARD format
194
+ - more rigorous type checking
195
+ - to_str method implemented, implicit conversion to Strings now allowed
196
+ - Addressable::URI#omit method added, Addressable::URI#merge method replaced
197
+ - updated URI Template code to match v 03 of the draft spec
198
+ - added a bunch of new specifications
199
+
200
+ # Addressable 1.0.4
201
+ - switched to using RSpec's pending system for specs that rely on IDN
202
+ - fixed issue with creating URIs with paths that are not prefixed with '/'
203
+
204
+ # Addressable 1.0.3
205
+ - implemented a hash method
206
+
207
+ # Addressable 1.0.2
208
+ - fixed minor bug with the extract_mapping method
209
+
210
+ # Addressable 1.0.1
211
+ - fixed minor bug with the extract_mapping method
212
+
213
+ # Addressable 1.0.0
214
+ - heuristic parse method added
215
+ - parsing is slightly more strict
216
+ - replaced to_h with to_hash
217
+ - fixed routing methods
218
+ - improved specifications
219
+ - improved heckle rake task
220
+ - no surviving heckle mutations
221
+
222
+ # Addressable 0.1.2
223
+ - improved normalization
224
+ - fixed bug in joining algorithm
225
+ - updated specifications
226
+
227
+ # Addressable 0.1.1
228
+ - updated documentation
229
+ - added URI Template variable extraction
230
+
231
+ # Addressable 0.1.0
232
+ - initial release
233
+ - implementation based on RFC 3986, 3987
234
+ - support for IRIs via libidn
235
+ - support for the URI Template draft spec
data/Gemfile ADDED
@@ -0,0 +1,32 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :test do
6
+ gem 'rspec', '~> 3.8'
7
+ gem 'rspec-its', '~> 1.3'
8
+ end
9
+
10
+ group :development do
11
+ gem 'launchy', '~> 2.4', '>= 2.4.3'
12
+ gem 'redcarpet', :platform => :mri_19
13
+ gem 'yard'
14
+ end
15
+
16
+ group :test, :development do
17
+ gem 'rake', '> 10.0', '< 12'
18
+ gem 'simplecov', :require => false
19
+ gem 'coveralls', :require => false, :platforms => [
20
+ :ruby_20, :ruby_21, :ruby_22, :ruby_23
21
+ ]
22
+ # Used to test compatibility.
23
+ gem 'rack-mount', git: 'https://github.com/sporkmonger/rack-mount.git', require: 'rack/mount'
24
+
25
+ if RUBY_VERSION.start_with?('2.0', '2.1')
26
+ gem 'rack', '< 2', :require => false
27
+ else
28
+ gem 'rack', :require => false
29
+ end
30
+ end
31
+
32
+ gem 'idn-ruby', :platform => [:mri_20, :mri_21, :mri_22, :mri_23, :mri_24]
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.