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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dce6204f52df08a3479f361d7f8612d71205c9d80ebda70e7417a35f7f296e3e
4
- data.tar.gz: ccbc500e250c208a001959d6724350d4465efff254e9510d9efe072b2b984ccd
3
+ metadata.gz: 754758e082964cbd6e746fa1600d70407cb166a6f734f030dfa7af4c6f56ab59
4
+ data.tar.gz: 5ca5b154d0e48b2548d36f4f7e9ae9a48ed55cf12f9916129d1c15ed4595ad66
5
5
  SHA512:
6
- metadata.gz: 7364280b98ab082c6c9a4ebb7876d6188bf4126c039ab5eb59a28535d25b2ef9d323875d8080268c4b29c32d71b67577a5523dedf512d9180ab51cf41f5ef3ad
7
- data.tar.gz: 74893ab678f85e53957e03ab6e3f59e308470b3282148ec2baf5edc7bf8182e7fec7aaefced5595c1e022bde09db67c4fc7b4b3fc1e2449b999dc90115a9b386
6
+ metadata.gz: d8c81eff5ded61aa3674bf11d31d1c06e06d3044866bdeb04b2e62896c2a6ee0336884c1843e0dfa46ab06c87cacd893bf8a88d7f39cf3ae5cd3a1e16f119346
7
+ data.tar.gz: 8caa230d94af106122f5d281b52f53051d737eacfe5c6618da6d55c04c5741b4cd01612326a7be697795ebea92d4c92e71a629d8d91511b675a4509ba64237cb
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.0.1] - 2019-08-17
10
+ ### Changed
11
+ - Add check for monkey patches
12
+
9
13
  ## [1.0.0] - 2019-07-19
10
14
  ### Added
11
15
  - Initial project version
data/Gemfile.lock CHANGED
@@ -1,29 +1,30 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-measurements (1.0.0)
4
+ lite-measurements (1.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- actionpack (5.2.3)
10
- actionview (= 5.2.3)
11
- activesupport (= 5.2.3)
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.2)
16
- actionview (5.2.3)
17
- activesupport (= 5.2.3)
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.0, >= 1.0.3)
22
- activesupport (5.2.3)
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.3)
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.4)
61
+ rails-html-sanitizer (1.2.0)
61
62
  loofah (~> 2.2, >= 2.2.2)
62
- railties (5.2.3)
63
- actionpack (= 5.2.3)
64
- activesupport (= 5.2.3)
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.19.0, < 2.0)
68
+ thor (>= 0.20.3, < 2.0)
68
69
  rainbow (3.0.0)
69
- rake (12.3.2)
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.72.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.0)
91
+ rubocop-performance (1.4.1)
91
92
  rubocop (>= 0.71.0)
92
- rubocop-rspec (1.33.0)
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
- class Numeric
3
+ if Lite::Measurements.configuration.monkey_patches
4
+ class Numeric
4
5
 
5
- {
6
- digital_storage: Lite::Measurements::DigitalStorage,
7
- length: Lite::Measurements::Length,
8
- mass: Lite::Measurements::Mass,
9
- temperature: Lite::Measurements::Temperature,
10
- time: Lite::Measurements::Time
11
- }.each do |name, klass|
12
- define_method("convert_#{name}") do |from:, to:|
13
- klass.convert(self, from: from, to: to)
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
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Measurements
5
5
 
6
- VERSION ||= '1.0.0'
6
+ VERSION ||= '1.0.1'
7
7
 
8
8
  end
9
9
  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.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-07-19 00:00:00.000000000 Z
11
+ date: 2019-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler