danthes 2.0.0 → 2.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.
- checksums.yaml +4 -4
- data/.travis.yml +1 -2
- data/CHANGELOG.md +11 -0
- data/lib/danthes.rb +5 -1
- data/lib/danthes/version.rb +1 -1
- data/spec/danthes_spec.rb +4 -1
- data/spec/fixtures/danthes_redis.yml +1 -1
- data/spec/spec_helper.rb +13 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31be3c107820bc6c1860bcc6848a79e72e225e7c
|
4
|
+
data.tar.gz: 096af2bb1ac08dffbad55bf4610b6c031319bf19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aac25e6a3b3e69f7a2fcc7a43e92cb9e4a542b567b65acb68743c50e204a458f972bf3a2745125c2ba416199a7935b4dec739eef8ae275c7b625a60a39bbd6fb
|
7
|
+
data.tar.gz: 144059ff3e8f86bf7ed8c42db0444bb088a5ddfa6d3cec1d7c5af1f4ab446118eb4fc6b92b2640a403caa0122091bce6d09c3b412988a5dea6f1112888b2262d
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# d'Anthès
|
2
2
|
|
3
|
+
## 2.0.1 (March 20 2015)
|
4
|
+
|
5
|
+
* Fix issue with websocket-driver >= 0.5.1
|
6
|
+
|
7
|
+
## 2.0.0 (February 18 2015)
|
8
|
+
|
9
|
+
* Added ERB support in redis configuration file
|
10
|
+
* Fix generators for supporting only Rails 4.x
|
11
|
+
* Fix config loading in Rails 4.x
|
12
|
+
* Drop support of Rails 3.x
|
13
|
+
|
3
14
|
## 1.0.5 (May 19 2014)
|
4
15
|
|
5
16
|
* Added ERB support in configuration files
|
data/lib/danthes.rb
CHANGED
@@ -109,7 +109,11 @@ module Danthes
|
|
109
109
|
|
110
110
|
# Returns the Faye Rack application.
|
111
111
|
def faye_app
|
112
|
-
|
112
|
+
rack_config = {}
|
113
|
+
[:engine, :mount, :ping, :timeout, :extensions, :websocket_extensions ].each do |k|
|
114
|
+
rack_config[k] = config[k] if config[k]
|
115
|
+
end
|
116
|
+
::Faye::RackAdapter.new(rack_config)
|
113
117
|
end
|
114
118
|
end
|
115
119
|
|
data/lib/danthes/version.rb
CHANGED
data/spec/danthes_spec.rb
CHANGED
@@ -39,7 +39,8 @@ describe Danthes do
|
|
39
39
|
|
40
40
|
context 'when redis config exists' do
|
41
41
|
before do
|
42
|
-
Danthes.env = '
|
42
|
+
Danthes.env = 'production'
|
43
|
+
Danthes.load_config('spec/fixtures/danthes.yml')
|
43
44
|
Danthes.load_redis_config('spec/fixtures/danthes_redis.yml')
|
44
45
|
end
|
45
46
|
|
@@ -168,6 +169,8 @@ describe Danthes do
|
|
168
169
|
end
|
169
170
|
|
170
171
|
it 'has a Faye rack app instance' do
|
172
|
+
Danthes.env = 'production'
|
173
|
+
Danthes.load_config('spec/fixtures/danthes.yml')
|
171
174
|
expect(Danthes.faye_app).to be_kind_of(Faye::RackAdapter)
|
172
175
|
end
|
173
176
|
|
data/spec/spec_helper.rb
CHANGED
@@ -1,10 +1,20 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'bundler/setup'
|
3
|
+
require 'simplecov'
|
4
|
+
require 'coveralls'
|
5
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
6
|
+
SimpleCov::Formatter::HTMLFormatter,
|
7
|
+
Coveralls::SimpleCov::Formatter
|
8
|
+
]
|
9
|
+
|
10
|
+
SimpleCov.start do
|
11
|
+
add_filter 'spec'
|
12
|
+
minimum_coverage(76)
|
13
|
+
end
|
14
|
+
|
15
|
+
Bundler.require(:default)
|
3
16
|
require 'faye'
|
4
17
|
require 'faye/redis'
|
5
|
-
Bundler.require(:default)
|
6
|
-
require 'coveralls'
|
7
|
-
Coveralls.wear!
|
8
18
|
require 'webmock/rspec'
|
9
19
|
RSpec.configure do |_config|
|
10
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danthes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Simonov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faye
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.4.
|
101
|
+
rubygems_version: 2.4.6
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: Private pub/sub messaging through Faye.
|