active_reporter 0.7.1 → 0.7.2
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 +4 -4
- data/lib/active_reporter/dimension/bin.rb +1 -1
- data/lib/active_reporter/version.rb +1 -1
- data/spec/dummy/config/environments/development.rb +3 -3
- data/spec/dummy/config/environments/production.rb +3 -3
- data/spec/dummy/config/initializers/assets.rb +1 -1
- data/spec/dummy/log/development.log +0 -0
- data/spec/dummy/log/test.log +82364 -0
- data/spec/dummy/tmp/local_secret.txt +1 -0
- data/spec/spec_helper.rb +0 -2
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdb5fb124ebcc7d60f4f7e51b3c832a7a9be93b3a9a4e456e7695ddb16e2a336
|
4
|
+
data.tar.gz: '08a7417b448df20464dea0cf66b2dfa83082eaf54c1eb5c423d0ef973eaebacf'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55f35f09f458c58c3429da7dc77756705fb79511651f62cb0c1b87726ccbd8629c4468ea9b5b7922831dde530f90c925abee0d4f1e306a2f0ed927ddb982e4f1
|
7
|
+
data.tar.gz: 19b800d38de1b9beb846fcdf2f0516a2281fce10898df5cfc4ea424c986aa06cb5ee8736b5897240adc959216362218ef72503ee6bbb0613f4c634c48743b60e
|
@@ -116,7 +116,7 @@ module ActiveReporter
|
|
116
116
|
def autopopulate_bins
|
117
117
|
return [] if bin_start.blank? || bin_end.blank?
|
118
118
|
|
119
|
-
bin_count = ((bin_end - bin_start)/(bin_width)).to_i
|
119
|
+
bin_count = [((bin_end - bin_start)/(bin_width)).to_i, 1].max
|
120
120
|
invalid_param!(:bin_width, "is too small for the domain; would generate #{bin_count.to_i} bins") if bin_count > max_bins
|
121
121
|
|
122
122
|
bins = bin_count.times.map { |i| { min: (bin_start + (bin_width*i)), max: (bin_start + (bin_width*i.next)) } }
|
@@ -25,16 +25,16 @@ Rails.application.configure do
|
|
25
25
|
# Debug mode disables concatenation and preprocessing of assets.
|
26
26
|
# This option may cause significant delays in view rendering with a large
|
27
27
|
# number of complex assets.
|
28
|
-
config.assets.debug = true
|
28
|
+
# config.assets.debug = true
|
29
29
|
|
30
30
|
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
31
31
|
# yet still be able to expire them through the digest params.
|
32
|
-
config.assets.digest = true
|
32
|
+
# config.assets.digest = true
|
33
33
|
|
34
34
|
# Adds additional error checking when serving assets at runtime.
|
35
35
|
# Checks for improperly declared sprockets dependencies.
|
36
36
|
# Raises helpful error messages.
|
37
|
-
config.assets.raise_runtime_errors = true
|
37
|
+
# config.assets.raise_runtime_errors = true
|
38
38
|
|
39
39
|
# Raises error for missing translations
|
40
40
|
# config.action_view.raise_on_missing_translations = true
|
@@ -25,15 +25,15 @@ Rails.application.configure do
|
|
25
25
|
config.serve_static_files = ENV["RAILS_SERVE_STATIC_FILES"].present?
|
26
26
|
|
27
27
|
# Compress JavaScripts and CSS.
|
28
|
-
config.assets.js_compressor = :uglifier
|
28
|
+
# config.assets.js_compressor = :uglifier
|
29
29
|
# config.assets.css_compressor = :sass
|
30
30
|
|
31
31
|
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
32
|
-
config.assets.compile = false
|
32
|
+
# config.assets.compile = false
|
33
33
|
|
34
34
|
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
35
35
|
# yet still be able to expire them through the digest params.
|
36
|
-
config.assets.digest = true
|
36
|
+
# config.assets.digest = true
|
37
37
|
|
38
38
|
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
|
39
39
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
2
|
|
3
3
|
# Version of your assets, change this if you want to expire all your assets.
|
4
|
-
Rails.application.config.assets.version = "1.0"
|
4
|
+
# Rails.application.config.assets.version = "1.0"
|
5
5
|
|
6
6
|
# Add additional assets to the asset load path
|
7
7
|
# Rails.application.config.assets.paths << Emoji.images_path
|
File without changes
|