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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a37fa7b25c9f0efe581064b7d934d86efae41ec0
4
- data.tar.gz: ed2e1a1a0c45fe6b0aee080dffcb637f32e670fb
3
+ metadata.gz: 623f05b8168bfd7135ef2d8fef8a41a6e4cd5807
4
+ data.tar.gz: e43bf7914fe7e0b1c84f1e443e099cfb9f94c518
5
5
  SHA512:
6
- metadata.gz: 6d1cf4c61b07a1ba098797bdf9383217df686306c6613319079c7fb5a37bcf5daae6e0725f8769f27b9fd70ccb24378a987b303967da6013b1b6d5047c11b526
7
- data.tar.gz: 6bb1c99410d2c57b0506a1aea89e2e24f1717adc1d9b05504716c1994d9b471488ca4c49b8e10df65a127393ff31bed1fd7deebb7b8d846bd4a8f6620293c3c8
6
+ metadata.gz: 2c575471dadd0759bee21ea7d3932ada382be5a7b91fc72106fb9c6c49fe38fe81728ae3acf70ddb2cbf82dc71ab5f7cc7b527cde160e4d745668bc725a6912d
7
+ data.tar.gz: 91af28a583a11a393fc126f65961d46e1997133acaa808b22ea72fa006a4708f296313e11dc89acbe3bec5eb53316aed3b80e09a8549ca67f1378653a8bb7125
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## tremolo-rails 0.1.2 ##
2
+
3
+ * Fixes namespace handling in tracker configuration
4
+
5
+ *Tony Pitale*
6
+
1
7
  ## tremolo-rails 0.1.1 ##
2
8
 
3
9
  * Expand page tags to include http status, format (html, etc), action, and controller
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:
@@ -1,5 +1,5 @@
1
1
  module Tremolo
2
2
  module Rails
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -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 << {namespace: config.tremolo.namespace}
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tremolo-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Pitale