measured 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/measured/base.rb +1 -1
- data/lib/measured/version.rb +1 -1
- data/test/measurable_test.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac7c868153deabc832a90c6b5cc93bee8a728526
|
4
|
+
data.tar.gz: 2805144c6b6d959f13988a4ad37e3c2a949f56f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9798202fcd229b5a334267bd8bf6f987e36918c26f357323c169483e389998cd23fe7883b3ed17cb157a4a9a8d3b5660fe0a46fde37cc454746d0c2d327f795f
|
7
|
+
data.tar.gz: 59cc89386afca5024221c78ecd126c826ad001982206b8570b65f140a3f8045834636f9735aa5fe3f6c3060478531615ae52b4a731dce5e25b590d6358758d65
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Measured [![Build Status](https://travis-ci.org/Shopify/measured.svg)](https://travis-ci.org/Shopify/measured)
|
1
|
+
# Measured [![Build Status](https://travis-ci.org/Shopify/measured.svg)](https://travis-ci.org/Shopify/measured) [![Gem Version](https://badge.fury.io/rb/measured.svg)](http://badge.fury.io/rb/measured)
|
2
2
|
|
3
3
|
Encapsulates measruements with their units. Provides easy conversion between units.
|
4
4
|
|
@@ -245,3 +245,5 @@ Existing alternatives which were considered:
|
|
245
245
|
## Authors
|
246
246
|
|
247
247
|
* [Kevin McPhillips](https://github.com/kmcphillips) at [Shopify](http://shopify.com/careers)
|
248
|
+
* [Sai Warang](https://github.com/cyprusad) at [Shopify](http://shopify.com/careers)
|
249
|
+
* [Gareth du Plooy](https://github.com/garethson) at [Shopify](http://shopify.com/careers)
|
data/lib/measured/base.rb
CHANGED
data/lib/measured/version.rb
CHANGED
data/test/measurable_test.rb
CHANGED
@@ -152,8 +152,8 @@ class Measured::MeasurableTest < ActiveSupport::TestCase
|
|
152
152
|
end
|
153
153
|
|
154
154
|
test "#inspect shows the number and the unit" do
|
155
|
-
assert_equal "#<Magic: 0
|
156
|
-
assert_equal "#<Magic:
|
155
|
+
assert_equal "#<Magic: 10.0 fireball>", Magic.new(10, :fire).inspect
|
156
|
+
assert_equal "#<Magic: 1.234 magic_missile>", Magic.new(1.234, :magic_missile).inspect
|
157
157
|
end
|
158
158
|
|
159
159
|
test "#<=> compares regardless of the unit" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: measured
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin McPhillips
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|