tremolo-rails 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +2 -0
- data/lib/tremolo-rails/version.rb +1 -1
- data/lib/tremolo/railtie.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 623f05b8168bfd7135ef2d8fef8a41a6e4cd5807
|
4
|
+
data.tar.gz: e43bf7914fe7e0b1c84f1e443e099cfb9f94c518
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c575471dadd0759bee21ea7d3932ada382be5a7b91fc72106fb9c6c49fe38fe81728ae3acf70ddb2cbf82dc71ab5f7cc7b527cde160e4d745668bc725a6912d
|
7
|
+
data.tar.gz: 91af28a583a11a393fc126f65961d46e1997133acaa808b22ea72fa006a4708f296313e11dc89acbe3bec5eb53316aed3b80e09a8549ca67f1378653a8bb7125
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -63,6 +63,8 @@ Further options can be passed to the tracker as a hash in the last element of an
|
|
63
63
|
config.tremolo.trackers << ['0.0.0.0', 4444, {namespace: 'website'}]
|
64
64
|
```
|
65
65
|
|
66
|
+
**Note:** tracker-specific namespace options will override global `namespace` configuration.
|
67
|
+
|
66
68
|
## Overriding the client_id ##
|
67
69
|
|
68
70
|
A method is added to your controller called `tremolo_client_id`. By default, it's implementation looks like:
|
data/lib/tremolo/railtie.rb
CHANGED
@@ -16,11 +16,16 @@ module Tremolo
|
|
16
16
|
end
|
17
17
|
|
18
18
|
initializer "tremolo.build_trackers" do
|
19
|
+
default_options = {namespace: config.tremolo.namespace.to_s}
|
20
|
+
|
19
21
|
config.tremolo.trackers.each do |args|
|
20
22
|
# cheap way to detect a named tracker
|
21
23
|
args.unshift(:default) unless args.first.is_a? Symbol
|
22
24
|
|
23
|
-
args
|
25
|
+
options = args.pop if args.last.is_a? Hash
|
26
|
+
options ||= {}
|
27
|
+
|
28
|
+
args << default_options.merge(options)
|
24
29
|
|
25
30
|
Tremolo.supervised_tracker(*args)
|
26
31
|
end
|