sinatra-auto-reload 0.0.5 → 0.0.6

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.
@@ -1,3 +1,7 @@
1
+ === 0.0.6
2
+
3
+ * remove console.log on userscript
4
+
1
5
  === 0.0.5
2
6
 
3
7
  * add original userscript info
@@ -12,23 +12,24 @@ Sinatra Auto Reloader automatically reload your browser when you save code/html/
12
12
 
13
13
  == SYNOPSIS:
14
14
 
15
- * load on your sinatra application
15
+ ===load on your sinatra application
16
16
  require 'sinatra/auto-reloader' if development?
17
17
 
18
- * Install userscript for chrome/firefox
18
+ ===Install userscript for chrome/firefox
19
19
  http://hostname:port/sinatra_auto_reload.user.js
20
20
 
21
21
  It checks last modified time (http://hostname:port/sinatra_auto_reload)
22
22
  every second.
23
23
 
24
- * ignore files
24
+ ===ignore files
25
25
  define on your application
26
26
 
27
27
  def auto_reload_ignores
28
- [/db.*/, /config.yaml/]
28
+ [/db.*/, /config.yaml/, /log.*/, /tmp.*/]
29
29
  end
30
30
 
31
- * see examples/app.rb
31
+ ===examples
32
+ see examples/app.rb
32
33
 
33
34
  == REQUIREMENTS:
34
35
 
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'hoe'
4
4
  require 'fileutils'
5
5
  require './lib/sinatra/auto-reload'
6
6
 
7
- VERSION = '0.0.5'
7
+ VERSION = '0.0.6'
8
8
 
9
9
  Hoe.plugin :newgem
10
10
  # Hoe.plugin :website
@@ -4,7 +4,7 @@
4
4
  // @namespace http://shokai.org/
5
5
  // @description reload Firefox/Chrome when <%= @host %> was modified
6
6
  // @include http://<%=@host%>/*
7
- // @version 0.0.1
7
+ // @version 0.0.2
8
8
  // @author shokai (Sho Hashimoto)
9
9
  // ==/UserScript==
10
10
 
@@ -14,7 +14,6 @@ setInterval(function(){
14
14
  var req = new XMLHttpRequest;
15
15
  req.open("GET", "http://<%=@host%>/sinatra_auto_reload", true);
16
16
  req.onload = function(){
17
- console.log(req.responseText);
18
17
  (self.old && req.responseText != self.old) && location.reload(true);
19
18
  self.old = req.responseText;
20
19
  };
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: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - shokai