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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # CH CH CHANGES #
2
2
 
3
+ ## v1.0.0 ##
4
+
5
+ Friday the 22nd of March 2013
6
+
7
+ * Made call thread safe by duplicating `call` method.
8
+ * Public API will remain stable so bumped to v1.0.0.
9
+
10
+ ____
11
+
3
12
  ## v0.0.5 ##
4
13
 
5
14
  Friday the 7th of March 2013
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
- ## Why? ##
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
- ## Usage ##
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
- ## Note ##
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
- ## Version numbers ##
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
- ## Installation
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
- ## Contributing
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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  module Rack
2
2
  class JQueryUI
3
- VERSION = "0.0.5"
3
+ VERSION = "1.0.0"
4
4
 
5
5
  # This is here in case another rack-jquery_ui library has already been loaded.
6
6
  jquery_ui_version = "1.10.1"
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.5
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-08 00:00:00.000000000 Z
12
+ date: 2013-03-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler