blade 0.5.5 → 0.5.6

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: 40927a10ccfe1930fe8b7ecaa4daf854a504e8d1
4
- data.tar.gz: de55815469d493988cb8803f7a5bd597af96e757
3
+ metadata.gz: 50cf45a71ac15735b54705ec206e64233538818d
4
+ data.tar.gz: b853e26227a25f3db50e65ad9b2caa3ba32f9711
5
5
  SHA512:
6
- metadata.gz: 5b100e9325ec8137eeef721e58fabe45c5beee772b9c0d072ce9462aac98d7f51483a70c3b052349648fb2e6d8c2e47c436985f07c50d00711a9799d38dab2f3
7
- data.tar.gz: 91211009bcdd0d0ee533450f7a5c9c17e53122f7c7d12ff9140eea8c43b39ffc6e01f29c3975973d52d30d42a31568b405b5f3a7c60afed28fc8d23c01d62d05
6
+ metadata.gz: 593af976b0e61959719830ea2a2336bed9dad74abeb9963417f0d2ca3e2b0651fa9e7bd04a0747fa9ffdda8a9833d6d4dfcf978a3d4dbd1b2290556f70b6aed8
7
+ data.tar.gz: f03f04311a51a251a4b40703a93f58009e8887c1c82b2443f028534c62fbd86a90134e53657402a01342bbfe709e7de535d4ba8ff9b9f78642cd2fa0e399f410
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_dependency "faye"
32
32
  spec.add_dependency "sprockets", ">= 3.0"
33
33
  spec.add_dependency "sprockets-export", "~> 0.9.1"
34
- spec.add_dependency "thin", "~> 1.6.0"
34
+ spec.add_dependency "thin", ">= 1.6.0"
35
35
  spec.add_dependency "useragent", "~> 0.16.7"
36
36
  spec.add_dependency "thor", "~> 0.19.1"
37
37
  end
@@ -93,7 +93,7 @@ module Blade
93
93
  end
94
94
 
95
95
  def url(path = "/")
96
- "http://localhost:#{config.port}#{path}"
96
+ "http://#{Server.host}:#{config.port}#{path}"
97
97
  end
98
98
 
99
99
  def root_path
@@ -10,7 +10,11 @@ module Blade::Server
10
10
  def start
11
11
  Faye::WebSocket.load_adapter("thin")
12
12
  Thin::Logging.silent = true
13
- Thin::Server.start("localhost", Blade.config.port, app, signals: false)
13
+ Thin::Server.start(host, Blade.config.port, app, signals: false)
14
+ end
15
+
16
+ def host
17
+ Thin::Server::DEFAULT_HOST
14
18
  end
15
19
 
16
20
  def websocket_url(path = "")
@@ -1,3 +1,3 @@
1
1
  module Blade
2
- VERSION = "0.5.5"
2
+ VERSION = "0.5.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blade
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javan Makhmali
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-24 00:00:00.000000000 Z
11
+ date: 2016-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -168,14 +168,14 @@ dependencies:
168
168
  name: thin
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - "~>"
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
173
  version: 1.6.0
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - "~>"
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: 1.6.0
181
181
  - !ruby/object:Gem::Dependency