lite-measurements 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +21 -19
- data/lib/lite/measurements/monkey_patches.rb +13 -11
- data/lib/lite/measurements/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 754758e082964cbd6e746fa1600d70407cb166a6f734f030dfa7af4c6f56ab59
|
4
|
+
data.tar.gz: 5ca5b154d0e48b2548d36f4f7e9ae9a48ed55cf12f9916129d1c15ed4595ad66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8c81eff5ded61aa3674bf11d31d1c06e06d3044866bdeb04b2e62896c2a6ee0336884c1843e0dfa46ab06c87cacd893bf8a88d7f39cf3ae5cd3a1e16f119346
|
7
|
+
data.tar.gz: 8caa230d94af106122f5d281b52f53051d737eacfe5c6618da6d55c04c5741b4cd01612326a7be697795ebea92d4c92e71a629d8d91511b675a4509ba64237cb
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,29 +1,30 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lite-measurements (1.0.
|
4
|
+
lite-measurements (1.0.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
actionpack (
|
10
|
-
actionview (=
|
11
|
-
activesupport (=
|
9
|
+
actionpack (6.0.0)
|
10
|
+
actionview (= 6.0.0)
|
11
|
+
activesupport (= 6.0.0)
|
12
12
|
rack (~> 2.0)
|
13
13
|
rack-test (>= 0.6.3)
|
14
14
|
rails-dom-testing (~> 2.0)
|
15
|
-
rails-html-sanitizer (~> 1.0, >= 1.0
|
16
|
-
actionview (
|
17
|
-
activesupport (=
|
15
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
16
|
+
actionview (6.0.0)
|
17
|
+
activesupport (= 6.0.0)
|
18
18
|
builder (~> 3.1)
|
19
19
|
erubi (~> 1.4)
|
20
20
|
rails-dom-testing (~> 2.0)
|
21
|
-
rails-html-sanitizer (~> 1.
|
22
|
-
activesupport (
|
21
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
22
|
+
activesupport (6.0.0)
|
23
23
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
24
24
|
i18n (>= 0.7, < 2)
|
25
25
|
minitest (~> 5.1)
|
26
26
|
tzinfo (~> 1.1)
|
27
|
+
zeitwerk (~> 2.1, >= 2.1.8)
|
27
28
|
ast (2.4.0)
|
28
29
|
builder (3.2.3)
|
29
30
|
colorize (0.8.1)
|
@@ -46,7 +47,7 @@ GEM
|
|
46
47
|
method_source (0.9.2)
|
47
48
|
mini_portile2 (2.4.0)
|
48
49
|
minitest (5.11.3)
|
49
|
-
nokogiri (1.10.
|
50
|
+
nokogiri (1.10.4)
|
50
51
|
mini_portile2 (~> 2.4.0)
|
51
52
|
parallel (1.17.0)
|
52
53
|
parser (2.6.3.0)
|
@@ -57,16 +58,16 @@ GEM
|
|
57
58
|
rails-dom-testing (2.0.3)
|
58
59
|
activesupport (>= 4.2.0)
|
59
60
|
nokogiri (>= 1.6)
|
60
|
-
rails-html-sanitizer (1.0
|
61
|
+
rails-html-sanitizer (1.2.0)
|
61
62
|
loofah (~> 2.2, >= 2.2.2)
|
62
|
-
railties (
|
63
|
-
actionpack (=
|
64
|
-
activesupport (=
|
63
|
+
railties (6.0.0)
|
64
|
+
actionpack (= 6.0.0)
|
65
|
+
activesupport (= 6.0.0)
|
65
66
|
method_source
|
66
67
|
rake (>= 0.8.7)
|
67
|
-
thor (>= 0.
|
68
|
+
thor (>= 0.20.3, < 2.0)
|
68
69
|
rainbow (3.0.0)
|
69
|
-
rake (12.3.
|
70
|
+
rake (12.3.3)
|
70
71
|
rspec (3.8.0)
|
71
72
|
rspec-core (~> 3.8.0)
|
72
73
|
rspec-expectations (~> 3.8.0)
|
@@ -80,16 +81,16 @@ GEM
|
|
80
81
|
diff-lcs (>= 1.2.0, < 2.0)
|
81
82
|
rspec-support (~> 3.8.0)
|
82
83
|
rspec-support (3.8.2)
|
83
|
-
rubocop (0.
|
84
|
+
rubocop (0.74.0)
|
84
85
|
jaro_winkler (~> 1.5.1)
|
85
86
|
parallel (~> 1.10)
|
86
87
|
parser (>= 2.6)
|
87
88
|
rainbow (>= 2.2.2, < 4.0)
|
88
89
|
ruby-progressbar (~> 1.7)
|
89
90
|
unicode-display_width (>= 1.4.0, < 1.7)
|
90
|
-
rubocop-performance (1.4.
|
91
|
+
rubocop-performance (1.4.1)
|
91
92
|
rubocop (>= 0.71.0)
|
92
|
-
rubocop-rspec (1.
|
93
|
+
rubocop-rspec (1.35.0)
|
93
94
|
rubocop (>= 0.60.0)
|
94
95
|
ruby-progressbar (1.10.1)
|
95
96
|
ruby_parser (3.13.1)
|
@@ -100,6 +101,7 @@ GEM
|
|
100
101
|
tzinfo (1.2.5)
|
101
102
|
thread_safe (~> 0.1)
|
102
103
|
unicode-display_width (1.6.0)
|
104
|
+
zeitwerk (2.1.9)
|
103
105
|
|
104
106
|
PLATFORMS
|
105
107
|
ruby
|
@@ -1,17 +1,19 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
if Lite::Measurements.configuration.monkey_patches
|
4
|
+
class Numeric
|
4
5
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
6
|
+
{
|
7
|
+
digital_storage: Lite::Measurements::DigitalStorage,
|
8
|
+
length: Lite::Measurements::Length,
|
9
|
+
mass: Lite::Measurements::Mass,
|
10
|
+
temperature: Lite::Measurements::Temperature,
|
11
|
+
time: Lite::Measurements::Time
|
12
|
+
}.each do |name, klass|
|
13
|
+
define_method("convert_#{name}") do |from:, to:|
|
14
|
+
klass.convert(self, from: from, to: to)
|
15
|
+
end
|
14
16
|
end
|
15
|
-
end
|
16
17
|
|
18
|
+
end
|
17
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lite-measurements
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|