visionmedia-bind 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +4 -0
- data/Manifest +1 -1
- data/README.rdoc +3 -3
- data/bin/{bind → rbind} +2 -2
- data/bind.gemspec +5 -5
- data/lib/bind/version.rb +1 -1
- metadata +5 -5
data/History.rdoc
CHANGED
data/Manifest
CHANGED
data/README.rdoc
CHANGED
@@ -12,14 +12,14 @@ based on several events. Currently only the change (mtime) event
|
|
12
12
|
is supported.
|
13
13
|
|
14
14
|
Bind to a single file, outputting its path when changed
|
15
|
-
$
|
15
|
+
$ rbind to style.css -e 'puts file.path'
|
16
16
|
|
17
17
|
Refresh Safari, and Firefox in the background to the uri specified when
|
18
18
|
style.css or reset.css are modified.
|
19
|
-
$
|
19
|
+
$ rbind refresh http://localhost/page --files style.css,reset.css --browsers Safari,Firefox
|
20
20
|
|
21
21
|
Refresh local static html when the style you are working on is modified.
|
22
|
-
$
|
22
|
+
$ rbind refresh examples/demo.html -f style.css -b Safari
|
23
23
|
|
24
24
|
== Library
|
25
25
|
|
data/bin/{bind → rbind}
RENAMED
@@ -11,7 +11,7 @@ program :description, 'Bind actions to filesystem events'
|
|
11
11
|
|
12
12
|
command :to do |c|
|
13
13
|
set_common_options c
|
14
|
-
c.syntax = '
|
14
|
+
c.syntax = 'rbind to <file> [file ...] [options] '
|
15
15
|
c.summary = 'Bind to modification of a file'
|
16
16
|
c.description = 'Bind to modification of a file or all files within a directory.'
|
17
17
|
c.example 'Bind to a single file, logging its path when changed', "bind to style.css -e 'puts file'"
|
@@ -30,7 +30,7 @@ end
|
|
30
30
|
|
31
31
|
command :refresh do |c|
|
32
32
|
set_common_options c
|
33
|
-
c.syntax = '
|
33
|
+
c.syntax = 'rbind refresh <uri> [options]'
|
34
34
|
c.summary = 'Bind to <uri>, refreshing browsers.'
|
35
35
|
c.description = 'Bind to <uri>, refreshing browsers when the files you are watching change.'
|
36
36
|
c.example = 'Bind a few css files for quick editing in multiple browsers', 'bind refresh http://localhost/page --files style.css,reset.css --browsers Safari,Firefox'
|
data/bind.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{bind}
|
5
|
-
s.version = "0.0
|
5
|
+
s.version = "0.1.0"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["TJ Holowaychuk"]
|
9
9
|
s.date = %q{2009-03-03}
|
10
|
-
s.default_executable = %q{
|
10
|
+
s.default_executable = %q{rbind}
|
11
11
|
s.description = %q{bind actions to filesystem events}
|
12
12
|
s.email = %q{tj@vision-media.ca}
|
13
|
-
s.executables = ["
|
14
|
-
s.extra_rdoc_files = ["bin/
|
15
|
-
s.files = ["bin/
|
13
|
+
s.executables = ["rbind"]
|
14
|
+
s.extra_rdoc_files = ["bin/rbind", "bind.gemspec", "lib/bind/actions/refresh_browsers.rb", "lib/bind/actions/refresh_browsers_haml.rb", "lib/bind/actions.rb", "lib/bind/command_helpers.rb", "lib/bind/listener.rb", "lib/bind/version.rb", "lib/bind.rb", "README.rdoc", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/release.rake", "tasks/spec.rake"]
|
15
|
+
s.files = ["bin/rbind", "bind.gemspec", "examples/demo.html", "examples/log_changes.rb", "examples/refresh_browsers.rb", "examples/refresh_browsers_haml.rb", "examples/style.css", "examples/style.sass", "History.rdoc", "lib/bind/actions/refresh_browsers.rb", "lib/bind/actions/refresh_browsers_haml.rb", "lib/bind/actions.rb", "lib/bind/command_helpers.rb", "lib/bind/listener.rb", "lib/bind/version.rb", "lib/bind.rb", "Manifest", "Rakefile", "README.rdoc", "spec/bind_listener_spec.rb", "spec/fixtures/style.css", "spec/spec_helper.rb", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/release.rake", "tasks/spec.rake", "Todo.rdoc"]
|
16
16
|
s.has_rdoc = true
|
17
17
|
s.homepage = %q{http://github.com/visionmedia/bind}
|
18
18
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Bind", "--main", "README.rdoc"]
|
data/lib/bind/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: visionmedia-bind
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TJ Holowaychuk
|
@@ -10,7 +10,7 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
|
12
12
|
date: 2009-03-03 00:00:00 -08:00
|
13
|
-
default_executable:
|
13
|
+
default_executable: rbind
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: visionmedia-commander
|
@@ -25,11 +25,11 @@ dependencies:
|
|
25
25
|
description: bind actions to filesystem events
|
26
26
|
email: tj@vision-media.ca
|
27
27
|
executables:
|
28
|
-
-
|
28
|
+
- rbind
|
29
29
|
extensions: []
|
30
30
|
|
31
31
|
extra_rdoc_files:
|
32
|
-
- bin/
|
32
|
+
- bin/rbind
|
33
33
|
- bind.gemspec
|
34
34
|
- lib/bind/actions/refresh_browsers.rb
|
35
35
|
- lib/bind/actions/refresh_browsers_haml.rb
|
@@ -44,7 +44,7 @@ extra_rdoc_files:
|
|
44
44
|
- tasks/release.rake
|
45
45
|
- tasks/spec.rake
|
46
46
|
files:
|
47
|
-
- bin/
|
47
|
+
- bin/rbind
|
48
48
|
- bind.gemspec
|
49
49
|
- examples/demo.html
|
50
50
|
- examples/log_changes.rb
|