kea-rails 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kea-rails/version.rb +1 -1
- data/vendor/assets/components/Keypress/LICENSE +191 -0
- data/vendor/assets/components/Keypress/README.md +78 -0
- data/vendor/assets/components/Keypress/bower.json +28 -0
- data/vendor/assets/components/Keypress/keypress-2.1.0.min.js +33 -0
- data/vendor/assets/components/Keypress/keypress.coffee +921 -0
- data/vendor/assets/components/Keypress/keypress.js +1132 -0
- data/vendor/assets/components/Keypress/package.json +15 -0
- data/vendor/assets/components/attachejs/attache-jquery.js +47 -0
- data/vendor/assets/components/attachejs/attache-knockout.js +56 -0
- data/vendor/assets/components/attachejs/attache.css +10 -0
- data/vendor/assets/components/attachejs/attache.js +589 -0
- data/vendor/assets/components/attachejs/bower.json +36 -0
- data/vendor/assets/components/humane-js/bower.json +8 -0
- data/vendor/assets/components/humane-js/changelog.md +165 -0
- data/vendor/assets/components/humane-js/humane.js +238 -0
- data/vendor/assets/components/humane-js/humane.min.js +11 -0
- data/vendor/assets/components/humane-js/index.html +190 -0
- data/vendor/assets/components/humane-js/package.json +25 -0
- data/vendor/assets/components/humane-js/readme.md +85 -0
- data/vendor/assets/components/humane-js/test/issue23.html +11 -0
- data/vendor/assets/components/humane-js/test/issue36.html +9 -0
- data/vendor/assets/components/humane-js/test/issue38.html +15 -0
- data/vendor/assets/components/humane-js/test/issue49.html +9 -0
- data/vendor/assets/components/humane-js/theme-src/bigbox.styl +65 -0
- data/vendor/assets/components/humane-js/theme-src/boldlight.styl +64 -0
- data/vendor/assets/components/humane-js/theme-src/jackedup.styl +69 -0
- data/vendor/assets/components/humane-js/theme-src/libnotify.styl +61 -0
- data/vendor/assets/components/humane-js/theme-src/original.styl +51 -0
- data/vendor/assets/components/humane-js/themes/bigbox.css +123 -0
- data/vendor/assets/components/humane-js/themes/boldlight.css +122 -0
- data/vendor/assets/components/humane-js/themes/flatty.css +94 -0
- data/vendor/assets/components/humane-js/themes/jackedup.css +123 -0
- data/vendor/assets/components/humane-js/themes/libnotify.css +115 -0
- data/vendor/assets/components/humane-js/themes/original.css +72 -0
- data/vendor/assets/components/knockout-sortable/README.md +129 -0
- data/vendor/assets/components/knockout-sortable/bower.json +15 -0
- data/vendor/assets/components/knockout-sortable/build/knockout-sortable.js +358 -0
- data/vendor/assets/components/knockout-sortable/build/knockout-sortable.min.js +2 -0
- data/vendor/assets/components/uri.js/README.md +437 -0
- data/vendor/assets/components/uri.js/URI.jquery.json +38 -0
- data/vendor/assets/components/uri.js/about-uris.html +156 -0
- data/vendor/assets/components/uri.js/build.html +66 -0
- data/vendor/assets/components/uri.js/build.js +78 -0
- data/vendor/assets/components/uri.js/component.json +15 -0
- data/vendor/assets/components/uri.js/contribute.md +11 -0
- data/vendor/assets/components/uri.js/docs.html +1280 -0
- data/vendor/assets/components/uri.js/index.html +173 -0
- data/vendor/assets/components/uri.js/jquery-1.10.2.min.js +6 -0
- data/vendor/assets/components/uri.js/jquery-1.7.2.min.js +4 -0
- data/vendor/assets/components/uri.js/jquery-1.8.2.min.js +2 -0
- data/vendor/assets/components/uri.js/jquery-1.9.1.min.js +5 -0
- data/vendor/assets/components/uri.js/jquery-uri-plugin.html +203 -0
- data/vendor/assets/components/uri.js/package.json +75 -0
- data/vendor/assets/components/uri.js/prettify/lang-apollo.js +2 -0
- data/vendor/assets/components/uri.js/prettify/lang-clj.js +18 -0
- data/vendor/assets/components/uri.js/prettify/lang-css.js +2 -0
- data/vendor/assets/components/uri.js/prettify/lang-go.js +1 -0
- data/vendor/assets/components/uri.js/prettify/lang-hs.js +2 -0
- data/vendor/assets/components/uri.js/prettify/lang-lisp.js +3 -0
- data/vendor/assets/components/uri.js/prettify/lang-lua.js +2 -0
- data/vendor/assets/components/uri.js/prettify/lang-ml.js +2 -0
- data/vendor/assets/components/uri.js/prettify/lang-n.js +4 -0
- data/vendor/assets/components/uri.js/prettify/lang-proto.js +1 -0
- data/vendor/assets/components/uri.js/prettify/lang-scala.js +2 -0
- data/vendor/assets/components/uri.js/prettify/lang-sql.js +2 -0
- data/vendor/assets/components/uri.js/prettify/lang-tex.js +1 -0
- data/vendor/assets/components/uri.js/prettify/lang-vb.js +2 -0
- data/vendor/assets/components/uri.js/prettify/lang-vhdl.js +3 -0
- data/vendor/assets/components/uri.js/prettify/lang-wiki.js +2 -0
- data/vendor/assets/components/uri.js/prettify/lang-xq.js +3 -0
- data/vendor/assets/components/uri.js/prettify/lang-yaml.js +2 -0
- data/vendor/assets/components/uri.js/prettify/prettify.css +1 -0
- data/vendor/assets/components/uri.js/prettify/prettify.js +28 -0
- data/vendor/assets/components/uri.js/prettify/prettify.sunburst.css +52 -0
- data/vendor/assets/components/uri.js/screen.css +167 -0
- data/vendor/assets/components/uri.js/screen.js +39 -0
- data/vendor/assets/components/uri.js/src/IPv6.js +185 -0
- data/vendor/assets/components/uri.js/src/SecondLevelDomains.js +220 -0
- data/vendor/assets/components/uri.js/src/URI.fragmentQuery.js +103 -0
- data/vendor/assets/components/uri.js/src/URI.fragmentURI.js +96 -0
- data/vendor/assets/components/uri.js/src/URI.js +1938 -0
- data/vendor/assets/components/uri.js/src/URI.min.js +81 -0
- data/vendor/assets/components/uri.js/src/URITemplate.js +494 -0
- data/vendor/assets/components/uri.js/src/jquery.URI.js +232 -0
- data/vendor/assets/components/uri.js/src/jquery.URI.min.js +7 -0
- data/vendor/assets/components/uri.js/src/punycode.js +508 -0
- data/vendor/assets/components/uri.js/test/index.html +26 -0
- data/vendor/assets/components/uri.js/test/pre_libs.js +4 -0
- data/vendor/assets/components/uri.js/test/qunit/qunit-composite.css +13 -0
- data/vendor/assets/components/uri.js/test/qunit/qunit-composite.js +167 -0
- data/vendor/assets/components/uri.js/test/qunit/qunit.css +244 -0
- data/vendor/assets/components/uri.js/test/qunit/qunit.js +2212 -0
- data/vendor/assets/components/uri.js/test/test.URI.html +26 -0
- data/vendor/assets/components/uri.js/test/test.fragmentQuery.html +31 -0
- data/vendor/assets/components/uri.js/test/test.fragmentURI.html +31 -0
- data/vendor/assets/components/uri.js/test/test.jQuery-1.10.html +31 -0
- data/vendor/assets/components/uri.js/test/test.jQuery-1.7.html +31 -0
- data/vendor/assets/components/uri.js/test/test.jQuery-1.8.html +31 -0
- data/vendor/assets/components/uri.js/test/test.jQuery-1.9.html +31 -0
- data/vendor/assets/components/uri.js/test/test.js +1409 -0
- data/vendor/assets/components/uri.js/test/test_fragmentQuery.js +57 -0
- data/vendor/assets/components/uri.js/test/test_fragmentURI.js +59 -0
- data/vendor/assets/components/uri.js/test/test_jim.js +143 -0
- data/vendor/assets/components/uri.js/test/test_jquery.js +138 -0
- data/vendor/assets/components/uri.js/test/test_template.js +385 -0
- data/vendor/assets/components/uri.js/test/urls.js +1236 -0
- data/vendor/assets/components/uri.js/uri-template.html +234 -0
- data/vendor/assets/components/uri.js/utils/SLDs.php +37 -0
- data/vendor/assets/components/uri.js/utils/sld.js +101 -0
- data/vendor/assets/components/veiljs/bower.json +36 -0
- data/vendor/assets/components/veiljs/veil-jquery.js +47 -0
- data/vendor/assets/components/veiljs/veil-knockout.js +55 -0
- data/vendor/assets/components/veiljs/veil.js +465 -0
- data/vendor/assets/javascripts/fuse.js +472 -0
- data/vendor/assets/javascripts/jquery-ui.js +3844 -0
- data/vendor/assets/javascripts/knockout-3.2.0-debug.js +5299 -0
- data/vendor/assets/javascripts/moment.js +1902 -0
- data/vendor/assets/javascripts/pikaday.js +896 -0
- data/vendor/assets/stylesheets/pikaday.css +171 -0
- metadata +120 -1
@@ -0,0 +1,437 @@
|
|
1
|
+
# URI.js #
|
2
|
+
|
3
|
+
* [About](http://medialize.github.com/URI.js/)
|
4
|
+
* [Understanding URIs](http://medialize.github.com/URI.js/about-uris.html)
|
5
|
+
* [Documentation](http://medialize.github.com/URI.js/docs.html)
|
6
|
+
* [jQuery URI Plugin](http://medialize.github.com/URI.js/jquery-uri-plugin.html)
|
7
|
+
* [Author](http://rodneyrehm.de/en/)
|
8
|
+
|
9
|
+
---
|
10
|
+
|
11
|
+
I always want to shoot myself in the head when looking at code like the following:
|
12
|
+
|
13
|
+
```javascript
|
14
|
+
var url = "http://example.org/foo?bar=baz";
|
15
|
+
var separator = url.indexOf('?') > -1 ? '&' : '?';
|
16
|
+
|
17
|
+
url += separator + encodeURIComponent("foo") + "=" + encodeURIComponent("bar");
|
18
|
+
```
|
19
|
+
|
20
|
+
I still can't believe javascript - the f**ing backbone-language of the web - doesn't offer an API for mutating URLs. Browsers (Firefox) don't expose the `Location` object (the structure behind window.location). Yes, one could think of [decomposed IDL attributes](http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html#url-decomposition-idl-attributes) as a native URL management library. But it relies on the DOM element <a>, it's slow and doesn't offer any convenience at all.
|
21
|
+
|
22
|
+
How about a nice, clean and simple API for mutating URIs:
|
23
|
+
|
24
|
+
```javascript
|
25
|
+
var url = new URI("http://example.org/foo?bar=baz");
|
26
|
+
url.addQuery("foo", "bar");
|
27
|
+
```
|
28
|
+
|
29
|
+
URI.js is here to help with that.
|
30
|
+
|
31
|
+
|
32
|
+
## API Example ##
|
33
|
+
|
34
|
+
```javascript
|
35
|
+
// mutating URLs
|
36
|
+
URI("http://example.org/foo.html?hello=world")
|
37
|
+
.username("rodneyrehm")
|
38
|
+
// -> http://rodneyrehm@example.org/foo.html?hello=world
|
39
|
+
.username("")
|
40
|
+
// -> http://example.org/foo.html?hello=world
|
41
|
+
.directory("bar")
|
42
|
+
// -> http://example.org/bar/foo.html?hello=world
|
43
|
+
.suffix("xml")
|
44
|
+
// -> http://example.org/bar/foo.xml?hello=world
|
45
|
+
.query("")
|
46
|
+
// -> http://example.org/bar/foo.xml
|
47
|
+
.tld("com")
|
48
|
+
// -> http://example.com/bar/foo.xml
|
49
|
+
.query({ foo: "bar", hello: ["world", "mars"] });
|
50
|
+
// -> http://example.com/bar/foo.xml?foo=bar&hello=world&hello=mars
|
51
|
+
|
52
|
+
// cleaning things up
|
53
|
+
URI("?&foo=bar&&foo=bar&foo=baz&")
|
54
|
+
.normalizeQuery();
|
55
|
+
// -> ?foo=bar&foo=baz
|
56
|
+
|
57
|
+
// working with relative paths
|
58
|
+
URI("/foo/bar/baz.html")
|
59
|
+
.relativeTo("/foo/bar/world.html");
|
60
|
+
// -> ./baz.html
|
61
|
+
|
62
|
+
URI("/foo/bar/baz.html")
|
63
|
+
.relativeTo("/foo/bar/sub/world.html")
|
64
|
+
// -> ../baz.html
|
65
|
+
.absoluteTo("/foo/bar/sub/world.html");
|
66
|
+
// -> /foo/bar/baz.html
|
67
|
+
|
68
|
+
// URI Templates
|
69
|
+
URI.expand("/foo/{dir}/{file}", {
|
70
|
+
dir: "bar",
|
71
|
+
file: "world.html"
|
72
|
+
});
|
73
|
+
// -> /foo/bar/world.html
|
74
|
+
```
|
75
|
+
|
76
|
+
See the [About Page](http://medialize.github.com/URI.js/) and [API Docs](http://medialize.github.com/URI.js/docs.html) for more stuff.
|
77
|
+
|
78
|
+
## Using URI.js ##
|
79
|
+
|
80
|
+
URI.js (without plugins) has a gzipped weight of about 7KB - if you include all extensions you end up at about 13KB. So unless you *need* second level domain support and use URI templates, we suggest you don't include them in your build. If you don't need a full featured URI mangler, it may be worth looking into the much smaller parser-only alternatives [listed below](#alternatives).
|
81
|
+
|
82
|
+
URI.js is available through [npm](http://npmjs.org/), [bower](http://bower.io/), [Jam](http://jamjs.org/) and manually from the [build page](http://medialize.github.io/URI.js/build.html):
|
83
|
+
|
84
|
+
```bash
|
85
|
+
# using bower
|
86
|
+
bower install uri.js
|
87
|
+
|
88
|
+
# using Jam
|
89
|
+
jam install URIjs
|
90
|
+
|
91
|
+
# using npm
|
92
|
+
npm install URIjs
|
93
|
+
```
|
94
|
+
|
95
|
+
### Browser ###
|
96
|
+
|
97
|
+
I guess you'll manage to use the [build tool](http://medialize.github.com/URI.js/build.html) or follow the [instructions below](#minify) to combine and minify the various files into URI.min.js - and I'm fairly certain you know how to `<script src=".../URI.min.js"></script>` that sucker, too.
|
98
|
+
|
99
|
+
### Node.js and NPM ###
|
100
|
+
|
101
|
+
Install with `npm install URIjs` or add `"URIjs"` to the dependencies in your `package.json`.
|
102
|
+
|
103
|
+
```javascript
|
104
|
+
// load URI.js
|
105
|
+
var URI = require('URIjs');
|
106
|
+
// load an optional module (e.g. URITemplate)
|
107
|
+
var URITemplate = require('URIjs/src/URITemplate');
|
108
|
+
|
109
|
+
URI("/foo/bar/baz.html")
|
110
|
+
.relativeTo("/foo/bar/sub/world.html")
|
111
|
+
// -> ../baz.html
|
112
|
+
```
|
113
|
+
|
114
|
+
### RequireJS ###
|
115
|
+
|
116
|
+
Clone the URI.js repository or use a package manager to get URI.js into your project.
|
117
|
+
|
118
|
+
```javascript
|
119
|
+
require.config({
|
120
|
+
paths: {
|
121
|
+
URIjs: 'where-you-put-uri.js/src'
|
122
|
+
}
|
123
|
+
});
|
124
|
+
|
125
|
+
require(['URIjs/URI'], function(URI) {
|
126
|
+
console.log("URI.js and dependencies: ", URI("//amazon.co.uk").is('sld') ? 'loaded' : 'failed');
|
127
|
+
});
|
128
|
+
require(['URIjs/URITemplate'], function(URITemplate) {
|
129
|
+
console.log("URITemplate.js and dependencies: ", URITemplate._cache ? 'loaded' : 'failed');
|
130
|
+
});
|
131
|
+
```
|
132
|
+
|
133
|
+
## Minify ##
|
134
|
+
|
135
|
+
See the [build tool](http://medialize.github.com/URI.js/build.html) or use [Google Closure Compiler](http://closure-compiler.appspot.com/home):
|
136
|
+
|
137
|
+
```
|
138
|
+
// ==ClosureCompiler==
|
139
|
+
// @compilation_level SIMPLE_OPTIMIZATIONS
|
140
|
+
// @output_file_name URI.min.js
|
141
|
+
// @code_url http://medialize.github.com/URI.js/src/IPv6.js
|
142
|
+
// @code_url http://medialize.github.com/URI.js/src/punycode.js
|
143
|
+
// @code_url http://medialize.github.com/URI.js/src/SecondLevelDomains.js
|
144
|
+
// @code_url http://medialize.github.com/URI.js/src/URI.js
|
145
|
+
// @code_url http://medialize.github.com/URI.js/src/URITemplate.js
|
146
|
+
// ==/ClosureCompiler==
|
147
|
+
```
|
148
|
+
|
149
|
+
|
150
|
+
## Resources ##
|
151
|
+
|
152
|
+
Documents specifying how URLs work:
|
153
|
+
|
154
|
+
* [URL - Living Standard](http://url.spec.whatwg.org/)
|
155
|
+
* [RFC 3986 - Uniform Resource Identifier (URI): Generic Syntax](http://tools.ietf.org/html/rfc3986)
|
156
|
+
* [RFC 3987 - Internationalized Resource Identifiers (IRI)](http://tools.ietf.org/html/rfc3987)
|
157
|
+
* [Punycode: A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA)](http://tools.ietf.org/html/rfc3492)
|
158
|
+
* [application/x-www-form-urlencoded](http://www.w3.org/TR/REC-html40/interact/forms.html#form-content-type) (Query String Parameters) and [application/x-www-form-urlencoded encoding algorithm](http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#application/x-www-form-urlencoded-encoding-algorithm)
|
159
|
+
|
160
|
+
Informal stuff
|
161
|
+
|
162
|
+
* [Parsing URLs for Fun and Profit](http://tools.ietf.org/html/draft-abarth-url-01)
|
163
|
+
* [Naming URL components](http://tantek.com/2011/238/b1/many-ways-slice-url-name-pieces)
|
164
|
+
|
165
|
+
How other environments do things
|
166
|
+
|
167
|
+
* [Java URI Class](http://docs.oracle.com/javase/7/docs/api/java/net/URI.html)
|
168
|
+
* [Java Inet6Address Class](http://docs.oracle.com/javase/1.5.0/docs/api/java/net/Inet6Address.html)
|
169
|
+
* [Node.js URL API](http://nodejs.org/docs/latest/api/url.html)
|
170
|
+
|
171
|
+
[Discussion on Hacker News](https://news.ycombinator.com/item?id=3398837)
|
172
|
+
|
173
|
+
|
174
|
+
### Alternatives ###
|
175
|
+
|
176
|
+
If you don't like URI.js, you may like one of the following libraries. (If yours is not listed, drop me a line…)
|
177
|
+
|
178
|
+
#### URL Manipulation ####
|
179
|
+
|
180
|
+
* [The simple <a> URL Mutation "Hack"](http://jsfiddle.net/rodneyrehm/KkGUJ/) ([jsPerf comparison](http://jsperf.com/idl-attributes-vs-uri-js))
|
181
|
+
* [URL.js](https://github.com/ericf/urljs)
|
182
|
+
* [furl (Python)](https://github.com/gruns/furl)
|
183
|
+
* [mediawiki Uri](https://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/resources/mediawiki/mediawiki.Uri.js?view=markup) (needs mw and jQuery)
|
184
|
+
* [jurlp](https://github.com/tombonner/jurlp)
|
185
|
+
* [jsUri](http://code.google.com/p/jsuri/)
|
186
|
+
|
187
|
+
#### URL Parsers ####
|
188
|
+
|
189
|
+
* [The simple <a> URL Mutation "Hack"](http://jsfiddle.net/rodneyrehm/KkGUJ/) ([jsPerf comparison](http://jsperf.com/idl-attributes-vs-uri-js))
|
190
|
+
* [URI Parser](http://blog.stevenlevithan.com/archives/parseuri)
|
191
|
+
* [jQuery-URL-Parser](https://github.com/allmarkedup/jQuery-URL-Parser)
|
192
|
+
* [Google Closure Uri](http://closure-library.googlecode.com/svn/docs/closure_goog_uri_uri.js.html)
|
193
|
+
* [URI.js by Gary Court](https://github.com/garycourt/uri-js)
|
194
|
+
|
195
|
+
#### URI Template ####
|
196
|
+
|
197
|
+
* [uri-templates](https://github.com/marc-portier/uri-templates) by Marc Portier
|
198
|
+
* [URI Template JS](https://github.com/fxa/uritemplate-js) by Franz Antesberger
|
199
|
+
* [Temple](https://github.com/brettstimmerman/temple) by Brett Stimmerman
|
200
|
+
* ([jsperf comparison](http://jsperf.com/uri-templates/2))
|
201
|
+
|
202
|
+
#### Various ####
|
203
|
+
|
204
|
+
* [TLD.js](https://github.com/oncletom/tld.js) - second level domain names
|
205
|
+
* [Public Suffix](http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/effective_tld_names.dat?raw=1) - second level domain names
|
206
|
+
|
207
|
+
## Authors ##
|
208
|
+
|
209
|
+
* [Rodney Rehm](https://github.com/rodneyrehm)
|
210
|
+
* [Various Contributors](https://github.com/medialize/URI.js/graphs/contributors)
|
211
|
+
|
212
|
+
|
213
|
+
## Contains Code From ##
|
214
|
+
|
215
|
+
* [punycode.js](http://mths.be/punycode) - Mathias Bynens
|
216
|
+
* [IPv6.js](http://intermapper.com/support/tools/IPV6-Validator.aspx) - Rich Brown - (rewrite of the original)
|
217
|
+
|
218
|
+
|
219
|
+
## License ##
|
220
|
+
|
221
|
+
URI.js is published under the [MIT license](http://www.opensource.org/licenses/mit-license) and [GPL v3](http://opensource.org/licenses/GPL-3.0).
|
222
|
+
|
223
|
+
|
224
|
+
## Changelog ##
|
225
|
+
|
226
|
+
### 1.11.2 (August 14th 2013) ###
|
227
|
+
|
228
|
+
* fixing regression for Node.js introduced by `fixing unsafe eval by using UMD's root` - ([Issue #107](https://github.com/medialize/URI.js/issues/107))
|
229
|
+
* fixing parser to accept malformed userinfo (non-encoded email address) - ([Issue #108](https://github.com/medialize/URI.js/issues/108))
|
230
|
+
|
231
|
+
### 1.11.1 (August 13th 2013) ###
|
232
|
+
|
233
|
+
* fixing inconsistent [`.relativeTo()`](http://medialize.github.com/URI.js/docs.html#relativeto) results caused by inconsistent URI component handling - ([Issue #103](https://github.com/medialize/URI.js/issues/103))
|
234
|
+
* fixing unsafe eval by using UMD's root - ([Issue #105](https://github.com/medialize/URI.js/issues/105))
|
235
|
+
* fixing [`.segment()`](http://medialize.github.com/URI.js/docs.html#accessors-segment) to allow appending an empty element - ([Issue #106](https://github.com/medialize/URI.js/issues/106))
|
236
|
+
* fixing [`.segment()`](http://medialize.github.com/URI.js/docs.html#accessors-segment) to collapse empty elements in array notation
|
237
|
+
|
238
|
+
### 1.11.0 (August 6th 2013) ###
|
239
|
+
|
240
|
+
* adding [`.segmentCoded()`](http://medialize.github.com/URI.js/docs.html#accessors-segmentCoded) to provide en/decoding interface to `.segment()` - ([Issue #79](https://github.com/medialize/URI.js/issues/79))
|
241
|
+
* optimize [`.relativeTo()`](http://medialize.github.com/URI.js/docs.html#relativeto) results - ([Issue #78](https://github.com/medialize/URI.js/issues/78), [Issue #95](https://github.com/medialize/URI.js/issues/95))
|
242
|
+
* removing obsolete code fragments from `URI.parse()` and `relativeTo()` - ([Issue #100](https://github.com/medialize/URI.js/issues/100))
|
243
|
+
* adding setting [`URI.escapeQuerySpace`](http://medialize.github.io/URI.js/docs.html#setting-escapeQuerySpace) to control if query string should escape spaces using `+` or `%20` - ([Issue #74](https://github.com/medialize/URI.js/issues/74))
|
244
|
+
* updating [Punycode.js](https://github.com/bestiejs/punycode.js/) to version 1.2.3
|
245
|
+
* fixing internal `strictEncodeURIComponent()` to work in Firefox 3.6 - ([Issue #91](https://github.com/medialize/URI.js/issues/91))
|
246
|
+
* fixing [`.normalizePath()`](http://medialize.github.io/URI.js/docs.html#normalize-path) to properly resolve `/.` and `/.//` to `/` - ([Issue #97](https://github.com/medialize/URI.js/issues/97))
|
247
|
+
* fixing [`.path()`](http://medialize.github.io/URI.js/docs.html#accessors-pathname) to return empty string if there is no path - ([Issue #82](https://github.com/medialize/URI.js/issues/82))
|
248
|
+
* fixing crashing of `URI.decodeQuery()` on malformed input - now returns original undecoded data - ([Issue #87](https://github.com/medialize/URI.js/issues/87), [Issue #92](https://github.com/medialize/URI.js/issues/92))
|
249
|
+
* fixing build tool - ([Issue #83](https://github.com/medialize/URI.js/issues/83))
|
250
|
+
* fixing for-loop to make closure compiler happy - ([Issue #93](https://github.com/medialize/URI.js/issues/93))
|
251
|
+
* adding [`URI.noConflict()`](http://medialize.github.io/URI.js/docs.html#static-noConflict) - ([Issue #84](https://github.com/medialize/URI.js/issue/84))
|
252
|
+
* fixing whitespace in code - ([Issue #84](https://github.com/medialize/URI.js/issue/84))
|
253
|
+
* fixing [`.readable()`](http://medialize.github.com/URI.js/docs.html#readable) to decode the hash value as well - ([Issue #90](https://github.com/medialize/URI.js/issue/90))
|
254
|
+
* prevent `jquery.URI.js` from temporarily using `window.location` as the `href` of an empty attribute of a DOM element - ([Issue #94](https://github.com/medialize/URI.js/issues/94))
|
255
|
+
* fixing internal `getType()` for IE8 with undefined value - ([Issue #96](https://github.com/medialize/URI.js/issues/96))
|
256
|
+
* adding DOM elements to [URI constructor](http://medialize.github.io/URI.js/docs.html#constructor) - ([Issue #77](https://github.com/medialize/URI.js/issues/77)):
|
257
|
+
* [`<a href="...">`](http://www.w3.org/html/wg/drafts/html/master/text-level-semantics.html#the-a-element)
|
258
|
+
* [`<blockquote cite="...">`](http://www.w3.org/html/wg/drafts/html/master/grouping-content.html#the-blockquote-element)
|
259
|
+
* [`<link href="...">`](http://www.w3.org/html/wg/drafts/html/master/document-metadata.html#the-link-element)
|
260
|
+
* [`<base href="...">`](http://www.w3.org/html/wg/drafts/html/master/document-metadata.html#the-base-element)
|
261
|
+
* [`<script src="...">`](http://www.w3.org/html/wg/drafts/html/master/scripting-1.html#script)
|
262
|
+
* [`<form action="...">`](http://www.w3.org/html/wg/drafts/html/master/forms.html#the-form-element)
|
263
|
+
* [`<input type="image" src="...">`](http://www.w3.org/html/wg/drafts/html/master/forms.html#the-input-element)
|
264
|
+
* [`<img src="...">`](http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#the-img-element)
|
265
|
+
* [`<area href="...">`](http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#the-area-element)
|
266
|
+
* [`<iframe src="...">`](http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#the-iframe-element)
|
267
|
+
* [`<embed src="...">`](http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#the-embed-element)
|
268
|
+
* [`<source src="...">`](http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#the-source-element)
|
269
|
+
* [`<track src="...">`](http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#the-track-element)
|
270
|
+
* optimize `jquery.URI.js` to use new DOM element infrastructure
|
271
|
+
|
272
|
+
### 1.10.2 (April 15th 2013) ###
|
273
|
+
|
274
|
+
* fixing [`relativeTo()`](http://medialize.github.com/URI.js/docs.html#relativeto) - ([Issue #75](https://github.com/medialize/URI.js/issues/75))
|
275
|
+
* fixing [`normalizePath()`](http://medialize.github.com/URI.js/docs.html#normalize-path) to not prepend `./` to relative paths - ([Issue #76](https://github.com/medialize/URI.js/issues/76))
|
276
|
+
|
277
|
+
### 1.10.1 (April 2nd 2013) ###
|
278
|
+
|
279
|
+
* adding [`absoluteTo()`](http://medialize.github.com/URI.js/docs.html#absoluteto) to properly resolve relative scheme - ([Issue #71](https://github.com/medialize/URI.js/issues/73))
|
280
|
+
|
281
|
+
### 1.10.0 (March 16th 2013) ###
|
282
|
+
|
283
|
+
* adding [`hasQuery()`](http://medialize.github.com/URI.js/docs.html#search-has) - ([Issue #71](https://github.com/medialize/URI.js/issues/71))
|
284
|
+
* fixing URI property detection to return 'src' if none was detected (`jquery.URI.js`) - ([Issue #69](https://github.com/medialize/URI.js/issues/69))
|
285
|
+
|
286
|
+
### 1.9.1 (February 12th 2013) ###
|
287
|
+
|
288
|
+
* fixing IE9 compatibility with location import: `URI(location)`
|
289
|
+
* fixing string character access for IE7 - ([Issue #67](https://github.com/medialize/URI.js/issues/67)), ([Issue #68](https://github.com/medialize/URI.js/issues/68))
|
290
|
+
|
291
|
+
### 1.9.0 (February 11th 2013) ###
|
292
|
+
|
293
|
+
* adding [`.setQuery()`](http://medialize.github.com/URI.js/docs.html#search-set) - ([Issue #64](https://github.com/medialize/URI.js/issues/64))
|
294
|
+
* adding callback argument to [`.query()`](http://medialize.github.com/URI.js/docs.html#accessors-search)
|
295
|
+
* adding jQuery 1.9.1 to the test suite
|
296
|
+
|
297
|
+
### 1.8.3 (January 9th 2013) ###
|
298
|
+
|
299
|
+
* fixing [UglifyJS2](https://github.com/mishoo/UglifyJS2) compression - ([Issue #60](https://github.com/medialize/URI.js/issues/60), [fidian](https://github.com/fidian))
|
300
|
+
|
301
|
+
### 1.8.2 (December 27th 2012) ###
|
302
|
+
|
303
|
+
* adding `.fragmentPrefix()` to configure prefix of fragmentURI and fragmentQuery extensions - ([Issue #55](https://github.com/medialize/URI.js/issues/55))
|
304
|
+
* adding docs for [`.toString()`, `.valueOf()`](http://medialize.github.com/URI.js/docs.html#toString) and [`.href()`](http://medialize.github.com/URI.js/docs.html#href) - ([Issue #56](https://github.com/medialize/URI.js/issues/56))
|
305
|
+
* fixing [`.relativeTo()`](http://medialize.github.com/URI.js/docs.html#relativeto) for descendants - ([Issue #57](https://github.com/medialize/URI.js/issues/57))
|
306
|
+
|
307
|
+
### 1.8.1 (November 15th 2012) ###
|
308
|
+
|
309
|
+
* fixing build() to properly omit empty query and fragment ([Issue #53](https://github.com/medialize/URI.js/issues/53))
|
310
|
+
|
311
|
+
### 1.8.0 (November 13th 2012) ###
|
312
|
+
|
313
|
+
* adding [`.resource()`](http://medialize.github.com/URI.js/docs.html#accessors-resource) as compound of [path, query, fragment]
|
314
|
+
* adding jQuery 1.8.x compatibility for jQuery.URI.js (remaining backwards compatibility!)
|
315
|
+
* adding default ports for gopher, ws, wss
|
316
|
+
* adding [`.duplicateQueryParameters()`](http://medialize.github.com/URI.js/docs.html#setting-duplicateQueryParameters) to control if `key=value` duplicates have to be preserved or reduced ([Issue #51](https://github.com/medialize/URI.js/issues/51))
|
317
|
+
* updating [Punycode.js](https://github.com/bestiejs/punycode.js/) to version 1.1.1
|
318
|
+
* improving AMD/Node using [UMD returnExports](https://github.com/umdjs/umd/blob/master/returnExports.js) - ([Issue #44](https://github.com/medialize/URI.js/issues/44), [Issue #47](https://github.com/medialize/URI.js/issues/47))
|
319
|
+
* fixing `.addQuery("empty")` to properly add `?empty` - ([Issue #46](https://github.com/medialize/URI.js/issues/46))
|
320
|
+
* fixing parsing of badly formatted userinfo `http://username:pass:word@hostname`
|
321
|
+
* fixing parsing of Windows-Drive-Letter paths `file://C:/WINDOWS/foo.txt`
|
322
|
+
* fixing `URI(location)` to properly parse the URL - ([Issue #52](https://github.com/medialize/URI.js/issues/52))
|
323
|
+
* fixing type error for fragment abuse demos - ([Issue #50](https://github.com/medialize/URI.js/issues/50))
|
324
|
+
* adding documentation for various [encode/decode functions](http://medialize.github.com/URI.js/docs.html#encoding-decoding)
|
325
|
+
* adding some pointers on possible problems with URLs to [About URIs](http://medialize.github.com/URI.js/about-uris.html)
|
326
|
+
* adding tests for fragment abuse and splitting tests into separate scopes
|
327
|
+
* adding meta-data for [Jam](http://jamjs.org/) and [Bower](http://twitter.github.com/bower/)
|
328
|
+
|
329
|
+
Note: QUnit seems to be having some difficulties on IE8. While the jQuery-plugin tests fail, the plugin itself works. We're still trying to figure out what's making QUnit "lose its config state".
|
330
|
+
|
331
|
+
### 1.7.4 (October 21st 2012) ###
|
332
|
+
|
333
|
+
* fixing parsing of `/wiki/Help:IPA` - ([Issue #49](https://github.com/medialize/URI.js/issues/49))
|
334
|
+
|
335
|
+
### 1.7.3 (October 11th 2012) ###
|
336
|
+
|
337
|
+
* fixing `strictEncodeURIComponent()` to properly encode `*` to `%2A`
|
338
|
+
* fixing IE9's incorrect report of `img.href` being available - ([Issue #48](https://github.com/medialize/URI.js/issues/48))
|
339
|
+
|
340
|
+
### 1.7.2 (August 28th 2012) ###
|
341
|
+
|
342
|
+
* fixing SLD detection in [`.tld()`](http://medialize.github.com/URI.js/docs.html#accessors-tld) - `foot.se` would detect `t.se` - ([Issue #42](https://github.com/medialize/URI.js/issues/42))
|
343
|
+
* fixing [`.absoluteTo()`](http://medialize.github.com/URI.js/docs.html#absoluteto) to comply with [RFC 3986 Section 5.2.2](http://tools.ietf.org/html/rfc3986#section-5.2.2) - ([Issue #41](https://github.com/medialize/URI.js/issues/41))
|
344
|
+
* fixing `location` not being available in non-browser environments like node.js ([Issue #45](https://github.com/medialize/URI.js/issues/45) [grimen](https://github.com/grimen))
|
345
|
+
|
346
|
+
### 1.7.1 (August 14th 2012) ###
|
347
|
+
|
348
|
+
* fixing [`.segment()`](http://medialize.github.com/URI.js/docs.html#accessors-segment)'s append operation - ([Issue #39](https://github.com/medialize/URI.js/issues/39))
|
349
|
+
|
350
|
+
### 1.7.0 (August 11th 2012) ###
|
351
|
+
|
352
|
+
* fixing URI() constructor passing of `base` - ([Issue #33](https://github.com/medialize/URI.js/issues/33) [LarryBattle](https://github.com/LarryBattle))
|
353
|
+
* adding [`.segment()`](http://medialize.github.com/URI.js/docs.html#accessors-segment) accessor - ([Issue #34](https://github.com/medialize/URI.js/issues/34))
|
354
|
+
* upgrading `URI.encode()` to strict URI encoding according to RFC3986
|
355
|
+
* adding `URI.encodeReserved()` to exclude reserved characters (according to RFC3986) from being encoded
|
356
|
+
* adding [URI Template (RFC 6570)](http://tools.ietf.org/html/rfc6570) support with [`URITemplate()`](http://medialize.github.com/URI.js/uri-template.html)
|
357
|
+
|
358
|
+
### 1.6.3 (June 24th 2012) ###
|
359
|
+
|
360
|
+
* fixing [`.absoluteTo()`](http://medialize.github.com/URI.js/docs.html#absoluteto) to join two relative paths properly - ([Issue #29](https://github.com/medialize/URI.js/issues/29))
|
361
|
+
* adding [`.clone()`](http://medialize.github.com/URI.js/docs.html#clone) to copy an URI instance
|
362
|
+
|
363
|
+
### 1.6.2 (June 23rd 2012) ###
|
364
|
+
|
365
|
+
* [`.directory()`](http://medialize.github.com/URI.js/docs.html#accessors-directory) now returns empty string if there is no directory
|
366
|
+
* fixing [`.absoluteTo()`](http://medialize.github.com/URI.js/docs.html#absoluteto) to join two relative paths properly - ([Issue #29](https://github.com/medialize/URI.js/issues/29))
|
367
|
+
|
368
|
+
### 1.6.1 (May 19th 2012) ###
|
369
|
+
|
370
|
+
* fixing TypeError on [`.domain()`](http://medialize.github.com/URI.js/docs.html#accessors-domain) with dot-less hostnames - ([Issue #27](https://github.com/medialize/URI.js/issues/27))
|
371
|
+
|
372
|
+
### 1.6.0 (March 19th 2012) ###
|
373
|
+
|
374
|
+
* adding [URN](http://tools.ietf.org/html/rfc3986#section-3) (`javascript:`, `mailto:`, ...) support
|
375
|
+
* adding [`.scheme()`](http://medialize.github.com/URI.js/docs.html#accessors-protocol) as alias of [`.protocol()`](http://medialize.github.com/URI.js/docs.html#accessors-protocol)
|
376
|
+
* adding [`.userinfo()`](http://medialize.github.com/URI.js/docs.html#accessors-userinfo) to comply with terminology of [RFC 3986](http://tools.ietf.org/html/rfc3986#section-3.2.1)
|
377
|
+
* adding [jQuery Plugin](http://medialize.github.com/URI.js/jquery-uri-plugin.html) `src/jquery.URI.js`
|
378
|
+
* fixing relative scheme URLs - ([Issue #19](https://github.com/medialize/URI.js/issues/19) [byroot](https://github.com/byroot))
|
379
|
+
|
380
|
+
### 1.5.0 (February 19th 2012) ###
|
381
|
+
|
382
|
+
* adding Second Level Domain (SLD) Support - ([Issue #17](https://github.com/medialize/URI.js/issues/17))
|
383
|
+
|
384
|
+
### 1.4.3 (January 28th 2012) ###
|
385
|
+
|
386
|
+
* fixing global scope leakage - ([Issue #15](https://github.com/medialize/URI.js/issues/15) [mark-rushakoff](https://github.com/mark-rushakoff))
|
387
|
+
|
388
|
+
### 1.4.2 (January 25th 2012) ###
|
389
|
+
|
390
|
+
* improving CommonJS compatibility - ([Issue #14](https://github.com/medialize/URI.js/issues/14) [FGRibreau](https://github.com/FGRibreau))
|
391
|
+
|
392
|
+
### 1.4.1 (January 21st 2012) ###
|
393
|
+
|
394
|
+
* adding CommonJS compatibility - ([Issue #11](https://github.com/medialize/URI.js/issues/11), [Evangenieur](https://github.com/Evangenieur))
|
395
|
+
|
396
|
+
### 1.4.0 (January 12th 2012) ###
|
397
|
+
|
398
|
+
* adding [`URI.iso8859()`](http://medialize.github.com/URI.js/docs.html#static-iso8859) and [`URI.unicode()`](http://medialize.github.com/URI.js/docs.html#static-unicode) to switch base charsets - ([Issue #10](https://github.com/medialize/URI.js/issues/10), [mortenn](https://github.com/))
|
399
|
+
* adding [`.iso8859()`](http://medialize.github.com/URI.js/docs.html#iso8859) and [`.unicode()`](http://medialize.github.com/URI.js/docs.html#unicode) to convert an URI's escape encoding
|
400
|
+
|
401
|
+
### 1.3.1 (January 3rd 2011) ###
|
402
|
+
|
403
|
+
* updating Punycode.js to version 0.3.0
|
404
|
+
* adding edge-case tests ("jim")
|
405
|
+
* fixing edge-cases in .protocol(), .port(), .subdomain(), .domain(), .tld(), .filename()
|
406
|
+
* fixing parsing of hostname in [`.hostname()`](http://medialize.github.com/URI.js/docs.html#accessors-hostname)
|
407
|
+
|
408
|
+
### 1.3.0 (December 30th 2011) ###
|
409
|
+
|
410
|
+
* adding [`.subdomain()`](http://medialize.github.com/URI.js/docs.html#accessors-subdomain) convenience accessor
|
411
|
+
* improving internal deferred build handling
|
412
|
+
* fixing thrown Error for `URI("http://example.org").query(true)` - ([Issue #6](https://github.com/medialize/URI.js/issues/6))
|
413
|
+
* adding examples for extending URI.js for [fragment abuse](http://medialize.github.com/URI.js/docs.html#fragment-abuse), see src/URI.fragmentQuery.js and src/URI.fragmentURI.js - ([Issue #2](https://github.com/medialize/URI.js/issues/2))
|
414
|
+
|
415
|
+
### 1.2.0 (December 29th 2011) ###
|
416
|
+
|
417
|
+
* adding [`.equals()`](http://medialize.github.com/URI.js/docs.html#equals) for URL comparison
|
418
|
+
* fixing encoding/decoding for [`.pathname()`](http://medialize.github.com/URI.js/docs.html#accessors-pathname), [`.directory()`](http://medialize.github.com/URI.js/docs.html#accessors-directory), [`.filename()`](http://medialize.github.com/URI.js/docs.html#accessors-filename) and [`.suffix()`](http://medialize.github.com/URI.js/docs.html#accessors-suffix) according to [RFC 3986 3.3](http://tools.ietf.org/html/rfc3986#section-3.3)
|
419
|
+
* fixing escape spaces in query strings with `+` according to [application/x-www-form-urlencoded](http://www.w3.org/TR/REC-html40/interact/forms.html#form-content-type)
|
420
|
+
* fixing to allow [`URI.buildQuery()`](http://medialize.github.com/URI.js/docs.html#static-buildQuery) to build duplicate key=value combinations
|
421
|
+
* fixing [`URI(string, string)`](http://medialize.github.com/URI.js/docs.html#constructor) constructor to conform with the [specification](http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#constructor)
|
422
|
+
* adding [`.readable()`](http://medialize.github.com/URI.js/docs.html#readable) for humanly readable representation of encoded URIs
|
423
|
+
* fixing bug where @ in pathname would be parsed as part of the authority
|
424
|
+
|
425
|
+
### 1.1.0 (December 28th 2011) ###
|
426
|
+
|
427
|
+
* adding [`URI.withinString()`](http://medialize.github.com/URI.js/docs.html#static-withinString)
|
428
|
+
* adding [`.normalizeProtocol()`](http://medialize.github.com/URI.js/docs.html#normalize-protocol) to lowercase protocols
|
429
|
+
* fixing [`.normalizeHostname()`](http://medialize.github.com/URI.js/docs.html#normalize-host) to lowercase hostnames
|
430
|
+
* fixing String.substr() to be replaced by String.substring() - ([Issue #1](https://github.com/medialize/URI.js/issues/1))
|
431
|
+
* fixing parsing "?foo" to `{foo: null}` [Algorithm for collecting URL parameters](http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#collect-url-parameters)
|
432
|
+
* fixing building `{foo: null, bar: ""}` to "?foo&bar=" [Algorithm for serializing URL parameters](http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#url-parameter-serialization)
|
433
|
+
* fixing RegExp escaping
|
434
|
+
|
435
|
+
### 1.0.0 (December 27th 2011) ###
|
436
|
+
|
437
|
+
* Initial URI.js
|
@@ -0,0 +1,38 @@
|
|
1
|
+
{
|
2
|
+
"name": "URI",
|
3
|
+
"title": "jQuery URI",
|
4
|
+
"description": "URI.js - Mutating URLs",
|
5
|
+
"keywords": [
|
6
|
+
"URI",
|
7
|
+
"URIs",
|
8
|
+
"URL",
|
9
|
+
"URLs",
|
10
|
+
"URN",
|
11
|
+
"URNs",
|
12
|
+
"RFC3986",
|
13
|
+
"RFC6570",
|
14
|
+
"URI-Template",
|
15
|
+
"URL-Template",
|
16
|
+
"URI-mutation",
|
17
|
+
"URL-mutation",
|
18
|
+
"URI-manipulation",
|
19
|
+
"URL-manipulation"
|
20
|
+
],
|
21
|
+
"version": "1.11.2",
|
22
|
+
"author": {
|
23
|
+
"name": "Rodney Rehm",
|
24
|
+
"url": "http://rodneyrehm.de/en/"
|
25
|
+
},
|
26
|
+
"licenses": [
|
27
|
+
{
|
28
|
+
"type": "MIT",
|
29
|
+
"url": "https://github.com/jquery/jquery-color/blob/2.1.2/MIT-LICENSE.txt"
|
30
|
+
}
|
31
|
+
],
|
32
|
+
"bugs": "https://github.com/medialize/URI.js/issues",
|
33
|
+
"homepage": "http://medialize.github.com/URI.js/",
|
34
|
+
"docs": "http://medialize.github.com/URI.js/docs.html",
|
35
|
+
"dependencies": {
|
36
|
+
"jquery": ">=1.7"
|
37
|
+
}
|
38
|
+
}
|