guard-livereload 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2011 Thibaud Guillaume-Gentil
1
+ Copyright (c) 2010-2012 Thibaud Guillaume-Gentil
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md ADDED
@@ -0,0 +1,98 @@
1
+ # Guard::LiveReload [![Build Status](https://secure.travis-ci.org/guard/guard-livereload.png)](http://travis-ci.org/guard/guard-livereload)
2
+
3
+ LiveReload guard allows to automatically reload your browser when 'view' files are modified.
4
+
5
+ ## Install
6
+
7
+ Please be sure to have [Guard](https://github.com/guard/guard) installed before continue.
8
+
9
+ Install the gem:
10
+
11
+ ``` bash
12
+ $ gem install guard-livereload
13
+ ```
14
+
15
+ Add it to your Gemfile (inside development group):
16
+
17
+ ``` ruby
18
+ group :development do
19
+ gem 'guard-livereload'
20
+ end
21
+ ```
22
+
23
+ Add guard definition to your Guardfile by running this command:
24
+
25
+ ``` bash
26
+ $ guard init livereload
27
+ ```
28
+
29
+ Use [rack-livereload](https://github.com/johnbintz/rack-livereload) or install [LiveReload Safari/Chrome extension](http://github.com/mockko/livereload#readme)
30
+
31
+ ### Optional
32
+
33
+ To optimize communication with the LiveReload extension, install the yajl-ruby to increase JSON performance:
34
+
35
+ ``` bash
36
+ $ gem install yajl-ruby
37
+ ```
38
+
39
+ ## Usage
40
+
41
+ Please read [Guard usage doc](http://github.com/guard/guard#readme) and [rack-livereload how it works readme section](https://github.com/johnbintz/rack-livereload#readme) or [LiveReload extension usage doc](http://github.com/mockko/livereload#readme)
42
+
43
+ ## Guardfile
44
+
45
+ You can adapt your 'view' files like you want.
46
+ Please read [Guard doc](http://github.com/guard/guard#readme) for more info about Guardfile DSL.
47
+
48
+ ``` ruby
49
+ guard 'livereload' do
50
+ watch(%r{app/.+\.(erb|haml)})
51
+ watch(%r{app/helpers/.+\.rb})
52
+ watch(%r{(public/|app/assets).+\.(css|js|html)})
53
+ watch(%r{(app/assets/.+\.css)\.s[ac]ss}) { |m| m[1] }
54
+ watch(%r{(app/assets/.+\.js)\.coffee}) { |m| m[1] }
55
+ watch(%r{config/locales/.+\.yml})
56
+ end
57
+ ```
58
+
59
+ == Options
60
+
61
+ LiveReload guard has 6 options that you can set like this:
62
+
63
+ ``` ruby
64
+ guard 'livereload', :api_version => '1.4', :port => '35728' do
65
+ # ...
66
+ end
67
+ ```
68
+
69
+ Available options:
70
+
71
+ ``` ruby
72
+ :api_version => '1.4' # default '1.6'
73
+ :host => '127.3.3.1' # default '0.0.0.0'
74
+ :port => '12345' # default '35729'
75
+ :apply_js_live => false # default true
76
+ :apply_css_live => false # default true
77
+ :grace_period => 0.5 # default 0 (seconds)
78
+ ```
79
+
80
+ See [LiveReload configuration doc](http://github.com/mockko/livereload#readme) for more info about those options.
81
+
82
+ ## Development
83
+
84
+ * Source hosted at [GitHub](https://github.com/guard/guard-livereload).
85
+ * Report issues and feature requests to [GitHub Issues](https://github.com/guard/guard-livereload/issues).
86
+
87
+ Pull requests are very welcome! Please try to follow these simple "rules", though:
88
+
89
+ * Please create a topic branch for every separate change you make.
90
+ * Make sure your patches are well tested.
91
+ * Update the README (if applicable).
92
+ * Please **do not change** the version number.
93
+
94
+ For questions please join us on our [Google group](http://groups.google.com/group/guard-dev) or on `#guard` (irc.freenode.net).
95
+
96
+ ## Author
97
+
98
+ [Thibaud Guillaume-Gentil](https://github.com/thibaudgg)
@@ -3,7 +3,7 @@ require 'guard/guard'
3
3
 
4
4
  module Guard
5
5
  class LiveReload < Guard
6
-
6
+ attr_accessor :reactor
7
7
  autoload :Reactor, 'guard/livereload/reactor'
8
8
 
9
9
  # =================
@@ -35,11 +35,5 @@ module Guard
35
35
  reactor.reload_browser(paths)
36
36
  end
37
37
 
38
- private
39
-
40
- def reactor
41
- @reactor ||= Reactor.new(@options)
42
- end
43
-
44
38
  end
45
39
  end
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module LiveReloadVersion
3
- VERSION = "0.3.1"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-livereload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-01 00:00:00.000000000Z
12
+ date: 2012-01-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
16
- requirement: &70360508178420 !ruby/object:Gem::Requirement
16
+ requirement: &70145096181280 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.4.0
21
+ version: 0.10.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70360508178420
24
+ version_requirements: *70145096181280
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: em-websocket
27
- requirement: &70360508173240 !ruby/object:Gem::Requirement
27
+ requirement: &70145096180600 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.2.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70360508173240
35
+ version_requirements: *70145096180600
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: multi_json
38
- requirement: &70360508172780 !ruby/object:Gem::Requirement
38
+ requirement: &70145096179900 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.0.3
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70360508172780
46
+ version_requirements: *70145096179900
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
- requirement: &70360508172320 !ruby/object:Gem::Requirement
49
+ requirement: &70145096179140 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '1.0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70360508172320
57
+ version_requirements: *70145096179140
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec
60
- requirement: &70360508171700 !ruby/object:Gem::Requirement
60
+ requirement: &70145096178200 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '2.5'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70360508171700
68
+ version_requirements: *70145096178200
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: guard-rspec
71
- requirement: &70360508170860 !ruby/object:Gem::Requirement
71
+ requirement: &70145096176980 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0.2'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70360508170860
79
+ version_requirements: *70145096176980
80
80
  description: Guard::LiveReload automatically reloads your browser when 'view' files
81
81
  are modified.
82
82
  email:
@@ -90,7 +90,7 @@ files:
90
90
  - lib/guard/livereload/version.rb
91
91
  - lib/guard/livereload.rb
92
92
  - LICENSE
93
- - README.rdoc
93
+ - README.md
94
94
  homepage: http://rubygems.org/gems/guard-livereload
95
95
  licenses: []
96
96
  post_install_message:
@@ -111,8 +111,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  version: 1.3.6
112
112
  requirements: []
113
113
  rubyforge_project: guard-livereload
114
- rubygems_version: 1.8.10
114
+ rubygems_version: 1.8.12
115
115
  signing_key:
116
116
  specification_version: 3
117
117
  summary: Guard gem for livereload
118
118
  test_files: []
119
+ has_rdoc:
data/README.rdoc DELETED
@@ -1,75 +0,0 @@
1
- = Guard::LiveReload
2
- http://travis-ci.org/guard/guard-livereload.png
3
-
4
- LiveReload guard allows to automatically reload your browser when 'view' files are modified.
5
-
6
- == Install
7
-
8
- Please be sure to have {Guard}[http://github.com/guard/guard] installed before continue.
9
-
10
- Install the gem:
11
-
12
- gem install guard-livereload
13
-
14
- Add it to your Gemfile (inside development group):
15
-
16
- gem 'guard-livereload'
17
-
18
- Add guard definition to your Guardfile by running this command:
19
-
20
- guard init livereload
21
-
22
- Install {LiveReload Safari/Chrome extension}[http://github.com/mockko/livereload#readme]
23
-
24
- To optimize communication with the LiveReload extension, install the yajl-ruby to increase JSON performance:
25
-
26
- gem install yajl-ruby
27
-
28
- == Usage
29
-
30
- Please read {Guard usage doc}[http://github.com/guard/guard#readme] and {LiveReload extension usage doc}[http://github.com/mockko/livereload#readme]
31
-
32
- == Guardfile
33
-
34
- You can adapt your 'view' files like you want.
35
- Please read {Guard doc}[http://github.com/guard/guard#readme] for more info about Guardfile DSL.
36
-
37
- guard 'livereload' do
38
- watch(%r{app/.+\.(erb|haml)})
39
- watch(%r{app/helpers/.+\.rb})
40
- watch(%r{(public/|app/assets).+\.(css|js|html)})
41
- watch(%r{(app/assets/.+\.css)\.scss}) { |m| m[1] }
42
- watch(%r{(app/assets/.+\.js)\.coffee}) { |m| m[1] }
43
- watch(%r{config/locales/.+\.yml})
44
- end
45
-
46
- == Options
47
-
48
- LiveReload guard has 6 options that you can set like this:
49
-
50
- guard 'livereload', :api_version => '1.4', :port => '35728' do
51
- ...
52
- end
53
-
54
- Available options:
55
-
56
- :api_version => '1.4' # default '1.6'
57
- :host => '127.3.3.1' # default '0.0.0.0'
58
- :port => '12345' # default '35729'
59
- :apply_js_live => false # default true
60
- :apply_css_live => false # default true
61
- :grace_period => 0.5 # default 0 (seconds)
62
-
63
- See {LiveReload configuration doc}[http://github.com/mockko/livereload#readme] for more info about those options.
64
-
65
- == Development
66
-
67
- - Source hosted at {GitHub}[http://github.com/guard/guard-livereload]
68
- - Report issues/Questions/Feature requests on {GitHub Issues}[http://github.com/guard/guard-livereload/issues]
69
-
70
- Pull requests are very welcome! Make sure your patches are well tested. Please create a topic branch for every separate change
71
- you make.
72
-
73
- == Authors
74
-
75
- {Thibaud Guillaume-Gentil}[http://github.com/thibaudgg]