Commit Graph

59 Commits

Author SHA1 Message Date
John Bintz 493aa6255d Merge pull request #53 from samcon/master
Set the protocol of the livereload source
2015-07-03 09:20:53 -04:00
samcon 27063b7d20 Set the protocol of the livereload source
This will allow a user to serve livereload from HTTPS
(Also requires using the :source => :livereload option)
2014-03-21 01:26:44 +02:00
John Chow d67df1bb77 Catch an IOError that happens on Ruby 2.0
Would get a #<IOError: closed stream> error on Ruby 2.0
2014-03-01 13:12:48 -08:00
Stefan Wrobel 117f251ff7 Skip processing for non-GET requests 2013-08-20 13:55:47 -07:00
John Bintz 81fb8384cb bump version 2013-05-24 08:32:50 -04:00
Ben Woosley 1891dbb920 Reference the top-level Timeout, to avoid conflicts with Rack::Timeout
Otherwise we get: #<NameError: uninitialized constant Rack::Timeout::Error>
2013-05-23 21:30:11 -07:00
John Bintz e43835bdbf bump version for release 2013-05-15 10:58:30 -04:00
Theo Bittencourt d665d6e3f0 don't skip processing when response's status code isn't 200 2013-05-13 13:43:23 -03:00
John Bintz 176ce40003 a little more code shuffling to clean up the body processor class a bit 2013-05-06 09:36:15 -04:00
John Bintz 8cd7e10604 skipping the testing of a method bit me. d'oh 2013-04-26 10:47:41 -04:00
John Bintz 730a595be2 big refactoring 2013-04-23 16:28:23 -04:00
ssendev 698ae43650 pass images through 2013-04-21 15:48:32 +02:00
Adam McCrea 45d5868aa6 Handle Rails apps running on relative root 2013-04-02 10:13:37 -04:00
John Bintz 1a6424b2bf bump version 2013-04-01 09:17:03 -04:00
John Bintz 7c432f4438 bump version 2013-03-19 15:17:11 -04:00
Peter Fern 6b93954231 While we're at not messing with stuff, don't mess with inlined content 2013-03-19 17:32:46 +11:00
Peter Fern 75c50f7e92 Don't force iterating chunked (streamed) responses 2013-03-19 17:11:45 +11:00
aptx4869 c9e096f77a escap & to &amp; 2013-03-17 08:57:39 +08:00
David Miani 206ce04e77 Adds the live_reload_port option.
This allows the javascript to work with a non default value for the
livereload port (specified with the port option in the guard command).

For example, in config/environments/development.rb in rails:
  config.middleware.insert_after(ActionDispatch::Static, Rack::LiveReload, :live_reload_port => 22351)
works with the following in the Guardfile:
  guard 'livereload', port: '22351' do
    ...
  end

This allows multiple guard livereload processes to operate at the same time without
conflicts.
2013-02-03 22:46:38 +11:00
John Bintz 85855cb25a don't try to close text/event-stream bodies, should fix #24 2013-01-24 10:22:54 -05:00
John Bintz fbbea710d7 bump version, prep for release 2012-12-17 13:45:18 -05:00
Matthew Lehner 706d158328 extract head_tag_regex to constant 2012-12-13 16:27:06 -08:00
Matthew Lehner cc1ad71a62 don't insert into <header> tags. 2012-12-13 14:41:30 -08:00
John Bintz ebeb331f0f bump version and update readme for new behavior 2012-12-05 09:04:42 -05:00
John Bintz 394af20be2 put the javascript at the start of the head block 2012-12-04 14:12:53 -05:00
John Bintz 7a6a51cb62 potential fix for turbolinks load order problem 2012-12-03 14:00:45 -05:00
John Bintz 2988401306 bump version 2012-09-18 17:23:39 -04:00
John Bintz e998fab430 make sure things inserted into the body are actually strings 2012-09-18 17:22:19 -04:00
John Bintz 8c83b90015 Merge branch 'master' of github.com:johnbintz/rack-livereload 2012-07-10 17:51:10 -04:00
John Bintz 0d82995d8c update livereload.js 2012-07-10 17:50:52 -04:00
Artem Kramarenko f235eab442 no sense to add anything that is not 200. 2012-05-30 18:45:36 +03:00
John Bintz e59329ed38 bump version 2012-03-06 14:38:50 -05:00
John Bintz 82279dee94 try another change 2012-03-05 14:14:41 -05:00
John Bintz 0a30019d22 try closing the original body, see if that helps 2012-03-05 13:48:03 -05:00
John Bintz 075b92e7f4 duplicate the middleware to potentially solve threading conflicts 2012-03-04 13:25:45 -05:00
John Bintz 2e9828645a bump version 2012-03-03 09:59:44 -05:00
John Bintz 7733963658 merge 2012-03-02 09:27:12 -05:00
John Bintz 00a9eb9062 ensure you're actually working with real lines, not assuming the return value is an array you can mutate, fixes #6 2012-03-02 09:25:48 -05:00
John Bintz 4caf4d9263 bump version for release 2012-01-24 08:55:43 -05:00
Enric Lluelles 90b9a75b35 Check that the content-type header is there first 2012-01-23 20:51:59 +01:00
Enric Lluelles 6501c039b2 Content-Length is supposed to be bytes, not chars 2012-01-23 19:42:25 +01:00
John Bintz e223e1ddbf a little cleanup, add cucumber, add support for ignoring particular browsers 2012-01-03 08:58:51 -05:00
John Bintz 67d07df724 bump version 2011-12-02 06:58:46 -05:00
John Bintz 5166ae2c26 fix bug when path was nil 2011-12-02 06:58:06 -05:00
John Bintz 090e2c0811 bump version 2011-12-01 09:49:17 -05:00
John Bintz 20ef5cc1f3 add the ability to ignore certain urls that may match 2011-12-01 07:25:02 -05:00
John Bintz aaa701bac9 bump version 2011-11-29 14:05:07 -05:00
John Bintz d4c8e8cf96 ensure some sort of host for rack::mockrequests that don't provide one 2011-11-28 10:42:39 -05:00
John Bintz 47faab2457 add support for web-sockets-js 2011-11-17 15:44:48 -05:00
John Bintz cc745deaa0 fix an issue with catching network traffic errors 2011-11-14 09:10:40 -05:00