rack-gist 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/rack/gist.rb +12 -16
  3. data/rack-gist.gemspec +2 -2
  4. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.4
1
+ 1.1.5
data/lib/rack/gist.rb CHANGED
@@ -108,29 +108,25 @@ module Rack
108
108
  end
109
109
 
110
110
  def jquery_link
111
- "<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'></script>\n"
111
+ "<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js'></script>\n"
112
112
  end
113
113
 
114
114
  def jquery_helper
115
115
  <<-EOJQ
116
116
  <script type='text/javascript'>
117
- //<![CDATA[
118
- $(document).ready(function() {
119
- $('.rack-gist').each(function() {
120
- var div = this;
121
- var url = '/gist.github.com/' + $(this).attr('gist-id');
122
- var file = false;
123
- if (file = $(this).attr('rack-gist-file')) {
124
- url += '/' + file;
125
- }
126
- $.ajax({
127
- url: url + '.js',
128
- dataType: 'script',
129
- cache: true
130
- });
117
+ $('.rack-gist').each(function() {
118
+ var div = this;
119
+ var url = '/gist.github.com/' + $(this).attr('gist-id');
120
+ var file = false;
121
+ if (file = $(this).attr('rack-gist-file')) {
122
+ url += '/' + file;
123
+ }
124
+ $.ajax({
125
+ url: url + '.js',
126
+ dataType: 'script',
127
+ cache: true
131
128
  });
132
129
  });
133
- //]]>
134
130
  </script>
135
131
  EOJQ
136
132
  end
data/rack-gist.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rack-gist}
8
- s.version = "1.1.4"
8
+ s.version = "1.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Daniel Huckstep"]
12
- s.date = %q{2010-11-03}
12
+ s.date = %q{2010-11-04}
13
13
  s.description = %q{Load gists in the background. KTHXBYE!}
14
14
  s.email = %q{darkhelmet@darkhelmetlive.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-gist
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 4
10
- version: 1.1.4
9
+ - 5
10
+ version: 1.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Daniel Huckstep
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-03 00:00:00 -06:00
18
+ date: 2010-11-04 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency