rack-jquery 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md CHANGED
@@ -1,7 +1,18 @@
1
+ # CH CH CH CHANGES #
2
+
3
+ ## v1.0.1 ##
4
+
5
+ Tuesday the 5th of March 2013
6
+
7
+ * Script tags for the fallback script weren't properly formed, fixed.
8
+ * Added a bit of simple jquery to the examples to show to anyone running them that jQuery has indeed loaded.
9
+
10
+ ----
11
+
1
12
  ## v1.0.0 ##
2
13
 
3
14
  Monday the 4th of March 2013
4
15
 
5
16
  * Version bumped to 1.0.0 to mark the public interface as stable (see [semver](http://semver.org/) for more info).
6
17
 
7
- ----
18
+ ----
@@ -55,5 +55,18 @@ __END__
55
55
  = yield
56
56
 
57
57
  @@index
58
- %p
59
- "NOTHING TO SEE HERE, MOVE ALONG, MOVE ALONG"
58
+
59
+ %p.aclass
60
+ "NOTHING TO SEE HERE… "
61
+ %p.aclass
62
+ "MOVE ALONG… "
63
+ %p.aclass
64
+ "MOVE ALONG… "
65
+ #placeholder
66
+ :javascript
67
+ all_text = $('.aclass').text();
68
+ $('#placeholder').text(all_text).mouseover(function() {
69
+ $(this).css({ 'color': 'red', 'font-size': '150%' });
70
+ }).mouseout(function() {
71
+ $(this).css({ 'color': 'blue', 'font-size': '100%' });
72
+ });
@@ -20,7 +20,7 @@ module Rack
20
20
  FALLBACK = <<STR
21
21
  <script type="text/javascript">
22
22
  if (typeof jQuery == 'undefined') {
23
- document.write(unescape("%3Cscript src='/js/#{JQUERY_FILE_NAME}' type='text/javascript'%3E))
23
+ document.write(unescape("%3Cscript src='/js/#{JQUERY_FILE_NAME}' type='text/javascript'%3E%3C/script%3E"))
24
24
  };
25
25
  </script>
26
26
  STR
@@ -1,6 +1,6 @@
1
1
  module Rack
2
2
  class JQuery
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  JQUERY_VERSION = "1.9.1"
5
5
 
6
6
  # This is the release date of the jQuery file, it makes an easy "Last-Modified" date for setting the headers around caching.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-jquery
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
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-04 00:00:00.000000000 Z
12
+ date: 2013-03-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler