quantify 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/quantify/config.rb +1 -1
- data/lib/quantify/unit/unit.rb +0 -8
- data/quantify.gemspec +3 -3
- metadata +33 -33
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.1
|
data/lib/quantify/config.rb
CHANGED
@@ -305,7 +305,7 @@ Unit::NonSI.configure do
|
|
305
305
|
load :name => 'line', :physical_quantity => 'length', :factor => 2.116667e-3, :symbol => 'ln', :label => 'ln'
|
306
306
|
load :name => 'link', :physical_quantity => 'length', :factor => 201.168e-3, :symbol => 'lnk', :label => 'lnk'
|
307
307
|
load :name => 'litre', :physical_quantity => 'volume', :factor => 1e-3, :symbol => 'L', :label => 'L'
|
308
|
-
load :name => 'long ton', :physical_quantity => 'mass', :factor => 1.
|
308
|
+
load :name => 'long ton', :physical_quantity => 'mass', :factor => 1.016047e3, :symbol => 'ton', :label => 'ton_uk'
|
309
309
|
load :name => 'maxwell', :physical_quantity => 'magnetic flux', :factor => 10e-9, :symbol => 'Mx', :label => 'Mx'
|
310
310
|
load :name => 'metric horsepower', :physical_quantity => 'power', :factor => 735.4988, :symbol => 'hp', :label => 'hp'
|
311
311
|
load :name => 'mile', :physical_quantity => 'length', :factor => 1.609344e3, :symbol => 'mi', :label => 'mi'
|
data/lib/quantify/unit/unit.rb
CHANGED
@@ -22,19 +22,11 @@ module Quantify
|
|
22
22
|
|
23
23
|
class << self
|
24
24
|
attr_reader :units
|
25
|
-
#attr_reader :symbol_denominator_delimiter, :symbol_unit_delimiter
|
26
|
-
#attr_reader :use_symbol_parentheses, :use_symbol_denominator_syntax
|
27
25
|
end
|
28
26
|
|
29
27
|
# Instance variable containing system of known units
|
30
28
|
@units = []
|
31
29
|
|
32
|
-
# Default configuration for unit symbols
|
33
|
-
#@use_symbol_denominator_syntax = true
|
34
|
-
#@use_symbol_parentheses = false
|
35
|
-
#@symbol_denominator_delimiter = "/"
|
36
|
-
#@symbol_unit_delimiter = " "
|
37
|
-
|
38
30
|
def self.configure(&block)
|
39
31
|
self.class_eval(&block) if block
|
40
32
|
end
|
data/quantify.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{quantify}
|
8
|
-
s.version = "1.2.
|
8
|
+
s.version = "1.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Andrew Berkeley"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-09-06}
|
13
13
|
s.description = %q{A gem to support physical quantities and unit conversions}
|
14
14
|
s.email = %q{andrew.berkeley.is@googlemail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -54,7 +54,7 @@ Gem::Specification.new do |s|
|
|
54
54
|
s.homepage = %q{https://github.com/spatchcock/quantify}
|
55
55
|
s.licenses = ["MIT"]
|
56
56
|
s.require_paths = ["lib"]
|
57
|
-
s.rubygems_version = %q{1.
|
57
|
+
s.rubygems_version = %q{1.5.3}
|
58
58
|
s.summary = %q{Support for handling physical quantities, unit conversions, etc}
|
59
59
|
|
60
60
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quantify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 1
|
10
|
+
version: 1.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andrew Berkeley
|
@@ -15,12 +15,12 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-09-06 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
|
22
|
+
name: activesupport
|
23
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
25
25
|
requirements:
|
26
26
|
- - ">="
|
@@ -29,12 +29,12 @@ dependencies:
|
|
29
29
|
segments:
|
30
30
|
- 0
|
31
31
|
version: "0"
|
32
|
-
version_requirements: *id001
|
33
|
-
name: activesupport
|
34
32
|
prerelease: false
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
33
|
type: :runtime
|
37
|
-
requirement:
|
34
|
+
requirement: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: i18n
|
37
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
38
38
|
none: false
|
39
39
|
requirements:
|
40
40
|
- - ">="
|
@@ -43,12 +43,12 @@ dependencies:
|
|
43
43
|
segments:
|
44
44
|
- 0
|
45
45
|
version: "0"
|
46
|
-
version_requirements: *id002
|
47
|
-
name: i18n
|
48
46
|
prerelease: false
|
47
|
+
type: :runtime
|
48
|
+
requirement: *id002
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
|
-
|
51
|
-
|
50
|
+
name: bundler
|
51
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
54
|
- - ~>
|
@@ -59,12 +59,12 @@ dependencies:
|
|
59
59
|
- 0
|
60
60
|
- 0
|
61
61
|
version: 1.0.0
|
62
|
-
version_requirements: *id003
|
63
|
-
name: bundler
|
64
62
|
prerelease: false
|
65
|
-
- !ruby/object:Gem::Dependency
|
66
63
|
type: :development
|
67
|
-
requirement:
|
64
|
+
requirement: *id003
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: jeweler
|
67
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
68
68
|
none: false
|
69
69
|
requirements:
|
70
70
|
- - ~>
|
@@ -75,12 +75,12 @@ dependencies:
|
|
75
75
|
- 6
|
76
76
|
- 4
|
77
77
|
version: 1.6.4
|
78
|
-
version_requirements: *id004
|
79
|
-
name: jeweler
|
80
78
|
prerelease: false
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
79
|
type: :development
|
83
|
-
requirement:
|
80
|
+
requirement: *id004
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: rspec
|
83
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
84
84
|
none: false
|
85
85
|
requirements:
|
86
86
|
- - "="
|
@@ -91,12 +91,12 @@ dependencies:
|
|
91
91
|
- 3
|
92
92
|
- 0
|
93
93
|
version: 1.3.0
|
94
|
-
version_requirements: *id005
|
95
|
-
name: rspec
|
96
94
|
prerelease: false
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
95
|
type: :development
|
99
|
-
requirement:
|
96
|
+
requirement: *id005
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rcov
|
99
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
100
100
|
none: false
|
101
101
|
requirements:
|
102
102
|
- - ">="
|
@@ -105,12 +105,12 @@ dependencies:
|
|
105
105
|
segments:
|
106
106
|
- 0
|
107
107
|
version: "0"
|
108
|
-
version_requirements: *id006
|
109
|
-
name: rcov
|
110
108
|
prerelease: false
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
109
|
type: :development
|
113
|
-
requirement:
|
110
|
+
requirement: *id006
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec_spinner
|
113
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
114
114
|
none: false
|
115
115
|
requirements:
|
116
116
|
- - "="
|
@@ -121,9 +121,9 @@ dependencies:
|
|
121
121
|
- 1
|
122
122
|
- 3
|
123
123
|
version: 1.1.3
|
124
|
-
version_requirements: *id007
|
125
|
-
name: rspec_spinner
|
126
124
|
prerelease: false
|
125
|
+
type: :development
|
126
|
+
requirement: *id007
|
127
127
|
description: A gem to support physical quantities and unit conversions
|
128
128
|
email: andrew.berkeley.is@googlemail.com
|
129
129
|
executables: []
|
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
197
|
requirements: []
|
198
198
|
|
199
199
|
rubyforge_project:
|
200
|
-
rubygems_version: 1.
|
200
|
+
rubygems_version: 1.5.3
|
201
201
|
signing_key:
|
202
202
|
specification_version: 3
|
203
203
|
summary: Support for handling physical quantities, unit conversions, etc
|