rack-livereload 0.3.12 → 0.3.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rack-livereload.rb +1 -1
- data/skel/livereload.html.erb +3 -1
- data/spec/rack/livereload_spec.rb +1 -1
- metadata +4 -4
data/lib/rack-livereload.rb
CHANGED
data/skel/livereload.html.erb
CHANGED
@@ -4,10 +4,12 @@
|
|
4
4
|
<% if force_swf? %>
|
5
5
|
WEB_SOCKET_FORCE_FLASH = true;
|
6
6
|
<% end %>
|
7
|
-
RACK_LIVERELOAD_PORT = <%= @port %>;
|
8
7
|
</script>
|
9
8
|
<script type="text/javascript" src="/__rack/swfobject.js"></script>
|
10
9
|
<script type="text/javascript" src="/__rack/web_socket.js"></script>
|
11
10
|
<% end %>
|
11
|
+
<script type="text/javascript">
|
12
|
+
RACK_LIVERELOAD_PORT = <%= @port %>;
|
13
|
+
</script>
|
12
14
|
<script type="text/javascript" src="<%= src %>"></script>
|
13
15
|
|
@@ -157,7 +157,7 @@ describe Rack::LiveReload do
|
|
157
157
|
|
158
158
|
it 'should add the livereload js script tag before all other script tags' do
|
159
159
|
body_dom.at_css("head")[:attribute].should == 'attribute'
|
160
|
-
body_dom.at_css("script:eq(
|
160
|
+
body_dom.at_css("script:eq(5)")[:src].should include(described_class::LIVERELOAD_JS_PATH)
|
161
161
|
body_dom.at_css("script:last-child")[:insert].should == "before"
|
162
162
|
end
|
163
163
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-livereload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.13
|
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-
|
12
|
+
date: 2013-04-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -319,7 +319,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
319
319
|
version: '0'
|
320
320
|
segments:
|
321
321
|
- 0
|
322
|
-
hash:
|
322
|
+
hash: 3462245992099149343
|
323
323
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
324
324
|
none: false
|
325
325
|
requirements:
|
@@ -328,7 +328,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
328
328
|
version: '0'
|
329
329
|
segments:
|
330
330
|
- 0
|
331
|
-
hash:
|
331
|
+
hash: 3462245992099149343
|
332
332
|
requirements: []
|
333
333
|
rubyforge_project: rack-livereload
|
334
334
|
rubygems_version: 1.8.25
|