measured 1.4.0 → 1.5.0
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/.travis.yml +12 -5
- data/README.md +2 -0
- data/dev.yml +22 -0
- data/gemfiles/activesupport-4.2.gemfile +5 -0
- data/lib/measured/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9846babb4dd4e4bac7fbb57f1b11145006331e47
|
|
4
|
+
data.tar.gz: 0f7aaef4820fb1acfd4e13d9e860105915531818
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ecf3ca94d6fefa0e9ec7c7b0979acd3ab278313554a5b349701c838574f796aeebc40e108b90094577b4c1d7efe870aae7f61da54c82e01cf5a6dabb2c7321a5
|
|
7
|
+
data.tar.gz: f3a748f6ba1391303ba6d59aa1950b2be17f162d79f24bf39351d232139bc44c56e10a91c799faed18d2d6c212da9850b832111710c209055d478aa217f32d8a
|
data/.travis.yml
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
language: ruby
|
|
2
|
+
sudo: false
|
|
3
|
+
cache: bundler
|
|
2
4
|
rvm:
|
|
3
|
-
- 2.1.
|
|
4
|
-
|
|
5
|
-
-
|
|
6
|
-
|
|
7
|
-
-
|
|
5
|
+
- 2.1.8
|
|
6
|
+
- 2.2.4
|
|
7
|
+
- 2.3.0
|
|
8
|
+
gemfile:
|
|
9
|
+
- Gemfile
|
|
10
|
+
- gemfiles/activesupport-4.2.gemfile
|
|
11
|
+
matrix:
|
|
12
|
+
exclude:
|
|
13
|
+
- gemfile: Gemfile
|
|
14
|
+
rvm: 2.1.8
|
data/README.md
CHANGED
|
@@ -4,6 +4,8 @@ Encapsulates measurements with their units. Provides easy conversion between uni
|
|
|
4
4
|
|
|
5
5
|
Light weight and easily extensible to include other units and conversions. Conversions done with `BigDecimal` for precision.
|
|
6
6
|
|
|
7
|
+
The adapter to integrate `measured` with Ruby on Rails is in a separate [`measured-rails`](https://github.com/Shopify/measured-rails) gem.
|
|
8
|
+
|
|
7
9
|
## Installation
|
|
8
10
|
|
|
9
11
|
Using bundler, add to the Gemfile:
|
data/dev.yml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: measured
|
|
2
|
+
|
|
3
|
+
up:
|
|
4
|
+
- ruby:
|
|
5
|
+
version: 2.3.1
|
|
6
|
+
- bundler
|
|
7
|
+
|
|
8
|
+
commands:
|
|
9
|
+
test:
|
|
10
|
+
syntax:
|
|
11
|
+
optional: file args...
|
|
12
|
+
desc: 'run all tests or a specific test file'
|
|
13
|
+
run: |
|
|
14
|
+
if [[ $# -eq 0 ]]; then
|
|
15
|
+
bundle exec rake test
|
|
16
|
+
else
|
|
17
|
+
bundle exec ruby -Itest "$@"
|
|
18
|
+
fi
|
|
19
|
+
|
|
20
|
+
packages:
|
|
21
|
+
- git@github.com:Shopify/dev-shopify.git
|
|
22
|
+
|
data/lib/measured/version.rb
CHANGED
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: 1.
|
|
4
|
+
version: 1.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kevin McPhillips
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-10-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -94,6 +94,8 @@ files:
|
|
|
94
94
|
- LICENSE
|
|
95
95
|
- README.md
|
|
96
96
|
- Rakefile
|
|
97
|
+
- dev.yml
|
|
98
|
+
- gemfiles/activesupport-4.2.gemfile
|
|
97
99
|
- lib/measured.rb
|
|
98
100
|
- lib/measured/arithmetic.rb
|
|
99
101
|
- lib/measured/base.rb
|
|
@@ -139,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
139
141
|
version: '0'
|
|
140
142
|
requirements: []
|
|
141
143
|
rubyforge_project:
|
|
142
|
-
rubygems_version: 2.
|
|
144
|
+
rubygems_version: 2.5.1
|
|
143
145
|
signing_key:
|
|
144
146
|
specification_version: 4
|
|
145
147
|
summary: Encapsulate measurements with their units in Ruby
|