README.md in sneakers_packer-0.1.5 vs README.md in sneakers_packer-0.2.0
- old
+ new
@@ -31,11 +31,11 @@
SneakersPacker uses most of sneakers configuration for simpleness.
There are `app_name` and `rpc_timeout` should be set for SneakersPacker.
Append below to `config/initializers/sneakers.rb`.
-```
+```ruby
SneakersPacker.configure do |conf|
conf.rpc_timeout = 3 # rpc client timeout. default is 5 seconds.
conf.app_name = "sneakers_test" # rpc client or server app's name. default is 'unknown'
end
```
@@ -85,10 +85,10 @@
# do something...
end
end
```
-```
+```ruby
class OtherWorker
include SneakersPacker::CommonWorker
from_queue :other_name, routing_key: "demo.suprise"