lite-ruby 1.1.6 → 1.1.7

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: 0b06f7b36c3754751a9e1c761c18907bb26477c24f8a3158f975cb12eb17402f
4
- data.tar.gz: 6307adb22344057bbc07fb84c2853c6cb580aad9880a54dd6fccdb76bc21ca9e
3
+ metadata.gz: 449bb1f7a973ab0c66adef45e5a8a7d0b222cacac8c96f2776ebfc2654273dc4
4
+ data.tar.gz: 38a4bbdf3182c831d4dcde08f6eef607413894eb94a6546675918c95e07b2ba0
5
5
  SHA512:
6
- metadata.gz: 9eeeea04d66003344b0897c6d0a6435025dd04070e58927282dac1d295a5f2b8c2424e506cc140bcf9bb61cbb0bf843a9fe917f876fbc05075dfb53db2767020
7
- data.tar.gz: 9c77717bcf0d4f5a2904250483b62f9236ce84a5215bebf4dcbdab45d59937f10831f1e98a900d0822ae3e8d72b26d60d5a4570a2c18b4d0d56f7cb506b706fa
6
+ metadata.gz: 17a571db6be5716b0618b5245981a7601762d243fcc1173f4813891918a1bf6413d04b04a13e376dfe66088fc53ac4e5020363e7d88fe4840c0be78182b5acc8
7
+ data.tar.gz: 7958b5a6d6680c57723337085c28b244b7cf37e277560ec6e2ef25aa5fc4fc75f4f06d21db34d5f6ec3ce06e98a74eac0e8b110a7f730faa46ab46cbabcc781b
data/CHANGELOG.md CHANGED
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.1.7] - 2021-03-04
10
+ ### Added
11
+ - Added Integer => `SQL_SMALLINT`
12
+ - Added Integer => `SQL_INTEGER`
13
+ - Added Integer => `SQL_BIGINT`
14
+
9
15
  ## [1.1.6] - 2021-02-17
10
16
  ### Added
11
17
  - Added Time => `monotonic`
data/Gemfile.lock CHANGED
@@ -1,25 +1,25 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-ruby (1.1.6)
4
+ lite-ruby (1.1.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- actionpack (6.1.2.1)
10
- actionview (= 6.1.2.1)
11
- activesupport (= 6.1.2.1)
9
+ actionpack (6.1.3)
10
+ actionview (= 6.1.3)
11
+ activesupport (= 6.1.3)
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.2.1)
17
- activesupport (= 6.1.2.1)
16
+ actionview (6.1.3)
17
+ activesupport (= 6.1.3)
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.2.1)
22
+ activesupport (6.1.3)
23
23
  concurrent-ruby (~> 1.0, >= 1.0.2)
24
24
  i18n (>= 1.6, < 2)
25
25
  minitest (>= 5.1)
@@ -45,7 +45,7 @@ GEM
45
45
  nokogiri (>= 1.5.9)
46
46
  method_source (1.0.0)
47
47
  mini_portile2 (2.5.0)
48
- minitest (5.14.3)
48
+ minitest (5.14.4)
49
49
  nokogiri (1.11.1)
50
50
  mini_portile2 (~> 2.5.0)
51
51
  racc (~> 1.4)
@@ -61,15 +61,15 @@ GEM
61
61
  nokogiri (>= 1.6)
62
62
  rails-html-sanitizer (1.3.0)
63
63
  loofah (~> 2.3)
64
- railties (6.1.2.1)
65
- actionpack (= 6.1.2.1)
66
- activesupport (= 6.1.2.1)
64
+ railties (6.1.3)
65
+ actionpack (= 6.1.3)
66
+ activesupport (= 6.1.3)
67
67
  method_source
68
68
  rake (>= 0.8.7)
69
69
  thor (~> 1.0)
70
70
  rainbow (3.0.0)
71
71
  rake (13.0.3)
72
- regexp_parser (2.0.3)
72
+ regexp_parser (2.1.1)
73
73
  rexml (3.2.4)
74
74
  rspec (3.10.0)
75
75
  rspec-core (~> 3.10.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.10.0)
87
+ rubocop (1.11.0)
88
88
  parallel (~> 1.10)
89
89
  parser (>= 3.0.0.0)
90
90
  rainbow (>= 2.2.2, < 4.0)
@@ -95,7 +95,7 @@ GEM
95
95
  unicode-display_width (>= 1.4.0, < 3.0)
96
96
  rubocop-ast (1.4.1)
97
97
  parser (>= 2.7.1.5)
98
- rubocop-performance (1.9.2)
98
+ rubocop-performance (1.10.1)
99
99
  rubocop (>= 0.90.0, < 2.0)
100
100
  rubocop-ast (>= 0.4.0)
101
101
  rubocop-rake (0.5.1)
@@ -129,4 +129,4 @@ DEPENDENCIES
129
129
  rubocop-rspec
130
130
 
131
131
  BUNDLED WITH
132
- 2.2.9
132
+ 2.2.12
@@ -274,12 +274,10 @@ if Lite::Ruby.configuration.monkey_patches.include?('hash')
274
274
  dup.rename_keys!(*keys)
275
275
  end
276
276
 
277
- # rubocop:disable Style/HashConversion
278
277
  def rename_keys!(*keys)
279
278
  keys = Hash[*keys]
280
279
  keys.each_with_object(self) { |(key, val), hash| hash[val] = delete(key) if hash[key] }
281
280
  end
282
- # rubocop:enable Style/HashConversion
283
281
 
284
282
  def sample
285
283
  key = sample_key
@@ -4,10 +4,14 @@ if Lite::Ruby.configuration.monkey_patches.include?('integer')
4
4
  class Integer
5
5
 
6
6
  ROMAN_NUMERALS = {
7
- M: 1000, CM: 900, D: 500, CD: 400, C: 100, XC: 90, L: 50, XL: 40, X: 10, IX: 9, V: 5, IV: 4,
8
- I: 1
7
+ M: 1000, CM: 900, D: 500, CD: 400, C: 100, XC: 90, L: 50,
8
+ XL: 40, X: 10, IX: 9, V: 5, IV: 4, I: 1
9
9
  }.freeze
10
10
 
11
+ SQL_SMALLINT = 32_767
12
+ SQL_INTEGER = 2_147_483_647
13
+ SQL_BIGINT = 9_223_372_036_854_775_807
14
+
11
15
  def bit(bit)
12
16
  if bit.negative?
13
17
  mask = (1 << ~bit)
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Ruby
5
5
 
6
- VERSION = '1.1.6'
6
+ VERSION = '1.1.7'
7
7
 
8
8
  end
9
9
  end
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: 1.1.6
4
+ version: 1.1.7
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-02-17 00:00:00.000000000 Z
11
+ date: 2021-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -222,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
222
222
  - !ruby/object:Gem::Version
223
223
  version: '0'
224
224
  requirements: []
225
- rubygems_version: 3.2.9
225
+ rubygems_version: 3.2.12
226
226
  signing_key:
227
227
  specification_version: 4
228
228
  summary: Collection of useful Ruby methods for its primitive classes