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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d67a6033c4e3bb7faa0f4ee02a2b3ec482c38c12
4
- data.tar.gz: 1735180f229b2ecc51795ea6be26041eccbaa16d
3
+ metadata.gz: ac7c868153deabc832a90c6b5cc93bee8a728526
4
+ data.tar.gz: 2805144c6b6d959f13988a4ad37e3c2a949f56f8
5
5
  SHA512:
6
- metadata.gz: 2ff858d2b73a86fc12749ebe26659f8e4bb46738fa9d34412a8aa579c32b0df20b71a2079d0f4bf31024b212ef8dc82ffc6b9e1b1fc2565851d0d6bbcae11b3b
7
- data.tar.gz: da420ab2472759e797bc2a98319c8ae85a55bdf9a7342c9eeb49e5ba02504ca64082849e4c01af4d3847871d0c6a5004b527d7b804915bd47be66b0b9667b242
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
@@ -1,5 +1,5 @@
1
1
  require "measured/version"
2
- require "active_support"
2
+ require "active_support/all"
3
3
  require "bigdecimal"
4
4
 
5
5
  module Measured
@@ -1,3 +1,3 @@
1
1
  module Measured
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
@@ -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.1E2 fireball>", Magic.new(10, :fire).inspect
156
- assert_equal "#<Magic: 0.1234E1 magic_missile>", Magic.new(1.234, :magic_missile).inspect
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.9
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-06-29 00:00:00.000000000 Z
11
+ date: 2015-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport