rack-jquery_ui-themes 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # CH CH CHANGES #
2
2
 
3
- ## v0.0.2 ##
3
+ ## v0.1.0 ##
4
+
5
+ Friday the 22nd of March 2013
6
+
7
+ * Made call thread safe by duplicating `call` method.
8
+
9
+ ----
10
+
11
+ ## v0.0.3 ##
4
12
 
5
13
  Friday the 8th of March 2013
6
14
 
data/README.md CHANGED
@@ -7,22 +7,22 @@
7
7
  Master branch:
8
8
  [![Build Status](https://travis-ci.org/yb66/rack-jquery_ui-themes.png?branch=master)](https://travis-ci.org/yb66/rack-jquery_ui-themes)
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
- ## See also ##
14
+ ### See also ###
15
15
 
16
16
  [Rack::JQuery](https://github.com/yb66/rack-jquery)
17
17
  [Rack::JQueryUI](https://github.com/yb66/rack-jquery_ui)
18
18
 
19
19
  They're not dependencies, but if you're going to use this then I bet you'll be interested in using them.
20
20
 
21
- ## What's with the plural ###
21
+ ### What's with the plural ###
22
22
 
23
23
  Rack::JQueryUI::Theme doesn't sound right to me, as it's accessing the _Themes_ service/files. I doubt you'll ever instantiate a instance of the class yourself, and the computer doesn't mind, so let it go.
24
24
 
25
- ## Usage ##
25
+ ### Usage ###
26
26
 
27
27
  Have a look in the examples directory, but here's a snippet.
28
28
 
@@ -42,15 +42,15 @@ It also adds in a bit of javascript that will load in a locally kept version of
42
42
 
43
43
  That was easy.
44
44
 
45
- ## Note ##
45
+ ### Note ###
46
46
 
47
47
  You have to have loaded jQuery _before_ using the CDN helper, as Rack::jQueryUI::Themes 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.
48
48
 
49
- ## Version numbers ##
49
+ ### Version numbers ###
50
50
 
51
51
  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/themes/version.rb file, or via the {Rack::JQueryUI::JQUERY_UI_VERSION} constant.
52
52
 
53
- ## Installation
53
+ ### Installation ###
54
54
 
55
55
  Add this line to your application's Gemfile:
56
56
 
@@ -64,10 +64,14 @@ Or install it yourself as:
64
64
 
65
65
  $ gem install rack-jquery_ui-themes
66
66
 
67
- ## Contributing
67
+ ### Contributing ###
68
68
 
69
69
  1. Fork it
70
70
  2. Create your feature branch (`git checkout -b my-new-feature`)
71
71
  3. Commit your changes (`git commit -am 'Add some feature'`)
72
72
  4. Push to the branch (`git push origin my-new-feature`)
73
73
  5. Create new Pull Request
74
+
75
+ ### Licence ###
76
+
77
+ See the LICENCE.txt file.
@@ -17,7 +17,7 @@ module Rack
17
17
  end
18
18
 
19
19
  class Themes
20
- VERSION = "0.0.3"
20
+ VERSION = "0.1.0"
21
21
  end
22
22
  end
23
23
  end
@@ -106,9 +106,16 @@ STR
106
106
  Rack::Mime.mime_type(::File.extname(f), "text/css" ).start_with? "image"
107
107
  }
108
108
  end
109
+
110
+
111
+ # @param [Hash] env Rack request environment hash.
112
+ def call( env )
113
+ dup._call env
114
+ end
109
115
 
110
116
 
111
- # @param [Hash] env Rack request environment hash.
117
+ # For thread safety
118
+ # @param (see #call)
112
119
  def call( env )
113
120
  request = Rack::Request.new(env.dup)
114
121
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-jquery_ui-themes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.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