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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a3a2cbe4487d7c4d1882e8995e82c19ebb865e6
4
- data.tar.gz: c4b1f8007b96a6adaeae32e45087da56daf2d16c
3
+ metadata.gz: 31be3c107820bc6c1860bcc6848a79e72e225e7c
4
+ data.tar.gz: 096af2bb1ac08dffbad55bf4610b6c031319bf19
5
5
  SHA512:
6
- metadata.gz: c474986bf3cf591a61d31b37b3a33894b9bb932b8d68222f14b850927b571901d20e31debb0eab027d613e78e3fe219d09b17b4382f5ef54db1a82d2aa84afa6
7
- data.tar.gz: 294bd2039b3e69ded40fc94f739bec3a4d31fcf8274ff6e550a523818d3d437c6465e934bc9bb8c51cedc15ea0392a17c355175cd65b1532cc7fe7ae1e4fea0e
6
+ metadata.gz: aac25e6a3b3e69f7a2fcc7a43e92cb9e4a542b567b65acb68743c50e204a458f972bf3a2745125c2ba416199a7935b4dec739eef8ae275c7b625a60a39bbd6fb
7
+ data.tar.gz: 144059ff3e8f86bf7ed8c42db0444bb088a5ddfa6d3cec1d7c5af1f4ab446118eb4fc6b92b2640a403caa0122091bce6d09c3b412988a5dea6f1112888b2262d
@@ -1,7 +1,6 @@
1
1
  rvm:
2
- - 2.0.0
3
2
  - 2.1.2
4
- - 2.2.0
3
+ - 2.2.1
5
4
  - rbx-2
6
5
  bundler_args: --without development
7
6
  before_script:
@@ -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
@@ -109,7 +109,11 @@ module Danthes
109
109
 
110
110
  # Returns the Faye Rack application.
111
111
  def faye_app
112
- ::Faye::RackAdapter.new(config)
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
 
@@ -1,3 +1,3 @@
1
1
  module Danthes
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
3
3
  end
@@ -39,7 +39,8 @@ describe Danthes do
39
39
 
40
40
  context 'when redis config exists' do
41
41
  before do
42
- Danthes.env = 'test'
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
 
@@ -1,4 +1,4 @@
1
- test:
1
+ production:
2
2
  host: redis_host
3
3
  port: redis_port
4
4
  password: redis_password
@@ -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.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-02-18 00:00:00.000000000 Z
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.5
101
+ rubygems_version: 2.4.6
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Private pub/sub messaging through Faye.