measurb 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.rspec +4 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +130 -0
- data/Rakefile +1 -0
- data/lib/measurb/config.rb +32 -0
- data/lib/measurb/core_ext.rb +33 -0
- data/lib/measurb/defaults/feet.rb +4 -0
- data/lib/measurb/defaults/inches.rb +4 -0
- data/lib/measurb/defaults/yards.rb +4 -0
- data/lib/measurb/dimension.rb +93 -0
- data/lib/measurb/dimension_builder.rb +108 -0
- data/lib/measurb/version.rb +3 -0
- data/lib/measurb.rb +109 -0
- data/measurb.gemspec +25 -0
- data/spec/arithmetic_spec.rb +67 -0
- data/spec/comparison_spec.rb +61 -0
- data/spec/config_spec.rb +90 -0
- data/spec/conversions_spec.rb +52 -0
- data/spec/define_dimension_spec.rb +54 -0
- data/spec/dimension_builder_spec.rb +19 -0
- data/spec/dimension_precision_spec.rb +83 -0
- data/spec/equality_spec.rb +70 -0
- data/spec/helpers/clear_dimensions.rb +26 -0
- data/spec/helpers/matchers.rb +17 -0
- data/spec/numeric_ext_spec.rb +41 -0
- data/spec/spec_helper.rb +77 -0
- metadata +126 -0
metadata
ADDED
@@ -0,0 +1,126 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: measurb
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jeremy Fairbank
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-06-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.5'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.0.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.0.0
|
55
|
+
description: Handle units of measurement
|
56
|
+
email:
|
57
|
+
- elpapapollo@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- ".rspec"
|
64
|
+
- Gemfile
|
65
|
+
- LICENSE.txt
|
66
|
+
- README.md
|
67
|
+
- Rakefile
|
68
|
+
- lib/measurb.rb
|
69
|
+
- lib/measurb/config.rb
|
70
|
+
- lib/measurb/core_ext.rb
|
71
|
+
- lib/measurb/defaults/feet.rb
|
72
|
+
- lib/measurb/defaults/inches.rb
|
73
|
+
- lib/measurb/defaults/yards.rb
|
74
|
+
- lib/measurb/dimension.rb
|
75
|
+
- lib/measurb/dimension_builder.rb
|
76
|
+
- lib/measurb/version.rb
|
77
|
+
- measurb.gemspec
|
78
|
+
- spec/arithmetic_spec.rb
|
79
|
+
- spec/comparison_spec.rb
|
80
|
+
- spec/config_spec.rb
|
81
|
+
- spec/conversions_spec.rb
|
82
|
+
- spec/define_dimension_spec.rb
|
83
|
+
- spec/dimension_builder_spec.rb
|
84
|
+
- spec/dimension_precision_spec.rb
|
85
|
+
- spec/equality_spec.rb
|
86
|
+
- spec/helpers/clear_dimensions.rb
|
87
|
+
- spec/helpers/matchers.rb
|
88
|
+
- spec/numeric_ext_spec.rb
|
89
|
+
- spec/spec_helper.rb
|
90
|
+
homepage: ''
|
91
|
+
licenses:
|
92
|
+
- MIT
|
93
|
+
metadata: {}
|
94
|
+
post_install_message:
|
95
|
+
rdoc_options: []
|
96
|
+
require_paths:
|
97
|
+
- lib
|
98
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '0'
|
108
|
+
requirements: []
|
109
|
+
rubyforge_project:
|
110
|
+
rubygems_version: 2.2.2
|
111
|
+
signing_key:
|
112
|
+
specification_version: 4
|
113
|
+
summary: Handle units of measurement
|
114
|
+
test_files:
|
115
|
+
- spec/arithmetic_spec.rb
|
116
|
+
- spec/comparison_spec.rb
|
117
|
+
- spec/config_spec.rb
|
118
|
+
- spec/conversions_spec.rb
|
119
|
+
- spec/define_dimension_spec.rb
|
120
|
+
- spec/dimension_builder_spec.rb
|
121
|
+
- spec/dimension_precision_spec.rb
|
122
|
+
- spec/equality_spec.rb
|
123
|
+
- spec/helpers/clear_dimensions.rb
|
124
|
+
- spec/helpers/matchers.rb
|
125
|
+
- spec/numeric_ext_spec.rb
|
126
|
+
- spec/spec_helper.rb
|