lite-ruby 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +20 -21
- data/lib/lite/ruby/formats/date_stamps.yml +2 -2
- data/lib/lite/ruby/formats/time_stamps.yml +8 -8
- data/lib/lite/ruby/numeric.rb +2 -2
- data/lib/lite/ruby/safe/array.rb +1 -1
- data/lib/lite/ruby/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bfcb5d57c451a25bc72a6ff938450c49d1358a0012f35b5babf3975b8c6f8db
|
4
|
+
data.tar.gz: 3820932280c726d51defe83da1bf5b359f94233393b6f297bf7ae0a51f1a40df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 553e4656191685b19c6c2943833f871a727c913e38ee61a617892e238ca32ca8ffb37547a83e2695f06b13ca8e0ad53de87a6332a9c78f00cbe23469eee6cce5
|
7
|
+
data.tar.gz: 4eafb5c2e5234393528103f8b2d845ed7f020ed27f99cda57020b6b15ae5f69996aae0377c09fc8acfb0881c0118d46e163872435db8fd210064bf014ad431e3
|
data/.rubocop.yml
CHANGED
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
|
+
## [2.0.6] - 2021-09-26
|
10
|
+
### Changed
|
11
|
+
- Added DateTimeHelper => added missing comma to imperical date
|
12
|
+
|
9
13
|
## [2.0.5] - 2021-08-12
|
10
14
|
### Changed
|
11
15
|
- Added DateTimeHelper => remove unit fallback to `stamp`
|
data/Gemfile.lock
CHANGED
@@ -1,25 +1,25 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lite-ruby (2.0.
|
4
|
+
lite-ruby (2.0.6)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
actionpack (6.1.4)
|
10
|
-
actionview (= 6.1.4)
|
11
|
-
activesupport (= 6.1.4)
|
9
|
+
actionpack (6.1.4.1)
|
10
|
+
actionview (= 6.1.4.1)
|
11
|
+
activesupport (= 6.1.4.1)
|
12
12
|
rack (~> 2.0, >= 2.0.9)
|
13
13
|
rack-test (>= 0.6.3)
|
14
14
|
rails-dom-testing (~> 2.0)
|
15
15
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
16
|
-
actionview (6.1.4)
|
17
|
-
activesupport (= 6.1.4)
|
16
|
+
actionview (6.1.4.1)
|
17
|
+
activesupport (= 6.1.4.1)
|
18
18
|
builder (~> 3.1)
|
19
19
|
erubi (~> 1.4)
|
20
20
|
rails-dom-testing (~> 2.0)
|
21
21
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
22
|
-
activesupport (6.1.4)
|
22
|
+
activesupport (6.1.4.1)
|
23
23
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
24
24
|
i18n (>= 1.6, < 2)
|
25
25
|
minitest (>= 5.1)
|
@@ -46,10 +46,10 @@ GEM
|
|
46
46
|
method_source (1.0.0)
|
47
47
|
mini_portile2 (2.6.1)
|
48
48
|
minitest (5.14.4)
|
49
|
-
nokogiri (1.12.
|
49
|
+
nokogiri (1.12.4)
|
50
50
|
mini_portile2 (~> 2.6.1)
|
51
51
|
racc (~> 1.4)
|
52
|
-
parallel (1.
|
52
|
+
parallel (1.21.0)
|
53
53
|
parser (3.0.2.0)
|
54
54
|
ast (~> 2.4.1)
|
55
55
|
racc (1.5.2)
|
@@ -59,11 +59,11 @@ GEM
|
|
59
59
|
rails-dom-testing (2.0.3)
|
60
60
|
activesupport (>= 4.2.0)
|
61
61
|
nokogiri (>= 1.6)
|
62
|
-
rails-html-sanitizer (1.
|
62
|
+
rails-html-sanitizer (1.4.2)
|
63
63
|
loofah (~> 2.3)
|
64
|
-
railties (6.1.4)
|
65
|
-
actionpack (= 6.1.4)
|
66
|
-
activesupport (= 6.1.4)
|
64
|
+
railties (6.1.4.1)
|
65
|
+
actionpack (= 6.1.4.1)
|
66
|
+
activesupport (= 6.1.4.1)
|
67
67
|
method_source
|
68
68
|
rake (>= 0.13)
|
69
69
|
thor (~> 1.0)
|
@@ -84,7 +84,7 @@ GEM
|
|
84
84
|
diff-lcs (>= 1.2.0, < 2.0)
|
85
85
|
rspec-support (~> 3.10.0)
|
86
86
|
rspec-support (3.10.2)
|
87
|
-
rubocop (1.
|
87
|
+
rubocop (1.21.0)
|
88
88
|
parallel (~> 1.10)
|
89
89
|
parser (>= 3.0.0.0)
|
90
90
|
rainbow (>= 2.2.2, < 4.0)
|
@@ -93,16 +93,15 @@ GEM
|
|
93
93
|
rubocop-ast (>= 1.9.1, < 2.0)
|
94
94
|
ruby-progressbar (~> 1.7)
|
95
95
|
unicode-display_width (>= 1.4.0, < 3.0)
|
96
|
-
rubocop-ast (1.
|
96
|
+
rubocop-ast (1.11.0)
|
97
97
|
parser (>= 3.0.1.1)
|
98
|
-
rubocop-performance (1.11.
|
98
|
+
rubocop-performance (1.11.5)
|
99
99
|
rubocop (>= 1.7.0, < 2.0)
|
100
100
|
rubocop-ast (>= 0.4.0)
|
101
101
|
rubocop-rake (0.6.0)
|
102
102
|
rubocop (~> 1.0)
|
103
|
-
rubocop-rspec (2.
|
104
|
-
rubocop (~> 1.
|
105
|
-
rubocop-ast (>= 1.1.0)
|
103
|
+
rubocop-rspec (2.5.0)
|
104
|
+
rubocop (~> 1.19)
|
106
105
|
ruby-progressbar (1.11.0)
|
107
106
|
ruby_parser (3.17.0)
|
108
107
|
sexp_processor (~> 4.15, >= 4.15.1)
|
@@ -110,7 +109,7 @@ GEM
|
|
110
109
|
thor (1.1.0)
|
111
110
|
tzinfo (2.0.4)
|
112
111
|
concurrent-ruby (~> 1.0)
|
113
|
-
unicode-display_width (2.
|
112
|
+
unicode-display_width (2.1.0)
|
114
113
|
zeitwerk (2.4.2)
|
115
114
|
|
116
115
|
PLATFORMS
|
@@ -129,4 +128,4 @@ DEPENDENCIES
|
|
129
128
|
rubocop-rspec
|
130
129
|
|
131
130
|
BUNDLED WITH
|
132
|
-
2.2.
|
131
|
+
2.2.26
|
@@ -28,15 +28,15 @@ daytime_iso: '%m-%d %H:%M'
|
|
28
28
|
daytime12: '%B %-d %I:%M %P'
|
29
29
|
daytime12_abbr: '%b %-d %I:%M %P'
|
30
30
|
daytime12_iso: '%m-%d %I:%M %P'
|
31
|
-
datetime: '%B %-d %Y %H:%M'
|
32
|
-
datetime_abbr: '%b %-d %Y %H:%M'
|
31
|
+
datetime: '%B %-d, %Y %H:%M'
|
32
|
+
datetime_abbr: '%b %-d, %Y %H:%M'
|
33
33
|
datetime_iso: '%Y-%m-%d %H:%M'
|
34
|
-
datetime12: '%B %-d %Y %I:%M %P'
|
35
|
-
datetime12_abbr: '%b %-d %Y %I:%M %P'
|
34
|
+
datetime12: '%B %-d, %Y %I:%M %P'
|
35
|
+
datetime12_abbr: '%b %-d, %Y %I:%M %P'
|
36
36
|
datetime12_iso: '%Y-%m-%d %I:%M %P'
|
37
|
-
datetime_tzn: '%B %-d %Y %H:%M %Z'
|
38
|
-
datetime_abbr_tzn: '%b %-d %Y %H:%M %Z'
|
37
|
+
datetime_tzn: '%B %-d, %Y %H:%M %Z'
|
38
|
+
datetime_abbr_tzn: '%b %-d, %Y %H:%M %Z'
|
39
39
|
datetime_iso_tzn: '%Y-%m-%d %H:%M %z'
|
40
|
-
datetime12_tzn: '%B %-d %Y %I:%M %P %Z'
|
41
|
-
datetime12_abbr_tzn: '%b %-d %Y %I:%M %P %Z'
|
40
|
+
datetime12_tzn: '%B %-d, %Y %I:%M %P %Z'
|
41
|
+
datetime12_abbr_tzn: '%b %-d, %Y %I:%M %P %Z'
|
42
42
|
datetime12_iso_tzn: '%Y-%m-%d %I:%M %P %z'
|
data/lib/lite/ruby/numeric.rb
CHANGED
@@ -23,7 +23,7 @@ class Numeric
|
|
23
23
|
if a.zero? || b.zero?
|
24
24
|
(a - b).abs < epsilon
|
25
25
|
else
|
26
|
-
(a / b - 1).abs < epsilon
|
26
|
+
((a / b) - 1).abs < epsilon
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
@@ -243,7 +243,7 @@ class Numeric
|
|
243
243
|
if alpha.zero? || beta.zero?
|
244
244
|
(alpha - beta).abs < epsilon
|
245
245
|
else
|
246
|
-
(alpha / beta - 1).abs < epsilon
|
246
|
+
((alpha / beta) - 1).abs < epsilon
|
247
247
|
end
|
248
248
|
end
|
249
249
|
|
data/lib/lite/ruby/safe/array.rb
CHANGED
data/lib/lite/ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lite-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
227
|
- !ruby/object:Gem::Version
|
228
228
|
version: '0'
|
229
229
|
requirements: []
|
230
|
-
rubygems_version: 3.2.
|
230
|
+
rubygems_version: 3.2.26
|
231
231
|
signing_key:
|
232
232
|
specification_version: 4
|
233
233
|
summary: Collection of useful Ruby methods for its primitive classes
|