alacrity-rails 0.4.1 → 0.4.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: 43abf54365fdbf4532f726fa977e2da4f822fd23
4
- data.tar.gz: c0cacaa8b543d335e6d4c18d30c65223a106dfd4
3
+ metadata.gz: 8d2436c6aee506e04789e51dff13fd54d6a98b34
4
+ data.tar.gz: e95b00c266256fb6d83bc2902be1e0898436bd5d
5
5
  SHA512:
6
- metadata.gz: fc6b890d8bb41b5aeb7f4aa86ea3eedd6f884826c41caf76829c9ff83cb688a53ea8b932cbfc5979a5d38bfbeda8db1748a3ba19254ee3a268472c6931dab6c7
7
- data.tar.gz: 0ee1e55ef7fd76cc84eea0511acc91f3889d38cfe45c658ace48928bdc10040e22a78121b59ce46546f33e24dd4636556d988f474792f50fac8321771e4fb8d6
6
+ metadata.gz: 6aafe1f3451a311f3aa8f582bbb5ac26ca8de828e028d7e4be1436612e3e7a2bb4f91b8ffc2088fc6dc76187e7cca672b44d1662945859bc11ea42f213d6d3ef
7
+ data.tar.gz: a3af69969b12b7994c2af0c38216768a713cad663ab44569452623990ba78a0d1ae410b4c1fc2dcfe6fa60878e00b24706401cf5f7d7ee48bb2064b1f89f16ce
@@ -50,7 +50,7 @@ module AlacrityRails
50
50
  def self.start_transmission_worker
51
51
  Thread.new do
52
52
  loop do
53
- sleep 1
53
+ sleep AlacrityRails::Config.transmission_interval
54
54
 
55
55
  if transmission_queue.any?
56
56
  transmit(AlacrityRails::Transaction::BulkWebTransaction.new(
@@ -13,4 +13,8 @@ module AlacrityRails::Config
13
13
  def self.collector_host
14
14
  @collector_host ||= ENV['ALACRITY_COLLECTOR_HOST'] || 'https://collector-api.alacrityapp.com'
15
15
  end
16
+
17
+ def self.transmission_interval
18
+ @transmission_interval ||= (ENV['ALACRITY_TRANSMISSION_INTERVAL'] || 0.5).to_f
19
+ end
16
20
  end
@@ -1,3 +1,3 @@
1
1
  module AlacrityRails
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alacrity-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alacrity, LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-24 00:00:00.000000000 Z
11
+ date: 2017-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails