nodevent 3.1.3 → 3.1.4

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.1.3"
2
+ VERSION = "3.1.4"
3
3
  end
data/lib/nodevent.rb CHANGED
@@ -55,6 +55,7 @@ module NoDevent
55
55
  namespace = NoDevent::Emitter.config['namespace']
56
56
  namespace = '/' + namespace unless namespace[0] == '/'
57
57
 
58
+
58
59
  "<script src='#{host}/api#{namespace}' type='text/javascript'></script>".html_safe
59
60
  end
60
61
  end
@@ -71,9 +72,8 @@ module NoDevent
71
72
 
72
73
  @@publisher = Redis.new(:host => r_config["host"], :port => r_config["port"], :db => r_config["db"])
73
74
  end
74
-
75
- if @@config.keys.include?("api_key")
76
- @@publisher = NoDevent::NetPublisher.new(config)
75
+ if @@config.keys.include?("spigot.io")
76
+ @@publisher = NoDevent::NetPublisher.new(obj)
77
77
  config["namespace"] = @@publisher.namespace
78
78
  config["secret"] = @@publisher.secret
79
79
  end
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.1.3
4
+ version: 3.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: