redis_message_capsule 0.8.0 → 0.8.1

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 CHANGED
@@ -6,8 +6,9 @@ Send messages between node or rails apps asynchronously (via redis).
6
6
 
7
7
  ## Installation (with npm for node) (as a gem for ruby)
8
8
 
9
- $ npm install redis_message_capsule
9
+ $ npm install redis-message-capsule
10
10
  $ gem install redis_message_capsule
11
+ Note that the javascript version is named with dashes, ruby with underscore
11
12
 
12
13
  ## Usage
13
14
  RedisMessageCapsule is used in the same way for both node and ruby (just the syntax is different, naturally).
@@ -38,9 +39,9 @@ The purpose of RedisMessageCapsule is to enable separate apps to communicate wit
38
39
  So, normally, one app would do the sending and another would listen for the message.
39
40
  However, nothing restricts the same app from doing the sending as well as receiving its own message.
40
41
 
42
+ ## Advanced Usage
41
43
  This is not your typical pub/sub model as messages are not broadcast to all apps that are listening on a channel.
42
44
 
43
- ## Advanced Usage
44
45
  If multiple apps are listening on a channel, only one will actually receive the message.
45
46
  Each app can register multiple handlers for a channel, but only one app will actually get the message for processing.
46
47
 
@@ -145,10 +146,10 @@ If 2 apps are not sending messages to each other:
145
146
  In node use one of the following to set your environment
146
147
 
147
148
  process.env.NODE_ENV = 'test' // redisDB.select 9
148
- process.env.NODE_ENV = 'development' // redisDB.select 8
149
+ process.env.NODE_ENV = 'development' // redisDB.select 8 * Default
149
150
  process.env.NODE_ENV = 'production' // redisDB.select 7
150
151
 
151
- Alternatively, you can override these defaults for the redis db when materializing a capsule:
152
+ Alternatively, you can specify exactly what you want when materializing a capsule:
152
153
 
153
154
  RedisMessageCapsule = require('redis-message-capsule')
154
155
  redisURL = process.env.REDIS_URL || process.env.REDISTOGO_URL || 'redis://127.0.0.1:6379/'
@@ -159,10 +160,10 @@ Alternatively, you can override these defaults for the redis db when materializi
159
160
  In ruby use one of the following to set your environment
160
161
 
161
162
  ENV["RACK_ENV"] = 'test' // redisDB.select 9
162
- ENV["RACK_ENV"] = 'development' // redisDB.select 8
163
+ ENV["RACK_ENV"] = 'development' // redisDB.select 8 * Default
163
164
  ENV["RACK_ENV"] = 'production' // redisDB.select 7
164
165
 
165
- Alternatively, you can override these defaults for the redis db when materializing a capsule:
166
+ Alternatively, you can specify exactly what you want when materializing a capsule:
166
167
 
167
168
  require 'redis_message_capsule'
168
169
  redisURL = ENV["REDIS_URL"] || ENV["REDISTOGO_URL"] || "redis://127.0.0.1:6379/"
@@ -1,3 +1,3 @@
1
1
  module RedisMessageCapsule
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_message_capsule
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
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-11-23 00:00:00.000000000 Z
12
+ date: 2012-11-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: redis