nodevent 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Nodevent
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
data/lib/nodevent.rb CHANGED
@@ -19,7 +19,12 @@ module NoDevent
19
19
  host = URI.parse(NoDevent::Emitter.config[:host])
20
20
  namespace = URI.parse(NoDevent::Emitter.config[:namespace])
21
21
 
22
- javascript_include_tag("<script src='#{Emitter.config[:host]}/api/#{namespace}' type='text/javascript'></script>").html_safe
22
+ params = [
23
+ "host=#{host}",
24
+ "namespace=#{namespace}"
25
+ ].join("&")
26
+
27
+ "<script src='#{Emitter.config[:host]}/api/#{namespace}' type='text/javascript'></script>".html_safe
23
28
  end
24
29
  end
25
30
  ActionView::Base.send :include, Helper
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nodevent
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 0
10
- version: 2.0.0
9
+ - 1
10
+ version: 2.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Constantine