services 0.0.1 → 0.0.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: 29c86c30a1166901d26fdf5d0484a368c1486011
4
- data.tar.gz: 8617c1b8bd2543fdcf22e1eac5e30ab274b13a5c
3
+ metadata.gz: 27e055eee440bd9ed9a3dbd75cd00f7d3cb698f7
4
+ data.tar.gz: 2181326e31959eac2771f156dfbf70cd1823c879
5
5
  SHA512:
6
- metadata.gz: 544977f3bdb51a170867318270d11acf79b2039981efbc53d6e19c61935ddf31db3b94634470f418dede84970d0334dcc7c71eb137a61f621c31a6bded717bcf
7
- data.tar.gz: a9d4bad15dabe9c9f9c92fe096f4b44318f9b72f4e37fdc531c216e2a103ae02a46ff2844f81d4260e15f4d04228a490973fb28ea868f5344831a95c0809cf21
6
+ metadata.gz: d7f8e924430f1cdcbcbcdf1ff641c6aa11ec7bc48a48e485af11116ae4e34a7423e4f3331bcd032a77fa6e030cf10f1611633cb8cfb8f034fcb7723903790b63
7
+ data.tar.gz: 04003c6e3ad8fb6ef39e48ec0c86d35ae039098884d3fe904e3bc2ff0d2efec903c75c12bb6907a62abb124a014d87157e4a81200e3c66f77474666e94c3381f
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 2.1
5
+ services:
6
+ - redis-server
@@ -19,7 +19,7 @@ begin
19
19
  rescue Services::BackgroundProcessorNotFound
20
20
  end
21
21
  require_relative 'services/base/call_logger'
22
- require_relative 'services/base/exception_Wrapper'
22
+ require_relative 'services/base/exception_wrapper'
23
23
  require_relative 'services/base/uniqueness_checker'
24
24
  require_relative 'services/base'
25
25
  require_relative 'services/railtie' if defined?(Rails)
@@ -6,6 +6,7 @@ module Services
6
6
  end
7
7
 
8
8
  def call(*args)
9
+ # TODO: Check that Services.configuration.redis is set
9
10
  key = unique_key(args)
10
11
  if Services.configuration.redis.exists(key)
11
12
  raise self.class::NotUniqueError
@@ -1,3 +1,3 @@
1
1
  module Services
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
@@ -43,7 +43,8 @@ RSpec.configure do |config|
43
43
  pidfile: redis_pidfile
44
44
  }
45
45
  redis = support_dir.join('redis-server')
46
- system "#{redis} #{options_hash_to_string(redis_options)}"
46
+ # TODO: Redis should be started here unless Rspec is executed by Travis CI
47
+ # system "#{redis} #{options_hash_to_string(redis_options)}"
47
48
 
48
49
  # Start Sidekiq
49
50
  sidekiq_options = {
@@ -68,11 +69,12 @@ RSpec.configure do |config|
68
69
 
69
70
  # Stop Redis
70
71
  redis_cli = support_dir.join('redis-cli')
71
- system "#{redis_cli} -p #{redis_port} shutdown"
72
- while File.exist?(redis_pidfile)
73
- puts 'Waiting for Redis to shut down...'
74
- sleep 1
75
- end
72
+ # TODO: Redis should be stopped here unless Rspec is executed by Travis CI
73
+ # system "#{redis_cli} -p #{redis_port} shutdown"
74
+ # while File.exist?(redis_pidfile)
75
+ # puts 'Waiting for Redis to shut down...'
76
+ # sleep 1
77
+ # end
76
78
 
77
79
  # Truncate log files
78
80
  max_len = 1024 * 1024 # 1 MB
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: services
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Meurer
@@ -135,6 +135,7 @@ extensions: []
135
135
  extra_rdoc_files: []
136
136
  files:
137
137
  - .gitignore
138
+ - .travis.yml
138
139
  - Gemfile
139
140
  - Guardfile
140
141
  - LICENSE.txt