vanunits 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/HISTORY +16 -0
  2. data/HOWITWORKS.rdoc +72 -0
  3. data/LICENSE +23 -0
  4. data/README.rdoc +68 -0
  5. data/lib/van/units.rb +116 -0
  6. data/lib/van/units/base.rb +991 -0
  7. data/lib/van/units/constants.rb +2 -0
  8. data/lib/van/units/constants/cgs.rb +122 -0
  9. data/lib/van/units/constants/math.rb +3 -0
  10. data/lib/van/units/constants/math/cgs.rb +125 -0
  11. data/lib/van/units/constants/math/mks.rb +126 -0
  12. data/lib/van/units/constants/math/natural.rb +33 -0
  13. data/lib/van/units/constants/mks.rb +122 -0
  14. data/lib/van/units/currency.rb +160 -0
  15. data/lib/van/units/data/binary/base.rb +4 -0
  16. data/lib/van/units/data/cex.rb +5 -0
  17. data/lib/van/units/data/currency-default.rb +5 -0
  18. data/lib/van/units/data/currency-standard.rb +2 -0
  19. data/lib/van/units/data/currency/base.rb +89 -0
  20. data/lib/van/units/data/iec.rb +5 -0
  21. data/lib/van/units/data/iec_binary/base.rb +6 -0
  22. data/lib/van/units/data/si.rb +8 -0
  23. data/lib/van/units/data/si/base.rb +11 -0
  24. data/lib/van/units/data/si/constants.rb +88 -0
  25. data/lib/van/units/data/si/derived.rb +33 -0
  26. data/lib/van/units/data/si/extra.rb +35 -0
  27. data/lib/van/units/data/si/misc.rb +10 -0
  28. data/lib/van/units/data/uk.rb +10 -0
  29. data/lib/van/units/data/uk/base.rb +25 -0
  30. data/lib/van/units/data/units-default.rb +12 -0
  31. data/lib/van/units/data/units-standard.rb +5 -0
  32. data/lib/van/units/data/us.rb +10 -0
  33. data/lib/van/units/data/us/base.rb +47 -0
  34. data/lib/van/units/data/xmethods.rb +5 -0
  35. data/lib/van/units/data/xmethods/cached.rb +84 -0
  36. data/lib/van/units/data/xmethods/mapping.rb +87 -0
  37. data/lib/van/units/loaders.rb +100 -0
  38. data/lib/van/units/units.rb +111 -0
  39. data/lib/van/units_currency.rb +12 -0
  40. data/meta/author +1 -0
  41. data/meta/collection +1 -0
  42. data/meta/contact +1 -0
  43. data/meta/created +1 -0
  44. data/meta/description +5 -0
  45. data/meta/homepage +1 -0
  46. data/meta/name +1 -0
  47. data/meta/summary +1 -0
  48. data/meta/title +1 -0
  49. data/meta/version +1 -0
  50. data/qed/conversion.rdoc +14 -0
  51. data/qed/equality.rdoc +150 -0
  52. data/qed/operations.rdoc +74 -0
  53. data/test/test_constants.rb +12 -0
  54. data/test/test_currency.rb +26 -0
  55. data/test/test_units.rb +205 -0
  56. metadata +123 -0
metadata ADDED
@@ -0,0 +1,123 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vanunits
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 5
8
+ - 0
9
+ version: 1.5.0
10
+ platform: ruby
11
+ authors: []
12
+
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-02-23 00:00:00 -05:00
18
+ default_executable:
19
+ dependencies: []
20
+
21
+ description: |-
22
+ VanUnits is a units system providing both SI units and web-updated
23
+ currency units, via a very easy to use method-based interface.
24
+ It also include a large set of real world contants, provided in
25
+ "m kg s" and "cm kg s" measures.
26
+ email:
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files: []
32
+
33
+ files:
34
+ - lib/van/units/base.rb
35
+ - lib/van/units/constants/cgs.rb
36
+ - lib/van/units/constants/math/cgs.rb
37
+ - lib/van/units/constants/math/mks.rb
38
+ - lib/van/units/constants/math/natural.rb
39
+ - lib/van/units/constants/math.rb
40
+ - lib/van/units/constants/mks.rb
41
+ - lib/van/units/constants.rb
42
+ - lib/van/units/currency.rb
43
+ - lib/van/units/data/binary/base.rb
44
+ - lib/van/units/data/cex.rb
45
+ - lib/van/units/data/currency/base.rb
46
+ - lib/van/units/data/currency-default.rb
47
+ - lib/van/units/data/currency-standard.rb
48
+ - lib/van/units/data/iec.rb
49
+ - lib/van/units/data/iec_binary/base.rb
50
+ - lib/van/units/data/si/base.rb
51
+ - lib/van/units/data/si/constants.rb
52
+ - lib/van/units/data/si/derived.rb
53
+ - lib/van/units/data/si/extra.rb
54
+ - lib/van/units/data/si/misc.rb
55
+ - lib/van/units/data/si.rb
56
+ - lib/van/units/data/uk/base.rb
57
+ - lib/van/units/data/uk.rb
58
+ - lib/van/units/data/units-default.rb
59
+ - lib/van/units/data/units-standard.rb
60
+ - lib/van/units/data/us/base.rb
61
+ - lib/van/units/data/us.rb
62
+ - lib/van/units/data/xmethods/cached.rb
63
+ - lib/van/units/data/xmethods/mapping.rb
64
+ - lib/van/units/data/xmethods.rb
65
+ - lib/van/units/loaders.rb
66
+ - lib/van/units/units.rb
67
+ - lib/van/units.rb
68
+ - lib/van/units_currency.rb
69
+ - meta/author
70
+ - meta/collection
71
+ - meta/contact
72
+ - meta/created
73
+ - meta/description
74
+ - meta/homepage
75
+ - meta/name
76
+ - meta/summary
77
+ - meta/title
78
+ - meta/version
79
+ - qed/conversion.rdoc
80
+ - qed/equality.rdoc
81
+ - qed/operations.rdoc
82
+ - test/test_constants.rb
83
+ - test/test_currency.rb
84
+ - test/test_units.rb
85
+ - LICENSE
86
+ - README.rdoc
87
+ - HISTORY
88
+ - HOWITWORKS.rdoc
89
+ has_rdoc: true
90
+ homepage: http://rubyworks.github.com/vanunits
91
+ licenses: []
92
+
93
+ post_install_message:
94
+ rdoc_options:
95
+ - --title
96
+ - VanUnits API
97
+ require_paths:
98
+ - lib
99
+ required_ruby_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ segments:
104
+ - 0
105
+ version: "0"
106
+ required_rubygems_version: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ segments:
111
+ - 0
112
+ version: "0"
113
+ requirements: []
114
+
115
+ rubyforge_project: vanunits
116
+ rubygems_version: 1.3.6.pre.3
117
+ signing_key:
118
+ specification_version: 3
119
+ summary: Vanbroekhoven's Units System
120
+ test_files:
121
+ - test/test_constants.rb
122
+ - test/test_currency.rb
123
+ - test/test_units.rb