lite-measurements 1.0.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +17 -3
- data/.travis.yml +1 -0
- data/CHANGELOG.md +18 -0
- data/Gemfile.lock +83 -70
- data/lib/generators/lite/measurements/install_generator.rb +0 -2
- data/lib/lite/measurements.rb +3 -6
- data/lib/lite/measurements/configuration.rb +14 -8
- data/lib/lite/measurements/digital_storage.rb +1 -1
- data/lib/lite/measurements/helpers/conversion_helper.rb +4 -4
- data/lib/lite/measurements/length.rb +5 -5
- data/lib/lite/measurements/mass.rb +5 -5
- data/lib/lite/measurements/monkey_patches.rb +13 -11
- data/lib/lite/measurements/temperature.rb +5 -5
- data/lib/lite/measurements/time.rb +1 -1
- data/lib/lite/measurements/version.rb +1 -1
- data/lite-measurements.gemspec +2 -1
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6cab32c9502bf1582a4a450cfd22bfbeffe232dadebba759a1e17abdbd84685
|
4
|
+
data.tar.gz: 00f6cfada5e5638f1d4af4afc068467c52b4f5687aef9b38f95f03713f1aa1da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ba17383f0e5e87ace39217c6250e964485696943e6e4737215c6e748f4f192522fc4958638bc0898c74f2996cdab5fac18f8e638cff88c75f8fecb42ce1140b
|
7
|
+
data.tar.gz: 8f3d98b958018f61687e91b2a65f70263fde96115e560a18d7c73636acbedf89c083d7ab3273a7dfac842f2553bfb0de3a3dd2c063e231013259fba42bc48942
|
data/.rubocop.yml
CHANGED
@@ -1,12 +1,16 @@
|
|
1
1
|
require:
|
2
2
|
- rubocop-performance
|
3
|
+
- rubocop-rake
|
3
4
|
- rubocop-rspec
|
4
5
|
AllCops:
|
5
|
-
TargetRubyVersion:
|
6
|
+
TargetRubyVersion: 3.0
|
7
|
+
NewCops: enable
|
6
8
|
DisplayCopNames: true
|
7
9
|
DisplayStyleGuide: true
|
8
|
-
|
9
|
-
|
10
|
+
Gemspec/RequiredRubyVersion:
|
11
|
+
Enabled: false
|
12
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
13
|
+
Enabled: true
|
10
14
|
Layout/EmptyLinesAroundBlockBody:
|
11
15
|
Exclude:
|
12
16
|
- 'spec/**/**/*'
|
@@ -14,10 +18,20 @@ Layout/EmptyLinesAroundClassBody:
|
|
14
18
|
EnforcedStyle: empty_lines_except_namespace
|
15
19
|
Layout/EmptyLinesAroundModuleBody:
|
16
20
|
EnforcedStyle: empty_lines_except_namespace
|
21
|
+
Layout/LineLength:
|
22
|
+
Max: 100
|
23
|
+
Layout/SpaceAroundMethodCallOperator:
|
24
|
+
Enabled: true
|
25
|
+
Lint/RaiseException:
|
26
|
+
Enabled: true
|
27
|
+
Lint/StructNewOverride:
|
28
|
+
Enabled: true
|
17
29
|
Metrics/BlockLength:
|
18
30
|
Exclude:
|
19
31
|
- 'spec/**/**/*'
|
20
32
|
- '*.gemspec'
|
33
|
+
Style/ArgumentsForwarding:
|
34
|
+
Enabled: false
|
21
35
|
Style/Documentation:
|
22
36
|
Enabled: false
|
23
37
|
Style/ExpandPathArguments:
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.1.1] - 2021-07-21
|
10
|
+
### Changed
|
11
|
+
- Improved Railtie support
|
12
|
+
|
13
|
+
## [1.1.0] - 2021-07-19
|
14
|
+
### Added
|
15
|
+
- Added Ruby 3.0 support
|
16
|
+
|
17
|
+
## [1.0.2] - 2019-08-24
|
18
|
+
### Added
|
19
|
+
- Added ruby 2.7 support
|
20
|
+
### Changed
|
21
|
+
- Improved how configuration works
|
22
|
+
|
23
|
+
## [1.0.1] - 2019-08-17
|
24
|
+
### Changed
|
25
|
+
- Add check for monkey patches
|
26
|
+
|
9
27
|
## [1.0.0] - 2019-07-19
|
10
28
|
### Added
|
11
29
|
- Initial project version
|
data/Gemfile.lock
CHANGED
@@ -1,105 +1,117 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lite-measurements (1.
|
4
|
+
lite-measurements (1.1.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
actionpack (
|
10
|
-
actionview (=
|
11
|
-
activesupport (=
|
12
|
-
rack (~> 2.0)
|
9
|
+
actionpack (6.1.4)
|
10
|
+
actionview (= 6.1.4)
|
11
|
+
activesupport (= 6.1.4)
|
12
|
+
rack (~> 2.0, >= 2.0.9)
|
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.1.4)
|
17
|
+
activesupport (= 6.1.4)
|
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.1.4)
|
23
23
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
24
|
-
i18n (>=
|
25
|
-
minitest (
|
26
|
-
tzinfo (~>
|
27
|
-
|
28
|
-
|
24
|
+
i18n (>= 1.6, < 2)
|
25
|
+
minitest (>= 5.1)
|
26
|
+
tzinfo (~> 2.0)
|
27
|
+
zeitwerk (~> 2.3)
|
28
|
+
ast (2.4.2)
|
29
|
+
builder (3.2.4)
|
29
30
|
colorize (0.8.1)
|
30
|
-
concurrent-ruby (1.1.
|
31
|
-
crass (1.0.
|
32
|
-
diff-lcs (1.
|
33
|
-
erubi (1.
|
34
|
-
fasterer (0.
|
31
|
+
concurrent-ruby (1.1.9)
|
32
|
+
crass (1.0.6)
|
33
|
+
diff-lcs (1.4.4)
|
34
|
+
erubi (1.10.0)
|
35
|
+
fasterer (0.9.0)
|
35
36
|
colorize (~> 0.7)
|
36
|
-
ruby_parser (>= 3.
|
37
|
+
ruby_parser (>= 3.14.1)
|
37
38
|
generator_spec (0.9.4)
|
38
39
|
activesupport (>= 3.0.0)
|
39
40
|
railties (>= 3.0.0)
|
40
|
-
i18n (1.
|
41
|
+
i18n (1.8.10)
|
41
42
|
concurrent-ruby (~> 1.0)
|
42
|
-
|
43
|
-
loofah (2.2.3)
|
43
|
+
loofah (2.10.0)
|
44
44
|
crass (~> 1.0.2)
|
45
45
|
nokogiri (>= 1.5.9)
|
46
|
-
method_source (0.
|
47
|
-
mini_portile2 (2.
|
48
|
-
minitest (5.
|
49
|
-
nokogiri (1.
|
50
|
-
mini_portile2 (~> 2.
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
46
|
+
method_source (1.0.0)
|
47
|
+
mini_portile2 (2.5.3)
|
48
|
+
minitest (5.14.4)
|
49
|
+
nokogiri (1.11.7)
|
50
|
+
mini_portile2 (~> 2.5.0)
|
51
|
+
racc (~> 1.4)
|
52
|
+
parallel (1.20.1)
|
53
|
+
parser (3.0.2.0)
|
54
|
+
ast (~> 2.4.1)
|
55
|
+
racc (1.5.2)
|
56
|
+
rack (2.2.3)
|
55
57
|
rack-test (1.1.0)
|
56
58
|
rack (>= 1.0, < 3)
|
57
59
|
rails-dom-testing (2.0.3)
|
58
60
|
activesupport (>= 4.2.0)
|
59
61
|
nokogiri (>= 1.6)
|
60
|
-
rails-html-sanitizer (1.0
|
61
|
-
loofah (~> 2.
|
62
|
-
railties (
|
63
|
-
actionpack (=
|
64
|
-
activesupport (=
|
62
|
+
rails-html-sanitizer (1.3.0)
|
63
|
+
loofah (~> 2.3)
|
64
|
+
railties (6.1.4)
|
65
|
+
actionpack (= 6.1.4)
|
66
|
+
activesupport (= 6.1.4)
|
65
67
|
method_source
|
66
|
-
rake (>= 0.
|
67
|
-
thor (
|
68
|
+
rake (>= 0.13)
|
69
|
+
thor (~> 1.0)
|
68
70
|
rainbow (3.0.0)
|
69
|
-
rake (
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
rspec-
|
74
|
-
|
75
|
-
rspec-
|
76
|
-
rspec-
|
71
|
+
rake (13.0.6)
|
72
|
+
regexp_parser (2.1.1)
|
73
|
+
rexml (3.2.5)
|
74
|
+
rspec (3.10.0)
|
75
|
+
rspec-core (~> 3.10.0)
|
76
|
+
rspec-expectations (~> 3.10.0)
|
77
|
+
rspec-mocks (~> 3.10.0)
|
78
|
+
rspec-core (3.10.1)
|
79
|
+
rspec-support (~> 3.10.0)
|
80
|
+
rspec-expectations (3.10.1)
|
77
81
|
diff-lcs (>= 1.2.0, < 2.0)
|
78
|
-
rspec-support (~> 3.
|
79
|
-
rspec-mocks (3.
|
82
|
+
rspec-support (~> 3.10.0)
|
83
|
+
rspec-mocks (3.10.2)
|
80
84
|
diff-lcs (>= 1.2.0, < 2.0)
|
81
|
-
rspec-support (~> 3.
|
82
|
-
rspec-support (3.
|
83
|
-
rubocop (
|
84
|
-
jaro_winkler (~> 1.5.1)
|
85
|
+
rspec-support (~> 3.10.0)
|
86
|
+
rspec-support (3.10.2)
|
87
|
+
rubocop (1.18.3)
|
85
88
|
parallel (~> 1.10)
|
86
|
-
parser (>=
|
89
|
+
parser (>= 3.0.0.0)
|
87
90
|
rainbow (>= 2.2.2, < 4.0)
|
91
|
+
regexp_parser (>= 1.8, < 3.0)
|
92
|
+
rexml
|
93
|
+
rubocop-ast (>= 1.7.0, < 2.0)
|
88
94
|
ruby-progressbar (~> 1.7)
|
89
|
-
unicode-display_width (>= 1.4.0, <
|
90
|
-
rubocop-
|
91
|
-
|
92
|
-
rubocop-
|
93
|
-
rubocop (>=
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
95
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
96
|
+
rubocop-ast (1.8.0)
|
97
|
+
parser (>= 3.0.1.1)
|
98
|
+
rubocop-performance (1.11.4)
|
99
|
+
rubocop (>= 1.7.0, < 2.0)
|
100
|
+
rubocop-ast (>= 0.4.0)
|
101
|
+
rubocop-rake (0.6.0)
|
102
|
+
rubocop (~> 1.0)
|
103
|
+
rubocop-rspec (2.4.0)
|
104
|
+
rubocop (~> 1.0)
|
105
|
+
rubocop-ast (>= 1.1.0)
|
106
|
+
ruby-progressbar (1.11.0)
|
107
|
+
ruby_parser (3.16.0)
|
108
|
+
sexp_processor (~> 4.15, >= 4.15.1)
|
109
|
+
sexp_processor (4.15.3)
|
110
|
+
thor (1.1.0)
|
111
|
+
tzinfo (2.0.4)
|
112
|
+
concurrent-ruby (~> 1.0)
|
113
|
+
unicode-display_width (2.0.0)
|
114
|
+
zeitwerk (2.4.2)
|
103
115
|
|
104
116
|
PLATFORMS
|
105
117
|
ruby
|
@@ -113,7 +125,8 @@ DEPENDENCIES
|
|
113
125
|
rspec
|
114
126
|
rubocop
|
115
127
|
rubocop-performance
|
128
|
+
rubocop-rake
|
116
129
|
rubocop-rspec
|
117
130
|
|
118
131
|
BUNDLED WITH
|
119
|
-
2.
|
132
|
+
2.2.24
|
data/lib/lite/measurements.rb
CHANGED
@@ -1,17 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'generators/lite/measurements/install_generator' if defined?(Rails::Generators)
|
4
|
+
|
3
5
|
require 'lite/measurements/version'
|
4
6
|
require 'lite/measurements/configuration'
|
5
|
-
require 'lite/measurements/helpers/conversion_helper'
|
6
7
|
|
7
8
|
%w[conversion shift].each do |filename|
|
8
9
|
require "lite/measurements/helpers/#{filename}_helper"
|
9
10
|
end
|
10
11
|
|
11
|
-
%w[base digital_storage length mass temperature time].each do |filename|
|
12
|
+
%w[base digital_storage length mass temperature time monkey_patches].each do |filename|
|
12
13
|
require "lite/measurements/#{filename}"
|
13
14
|
end
|
14
|
-
|
15
|
-
require 'lite/measurements/monkey_patches' if Lite::Measurements.configuration.monkey_patches
|
16
|
-
|
17
|
-
require 'generators/lite/measurements/install_generator'
|
@@ -13,16 +13,22 @@ module Lite
|
|
13
13
|
|
14
14
|
end
|
15
15
|
|
16
|
-
|
17
|
-
@configuration ||= Configuration.new
|
18
|
-
end
|
16
|
+
class << self
|
19
17
|
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
attr_writer :configuration
|
19
|
+
|
20
|
+
def configuration
|
21
|
+
@configuration ||= Configuration.new
|
22
|
+
end
|
23
|
+
|
24
|
+
def configure
|
25
|
+
yield(configuration)
|
26
|
+
end
|
27
|
+
|
28
|
+
def reset_configuration!
|
29
|
+
@configuration = Configuration.new
|
30
|
+
end
|
23
31
|
|
24
|
-
def self.configure
|
25
|
-
yield(configuration)
|
26
32
|
end
|
27
33
|
|
28
34
|
end
|
@@ -6,7 +6,7 @@ module Lite
|
|
6
6
|
|
7
7
|
include Lite::Measurements::Helpers::ShiftHelper
|
8
8
|
|
9
|
-
DIGITAL_STORAGE_UNITS
|
9
|
+
DIGITAL_STORAGE_UNITS = {
|
10
10
|
bytes: 1.0, kilobytes: 1024.0, megabytes: 1024.0**2, gigabytes: 1024.0**3,
|
11
11
|
terabytes: 1024.0**4, petabytes: 1024.05**5, exabytes: 1024**6
|
12
12
|
}.freeze
|
@@ -11,17 +11,17 @@ module Lite
|
|
11
11
|
[imperical_keys, metric_keys].flatten
|
12
12
|
end
|
13
13
|
|
14
|
-
# rubocop:disable
|
15
|
-
def convert_to_imperical_units(units, from: nil,
|
14
|
+
# rubocop:disable Layout/LineLength
|
15
|
+
def convert_to_imperical_units(units, convert_to:, convert_from:, from: nil, to: nil)
|
16
16
|
units = shift_units(units, type: klass::METRIC_UNITS, from: from, to: convert_to)
|
17
17
|
shift_units(units / klass::CONVERTER, type: klass::IMPERICAL_UNITS, from: convert_from, to: to)
|
18
18
|
end
|
19
19
|
|
20
|
-
def convert_to_metric_units(units, from: nil,
|
20
|
+
def convert_to_metric_units(units, convert_to:, convert_from:, from: nil, to: nil)
|
21
21
|
units = shift_units(units, type: klass::IMPERICAL_UNITS, from: from, to: convert_to)
|
22
22
|
shift_units(units * klass::CONVERTER, type: klass::METRIC_UNITS, from: convert_from, to: to)
|
23
23
|
end
|
24
|
-
# rubocop:enable
|
24
|
+
# rubocop:enable Layout/LineLength
|
25
25
|
|
26
26
|
def convert_to_imperical_units?(from, to)
|
27
27
|
metric_keys.include?(from) && imperical_keys.include?(to)
|
@@ -7,17 +7,17 @@ module Lite
|
|
7
7
|
include Lite::Measurements::Helpers::ConversionHelper
|
8
8
|
include Lite::Measurements::Helpers::ShiftHelper
|
9
9
|
|
10
|
-
CONVERTER
|
10
|
+
CONVERTER = 0.0254
|
11
11
|
|
12
|
-
IMPERICAL_UNITS
|
12
|
+
IMPERICAL_UNITS = {
|
13
13
|
inches: 1.0, feet: 12.0, yards: 36.0, miles: 63_360.0, nautical_miles: 72_913.386
|
14
14
|
}.freeze
|
15
|
-
METRIC_UNITS
|
15
|
+
METRIC_UNITS = {
|
16
16
|
micrometers: 0.000001, millimeters: 0.001, centimeters: 0.01, decimeters: 0.1, meters: 1.0,
|
17
17
|
dekameters: 10.0, hectometers: 100.0, kilometers: 1_000.0
|
18
18
|
}.freeze
|
19
19
|
|
20
|
-
# rubocop:disable Metrics/
|
20
|
+
# rubocop:disable Metrics/MethodLength, Layout/LineLength
|
21
21
|
def convert(from:, to:)
|
22
22
|
assert_all_valid_keys!(from, to, all_keys)
|
23
23
|
|
@@ -33,7 +33,7 @@ module Lite
|
|
33
33
|
convert_to_imperical_units(amount, from: from, convert_to: :meters, convert_from: :inches, to: to)
|
34
34
|
end
|
35
35
|
end
|
36
|
-
# rubocop:enable Metrics/
|
36
|
+
# rubocop:enable Metrics/MethodLength, Layout/LineLength
|
37
37
|
|
38
38
|
end
|
39
39
|
end
|
@@ -7,17 +7,17 @@ module Lite
|
|
7
7
|
include Lite::Measurements::Helpers::ConversionHelper
|
8
8
|
include Lite::Measurements::Helpers::ShiftHelper
|
9
9
|
|
10
|
-
CONVERTER
|
10
|
+
CONVERTER = 28.349523125
|
11
11
|
|
12
|
-
IMPERICAL_UNITS
|
12
|
+
IMPERICAL_UNITS = {
|
13
13
|
ounces: 1.0, pounds: 16.0, stones: 224.0, us_tons: 32_000.0, imperial_tons: 35_840.0
|
14
14
|
}.freeze
|
15
|
-
METRIC_UNITS
|
15
|
+
METRIC_UNITS = {
|
16
16
|
micrograms: 0.000001, milligrams: 0.001, centigrams: 0.01, decigrams: 0.1, grams: 1.0,
|
17
17
|
dekagrams: 10.0, hectograms: 100.0, kilograms: 1_000.0, metric_tons: 1_000_000.0
|
18
18
|
}.freeze
|
19
19
|
|
20
|
-
# rubocop:disable Metrics/
|
20
|
+
# rubocop:disable Metrics/MethodLength, Layout/LineLength
|
21
21
|
def convert(from:, to:)
|
22
22
|
assert_all_valid_keys!(from, to, all_keys)
|
23
23
|
|
@@ -33,7 +33,7 @@ module Lite
|
|
33
33
|
convert_to_imperical_units(amount, from: from, convert_to: :grams, convert_from: :ounces, to: to)
|
34
34
|
end
|
35
35
|
end
|
36
|
-
# rubocop:enable Metrics/
|
36
|
+
# rubocop:enable Metrics/MethodLength, Layout/LineLength
|
37
37
|
|
38
38
|
end
|
39
39
|
end
|
@@ -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
|
@@ -4,12 +4,12 @@ module Lite
|
|
4
4
|
module Measurements
|
5
5
|
class Temperature < Lite::Measurements::Base
|
6
6
|
|
7
|
-
C_FREEZING_POINT
|
8
|
-
C_INVERSED_POINT
|
9
|
-
F_FREEZING_POINT
|
10
|
-
K_FREEZING_POINT
|
7
|
+
C_FREEZING_POINT = 5.0 / 9.0
|
8
|
+
C_INVERSED_POINT = 9.0 / 5.0
|
9
|
+
F_FREEZING_POINT = 32.0
|
10
|
+
K_FREEZING_POINT = 273.15
|
11
11
|
|
12
|
-
VALID_KEYS
|
12
|
+
VALID_KEYS = %i[
|
13
13
|
celsius fahrenheit kelvin
|
14
14
|
].freeze
|
15
15
|
|
@@ -6,7 +6,7 @@ module Lite
|
|
6
6
|
|
7
7
|
include Lite::Measurements::Helpers::ShiftHelper
|
8
8
|
|
9
|
-
TIME_UNITS
|
9
|
+
TIME_UNITS = {
|
10
10
|
milliseconds: 0.001, seconds: 1.0, minutes: 60.0, hours: 3600.0, days: 86_400.0,
|
11
11
|
weeks: 604_800.0, years: 31_557_600.0, decades: 31_557_600.0 * 10.0,
|
12
12
|
centuries: 31_557_600.0 * 100.0, millenniums: 31_557_600.0 * 1_000.0
|
data/lite-measurements.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
)
|
26
26
|
else
|
27
27
|
raise 'RubyGems 2.0 or newer is required to protect against ' \
|
28
|
-
|
28
|
+
'public gem pushes.'
|
29
29
|
end
|
30
30
|
|
31
31
|
# Specify which files should be added to the gem when it is released.
|
@@ -44,5 +44,6 @@ Gem::Specification.new do |spec|
|
|
44
44
|
spec.add_development_dependency 'rspec'
|
45
45
|
spec.add_development_dependency 'rubocop'
|
46
46
|
spec.add_development_dependency 'rubocop-performance'
|
47
|
+
spec.add_development_dependency 'rubocop-rake'
|
47
48
|
spec.add_development_dependency 'rubocop-rspec'
|
48
49
|
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.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop-rake
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: rubocop-rspec
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,7 +136,7 @@ dependencies:
|
|
122
136
|
- - ">="
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: '0'
|
125
|
-
description:
|
139
|
+
description:
|
126
140
|
email:
|
127
141
|
- j.gomez@drexed.com
|
128
142
|
executables: []
|
@@ -169,7 +183,7 @@ homepage: http://drexed.github.io/lite-measurements
|
|
169
183
|
licenses:
|
170
184
|
- MIT
|
171
185
|
metadata: {}
|
172
|
-
post_install_message:
|
186
|
+
post_install_message:
|
173
187
|
rdoc_options: []
|
174
188
|
require_paths:
|
175
189
|
- lib
|
@@ -184,8 +198,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
198
|
- !ruby/object:Gem::Version
|
185
199
|
version: '0'
|
186
200
|
requirements: []
|
187
|
-
rubygems_version: 3.
|
188
|
-
signing_key:
|
201
|
+
rubygems_version: 3.2.24
|
202
|
+
signing_key:
|
189
203
|
specification_version: 4
|
190
204
|
summary: Convert measurements to different unit sizes or types
|
191
205
|
test_files: []
|