light_me_up 0.2.5 → 0.2.6

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
  SHA256:
3
- metadata.gz: a8d795fa88a021f974ba2ef80b74326b1222f1f41a20ba71dbd4ea3be643f468
4
- data.tar.gz: 92aec84e39354826ec8bc195e8286bd073b414f96bfe4c51ad437f3406f0972f
3
+ metadata.gz: 39bab362a47cb5f1704bca0ee1d34a6e2324e3028f1d4ddd84f8d0481e1e760c
4
+ data.tar.gz: 6f397b96f59f316cb94ee1d8f0ba32a1e5cf6207b565e53ad4ce63c9d3395cb0
5
5
  SHA512:
6
- metadata.gz: 2f7a7b3c45989710a289136eb7ef2f2bc6b2999bfa8951679bad760b7c7d3bae01e713ac57e57a365b113439f7cf783c201283c4f210e4917710b9b024518dda
7
- data.tar.gz: 956f1e24553299defa116ff3107eab99d285ce02c44378d0f1ed436fefd334d4a39cec8e7c34da0c0846a5a36f7b039f55c3de8dcea6b5fdb4c7150da1487c19
6
+ metadata.gz: 526ffbfeec68b717b54d04a0faaad6937c94254d92efe97adf6a77a19a77eb4a80e9d4d2d9d37394b7b67c9a6172d6b07f927b6ee2ac27b4dde9f854dfd9ecfb
7
+ data.tar.gz: 5a3e21a2acd5517ffa548411e47c1acf18e29f516d15434fef9e6e7020b48c72f5d3479950df93b1ae6b7a3d9fc8d69cf09830059ae6b115aab63791caecab52
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- light_me_up (0.2.5)
4
+ light_me_up (0.2.6)
5
5
  optimist (~> 3.0)
6
6
 
7
7
  GEM
@@ -38,6 +38,8 @@ module LightMeUp
38
38
  end
39
39
 
40
40
  def scale_value(value, src_range, dest_range)
41
+ return nil unless value
42
+
41
43
  scale_ratio = dest_range.size.to_f / src_range.size.to_f
42
44
  (dest_range.min + scale_ratio * (value - src_range.min)).round
43
45
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LightMeUp
4
- VERSION = "0.2.5"
4
+ VERSION = "0.2.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: light_me_up
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter McCracken