sinatra-auto-reload 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +2 -2
- data/README.rdoc +1 -1
- data/Rakefile +2 -2
- data/examples/app.rb +2 -2
- data/lib/{sinatra-auto-reload.rb → sinatra/auto-reload.rb} +1 -1
- data/lib/{views → sinatra/views}/auto_reload_user_js.erb +0 -0
- data/spec/spec_helper.rb +1 -1
- metadata +6 -6
data/Manifest.txt
CHANGED
data/README.rdoc
CHANGED
@@ -13,7 +13,7 @@ Sinatra Auto Reloader automatically reload your browser when you save code/html/
|
|
13
13
|
== SYNOPSIS:
|
14
14
|
|
15
15
|
1. load on your sinatra application
|
16
|
-
require 'sinatra
|
16
|
+
require 'sinatra/auto-reloader' if development?
|
17
17
|
|
18
18
|
2. Install userscript for chrome/firefox
|
19
19
|
http://hostname:port/sinatra_auto_reload.user.js
|
data/Rakefile
CHANGED
data/examples/app.rb
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
require 'rubygems'
|
3
3
|
require 'sinatra'
|
4
4
|
require 'rack'
|
5
|
-
require 'sinatra
|
6
|
-
|
5
|
+
#require 'sinatra/auto-reload' if development?
|
6
|
+
require File.dirname(__FILE__)+'/../lib/sinatra/auto-reload' if development?
|
7
7
|
|
8
8
|
|
9
9
|
get '/' do
|
@@ -15,7 +15,7 @@ module Sinatra
|
|
15
15
|
@host = env['HTTP_HOST']
|
16
16
|
@interval = 1000
|
17
17
|
@interval = params[:interval] if params[:interval]
|
18
|
-
erb open(File.dirname(__FILE__)+'/views/auto_reload_user_js.erb').read
|
18
|
+
erb open(File.dirname(__FILE__)+'/views/auto_reload_user_js.erb').read, :layout => false
|
19
19
|
end
|
20
20
|
|
21
21
|
end
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-auto-reload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- shokai
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-05-
|
18
|
+
date: 2010-05-24 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -67,8 +67,8 @@ files:
|
|
67
67
|
- PostInstall.txt
|
68
68
|
- README.rdoc
|
69
69
|
- Rakefile
|
70
|
-
- lib/sinatra
|
71
|
-
- lib/views/auto_reload_user_js.erb
|
70
|
+
- lib/sinatra/auto-reload.rb
|
71
|
+
- lib/sinatra/views/auto_reload_user_js.erb
|
72
72
|
- script/console
|
73
73
|
- script/destroy
|
74
74
|
- script/generate
|