lite-ruby 2.0.6 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3bfcb5d57c451a25bc72a6ff938450c49d1358a0012f35b5babf3975b8c6f8db
4
- data.tar.gz: 3820932280c726d51defe83da1bf5b359f94233393b6f297bf7ae0a51f1a40df
3
+ metadata.gz: 1a7c47f81572dc73bde077ef70e817c16e704ff16e1adfa4d5eeee8b0277f115
4
+ data.tar.gz: 99fc0631ca9de47585a4b7e3759eec15988910dbd4355188bd079218c1114138
5
5
  SHA512:
6
- metadata.gz: 553e4656191685b19c6c2943833f871a727c913e38ee61a617892e238ca32ca8ffb37547a83e2695f06b13ca8e0ad53de87a6332a9c78f00cbe23469eee6cce5
7
- data.tar.gz: 4eafb5c2e5234393528103f8b2d845ed7f020ed27f99cda57020b6b15ae5f69996aae0377c09fc8acfb0881c0118d46e163872435db8fd210064bf014ad431e3
6
+ metadata.gz: 49d87572e81b873e8c059004a8f395128b2cb421dc4ec76d01a57d6c3fb45cda662945f895bc304466771a586d6646a80c59c88c88c80792ddbd1740afee2010
7
+ data.tar.gz: 97d1291a149678e083f8dff1da8f03009eb60498be4681bf994e877496515db8fac7d2bfe18096caafd2ab268cbabc259d6a609bde1e3e91e8bb2a1271c01d70
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.7] - 2021-09-29
10
+ ### Added
11
+ - Added Range => `bounds`
12
+
9
13
  ## [2.0.6] - 2021-09-26
10
14
  ### Changed
11
15
  - Added DateTimeHelper => added missing comma to imperical date
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-ruby (2.0.6)
4
+ lite-ruby (2.0.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -46,7 +46,7 @@ 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.4)
49
+ nokogiri (1.12.5)
50
50
  mini_portile2 (~> 2.6.1)
51
51
  racc (~> 1.4)
52
52
  parallel (1.21.0)
@@ -84,16 +84,16 @@ 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.21.0)
87
+ rubocop (1.22.0)
88
88
  parallel (~> 1.10)
89
89
  parser (>= 3.0.0.0)
90
90
  rainbow (>= 2.2.2, < 4.0)
91
91
  regexp_parser (>= 1.8, < 3.0)
92
92
  rexml
93
- rubocop-ast (>= 1.9.1, < 2.0)
93
+ rubocop-ast (>= 1.12.0, < 2.0)
94
94
  ruby-progressbar (~> 1.7)
95
95
  unicode-display_width (>= 1.4.0, < 3.0)
96
- rubocop-ast (1.11.0)
96
+ rubocop-ast (1.12.0)
97
97
  parser (>= 3.0.1.1)
98
98
  rubocop-performance (1.11.5)
99
99
  rubocop (>= 1.7.0, < 2.0)
data/docs/RANGE.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Range
2
2
 
3
+ `bounds`
4
+ ------
5
+ Returns the first and last values of a range.
6
+
7
+ ```ruby
8
+ (1..9).bounds #=> [1, 9]
9
+ ```
10
+
3
11
  `combine`
4
12
  ------
5
13
  Returns two concatenated ranges.
@@ -2,6 +2,10 @@
2
2
 
3
3
  class Range
4
4
 
5
+ def bounds
6
+ [self.begin, self.end]
7
+ end
8
+
5
9
  def combine(other)
6
10
  to_a.concat(other.to_a)
7
11
  end
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Ruby
5
5
 
6
- VERSION = '2.0.6'
6
+ VERSION = '2.0.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: 2.0.6
4
+ version: 2.0.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-09-27 00:00:00.000000000 Z
11
+ date: 2021-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler