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.
@@ -3,8 +3,8 @@ Manifest.txt
3
3
  PostInstall.txt
4
4
  README.rdoc
5
5
  Rakefile
6
- lib/sinatra-auto-reload.rb
7
- lib/views/auto_reload_user_js.erb
6
+ lib/sinatra/auto-reload.rb
7
+ lib/sinatra/views/auto_reload_user_js.erb
8
8
  script/console
9
9
  script/destroy
10
10
  script/generate
@@ -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-auto-reloader' if development?
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
@@ -2,9 +2,9 @@ require 'rubygems'
2
2
  gem 'hoe', '>= 2.1.0'
3
3
  require 'hoe'
4
4
  require 'fileutils'
5
- require './lib/sinatra-auto-reload'
5
+ require './lib/sinatra/auto-reload'
6
6
 
7
- VERSION = '0.0.2'
7
+ VERSION = '0.0.3'
8
8
 
9
9
  Hoe.plugin :newgem
10
10
  # Hoe.plugin :website
@@ -2,8 +2,8 @@
2
2
  require 'rubygems'
3
3
  require 'sinatra'
4
4
  require 'rack'
5
- require 'sinatra-auto-reload' if development?
6
- #require '../lib/sinatra-auto-reload' if development?
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
@@ -7,4 +7,4 @@ rescue LoadError
7
7
  end
8
8
 
9
9
  $:.unshift(File.dirname(__FILE__) + '/../lib')
10
- require 'sinatra-auto-reload'
10
+ require 'sinatra/auto-reload'
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: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
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-23 00:00:00 +09:00
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-auto-reload.rb
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