lite-ruby 2.0.4 → 2.0.5

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: ecd2c3a61307be32e0e81fc96bd6ea7c6dd66b944c42f1a9bac69789c897ef58
4
- data.tar.gz: a17ee24dc3b3fbd69f30304b179a13aa91e106f5531254a82613580f9988bfd3
3
+ metadata.gz: 2b98854699d757d16a1dedc0d4009fb4db3e3f601510209ff673b0ed59739e17
4
+ data.tar.gz: 57bf8e45d433913a1768c9804d7e83cf0551da47bb9f4624ece18527f0996b15
5
5
  SHA512:
6
- metadata.gz: a9b44c14b3c8b5532449b45acf3d919d4680f693896167fbdb50a2681f0370604bc07250f38c1b42cfbb17687a931c666a3dc1f2ee2577afd78e33a70dae4ea4
7
- data.tar.gz: b2e38bed720eb8756adaac18c3a405464c364b42c922fa752d50ef3e261fbba6080911916bfe7f071fb1659da3fcaaeba97590e0fa0d235212328675bd09f703
6
+ metadata.gz: bbc1e2e76116744944340445df23030c2dcccd10467832cf14c6fde912633f2b2dfa9c8b7f8ffef969094f2415388bc6e73e21f9b838c94ed5a2154d1affa9e7
7
+ data.tar.gz: 2e37a14e882ad5e5ea7636a8d43fa43028b8d633c7f5541321c4a433b2cc369ed42ff24d08f6e11a870d3783ea2eac4fc2a16f2dc646e8660e1cca24ab5a8c7e
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.5] - 2021-08-12
10
+ ### Changed
11
+ - Added DateTimeHelper => remove unit fallback to `stamp`
12
+
9
13
  ## [2.0.4] - 2021-08-12
10
14
  ### Changed
11
15
  - Added DateTimeHelper => add unit fallback to `stamp`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-ruby (2.0.4)
4
+ lite-ruby (2.0.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/docs/DATE.md CHANGED
@@ -37,7 +37,7 @@ Converts a `date` object to a predefined format.
37
37
 
38
38
  | Directive | Type | Key | `strftime` | Result |
39
39
  | --- | --- | --- | --- | --- |
40
- | Weekday | Zero-padded | `weekday`, `:weekday_padded` | %d | (01..31) |
40
+ | Weekday | Zero-padded | `:weekday`, `:weekday_padded` | %d | (01..31) |
41
41
  | Weekday | Blank-padded | `:weekday_blank` | %_d | ( 1..31) |
42
42
  | Weekday | Unpadded | `:weekday_unpadded` | %-d | (1..31) |
43
43
  | Weekday | Name | `:weekday_name` | %A | Sunday |
@@ -14,7 +14,7 @@ module Lite
14
14
 
15
15
  def stamp(key = nil)
16
16
  key ||= self.class::DEFAULT_STAMP
17
- strftime(self.class::STAMPS[key.to_s] || self.class::UNITS[key.to_s])
17
+ strftime(self.class::STAMPS[key.to_s])
18
18
  end
19
19
 
20
20
  alias to_format stamp
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Ruby
5
5
 
6
- VERSION = '2.0.4'
6
+ VERSION = '2.0.5'
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lite-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez