rack-livereload 0.3.15 → 0.3.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 45e7c6041deae2a58061f897768f0ae2663ddc57
4
+ data.tar.gz: 44a14af6a1f3c44ca02aff9d00ceb7f6124db258
5
+ SHA512:
6
+ metadata.gz: e69c85c54378bfdecdecf54afc9c7abb12b6ac6695c1950f3554e76d778dc5047dc00fbdb1e569be51ab074b8fc33c58aa4fa2c768f53a1cf792c03bc01a1172
7
+ data.tar.gz: e2787341175b92c70c6cc91adbd18d2da4afadf9002d13d0ce31e06176cf34683802493a844103c365fa6caffb62f45272ad25e42012b771f0080febe0c0dc20
data/.gitignore CHANGED
@@ -1,5 +1,7 @@
1
1
  *.gem
2
2
  .bundle
3
3
  Gemfile.lock
4
+ gemfiles/*.lock
4
5
  pkg/*
5
6
  *.orig
7
+ tmp/
@@ -1,11 +1,10 @@
1
1
  rvm:
2
- - 1.8.7
3
- - 1.9.2
4
2
  - 1.9.3
3
+ - 2.0.0
5
4
  branches:
6
5
  only:
7
6
  - master
8
7
  gemfile:
9
- - gemfiles/rails30.gemfile
10
- - gemfiles/rails31.gemfile
11
- - gemfiles/rails32.gemfile
8
+ - gemfiles/rails32.gemfile
9
+ - gemfiles/rails40.gemfile
10
+
data/Appraisals CHANGED
@@ -1,11 +1,7 @@
1
- appraise 'rails30' do
2
- gem 'rails', '~> 3.0.0'
1
+ appraise 'rails32' do
2
+ gem 'rails', '~> 3.2.0'
3
3
  end
4
4
 
5
- appraise 'rails31' do
6
- gem 'rails', '~> 3.1.0'
5
+ appraise 'rails40' do
6
+ gem 'rails', '~> 4.0.0'
7
7
  end
8
-
9
- appraise 'rails32' do
10
- gem 'rails', '~> 3.2.0'
11
- end
data/README.md CHANGED
@@ -1,41 +1,53 @@
1
+ # Rack::LiveReload
2
+
1
3
  <a href="http://travis-ci.org/johnbintz/rack-livereload"><img src="https://secure.travis-ci.org/johnbintz/rack-livereload.png" /></a>
2
4
  [![Code Climate](https://codeclimate.com/github/johnbintz/rack-livereload.png)](https://codeclimate.com/github/johnbintz/rack-livereload)
3
5
 
4
- Hey, you've got [LiveReload](http://www.livereload.com/) in my [Rack](http://rack.rubyforge.org/)!
6
+ Hey, you've got [LiveReload](http://livereload.com/) in my [Rack](http://rack.rubyforge.org/)!
5
7
  No need for browser extensions anymore! Just plug it in your middleware stack and go!
6
8
  Even supports browsers without WebSockets!
7
9
 
8
10
  Use this with [guard-livereload](http://github.com/guard/guard-livereload) for maximum fun!
9
11
 
10
- ## Install
12
+ ## Installation
11
13
 
12
- `gem install rack-livereload`
14
+ ### Rails
13
15
 
14
- ## Using in...
16
+ Add the gem to your Gemfile.
15
17
 
16
- ### Rails
18
+ ```ruby
19
+ gem "rack-livereload", :group => :development
20
+ ```
17
21
 
22
+ Then add the middleware to your Rails middleware stack by editing your `config/environments/development.rb`.
18
23
 
19
- In `config/environments/development.rb`:
24
+ ```ruby
25
+ # config/environments/development.rb
20
26
 
21
- ``` ruby
22
27
  MyApp::Application.configure do
23
- config.middleware.insert_after(ActionDispatch::Static, Rack::LiveReload)
24
-
25
- # ...or, change some options...
26
-
27
- config.middleware.insert_before(
28
- Rack::Lock, Rack::LiveReload,
29
- :min_delay => 500,
30
- :max_delay => 10000,
31
- :port => 56789,
32
- :host => 'myhost.cool.wow',
33
- :ignore => [ %r{dont/modify\.html$} ]
34
- )
28
+ # Add Rack::LiveReload to the bottom of the middleware stack with the default options.
29
+ config.middleware.insert_after ActionDispatch::Static, Rack::LiveReload
30
+
31
+ # ...
35
32
  end
36
33
  ```
37
34
 
38
- ### config.ru/Sinatra
35
+ #### Tweaking the options
36
+
37
+ ```ruby
38
+ # Specifying Rack::LiveReload options.
39
+ config.middleware.use(Rack::LiveReload,
40
+ :min_delay => 500, # default 1000
41
+ :max_delay => 10_000, # default 60_000
42
+ :live_reload_port => 56789, # default 35729
43
+ :host => 'myhost.cool.wow',
44
+ :ignore => [ %r{dont/modify\.html$} ]
45
+ )
46
+ ```
47
+
48
+ In addition, Rack::LiveReload's position within middleware stack can be specified by inserting it relative to an exsiting middleware via `insert_before` or `insert_after`. See the [Rails on Rack: Adding a Middleware](http://guides.rubyonrails.org/rails_on_rack.html#adding-a-middleware) section for more detail.
49
+
50
+ ### Sinatra / config.ru
39
51
 
40
52
  ``` ruby
41
53
  require 'rack-livereload'
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "http://rubygems.org"
4
4
 
5
- gem "rails", "~> 3.0.0"
5
+ gem "rails", "~> 4.0.0"
6
6
 
7
7
  gemspec :path=>"../"
@@ -1,6 +1,6 @@
1
1
  require "rack/livereload"
2
2
 
3
3
  class Rack::LiveReload
4
- VERSION = '0.3.15'
4
+ VERSION = '0.3.16'
5
5
  end
6
6
 
@@ -9,8 +9,12 @@ module Rack
9
9
 
10
10
  attr_reader :content_length, :new_body, :livereload_added
11
11
 
12
+ def protocol
13
+ @options[:protocol] || "http"
14
+ end
15
+
12
16
  def livereload_local_uri
13
- "http://localhost:#{@options[:live_reload_port]}/livereload.js"
17
+ "#{protocol}://localhost:#{@options[:live_reload_port]}/livereload.js"
14
18
  end
15
19
 
16
20
  def initialize(body, options)
@@ -45,7 +49,7 @@ module Rack
45
49
  begin
46
50
  http.send_request('GET', uri.path)
47
51
  @use_vendored = false
48
- rescue ::Timeout::Error, Errno::ECONNREFUSED, EOFError
52
+ rescue ::Timeout::Error, Errno::ECONNREFUSED, EOFError, IOError
49
53
  @use_vendored = true
50
54
  rescue => e
51
55
  $stderr.puts e.inspect
@@ -16,7 +16,7 @@ module Rack
16
16
  end
17
17
 
18
18
  def skip_processing?
19
- !html? || chunked? || inline? || ignored? || bad_browser?
19
+ !html? || chunked? || inline? || ignored? || bad_browser? || !get?
20
20
  end
21
21
 
22
22
  def chunked?
@@ -28,7 +28,8 @@ module Rack
28
28
  end
29
29
 
30
30
  def ignored?
31
- @options[:ignore] and @options[:ignore].any? { |filter| @env['PATH_INFO'][filter] }
31
+ path = @env['QUERY_STRING'].empty? ? @env['PATH_INFO'] : "#{@env['PATH_INFO']}?#{@env['QUERY_STRING']}"
32
+ @options[:ignore] and @options[:ignore].any? { |filter| path[filter] }
32
33
  end
33
34
 
34
35
  def bad_browser?
@@ -38,6 +39,10 @@ module Rack
38
39
  def html?
39
40
  @headers['Content-Type'] =~ %r{text/html}
40
41
  end
42
+
43
+ def get?
44
+ @env['REQUEST_METHOD'] == 'GET'
45
+ end
41
46
  end
42
47
  end
43
48
  end
@@ -8,6 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.authors = ["John Bintz"]
9
9
  s.email = ["john@coswellproductions.com"]
10
10
  s.homepage = ""
11
+ s.license = "MIT"
11
12
  s.summary = %q{Insert LiveReload into your app easily as Rack middleware}
12
13
  s.description = %q{Insert LiveReload into your app easily as Rack middleware}
13
14
 
@@ -32,7 +33,7 @@ Gem::Specification.new do |s|
32
33
  s.add_development_dependency "guard-cucumber"
33
34
  s.add_development_dependency "guard-livereload"
34
35
  s.add_development_dependency "webmock"
35
- s.add_development_dependency "nokogiri"
36
+ s.add_development_dependency "nokogiri", ("< 1.6" if RUBY_VERSION < "1.9") # Nokogiri >= 1.6 requires Ruby >= 1.9
36
37
  s.add_development_dependency 'appraisal', '~> 0.4'
37
38
  s.add_runtime_dependency "rack"
38
39
  end
@@ -15,7 +15,7 @@ describe Rack::LiveReload::BodyProcessor do
15
15
  end
16
16
 
17
17
  it 'responds false when no head tag' do
18
- regex.match("<header></header>").should be_false
18
+ regex.match("<header></header>").should be_falsey
19
19
  end
20
20
  end
21
21
 
@@ -14,54 +14,50 @@ describe Rack::LiveReload::ProcessingSkipAnalyzer do
14
14
 
15
15
  describe '#skip_processing?' do
16
16
  it "should skip processing" do
17
- subject.skip_processing?.should be_true
17
+ subject.skip_processing?.should be_truthy
18
18
  end
19
19
  end
20
20
 
21
- describe '#bad_browser?' do
22
- let(:user_agent) { described_class::BAD_USER_AGENTS.first.source }
23
-
24
- it { should be_bad_browser }
25
- end
26
-
27
- context 'ignored' do
21
+ describe '#ignored?' do
28
22
  let(:options) { { :ignore => [ %r{file} ] } }
29
23
 
30
- context 'not root' do
31
- let(:env) { { 'PATH_INFO' => '/this/file' } }
24
+ context 'path contains ignore pattern' do
25
+ let(:env) { { 'PATH_INFO' => '/this/file', 'QUERY_STRING' => '' } }
32
26
 
33
27
  it { should be_ignored }
34
28
  end
35
29
 
36
- context 'root' do
37
- let(:env) { { 'PATH_INFO' => '/' } }
30
+ context 'root path' do
31
+ let(:env) { { 'PATH_INFO' => '/', 'QUERY_STRING' => '' } }
38
32
 
39
33
  it { should_not be_ignored }
40
34
  end
41
35
  end
42
36
 
43
- context 'not text/html' do
44
- let(:headers) { { 'Content-Type' => 'application/pdf' } }
45
-
46
- it { should_not be_html }
47
- end
37
+ describe '#chunked?' do
38
+ context 'regular response' do
39
+ it { should_not be_chunked }
40
+ end
48
41
 
49
- context 'chunked response' do
50
- let(:headers) { { 'Transfer-Encoding' => 'chunked' } }
42
+ context 'chunked response' do
43
+ let(:headers) { { 'Transfer-Encoding' => 'chunked' } }
51
44
 
52
- it { should be_chunked }
45
+ it { should be_chunked }
46
+ end
53
47
  end
54
48
 
49
+ describe '#inline?' do
50
+ context 'inline disposition' do
51
+ let(:headers) { { 'Content-Disposition' => 'inline; filename=my_inlined_file' } }
55
52
 
56
- context 'inline disposition' do
57
- let(:headers) { { 'Content-Disposition' => 'inline; filename=my_inlined_file' } }
58
-
59
- it { should be_inline }
53
+ it { should be_inline }
54
+ end
60
55
  end
61
56
 
62
57
  describe '#ignored?' do
63
58
  let(:path_info) { 'path info' }
64
- let(:env) { { 'PATH_INFO' => path_info } }
59
+ let(:query_string) { 'query_string' }
60
+ let(:env) { { 'PATH_INFO' => path_info, 'QUERY_STRING' => query_string } }
65
61
 
66
62
  context 'no ignore set' do
67
63
  it { should_not be_ignored }
@@ -72,6 +68,70 @@ describe Rack::LiveReload::ProcessingSkipAnalyzer do
72
68
 
73
69
  it { should be_ignored }
74
70
  end
71
+
72
+ context 'ignore set including query_string' do
73
+ let(:options) { { :ignore => [ %r{#{path_info}\?#{query_string}} ] } }
74
+
75
+ it { should be_ignored }
76
+ end
77
+ end
78
+
79
+ describe '#bad_browser?' do
80
+ context 'Firefox' do
81
+ it { should_not be_bad_browser }
82
+ end
83
+
84
+ context 'BAD browser' do
85
+ let(:user_agent) { described_class::BAD_USER_AGENTS.first.source }
86
+
87
+ it { should be_bad_browser }
88
+ end
89
+ end
90
+
91
+ describe '#html?' do
92
+ context 'HTML content' do
93
+ let(:headers) { { 'Content-Type' => 'text/html' } }
94
+
95
+ it { should be_html }
96
+ end
97
+
98
+ context 'PDF content' do
99
+ let(:headers) { { 'Content-Type' => 'application/pdf' } }
100
+
101
+ it { should_not be_html }
102
+ end
103
+ end
104
+
105
+ describe '#get?' do
106
+ context 'GET request' do
107
+ let(:env) { { 'REQUEST_METHOD' => 'GET' } }
108
+
109
+ it { should be_get }
110
+ end
111
+
112
+ context 'PUT request' do
113
+ let(:env) { { 'REQUEST_METHOD' => 'PUT' } }
114
+
115
+ it { should_not be_get }
116
+ end
117
+
118
+ context 'POST request' do
119
+ let(:env) { { 'REQUEST_METHOD' => 'POST' } }
120
+
121
+ it { should_not be_get }
122
+ end
123
+
124
+ context 'DELETE request' do
125
+ let(:env) { { 'REQUEST_METHOD' => 'DELETE' } }
126
+
127
+ it { should_not be_get }
128
+ end
129
+
130
+ context 'PATCH request' do
131
+ let(:env) { { 'REQUEST_METHOD' => 'PATCH' } }
132
+
133
+ it { should_not be_get }
134
+ end
75
135
  end
76
136
  end
77
137
 
@@ -7,7 +7,9 @@ describe Rack::LiveReload do
7
7
 
8
8
  subject { middleware }
9
9
 
10
- its(:app) { should == app }
10
+ it 'should be an app' do
11
+ middleware.app.should be == app
12
+ end
11
13
 
12
14
  let(:env) { {} }
13
15
  let(:options) { {} }
@@ -20,7 +22,7 @@ describe Rack::LiveReload do
20
22
  end
21
23
 
22
24
  it 'should return the js file' do
23
- middleware._call(env).should be_true
25
+ middleware._call(env).should be_truthy
24
26
  end
25
27
  end
26
28
  end
metadata CHANGED
@@ -1,270 +1,237 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-livereload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.15
5
- prerelease:
4
+ version: 0.3.16
6
5
  platform: ruby
7
6
  authors:
8
7
  - John Bintz
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-24 00:00:00.000000000 Z
11
+ date: 2015-07-03 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: cucumber
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: httparty
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: sinatra
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: shotgun
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - ">="
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: thin
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - ">="
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - ">="
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: rake
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ! '>='
101
+ - - ">="
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ! '>='
108
+ - - ">="
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0'
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: mocha
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
- - - ! '>='
115
+ - - ">="
132
116
  - !ruby/object:Gem::Version
133
117
  version: '0'
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
- - - ! '>='
122
+ - - ">="
140
123
  - !ruby/object:Gem::Version
141
124
  version: '0'
142
125
  - !ruby/object:Gem::Dependency
143
126
  name: guard
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
- - - ! '>='
129
+ - - ">="
148
130
  - !ruby/object:Gem::Version
149
131
  version: '0'
150
132
  type: :development
151
133
  prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
- - - ! '>='
136
+ - - ">="
156
137
  - !ruby/object:Gem::Version
157
138
  version: '0'
158
139
  - !ruby/object:Gem::Dependency
159
140
  name: guard-rspec
160
141
  requirement: !ruby/object:Gem::Requirement
161
- none: false
162
142
  requirements:
163
- - - ! '>='
143
+ - - ">="
164
144
  - !ruby/object:Gem::Version
165
145
  version: '0'
166
146
  type: :development
167
147
  prerelease: false
168
148
  version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
149
  requirements:
171
- - - ! '>='
150
+ - - ">="
172
151
  - !ruby/object:Gem::Version
173
152
  version: '0'
174
153
  - !ruby/object:Gem::Dependency
175
154
  name: guard-cucumber
176
155
  requirement: !ruby/object:Gem::Requirement
177
- none: false
178
156
  requirements:
179
- - - ! '>='
157
+ - - ">="
180
158
  - !ruby/object:Gem::Version
181
159
  version: '0'
182
160
  type: :development
183
161
  prerelease: false
184
162
  version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
163
  requirements:
187
- - - ! '>='
164
+ - - ">="
188
165
  - !ruby/object:Gem::Version
189
166
  version: '0'
190
167
  - !ruby/object:Gem::Dependency
191
168
  name: guard-livereload
192
169
  requirement: !ruby/object:Gem::Requirement
193
- none: false
194
170
  requirements:
195
- - - ! '>='
171
+ - - ">="
196
172
  - !ruby/object:Gem::Version
197
173
  version: '0'
198
174
  type: :development
199
175
  prerelease: false
200
176
  version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
177
  requirements:
203
- - - ! '>='
178
+ - - ">="
204
179
  - !ruby/object:Gem::Version
205
180
  version: '0'
206
181
  - !ruby/object:Gem::Dependency
207
182
  name: webmock
208
183
  requirement: !ruby/object:Gem::Requirement
209
- none: false
210
184
  requirements:
211
- - - ! '>='
185
+ - - ">="
212
186
  - !ruby/object:Gem::Version
213
187
  version: '0'
214
188
  type: :development
215
189
  prerelease: false
216
190
  version_requirements: !ruby/object:Gem::Requirement
217
- none: false
218
191
  requirements:
219
- - - ! '>='
192
+ - - ">="
220
193
  - !ruby/object:Gem::Version
221
194
  version: '0'
222
195
  - !ruby/object:Gem::Dependency
223
196
  name: nokogiri
224
197
  requirement: !ruby/object:Gem::Requirement
225
- none: false
226
198
  requirements:
227
- - - ! '>='
199
+ - - ">="
228
200
  - !ruby/object:Gem::Version
229
201
  version: '0'
230
202
  type: :development
231
203
  prerelease: false
232
204
  version_requirements: !ruby/object:Gem::Requirement
233
- none: false
234
205
  requirements:
235
- - - ! '>='
206
+ - - ">="
236
207
  - !ruby/object:Gem::Version
237
208
  version: '0'
238
209
  - !ruby/object:Gem::Dependency
239
210
  name: appraisal
240
211
  requirement: !ruby/object:Gem::Requirement
241
- none: false
242
212
  requirements:
243
- - - ~>
213
+ - - "~>"
244
214
  - !ruby/object:Gem::Version
245
215
  version: '0.4'
246
216
  type: :development
247
217
  prerelease: false
248
218
  version_requirements: !ruby/object:Gem::Requirement
249
- none: false
250
219
  requirements:
251
- - - ~>
220
+ - - "~>"
252
221
  - !ruby/object:Gem::Version
253
222
  version: '0.4'
254
223
  - !ruby/object:Gem::Dependency
255
224
  name: rack
256
225
  requirement: !ruby/object:Gem::Requirement
257
- none: false
258
226
  requirements:
259
- - - ! '>='
227
+ - - ">="
260
228
  - !ruby/object:Gem::Version
261
229
  version: '0'
262
230
  type: :runtime
263
231
  prerelease: false
264
232
  version_requirements: !ruby/object:Gem::Requirement
265
- none: false
266
233
  requirements:
267
- - - ! '>='
234
+ - - ">="
268
235
  - !ruby/object:Gem::Version
269
236
  version: '0'
270
237
  description: Insert LiveReload into your app easily as Rack middleware
@@ -274,8 +241,8 @@ executables: []
274
241
  extensions: []
275
242
  extra_rdoc_files: []
276
243
  files:
277
- - .gitignore
278
- - .travis.yml
244
+ - ".gitignore"
245
+ - ".travis.yml"
279
246
  - Appraisals
280
247
  - Gemfile
281
248
  - Guardfile
@@ -288,12 +255,8 @@ files:
288
255
  - features/step_definitions/then/i_should_not_have_livereload_code.rb
289
256
  - features/step_definitions/when/i_make_a_request_with_headers.rb
290
257
  - features/support/env.rb
291
- - gemfiles/rails30.gemfile
292
- - gemfiles/rails30.gemfile.lock
293
- - gemfiles/rails31.gemfile
294
- - gemfiles/rails31.gemfile.lock
295
258
  - gemfiles/rails32.gemfile
296
- - gemfiles/rails32.gemfile.lock
259
+ - gemfiles/rails40.gemfile
297
260
  - index.html
298
261
  - js/WebSocketMain.swf
299
262
  - js/livereload.js
@@ -310,42 +273,27 @@ files:
310
273
  - spec/rack/livereload_spec.rb
311
274
  - spec/spec_helper.rb
312
275
  homepage: ''
313
- licenses: []
276
+ licenses:
277
+ - MIT
278
+ metadata: {}
314
279
  post_install_message:
315
280
  rdoc_options: []
316
281
  require_paths:
317
282
  - lib
318
283
  required_ruby_version: !ruby/object:Gem::Requirement
319
- none: false
320
284
  requirements:
321
- - - ! '>='
285
+ - - ">="
322
286
  - !ruby/object:Gem::Version
323
287
  version: '0'
324
- segments:
325
- - 0
326
- hash: 2709828469259091409
327
288
  required_rubygems_version: !ruby/object:Gem::Requirement
328
- none: false
329
289
  requirements:
330
- - - ! '>='
290
+ - - ">="
331
291
  - !ruby/object:Gem::Version
332
292
  version: '0'
333
- segments:
334
- - 0
335
- hash: 2709828469259091409
336
293
  requirements: []
337
294
  rubyforge_project: rack-livereload
338
- rubygems_version: 1.8.25
295
+ rubygems_version: 2.4.6
339
296
  signing_key:
340
- specification_version: 3
297
+ specification_version: 4
341
298
  summary: Insert LiveReload into your app easily as Rack middleware
342
- test_files:
343
- - features/skip_certain_browsers.feature
344
- - features/step_definitions/given/i_have_a_rack_app_with_live_reload.rb
345
- - features/step_definitions/then/i_should_not_have_livereload_code.rb
346
- - features/step_definitions/when/i_make_a_request_with_headers.rb
347
- - features/support/env.rb
348
- - spec/rack/livereload/body_processor_spec.rb
349
- - spec/rack/livereload/processing_skip_analyzer_spec.rb
350
- - spec/rack/livereload_spec.rb
351
- - spec/spec_helper.rb
299
+ test_files: []
@@ -1,157 +0,0 @@
1
- PATH
2
- remote: /Volumes/work/current/open_source/rack-livereload
3
- specs:
4
- rack-livereload (0.3.6)
5
- rack
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- abstract (1.0.0)
11
- actionmailer (3.0.12)
12
- actionpack (= 3.0.12)
13
- mail (~> 2.2.19)
14
- actionpack (3.0.12)
15
- activemodel (= 3.0.12)
16
- activesupport (= 3.0.12)
17
- builder (~> 2.1.2)
18
- erubis (~> 2.6.6)
19
- i18n (~> 0.5.0)
20
- rack (~> 1.2.5)
21
- rack-mount (~> 0.6.14)
22
- rack-test (~> 0.5.7)
23
- tzinfo (~> 0.3.23)
24
- activemodel (3.0.12)
25
- activesupport (= 3.0.12)
26
- builder (~> 2.1.2)
27
- i18n (~> 0.5.0)
28
- activerecord (3.0.12)
29
- activemodel (= 3.0.12)
30
- activesupport (= 3.0.12)
31
- arel (~> 2.0.10)
32
- tzinfo (~> 0.3.23)
33
- activeresource (3.0.12)
34
- activemodel (= 3.0.12)
35
- activesupport (= 3.0.12)
36
- activesupport (3.0.12)
37
- addressable (2.2.8)
38
- appraisal (0.4.1)
39
- bundler
40
- rake
41
- arel (2.0.10)
42
- builder (2.1.2)
43
- crack (0.3.1)
44
- cucumber (1.2.0)
45
- builder (>= 2.1.2)
46
- diff-lcs (>= 1.1.3)
47
- gherkin (~> 2.10.0)
48
- json (>= 1.4.6)
49
- daemons (1.1.8)
50
- diff-lcs (1.1.3)
51
- em-websocket (0.3.6)
52
- addressable (>= 2.1.1)
53
- eventmachine (>= 0.12.9)
54
- erubis (2.6.6)
55
- abstract (>= 1.0.0)
56
- eventmachine (0.12.10)
57
- ffi (1.0.11)
58
- gherkin (2.10.0)
59
- json (>= 1.4.6)
60
- guard (1.0.3)
61
- ffi (>= 0.5.0)
62
- thor (>= 0.14.6)
63
- guard-cucumber (0.8.0)
64
- cucumber (>= 1.2.0)
65
- guard (>= 0.8.3)
66
- guard-livereload (0.4.2)
67
- em-websocket (>= 0.2.0)
68
- guard (>= 0.10.0)
69
- multi_json (~> 1.0)
70
- guard-rspec (0.7.3)
71
- guard (>= 0.10.0)
72
- httparty (0.8.3)
73
- multi_json (~> 1.0)
74
- multi_xml
75
- i18n (0.5.0)
76
- json (1.7.3)
77
- mail (2.2.19)
78
- activesupport (>= 2.3.6)
79
- i18n (>= 0.4.0)
80
- mime-types (~> 1.16)
81
- treetop (~> 1.4.8)
82
- metaclass (0.0.1)
83
- mime-types (1.18)
84
- mocha (0.11.4)
85
- metaclass (~> 0.0.1)
86
- multi_json (1.3.6)
87
- multi_xml (0.5.1)
88
- polyglot (0.3.3)
89
- rack (1.2.5)
90
- rack-mount (0.6.14)
91
- rack (>= 1.0.0)
92
- rack-test (0.5.7)
93
- rack (>= 1.0)
94
- rails (3.0.12)
95
- actionmailer (= 3.0.12)
96
- actionpack (= 3.0.12)
97
- activerecord (= 3.0.12)
98
- activeresource (= 3.0.12)
99
- activesupport (= 3.0.12)
100
- bundler (~> 1.0)
101
- railties (= 3.0.12)
102
- railties (3.0.12)
103
- actionpack (= 3.0.12)
104
- activesupport (= 3.0.12)
105
- rake (>= 0.8.7)
106
- rdoc (~> 3.4)
107
- thor (~> 0.14.4)
108
- rake (0.9.2.2)
109
- rdoc (3.12)
110
- json (~> 1.4)
111
- rspec (2.10.0)
112
- rspec-core (~> 2.10.0)
113
- rspec-expectations (~> 2.10.0)
114
- rspec-mocks (~> 2.10.0)
115
- rspec-core (2.10.1)
116
- rspec-expectations (2.10.0)
117
- diff-lcs (~> 1.1.3)
118
- rspec-mocks (2.10.1)
119
- shotgun (0.9)
120
- rack (>= 1.0)
121
- sinatra (1.2.8)
122
- rack (~> 1.1)
123
- tilt (>= 1.2.2, < 2.0)
124
- thin (1.3.1)
125
- daemons (>= 1.0.9)
126
- eventmachine (>= 0.12.6)
127
- rack (>= 1.0.0)
128
- thor (0.14.6)
129
- tilt (1.3.3)
130
- treetop (1.4.10)
131
- polyglot
132
- polyglot (>= 0.3.1)
133
- tzinfo (0.3.33)
134
- webmock (1.8.7)
135
- addressable (>= 2.2.7)
136
- crack (>= 0.1.7)
137
-
138
- PLATFORMS
139
- ruby
140
-
141
- DEPENDENCIES
142
- appraisal (~> 0.4)
143
- cucumber
144
- guard
145
- guard-cucumber
146
- guard-livereload
147
- guard-rspec
148
- httparty
149
- mocha
150
- rack-livereload!
151
- rails (~> 3.0.0)
152
- rake
153
- rspec
154
- shotgun
155
- sinatra
156
- thin
157
- webmock
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rails", "~> 3.1.0"
6
-
7
- gemspec :path=>"../"
@@ -1,169 +0,0 @@
1
- PATH
2
- remote: /Volumes/work/current/open_source/rack-livereload
3
- specs:
4
- rack-livereload (0.3.6)
5
- rack
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- actionmailer (3.1.4)
11
- actionpack (= 3.1.4)
12
- mail (~> 2.3.0)
13
- actionpack (3.1.4)
14
- activemodel (= 3.1.4)
15
- activesupport (= 3.1.4)
16
- builder (~> 3.0.0)
17
- erubis (~> 2.7.0)
18
- i18n (~> 0.6)
19
- rack (~> 1.3.6)
20
- rack-cache (~> 1.1)
21
- rack-mount (~> 0.8.2)
22
- rack-test (~> 0.6.1)
23
- sprockets (~> 2.0.3)
24
- activemodel (3.1.4)
25
- activesupport (= 3.1.4)
26
- builder (~> 3.0.0)
27
- i18n (~> 0.6)
28
- activerecord (3.1.4)
29
- activemodel (= 3.1.4)
30
- activesupport (= 3.1.4)
31
- arel (~> 2.2.3)
32
- tzinfo (~> 0.3.29)
33
- activeresource (3.1.4)
34
- activemodel (= 3.1.4)
35
- activesupport (= 3.1.4)
36
- activesupport (3.1.4)
37
- multi_json (~> 1.0)
38
- addressable (2.2.8)
39
- appraisal (0.4.1)
40
- bundler
41
- rake
42
- arel (2.2.3)
43
- builder (3.0.0)
44
- crack (0.3.1)
45
- cucumber (1.2.0)
46
- builder (>= 2.1.2)
47
- diff-lcs (>= 1.1.3)
48
- gherkin (~> 2.10.0)
49
- json (>= 1.4.6)
50
- daemons (1.1.8)
51
- diff-lcs (1.1.3)
52
- em-websocket (0.3.6)
53
- addressable (>= 2.1.1)
54
- eventmachine (>= 0.12.9)
55
- erubis (2.7.0)
56
- eventmachine (0.12.10)
57
- ffi (1.0.11)
58
- gherkin (2.10.0)
59
- json (>= 1.4.6)
60
- guard (1.0.3)
61
- ffi (>= 0.5.0)
62
- thor (>= 0.14.6)
63
- guard-cucumber (0.8.0)
64
- cucumber (>= 1.2.0)
65
- guard (>= 0.8.3)
66
- guard-livereload (0.4.2)
67
- em-websocket (>= 0.2.0)
68
- guard (>= 0.10.0)
69
- multi_json (~> 1.0)
70
- guard-rspec (0.7.3)
71
- guard (>= 0.10.0)
72
- hike (1.2.1)
73
- httparty (0.8.3)
74
- multi_json (~> 1.0)
75
- multi_xml
76
- i18n (0.6.0)
77
- json (1.7.3)
78
- mail (2.3.3)
79
- i18n (>= 0.4.0)
80
- mime-types (~> 1.16)
81
- treetop (~> 1.4.8)
82
- metaclass (0.0.1)
83
- mime-types (1.18)
84
- mocha (0.11.4)
85
- metaclass (~> 0.0.1)
86
- multi_json (1.3.6)
87
- multi_xml (0.5.1)
88
- polyglot (0.3.3)
89
- rack (1.3.6)
90
- rack-cache (1.2)
91
- rack (>= 0.4)
92
- rack-mount (0.8.3)
93
- rack (>= 1.0.0)
94
- rack-protection (1.2.0)
95
- rack
96
- rack-ssl (1.3.2)
97
- rack
98
- rack-test (0.6.1)
99
- rack (>= 1.0)
100
- rails (3.1.4)
101
- actionmailer (= 3.1.4)
102
- actionpack (= 3.1.4)
103
- activerecord (= 3.1.4)
104
- activeresource (= 3.1.4)
105
- activesupport (= 3.1.4)
106
- bundler (~> 1.0)
107
- railties (= 3.1.4)
108
- railties (3.1.4)
109
- actionpack (= 3.1.4)
110
- activesupport (= 3.1.4)
111
- rack-ssl (~> 1.3.2)
112
- rake (>= 0.8.7)
113
- rdoc (~> 3.4)
114
- thor (~> 0.14.6)
115
- rake (0.9.2.2)
116
- rdoc (3.12)
117
- json (~> 1.4)
118
- rspec (2.10.0)
119
- rspec-core (~> 2.10.0)
120
- rspec-expectations (~> 2.10.0)
121
- rspec-mocks (~> 2.10.0)
122
- rspec-core (2.10.1)
123
- rspec-expectations (2.10.0)
124
- diff-lcs (~> 1.1.3)
125
- rspec-mocks (2.10.1)
126
- shotgun (0.9)
127
- rack (>= 1.0)
128
- sinatra (1.3.2)
129
- rack (~> 1.3, >= 1.3.6)
130
- rack-protection (~> 1.2)
131
- tilt (~> 1.3, >= 1.3.3)
132
- sprockets (2.0.4)
133
- hike (~> 1.2)
134
- rack (~> 1.0)
135
- tilt (~> 1.1, != 1.3.0)
136
- thin (1.3.1)
137
- daemons (>= 1.0.9)
138
- eventmachine (>= 0.12.6)
139
- rack (>= 1.0.0)
140
- thor (0.14.6)
141
- tilt (1.3.3)
142
- treetop (1.4.10)
143
- polyglot
144
- polyglot (>= 0.3.1)
145
- tzinfo (0.3.33)
146
- webmock (1.8.7)
147
- addressable (>= 2.2.7)
148
- crack (>= 0.1.7)
149
-
150
- PLATFORMS
151
- ruby
152
-
153
- DEPENDENCIES
154
- appraisal (~> 0.4)
155
- cucumber
156
- guard
157
- guard-cucumber
158
- guard-livereload
159
- guard-rspec
160
- httparty
161
- mocha
162
- rack-livereload!
163
- rails (~> 3.1.0)
164
- rake
165
- rspec
166
- shotgun
167
- sinatra
168
- thin
169
- webmock
@@ -1,167 +0,0 @@
1
- PATH
2
- remote: /Volumes/work/current/open_source/rack-livereload
3
- specs:
4
- rack-livereload (0.3.6)
5
- rack
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- actionmailer (3.2.3)
11
- actionpack (= 3.2.3)
12
- mail (~> 2.4.4)
13
- actionpack (3.2.3)
14
- activemodel (= 3.2.3)
15
- activesupport (= 3.2.3)
16
- builder (~> 3.0.0)
17
- erubis (~> 2.7.0)
18
- journey (~> 1.0.1)
19
- rack (~> 1.4.0)
20
- rack-cache (~> 1.2)
21
- rack-test (~> 0.6.1)
22
- sprockets (~> 2.1.2)
23
- activemodel (3.2.3)
24
- activesupport (= 3.2.3)
25
- builder (~> 3.0.0)
26
- activerecord (3.2.3)
27
- activemodel (= 3.2.3)
28
- activesupport (= 3.2.3)
29
- arel (~> 3.0.2)
30
- tzinfo (~> 0.3.29)
31
- activeresource (3.2.3)
32
- activemodel (= 3.2.3)
33
- activesupport (= 3.2.3)
34
- activesupport (3.2.3)
35
- i18n (~> 0.6)
36
- multi_json (~> 1.0)
37
- addressable (2.2.8)
38
- appraisal (0.4.1)
39
- bundler
40
- rake
41
- arel (3.0.2)
42
- builder (3.0.0)
43
- crack (0.3.1)
44
- cucumber (1.2.0)
45
- builder (>= 2.1.2)
46
- diff-lcs (>= 1.1.3)
47
- gherkin (~> 2.10.0)
48
- json (>= 1.4.6)
49
- daemons (1.1.8)
50
- diff-lcs (1.1.3)
51
- em-websocket (0.3.6)
52
- addressable (>= 2.1.1)
53
- eventmachine (>= 0.12.9)
54
- erubis (2.7.0)
55
- eventmachine (0.12.10)
56
- ffi (1.0.11)
57
- gherkin (2.10.0)
58
- json (>= 1.4.6)
59
- guard (1.0.3)
60
- ffi (>= 0.5.0)
61
- thor (>= 0.14.6)
62
- guard-cucumber (0.8.0)
63
- cucumber (>= 1.2.0)
64
- guard (>= 0.8.3)
65
- guard-livereload (0.4.2)
66
- em-websocket (>= 0.2.0)
67
- guard (>= 0.10.0)
68
- multi_json (~> 1.0)
69
- guard-rspec (0.7.3)
70
- guard (>= 0.10.0)
71
- hike (1.2.1)
72
- httparty (0.8.3)
73
- multi_json (~> 1.0)
74
- multi_xml
75
- i18n (0.6.0)
76
- journey (1.0.3)
77
- json (1.7.3)
78
- mail (2.4.4)
79
- i18n (>= 0.4.0)
80
- mime-types (~> 1.16)
81
- treetop (~> 1.4.8)
82
- metaclass (0.0.1)
83
- mime-types (1.18)
84
- mocha (0.11.4)
85
- metaclass (~> 0.0.1)
86
- multi_json (1.3.6)
87
- multi_xml (0.5.1)
88
- polyglot (0.3.3)
89
- rack (1.4.1)
90
- rack-cache (1.2)
91
- rack (>= 0.4)
92
- rack-protection (1.2.0)
93
- rack
94
- rack-ssl (1.3.2)
95
- rack
96
- rack-test (0.6.1)
97
- rack (>= 1.0)
98
- rails (3.2.3)
99
- actionmailer (= 3.2.3)
100
- actionpack (= 3.2.3)
101
- activerecord (= 3.2.3)
102
- activeresource (= 3.2.3)
103
- activesupport (= 3.2.3)
104
- bundler (~> 1.0)
105
- railties (= 3.2.3)
106
- railties (3.2.3)
107
- actionpack (= 3.2.3)
108
- activesupport (= 3.2.3)
109
- rack-ssl (~> 1.3.2)
110
- rake (>= 0.8.7)
111
- rdoc (~> 3.4)
112
- thor (~> 0.14.6)
113
- rake (0.9.2.2)
114
- rdoc (3.12)
115
- json (~> 1.4)
116
- rspec (2.10.0)
117
- rspec-core (~> 2.10.0)
118
- rspec-expectations (~> 2.10.0)
119
- rspec-mocks (~> 2.10.0)
120
- rspec-core (2.10.1)
121
- rspec-expectations (2.10.0)
122
- diff-lcs (~> 1.1.3)
123
- rspec-mocks (2.10.1)
124
- shotgun (0.9)
125
- rack (>= 1.0)
126
- sinatra (1.3.2)
127
- rack (~> 1.3, >= 1.3.6)
128
- rack-protection (~> 1.2)
129
- tilt (~> 1.3, >= 1.3.3)
130
- sprockets (2.1.3)
131
- hike (~> 1.2)
132
- rack (~> 1.0)
133
- tilt (~> 1.1, != 1.3.0)
134
- thin (1.3.1)
135
- daemons (>= 1.0.9)
136
- eventmachine (>= 0.12.6)
137
- rack (>= 1.0.0)
138
- thor (0.14.6)
139
- tilt (1.3.3)
140
- treetop (1.4.10)
141
- polyglot
142
- polyglot (>= 0.3.1)
143
- tzinfo (0.3.33)
144
- webmock (1.8.7)
145
- addressable (>= 2.2.7)
146
- crack (>= 0.1.7)
147
-
148
- PLATFORMS
149
- ruby
150
-
151
- DEPENDENCIES
152
- appraisal (~> 0.4)
153
- cucumber
154
- guard
155
- guard-cucumber
156
- guard-livereload
157
- guard-rspec
158
- httparty
159
- mocha
160
- rack-livereload!
161
- rails (~> 3.2.0)
162
- rake
163
- rspec
164
- shotgun
165
- sinatra
166
- thin
167
- webmock