nodevent 3.0.0 → 3.0.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.
@@ -1,3 +1,3 @@
1
1
  module Nodevent
2
- VERSION = "3.0.0"
2
+ VERSION = "3.0.1"
3
3
  end
data/lib/nodevent.rb CHANGED
@@ -16,15 +16,10 @@ module NoDevent
16
16
 
17
17
  module Helper
18
18
  def javascript_include_nodevent
19
- host = URI.parse(NoDevent::Emitter.config[:host])
20
- namespace = URI.parse(NoDevent::Emitter.config[:namespace])
19
+ host = NoDevent::Emitter.config['host']
20
+ namespace = NoDevent::Emitter.config['namespace']
21
21
 
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
22
+ "<script src='#{host}/api/#{namespace}' type='text/javascript'></script>".html_safe
28
23
  end
29
24
  end
30
25
  ActionView::Base.send :include, Helper if defined?(ActionView::Base)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nodevent
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: