visionmedia-bind 0.2.5 → 0.2.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.
- data/History.rdoc +4 -0
- data/README.rdoc +7 -1
- data/Todo.rdoc +1 -0
- data/bin/rbind +1 -1
- data/bind.gemspec +2 -2
- data/lib/bind/version.rb +1 -1
- metadata +2 -2
data/History.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -14,9 +14,15 @@ is supported.
|
|
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
|
+
Bind to glob
|
18
|
+
$ rbind to stylesheets/*.css -e 'puts file.path'
|
19
|
+
|
20
|
+
Bind to ruby glob (allows recursion) note the quotes
|
21
|
+
$ rbind to 'stylesheets/**/*.css' -e 'puts file.path'
|
22
|
+
|
17
23
|
Refresh Safari, and Firefox in the background to the uri specified when
|
18
24
|
style.css or reset.css are modified.
|
19
|
-
$ rbind refresh http://localhost/page --
|
25
|
+
$ rbind refresh http://localhost/page --paths style.css,reset.css --browsers Safari,Firefox
|
20
26
|
|
21
27
|
Refresh local static html when the style you are working on is modified.
|
22
28
|
$ rbind refresh examples/demo.html -f style.css -b Safari
|
data/Todo.rdoc
CHANGED
data/bin/rbind
CHANGED
@@ -16,7 +16,7 @@ command :to do |c|
|
|
16
16
|
c.description = 'Bind to modification of a file or files within a directory.'
|
17
17
|
c.example 'Bind to a single file, logging its path when changed', "rbind to style.css -e 'puts file.path'"
|
18
18
|
c.example 'Bind to a file, and a directory of files', "rbind to stylesheets style.css -e 'puts file.path'"
|
19
|
-
c.example 'Run specs when ruby files are modified', "rbind to lib/**/*.rb -e 'system \"rake spec\"'"
|
19
|
+
c.example 'Run specs when ruby files are modified', "rbind to 'lib/**/*.rb' -e 'system \"rake spec\"'"
|
20
20
|
c.when_called do |args, options|
|
21
21
|
abort 'invalid option. --eval switch is required in order to perform any action on the bound file(s)' unless options.eval
|
22
22
|
common_options options
|
data/bind.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{bind}
|
5
|
-
s.version = "0.2.
|
5
|
+
s.version = "0.2.6"
|
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
|
-
s.date = %q{2009-03-
|
9
|
+
s.date = %q{2009-03-25}
|
10
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}
|
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.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TJ Holowaychuk
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-
|
12
|
+
date: 2009-03-25 00:00:00 -07:00
|
13
13
|
default_executable: rbind
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|