guard-redis 0.2.1 → 0.2.2
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/README.md +8 -4
- data/lib/guard/redis/templates/Guardfile +11 -2
- data/lib/guard/redis/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -22,15 +22,19 @@ Add the guard definition to your Guardfile by running:
|
|
22
22
|
|
23
23
|
## Options
|
24
24
|
|
25
|
-
|
25
|
+
The main purpose of Guard::Redis is to ensure that redis-server is running while you're coding and testing. It can optionally monitor a set of files and reload the process (useful if you're frequently changing code that affects items in Redis).
|
26
|
+
|
27
|
+
It takes several options related to its configuration.
|
26
28
|
|
27
29
|
### List of available options
|
28
30
|
~~~~ruby
|
29
|
-
:executable => "/path/to/redis/server/executable" # Set the custom path to the
|
30
|
-
:port => 9999 # Set a custom port number the
|
31
|
+
:executable => "/path/to/redis/server/executable" # Set the custom path to the Redis server executable
|
32
|
+
:port => 9999 # Set a custom port number the Redis server is running on
|
31
33
|
:pidfile => "/var/pid/redis.pid" # Set a custom path the where the pidfile is written
|
34
|
+
:reload_on_change => false # Reload Redis if any of the specified files change. Note that you
|
35
|
+
# must specify this option in addition to passing a block to Guard.
|
32
36
|
~~~~
|
33
37
|
|
34
38
|
## Contributers
|
35
39
|
|
36
|
-
https://github.com/whazzmaster/guard-redis/graphs/contributors
|
40
|
+
https://github.com/whazzmaster/guard-redis/graphs/contributors
|
@@ -1,2 +1,11 @@
|
|
1
|
-
# Possible options are :port, :executable, and :
|
2
|
-
|
1
|
+
# Possible options are :port, :executable, :pidfile, and :reload_on_change
|
2
|
+
|
3
|
+
# Default implementation - starts Redis on standard port and stops on exit
|
4
|
+
guard 'redis'
|
5
|
+
|
6
|
+
# Use 'redis-server' as the executable, put a PID file in the local tmp directory, run on port 6379, and reload
|
7
|
+
# Redis when any Ruby file changes in the app, lib, or config directories.
|
8
|
+
#
|
9
|
+
# guard 'redis', :executable => 'redis-server', :pidfile => 'tmp/pids/redis.pid', :port => 6379, :reload_on_change => true do
|
10
|
+
# watch(/^(app|lib|config)\/.*\.rb$/)
|
11
|
+
# end
|
data/lib/guard/redis/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|