chillout 0.8.1 → 0.8.2

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: 789a070578f2521ce6a55e03d7f3e190521bbffe
4
- data.tar.gz: b9b533ee2cf0f043160c16d45ca76823bfa51fc6
3
+ metadata.gz: ed69970f8a13178646f300c5a13213e7642fe3df
4
+ data.tar.gz: d51d4ea537f831f0c499738bce7b2ceb2cc293f2
5
5
  SHA512:
6
- metadata.gz: 84d25d97903cb160ed6931747400f6cf40c073f88f8facc05c5dd82a4a5d8e45795babb0ee5c6962ac63d3db349ae31af3fc8599675ab9ded6fc24d656568489
7
- data.tar.gz: f99078c801434d847a28a8a5fbbc19f7471b4382d98ab2fd1609e386f13cc101f2d3fd1aae558345424b5c5ee0bdf50e783d295240b6f84a5c99f256377bf7ff
6
+ metadata.gz: 848763fd9423900ff683bc4a88ec906dda4fc01233ba64c420f5c45a4aa93690e5ed40704801d0d4b549b9d381f67672fd18025c03994dc822cd86161a09ac4a
7
+ data.tar.gz: 9a12a1bcdb467d51aa95c939b18b129a44e783ca6a3779c75d46d837a42a8b497253911b83bf8df43b482d5198a41f2f451daf1bc5286f853852129eb1f198f3
data/.travis.yml CHANGED
@@ -11,9 +11,9 @@ env:
11
11
  - SAMPLE_APP=rails_4_0_13
12
12
  - SAMPLE_APP=rails_4_1_0
13
13
  - SAMPLE_APP=rails_4_1_16
14
- - SAMPLE_APP=rails_4_2_0
15
- - SAMPLE_APP=rails_4_2_8
16
- - SAMPLE_APP=rails_5_0_3
14
+ - SAMPLE_APP=rails_4_2_0 SIDEKIQ_SUPPORTED=true
15
+ - SAMPLE_APP=rails_4_2_8 SIDEKIQ_SUPPORTED=true
16
+ - SAMPLE_APP=rails_5_0_3 SIDEKIQ_SUPPORTED=true
17
17
  - SAMPLE_APP=rails_5_1_1 SIDEKIQ_SUPPORTED=true
18
18
  matrix:
19
19
  exclude:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # chillout gem changes
2
2
 
3
+ 0.8.2
4
+ -----
5
+
6
+ - Fixed chillout logging to not `#flush` which caused minor errors.
7
+
3
8
  0.8.1
4
9
  -----
5
10
 
@@ -1,3 +1,3 @@
1
1
  module Chillout
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
@@ -53,7 +53,6 @@ module Chillout
53
53
  containers_to_merge = get_all_containers_to_process
54
54
  creations_container = merge_containers(containers_to_merge)
55
55
  send_creations(creations_container)
56
- logger.flush
57
56
  sleep 5
58
57
  end
59
58
  end
@@ -3,3 +3,8 @@ source 'https://rubygems.org'
3
3
  gem 'rails', '4.2.0'
4
4
  gem 'sqlite3'
5
5
  gem 'chillout', :path => '../../../'
6
+ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.2')
7
+ gem "sidekiq", "~> 4.2"
8
+ else
9
+ gem 'sidekiq'
10
+ end
@@ -0,0 +1,6 @@
1
+ class CreateEntityJob
2
+ include Sidekiq::Worker
3
+ def perform
4
+ Entity.create!(name: Time.current.to_s)
5
+ end
6
+ end
@@ -63,5 +63,10 @@ Rails400::Application.configure do
63
63
  # Use default logging formatter so that PID and timestamp are not suppressed.
64
64
  config.log_formatter = ::Logger::Formatter.new
65
65
 
66
- config.chillout = { secret: 'secret', ssl: false, port: 8080, hostname: 'localhost' }
66
+ config.chillout = {
67
+ secret: 'secret',
68
+ ssl: false,
69
+ port: (ENV['CHILLOUT_PORT'] || 8080).to_i,
70
+ hostname: 'localhost',
71
+ }
67
72
  end
@@ -3,3 +3,4 @@ source 'https://rubygems.org'
3
3
  gem 'rails', '4.2.8'
4
4
  gem 'sqlite3'
5
5
  gem 'chillout', :path => '../../../'
6
+ gem 'sidekiq'
@@ -0,0 +1,6 @@
1
+ class CreateEntityJob
2
+ include Sidekiq::Worker
3
+ def perform
4
+ Entity.create!(name: Time.current.to_s)
5
+ end
6
+ end
@@ -66,7 +66,7 @@ Rails400::Application.configure do
66
66
  config.chillout = {
67
67
  secret: 'secret',
68
68
  ssl: false,
69
- port: 8080,
69
+ port: (ENV['CHILLOUT_PORT'] || 8080).to_i,
70
70
  hostname: 'localhost',
71
71
  strategy: (ENV['STRATEGY'] || :thread).to_sym,
72
72
  }
@@ -3,3 +3,4 @@ source 'https://rubygems.org'
3
3
  gem 'rails', '5.0.3'
4
4
  gem 'sqlite3'
5
5
  gem 'chillout', :path => '../../../'
6
+ gem 'sidekiq'
@@ -0,0 +1,6 @@
1
+ class CreateEntityJob
2
+ include Sidekiq::Worker
3
+ def perform
4
+ Entity.create!(name: Time.current.to_s)
5
+ end
6
+ end
@@ -66,7 +66,7 @@ Rails400::Application.configure do
66
66
  config.chillout = {
67
67
  secret: 'secret',
68
68
  ssl: false,
69
- port: 8080,
69
+ port: (ENV['CHILLOUT_PORT'] || 8080).to_i,
70
70
  hostname: 'localhost',
71
71
  strategy: (ENV['STRATEGY'] || :thread).to_sym,
72
72
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chillout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Lomnicki
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-06-21 00:00:00.000000000 Z
14
+ date: 2017-06-26 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: multi_json
@@ -461,6 +461,7 @@ files:
461
461
  - test/support/rails_4_2_0/app/controllers/concerns/.keep
462
462
  - test/support/rails_4_2_0/app/controllers/entities_controller.rb
463
463
  - test/support/rails_4_2_0/app/helpers/application_helper.rb
464
+ - test/support/rails_4_2_0/app/jobs/create_entity_job.rb
464
465
  - test/support/rails_4_2_0/app/models/.keep
465
466
  - test/support/rails_4_2_0/app/models/concerns/.keep
466
467
  - test/support/rails_4_2_0/app/models/entity.rb
@@ -505,6 +506,7 @@ files:
505
506
  - test/support/rails_4_2_8/app/controllers/concerns/.keep
506
507
  - test/support/rails_4_2_8/app/controllers/entities_controller.rb
507
508
  - test/support/rails_4_2_8/app/helpers/application_helper.rb
509
+ - test/support/rails_4_2_8/app/jobs/create_entity_job.rb
508
510
  - test/support/rails_4_2_8/app/models/.keep
509
511
  - test/support/rails_4_2_8/app/models/concerns/.keep
510
512
  - test/support/rails_4_2_8/app/models/entity.rb
@@ -549,6 +551,7 @@ files:
549
551
  - test/support/rails_5_0_3/app/controllers/concerns/.keep
550
552
  - test/support/rails_5_0_3/app/controllers/entities_controller.rb
551
553
  - test/support/rails_5_0_3/app/helpers/application_helper.rb
554
+ - test/support/rails_5_0_3/app/jobs/create_entity_job.rb
552
555
  - test/support/rails_5_0_3/app/models/.keep
553
556
  - test/support/rails_5_0_3/app/models/concerns/.keep
554
557
  - test/support/rails_5_0_3/app/models/entity.rb
@@ -895,6 +898,7 @@ test_files:
895
898
  - test/support/rails_4_2_0/app/controllers/concerns/.keep
896
899
  - test/support/rails_4_2_0/app/controllers/entities_controller.rb
897
900
  - test/support/rails_4_2_0/app/helpers/application_helper.rb
901
+ - test/support/rails_4_2_0/app/jobs/create_entity_job.rb
898
902
  - test/support/rails_4_2_0/app/models/.keep
899
903
  - test/support/rails_4_2_0/app/models/concerns/.keep
900
904
  - test/support/rails_4_2_0/app/models/entity.rb
@@ -939,6 +943,7 @@ test_files:
939
943
  - test/support/rails_4_2_8/app/controllers/concerns/.keep
940
944
  - test/support/rails_4_2_8/app/controllers/entities_controller.rb
941
945
  - test/support/rails_4_2_8/app/helpers/application_helper.rb
946
+ - test/support/rails_4_2_8/app/jobs/create_entity_job.rb
942
947
  - test/support/rails_4_2_8/app/models/.keep
943
948
  - test/support/rails_4_2_8/app/models/concerns/.keep
944
949
  - test/support/rails_4_2_8/app/models/entity.rb
@@ -983,6 +988,7 @@ test_files:
983
988
  - test/support/rails_5_0_3/app/controllers/concerns/.keep
984
989
  - test/support/rails_5_0_3/app/controllers/entities_controller.rb
985
990
  - test/support/rails_5_0_3/app/helpers/application_helper.rb
991
+ - test/support/rails_5_0_3/app/jobs/create_entity_job.rb
986
992
  - test/support/rails_5_0_3/app/models/.keep
987
993
  - test/support/rails_5_0_3/app/models/concerns/.keep
988
994
  - test/support/rails_5_0_3/app/models/entity.rb