celluloid_pubsub 1.0.3 → 1.1.0

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: ff30fc677543d00dfc9fb3afe899c1dca7b6b170
4
- data.tar.gz: 10316f3602d7279589d672ccdeef10a533816c07
3
+ metadata.gz: dbb39f61ac66b8ff074e5363db622baa1a265a9a
4
+ data.tar.gz: 99e1a862fa0d0e9ad9124da9997079eceece0182
5
5
  SHA512:
6
- metadata.gz: 6d11652a4ff2676036d85de72f991c1ddc32145bc64569fa3674e0dea5c6067ec5660239f611f2a03cfcdc4be20b089bd9ce5e515092d60ac26a4961c7f81838
7
- data.tar.gz: 171604a5e4c99c702dd10e9a18e073a40a573f1944368577cb0703fc9b73d141f1f71134edabea46b5fde566c45605fedd38c12481fc044ed4266002a4372fce
6
+ metadata.gz: 462e645131b18ce128a6709734995adf2c44429f2ae78ecb4f2e057d637ecae55422a38b8a2501437746b9884f77d524bf01204fadbe44ad31ddb052f2121aa4
7
+ data.tar.gz: 2b3ccaed7afb6c1fd23cab589813eeb2bfa3f1d40ce36e31c420b1765a5ae1ee2e5fcff4a10d4bf911be1e22858b96bfa211a8608082c7d622f642695ecfccb4
data/.reek CHANGED
@@ -16,3 +16,5 @@ ClassVariable:
16
16
  exclude_paths:
17
17
  - examples/**/**
18
18
  - spec/**/**
19
+
20
+
data/.travis.yml CHANGED
@@ -3,25 +3,26 @@ sudo: false
3
3
 
4
4
  cache: bundler
5
5
 
6
- bundler_args: --binstubs=./bin
6
+ bundler_args: --no-deployment --binstubs=./bin
7
7
 
8
8
  before_install:
9
9
  - "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
10
10
  - gem install bundler
11
11
  - gem update bundler
12
12
 
13
- before_script:
14
- - bundle update
15
-
16
13
  install:
17
- - bundle install --path vendor/bundle
14
+ - bundle install --path vendor/bundle
18
15
 
19
- script: bundle exec rake
16
+ script:
17
+ - echo $BUNDLE_GEMFILE
18
+ - bundle exec rake
20
19
 
21
20
  rvm:
22
21
  - 2.2.2
23
- - 2.2.3
22
+ - 2.2.5
24
23
  - 2.3.1
24
+ - 2.3.2
25
+ - 2.3.3
25
26
  env:
26
27
  - RAILS_ENV=test RACK_ENV=test
27
28
  notifications:
data/Appraisals CHANGED
@@ -5,3 +5,7 @@ end
5
5
  appraise "celluloid-0.17.3" do
6
6
  gem "celluloid", "0.17.3"
7
7
  end
8
+
9
+ appraise "celluloid-0.18.0.pre" do
10
+ gem "celluloid", "0.18.0.pre"
11
+ end
data/Rakefile CHANGED
@@ -31,6 +31,11 @@ task :all do |_t|
31
31
  end
32
32
  end
33
33
 
34
+ # dirty hack for YardocTask
35
+ ::Rake.application.class.class_eval do
36
+ alias_method :last_comment, :last_description
37
+ end
38
+
34
39
  YARD::Config.options[:load_plugins] = true
35
40
  YARD::Config.load_plugins
36
41
 
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
17
  s.executables = `git ls-files -- bin/*`.split('\n').map{ |f| File.basename(f) }
18
18
  s.require_paths = ['lib']
19
-
19
+
20
20
  s.add_runtime_dependency 'celluloid', '>= 0.16', '>= 0.16.0'
21
21
  s.add_runtime_dependency 'celluloid-io', '>= 0.16', '>= 0.16.2'
22
22
  s.add_runtime_dependency 'reel', '~> 0.6', '>= 0.6.0'
@@ -25,14 +25,14 @@ Gem::Specification.new do |s|
25
25
  s.add_runtime_dependency 'activesupport', '>= 4.0', '>= 4.0'
26
26
 
27
27
  s.add_development_dependency 'appraisal', '~> 2.1', '>= 2.1'
28
- s.add_development_dependency 'rspec', '~> 3.4', '>= 3.4'
29
- s.add_development_dependency 'simplecov', '~> 0.10', '>= 0.10'
30
- s.add_development_dependency 'simplecov-summary', '~> 0.0.4', '>= 0.0.4'
31
- s.add_development_dependency 'mocha', '~> 1.1', '>= 1.1'
32
- s.add_development_dependency 'coveralls', '~> 0.7', '>= 0.7'
33
- s.add_development_dependency 'rake', '>= 10.5', '>= 10.5'
28
+ s.add_development_dependency 'rspec', '~> 3.5', '>= 3.5'
29
+ s.add_development_dependency 'simplecov', '~> 0.12', '>= 0.12'
30
+ s.add_development_dependency 'simplecov-summary', '~> 0.0', '>= 0.0.5'
31
+ s.add_development_dependency 'mocha', '~> 1.2', '>= 1.2'
32
+ s.add_development_dependency 'coveralls', '~> 0.8', '>= 0.8'
33
+ s.add_development_dependency 'rake', '>= 12.0', '>= 12.0'
34
34
  s.add_development_dependency 'yard', '~> 0.8', '>= 0.8.7'
35
35
  s.add_development_dependency 'redcarpet', '~> 3.3', '>= 3.3'
36
- s.add_development_dependency 'github-markup', '~> 1.3', '>= 1.3.3'
37
- s.add_development_dependency 'inch', '~> 0.6', '>= 0.6'
36
+ s.add_development_dependency 'github-markup', '~> 1.4', '>= 1.4'
37
+ s.add_development_dependency 'inch', '~> 0.7', '>= 0.7'
38
38
  end
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "celluloid", "0.18.0.pre"
6
+
7
+ gemspec :path => "../"
@@ -81,8 +81,13 @@ module CelluloidPubsub
81
81
  end
82
82
  end
83
83
 
84
+
84
85
  if CelluloidPubsub::BaseActor.version_less_than_seventeen?
86
+ require 'celluloid'
85
87
  require 'celluloid/autostart'
86
88
  else
87
89
  require 'celluloid/current'
90
+ celluloid_running = Celluloid.running? rescue false
91
+ Celluloid.boot unless celluloid_running
92
+ require 'celluloid'
88
93
  end
@@ -17,9 +17,9 @@ module CelluloidPubsub
17
17
  # major release version
18
18
  MAJOR = 1
19
19
  # minor release version
20
- MINOR = 0
20
+ MINOR = 1
21
21
  # tiny release version
22
- TINY = 3
22
+ TINY = 0
23
23
  # prelease version ( set this only if it is a prelease)
24
24
  PRE = nil
25
25
 
data/spec/spec_helper.rb CHANGED
@@ -6,12 +6,12 @@ require 'simplecov-summary'
6
6
  require 'coveralls'
7
7
 
8
8
  # require "codeclimate-test-reporter"
9
- formatters = [SimpleCov::Formatter::HTMLFormatter]
9
+ formatters = [SimpleCov::Formatter::SummaryFormatter, SimpleCov::Formatter::HTMLFormatter]
10
10
 
11
11
  formatters << Coveralls::SimpleCov::Formatter # if ENV['TRAVIS']
12
12
  # formatters << CodeClimate::TestReporter::Formatter # if ENV['CODECLIMATE_REPO_TOKEN'] && ENV['TRAVIS']
13
13
 
14
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[*formatters]
14
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(formatters)
15
15
 
16
16
  Coveralls.wear!
17
17
  SimpleCov.start 'rails' do
@@ -53,7 +53,7 @@ class TestActor
53
53
  def initialize(*_args)
54
54
  end
55
55
  end
56
-
56
+ Celluloid.boot unless Celluloid.running?
57
57
  CelluloidPubsub::BaseActor.setup_actor_supervision(TestActor, actor_name: :test_actor, args: { })
58
58
 
59
59
  unless defined?(silence_stream) # Rails 5
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: celluloid_pubsub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-26 00:00:00.000000000 Z
11
+ date: 2016-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: celluloid
@@ -150,114 +150,114 @@ dependencies:
150
150
  requirements:
151
151
  - - "~>"
152
152
  - !ruby/object:Gem::Version
153
- version: '3.4'
153
+ version: '3.5'
154
154
  - - ">="
155
155
  - !ruby/object:Gem::Version
156
- version: '3.4'
156
+ version: '3.5'
157
157
  type: :development
158
158
  prerelease: false
159
159
  version_requirements: !ruby/object:Gem::Requirement
160
160
  requirements:
161
161
  - - "~>"
162
162
  - !ruby/object:Gem::Version
163
- version: '3.4'
163
+ version: '3.5'
164
164
  - - ">="
165
165
  - !ruby/object:Gem::Version
166
- version: '3.4'
166
+ version: '3.5'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: simplecov
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: '0.10'
173
+ version: '0.12'
174
174
  - - ">="
175
175
  - !ruby/object:Gem::Version
176
- version: '0.10'
176
+ version: '0.12'
177
177
  type: :development
178
178
  prerelease: false
179
179
  version_requirements: !ruby/object:Gem::Requirement
180
180
  requirements:
181
181
  - - "~>"
182
182
  - !ruby/object:Gem::Version
183
- version: '0.10'
183
+ version: '0.12'
184
184
  - - ">="
185
185
  - !ruby/object:Gem::Version
186
- version: '0.10'
186
+ version: '0.12'
187
187
  - !ruby/object:Gem::Dependency
188
188
  name: simplecov-summary
189
189
  requirement: !ruby/object:Gem::Requirement
190
190
  requirements:
191
191
  - - "~>"
192
192
  - !ruby/object:Gem::Version
193
- version: 0.0.4
193
+ version: '0.0'
194
194
  - - ">="
195
195
  - !ruby/object:Gem::Version
196
- version: 0.0.4
196
+ version: 0.0.5
197
197
  type: :development
198
198
  prerelease: false
199
199
  version_requirements: !ruby/object:Gem::Requirement
200
200
  requirements:
201
201
  - - "~>"
202
202
  - !ruby/object:Gem::Version
203
- version: 0.0.4
203
+ version: '0.0'
204
204
  - - ">="
205
205
  - !ruby/object:Gem::Version
206
- version: 0.0.4
206
+ version: 0.0.5
207
207
  - !ruby/object:Gem::Dependency
208
208
  name: mocha
209
209
  requirement: !ruby/object:Gem::Requirement
210
210
  requirements:
211
211
  - - "~>"
212
212
  - !ruby/object:Gem::Version
213
- version: '1.1'
213
+ version: '1.2'
214
214
  - - ">="
215
215
  - !ruby/object:Gem::Version
216
- version: '1.1'
216
+ version: '1.2'
217
217
  type: :development
218
218
  prerelease: false
219
219
  version_requirements: !ruby/object:Gem::Requirement
220
220
  requirements:
221
221
  - - "~>"
222
222
  - !ruby/object:Gem::Version
223
- version: '1.1'
223
+ version: '1.2'
224
224
  - - ">="
225
225
  - !ruby/object:Gem::Version
226
- version: '1.1'
226
+ version: '1.2'
227
227
  - !ruby/object:Gem::Dependency
228
228
  name: coveralls
229
229
  requirement: !ruby/object:Gem::Requirement
230
230
  requirements:
231
231
  - - "~>"
232
232
  - !ruby/object:Gem::Version
233
- version: '0.7'
233
+ version: '0.8'
234
234
  - - ">="
235
235
  - !ruby/object:Gem::Version
236
- version: '0.7'
236
+ version: '0.8'
237
237
  type: :development
238
238
  prerelease: false
239
239
  version_requirements: !ruby/object:Gem::Requirement
240
240
  requirements:
241
241
  - - "~>"
242
242
  - !ruby/object:Gem::Version
243
- version: '0.7'
243
+ version: '0.8'
244
244
  - - ">="
245
245
  - !ruby/object:Gem::Version
246
- version: '0.7'
246
+ version: '0.8'
247
247
  - !ruby/object:Gem::Dependency
248
248
  name: rake
249
249
  requirement: !ruby/object:Gem::Requirement
250
250
  requirements:
251
251
  - - ">="
252
252
  - !ruby/object:Gem::Version
253
- version: '10.5'
253
+ version: '12.0'
254
254
  type: :development
255
255
  prerelease: false
256
256
  version_requirements: !ruby/object:Gem::Requirement
257
257
  requirements:
258
258
  - - ">="
259
259
  - !ruby/object:Gem::Version
260
- version: '10.5'
260
+ version: '12.0'
261
261
  - !ruby/object:Gem::Dependency
262
262
  name: yard
263
263
  requirement: !ruby/object:Gem::Requirement
@@ -304,40 +304,40 @@ dependencies:
304
304
  requirements:
305
305
  - - "~>"
306
306
  - !ruby/object:Gem::Version
307
- version: '1.3'
307
+ version: '1.4'
308
308
  - - ">="
309
309
  - !ruby/object:Gem::Version
310
- version: 1.3.3
310
+ version: '1.4'
311
311
  type: :development
312
312
  prerelease: false
313
313
  version_requirements: !ruby/object:Gem::Requirement
314
314
  requirements:
315
315
  - - "~>"
316
316
  - !ruby/object:Gem::Version
317
- version: '1.3'
317
+ version: '1.4'
318
318
  - - ">="
319
319
  - !ruby/object:Gem::Version
320
- version: 1.3.3
320
+ version: '1.4'
321
321
  - !ruby/object:Gem::Dependency
322
322
  name: inch
323
323
  requirement: !ruby/object:Gem::Requirement
324
324
  requirements:
325
325
  - - "~>"
326
326
  - !ruby/object:Gem::Version
327
- version: '0.6'
327
+ version: '0.7'
328
328
  - - ">="
329
329
  - !ruby/object:Gem::Version
330
- version: '0.6'
330
+ version: '0.7'
331
331
  type: :development
332
332
  prerelease: false
333
333
  version_requirements: !ruby/object:Gem::Requirement
334
334
  requirements:
335
335
  - - "~>"
336
336
  - !ruby/object:Gem::Version
337
- version: '0.6'
337
+ version: '0.7'
338
338
  - - ">="
339
339
  - !ruby/object:Gem::Version
340
- version: '0.6'
340
+ version: '0.7'
341
341
  description: CelluloidPubsub is a simple ruby implementation of publish subscribe
342
342
  design patterns using celluloid actors and websockets, using Reel server for inter-process
343
343
  communication
@@ -363,6 +363,7 @@ files:
363
363
  - examples/simple_test.rb
364
364
  - gemfiles/celluloid_0.16.0.gemfile
365
365
  - gemfiles/celluloid_0.17.3.gemfile
366
+ - gemfiles/celluloid_0.18.0.pre.gemfile
366
367
  - init.rb
367
368
  - lib/celluloid_pubsub.rb
368
369
  - lib/celluloid_pubsub/base_actor.rb
@@ -399,7 +400,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
399
400
  version: '0'
400
401
  requirements: []
401
402
  rubyforge_project:
402
- rubygems_version: 2.5.1
403
+ rubygems_version: 2.5.2
403
404
  signing_key:
404
405
  specification_version: 4
405
406
  summary: CelluloidPubsub is a simple ruby implementation of publish subscribe design