bellbro 0.0.9 → 0.0.10

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: cf13f8ac5e8fce9bb1c3b4075c00520c260e71ef
4
- data.tar.gz: 94a1bca078034702cd56ddde75aaa9c80c66e662
3
+ metadata.gz: 41861361bc83b68a51bc52e215bc4807abf67d6a
4
+ data.tar.gz: b29769f4efc8e9735bdef5901a95a8b530e080a3
5
5
  SHA512:
6
- metadata.gz: 29cc7ce734f569b2776bd6e7604b170bc00f99413dacd4ab1859766a547f3db5986ac56ccfc0baebaf414e668dd9b81c9f1af4b971b8675e2d986e498e4d6178
7
- data.tar.gz: 1670a1de45762ea6b3bcb3bdbea211936673b12cf5b82ee912a5f3bbf30330c9b9c27744a9539265660258c7fe0365b9d5ed2d35966bb45d0087076a95c08eb7
6
+ metadata.gz: 5dafcf250ba4889ba5167b9aa75889c733873a25617f88e1eb6ba7c2afa786547c2490fae1a72f48b92e84cf1eda16d60f1eeceb24a8728b27348376dd1eb9b1
7
+ data.tar.gz: 23b14ea36b6a74aa2522fb98f79fecff069172dfa8b5dd4acbab297f473c0c8239850e80daf9ed8a26d24e8182c4069543aacbd6e5e6427beb14ce70fbdb9e60
data/lib/bellbro/pool.rb CHANGED
@@ -16,7 +16,7 @@ module Bellbro
16
16
 
17
17
  class << klass
18
18
  def pool(pool_name)
19
- @pool_name = pool_name
19
+ @pool_name = pool_name
20
20
  end
21
21
 
22
22
  def connection_pool(pool_name: nil)
@@ -6,7 +6,7 @@ module Bellbro
6
6
  include Bellbro::Trackable
7
7
 
8
8
  SLEEP_INTERVAL = defined?(Rails) && Rails.env.test? ? 1 : 3600
9
- LOG_RECORD_SCHEMA = { jobs_started: Integer }
9
+ track_with_schema jobs_started: Integer
10
10
 
11
11
  attr_reader :thread, :thread_error, :jid
12
12
 
@@ -6,33 +6,36 @@ module Bellbro
6
6
  )
7
7
  end
8
8
 
9
+ def self.configuration
10
+ @configuration ||= Bellbro::Settings::SettingsData.new
11
+ end
12
+
9
13
  def self.configure
10
- $bellbro_configuration ||= Bellbro::Settings::SettingsData.new
11
- yield $bellbro_configuration
14
+ yield configuration
12
15
  end
13
16
 
14
17
  def self.env
15
18
  return unless configured?
16
- $bellbro_configuration.env
19
+ configuration.env
17
20
  end
18
21
 
19
22
  def self.test?
20
23
  return unless configured?
21
- $bellbro_configuration.env == 'test'
24
+ configuration.env == 'test'
22
25
  end
23
26
 
24
27
  def self.connection_pools
25
28
  return unless configured?
26
- $bellbro_configuration.connection_pools
29
+ configuration.connection_pools
27
30
  end
28
31
 
29
32
  def self.logger
30
33
  return unless configured?
31
- $bellbro_configuration.logger
34
+ configuration.logger
32
35
  end
33
36
 
34
37
  def self.configured?
35
- !!$bellbro_configuration
38
+ !!configuration
36
39
  end
37
40
  end
38
41
  end
@@ -1,3 +1,3 @@
1
1
  module Bellbro
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.10'
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -6,9 +6,7 @@ require 'rspec'
6
6
  require 'yell'
7
7
 
8
8
  Dir[File.join(File.dirname(__FILE__),'../spec/support/**/*.rb')].each { |f| require f }
9
- #Dir[File.join(File.dirname(__FILE__),'../spec/factories/**/*.rb')].each { |f| require f }
10
9
 
11
10
  RSpec.configure do |config|
12
11
  config.order = 'random'
13
- #config.include FactoryGirl::Syntax::Methods
14
- end
12
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bellbro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Stokes