rails-units 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.txt +212 -0
- data/Gemfile +8 -0
- data/LICENSE.txt +20 -0
- data/Manifest.txt +19 -0
- data/README.md +161 -0
- data/RakeFile +83 -0
- data/TODO +2 -0
- data/VERSION +1 -0
- data/lib/ruby-units.rb +14 -0
- data/lib/ruby_units.rb +14 -0
- data/lib/ruby_units/array.rb +9 -0
- data/lib/ruby_units/cache.rb +20 -0
- data/lib/ruby_units/date.rb +53 -0
- data/lib/ruby_units/fixnum.rb +20 -0
- data/lib/ruby_units/math.rb +101 -0
- data/lib/ruby_units/numeric.rb +8 -0
- data/lib/ruby_units/object.rb +8 -0
- data/lib/ruby_units/string.rb +122 -0
- data/lib/ruby_units/time.rb +71 -0
- data/lib/ruby_units/unit.rb +1272 -0
- data/lib/ruby_units/unit_definitions.rb +248 -0
- data/lib/ruby_units/version.rb +5 -0
- data/rails-units.gemspec +83 -0
- data/spec/ruby-units/array_spec.rb +14 -0
- data/spec/ruby-units/complex_spec.rb +37 -0
- data/spec/ruby-units/date_spec.rb +38 -0
- data/spec/ruby-units/math_spec.rb +63 -0
- data/spec/ruby-units/numeric_spec.rb +12 -0
- data/spec/ruby-units/object_spec.rb +7 -0
- data/spec/ruby-units/string_spec.rb +61 -0
- data/spec/ruby-units/time_spec.rb +28 -0
- data/spec/ruby-units/unit_spec.rb +888 -0
- data/spec/spec_helper.rb +4 -0
- data/test/test_cache.rb +26 -0
- data/test/test_ruby-units.rb +1011 -0
- metadata +129 -0
metadata
ADDED
@@ -0,0 +1,129 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rails-units
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.3.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Kevin Olbrich, Ph.D.
|
9
|
+
- Stephen Pike
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2011-06-23 00:00:00.000000000Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: bundler
|
17
|
+
requirement: &70121259622560 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ~>
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '1.0'
|
23
|
+
type: :development
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *70121259622560
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: rcov
|
28
|
+
requirement: &70121259621960 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *70121259621960
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: jeweler
|
39
|
+
requirement: &70121259621320 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ! '>='
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '0'
|
45
|
+
type: :development
|
46
|
+
prerelease: false
|
47
|
+
version_requirements: *70121259621320
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: rspec
|
50
|
+
requirement: &70121259620460 !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ~>
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '2.5'
|
56
|
+
type: :development
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: *70121259620460
|
59
|
+
description: Provides classes and methods to perform unit math and conversions. Based
|
60
|
+
on ruby-units but rails-compatible
|
61
|
+
email:
|
62
|
+
- spike@scpike.net
|
63
|
+
executables: []
|
64
|
+
extensions: []
|
65
|
+
extra_rdoc_files:
|
66
|
+
- LICENSE.txt
|
67
|
+
- README.md
|
68
|
+
- TODO
|
69
|
+
files:
|
70
|
+
- CHANGELOG.txt
|
71
|
+
- Gemfile
|
72
|
+
- LICENSE.txt
|
73
|
+
- Manifest.txt
|
74
|
+
- README.md
|
75
|
+
- RakeFile
|
76
|
+
- TODO
|
77
|
+
- VERSION
|
78
|
+
- lib/ruby-units.rb
|
79
|
+
- lib/ruby_units.rb
|
80
|
+
- lib/ruby_units/array.rb
|
81
|
+
- lib/ruby_units/cache.rb
|
82
|
+
- lib/ruby_units/date.rb
|
83
|
+
- lib/ruby_units/fixnum.rb
|
84
|
+
- lib/ruby_units/math.rb
|
85
|
+
- lib/ruby_units/numeric.rb
|
86
|
+
- lib/ruby_units/object.rb
|
87
|
+
- lib/ruby_units/string.rb
|
88
|
+
- lib/ruby_units/time.rb
|
89
|
+
- lib/ruby_units/unit.rb
|
90
|
+
- lib/ruby_units/unit_definitions.rb
|
91
|
+
- lib/ruby_units/version.rb
|
92
|
+
- rails-units.gemspec
|
93
|
+
- spec/ruby-units/array_spec.rb
|
94
|
+
- spec/ruby-units/complex_spec.rb
|
95
|
+
- spec/ruby-units/date_spec.rb
|
96
|
+
- spec/ruby-units/math_spec.rb
|
97
|
+
- spec/ruby-units/numeric_spec.rb
|
98
|
+
- spec/ruby-units/object_spec.rb
|
99
|
+
- spec/ruby-units/string_spec.rb
|
100
|
+
- spec/ruby-units/time_spec.rb
|
101
|
+
- spec/ruby-units/unit_spec.rb
|
102
|
+
- spec/spec_helper.rb
|
103
|
+
- test/test_cache.rb
|
104
|
+
- test/test_ruby-units.rb
|
105
|
+
homepage: https://github.com/scpike/rails-units
|
106
|
+
licenses: []
|
107
|
+
post_install_message:
|
108
|
+
rdoc_options: []
|
109
|
+
require_paths:
|
110
|
+
- lib
|
111
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
+
none: false
|
113
|
+
requirements:
|
114
|
+
- - ! '>='
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
|
+
none: false
|
119
|
+
requirements:
|
120
|
+
- - ! '>='
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
requirements: []
|
124
|
+
rubyforge_project:
|
125
|
+
rubygems_version: 1.8.6
|
126
|
+
signing_key:
|
127
|
+
specification_version: 3
|
128
|
+
summary: A class that performs unit conversions and unit math
|
129
|
+
test_files: []
|