pusher.io 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 26407dc15d656bf14534be1dc7157c1eb874b027
4
+ data.tar.gz: 576de08068685f21a4b1d11fff764fcd1f7bc2dc
5
+ SHA512:
6
+ metadata.gz: aa6311b68c703e3e8ee261caae3c0aa00aab68e5b2227ac33c8440c3ae9ac252abf9b7f928e3a3f0a2bd42a7e15f8ad1febb97cd640613eefaea06a15cb2e727
7
+ data.tar.gz: a4c3fa8b525bdfbfe30505e7ff16dd95ef900dbeb75b359cd87672973611ece7fa9b2f9c057c776c0090656039f9b0af48caa46f9ed3680aa915667973bb673e
data/README.md CHANGED
@@ -27,6 +27,14 @@ Add the JavaScript file to your application.js file manifest.
27
27
  See [socket.io docs](https://github.com/LearnBoost/Socket.IO/wiki/Configuring-Socket.IO) for Redis config.
28
28
  Make your changes in pusher.io.js
29
29
 
30
+ Easy *SSL* support. Just add `ssl_key` and `ssl_cert` paths to your env in config/pusher.io.yml:
31
+
32
+ production:
33
+ ...
34
+ ssl_key: "/path/to/server.pem"
35
+ ssl_cert: "/path/to/certificate_chain.pem"
36
+
37
+
30
38
  ## Usage
31
39
 
32
40
  Include pusher io tags in your html head:
@@ -82,6 +82,8 @@ module Pusher
82
82
  end
83
83
 
84
84
  def socket_base_uri
85
+ return config[:base_uri] if config[:base_uri]
86
+
85
87
  uri = config[:ssl_key].present? ? "https" : "http"
86
88
  uri << "://#{config[:host]}"
87
89
  uri << ":#{config[:port]}" if config[:port] && config[:port] != 80
@@ -102,4 +104,3 @@ module Pusher
102
104
  end
103
105
  end
104
106
  end
105
-
@@ -1,5 +1,5 @@
1
1
  module Pusher
2
2
  module IO
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -4,7 +4,7 @@ module Pusher::IO
4
4
  [
5
5
  pusher_io_socket_uri,
6
6
  pusher_io_socket_client
7
- ].join().html_safe
7
+ ].join.html_safe
8
8
  end
9
9
 
10
10
  def pusher_io_socket_client
@@ -15,4 +15,4 @@ module Pusher::IO
15
15
  tag :meta, name: 'socket_uri', content: Pusher::IO.socket_uri
16
16
  end
17
17
  end
18
- end
18
+ end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pusher.io
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.0.3
4
+ version: 0.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - yury
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-03 00:00:00.000000000 Z
11
+ date: 2014-04-27 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Very basic implementation of pusherapp.com api subset on top of socket.io.
15
14
  email:
@@ -18,7 +17,7 @@ executables: []
18
17
  extensions: []
19
18
  extra_rdoc_files: []
20
19
  files:
21
- - .gitignore
20
+ - ".gitignore"
22
21
  - Gemfile
23
22
  - LICENSE.txt
24
23
  - README.md
@@ -35,32 +34,25 @@ files:
35
34
  - pusher.io.gemspec
36
35
  homepage: https://github.com/anjlab/pusher.io
37
36
  licenses: []
37
+ metadata: {}
38
38
  post_install_message:
39
39
  rdoc_options: []
40
40
  require_paths:
41
41
  - lib
42
42
  required_ruby_version: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - ! '>='
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
- segments:
48
- - 0
49
- hash: -3160252235978856119
50
- none: false
51
47
  required_rubygems_version: !ruby/object:Gem::Requirement
52
48
  requirements:
53
- - - ! '>='
49
+ - - ">="
54
50
  - !ruby/object:Gem::Version
55
51
  version: '0'
56
- segments:
57
- - 0
58
- hash: -3160252235978856119
59
- none: false
60
52
  requirements: []
61
53
  rubyforge_project:
62
- rubygems_version: 1.8.24
54
+ rubygems_version: 2.2.0
63
55
  signing_key:
64
- specification_version: 3
56
+ specification_version: 4
65
57
  summary: Socket.io for rails
66
58
  test_files: []