rack-jquery_ui 0.0.5 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.md +9 -0
- data/README.md +10 -6
- data/lib/rack/jquery_ui.rb +7 -0
- data/lib/rack/jquery_ui/version.rb +1 -1
- metadata +2 -2
data/CHANGES.md
CHANGED
data/README.md
CHANGED
@@ -7,11 +7,11 @@
|
|
7
7
|
Master branch:
|
8
8
|
[![Build Status](https://secure.travis-ci.org/yb66/rack-jquery_ui.png?branch=master)](http://travis-ci.org/yb66/rack-jquery_ui)
|
9
9
|
|
10
|
-
|
10
|
+
### Why? ###
|
11
11
|
|
12
12
|
I get tired of copy and pasting and downloading and moving… jQuery files and script tags etc. This does it for me (along with https://github.com/yb66/rack-jquery), and keeps version management nice 'n' easy.
|
13
13
|
|
14
|
-
|
14
|
+
### Usage ###
|
15
15
|
|
16
16
|
Have a look in the examples directory, but here's a snippet.
|
17
17
|
|
@@ -30,15 +30,15 @@ It also adds in a bit of javascript that will load in a locally kept version of
|
|
30
30
|
|
31
31
|
That was easy.
|
32
32
|
|
33
|
-
|
33
|
+
### Note ###
|
34
34
|
|
35
35
|
You have to have loaded jQuery _before_ using the CDN helper, as jQuery-UI relies on it. I've already mentioned [Rack::JQuery](https://github.com/yb66/rack-jquery) which you can use to do this, or load the script however you like. Just remember that it needs to be there.
|
36
36
|
|
37
|
-
|
37
|
+
### Version numbers ###
|
38
38
|
|
39
39
|
This library uses [semver](http://semver.org/) to version the **library**. That means the library version is ***not*** an indicator of quality but a way to manage changes. The version of jQuery-UI can be found in the lib/rack/jquery_ui/version.rb file, or via the {Rack::JQueryUI::JQUERY_UI_VERSION} constant.
|
40
40
|
|
41
|
-
|
41
|
+
### Installation ###
|
42
42
|
|
43
43
|
Add this line to your application's Gemfile:
|
44
44
|
|
@@ -52,10 +52,14 @@ Or install it yourself as:
|
|
52
52
|
|
53
53
|
$ gem install rack-jquery_ui
|
54
54
|
|
55
|
-
|
55
|
+
### Contributing ###
|
56
56
|
|
57
57
|
1. Fork it
|
58
58
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
59
59
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
60
60
|
4. Push to the branch (`git push origin my-new-feature`)
|
61
61
|
5. Create new Pull Request
|
62
|
+
|
63
|
+
### Licence ###
|
64
|
+
|
65
|
+
See the LICENCE.txt file.
|
data/lib/rack/jquery_ui.rb
CHANGED
@@ -60,6 +60,13 @@ STR
|
|
60
60
|
|
61
61
|
|
62
62
|
# @param [Hash] env Rack request environment hash.
|
63
|
+
def call( env )
|
64
|
+
dup._call env
|
65
|
+
end
|
66
|
+
|
67
|
+
|
68
|
+
# For thread safety
|
69
|
+
# @param (see #call)
|
63
70
|
def call( env )
|
64
71
|
request = Rack::Request.new(env.dup)
|
65
72
|
if request.path_info == @http_path_to_jquery
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-jquery_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|