tiny_outcome 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tiny_outcome.rb +5 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4bcfb2b56da2846a690a84f9488326c2ddf16f48d1906ead7da68a900c8cc3ec
4
- data.tar.gz: 8709cc918943d9dfbc7b02ec9bd5ff666808c123e9f557a9fb04b8659a6d394b
3
+ metadata.gz: abde8e389e945ae56753b61b75b9f7df7474044820cff7250874a73286a2f8bb
4
+ data.tar.gz: 59f041591c740d22a42f55ef7e6a2363854d9715a4aa22775fb80f8384836aee
5
5
  SHA512:
6
- metadata.gz: c3789f5b4df3368b9b5e76997176c294de4f0c6ef27f6562b8562c186fa2d8feca4c784598d34fecf8babaa32b52705761a6a0a5d843ea13865f40ff844afe90
7
- data.tar.gz: 78c4b3f3a69110a43ff58963da0e6371d43a1a84eb6db2190580f23967a8b955b22b2a18429e0ad8ec396f1e4af8de246e3c20d987e4de68e9463aa79db03864
6
+ metadata.gz: b6c89f18a20e5b2c4e0b0fbaff9391680b98901a6f2ee6cfc6af09089027c9b9642fafb28ea46c46ec7af42282c083a3fc98477413ea3510ed2d072764a4200f
7
+ data.tar.gz: ec5e0b226364e2d8f7810fa9fd4691acb8fc3dae2dc704c9566ba0d27c05f571252b14b47d5d077a646927a5c31869356b7f0a6145ca3b2b20ecb5178581d574
data/lib/tiny_outcome.rb CHANGED
@@ -128,6 +128,11 @@ class TinyOutcome
128
128
  warmth == warmup
129
129
  end
130
130
 
131
+ # the opposite of warm: a TinyOutcome can only be cold or warm
132
+ def cold?
133
+ !warm?
134
+ end
135
+
131
136
  # true if we've received at least precision number of samples
132
137
  # false otherwise
133
138
  def full?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_outcome
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Lunt