vgcal 0.2.2 → 0.2.3

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: d9427f79016b9b448b65faa61071dd501cd1d4005a08144d9c2ccf1d534e96c6
4
- data.tar.gz: d22cf01944eb513c7a7d21ca70183064aa297a61d7276b656296c58044aa047b
3
+ metadata.gz: e8dd7c78c6a1c70737ac7aa5f7d9e8e0d32060fb63adf0447db01acdaf5376c0
4
+ data.tar.gz: 5fbb39780a006902a4ec96105a0f773cb56d2b073ebd268e415a0789fd4f3039
5
5
  SHA512:
6
- metadata.gz: 2e8b28271f2a984f974fe24f7a34d5c043a5414ee146df6bd92005030e6c251740c3f8d9c6d1a49354734ecd780a999362fc241a6c3b4fde617bf8d8c0fc4321
7
- data.tar.gz: 89f6ec5cc3d4ae28c422e332862f4d6815409f426203548e74be04b0666fe8ee0ec1dd5227582d1172fb64e89f689089a3dc8b3c1cbb56e19b6e56ae290774c4
6
+ metadata.gz: '0748ef604645d4c5bce2a495a1373455b9c88773a6b34b0abd27fd8ef40a2a17d168d61de096223524cc92a2f145b79553ebbc890bdff1fb5c90f55f8cbc69fd'
7
+ data.tar.gz: a7f7bd82e58d3f63706f7711bcce7215ea3c2803fa9df51e1e406a0c62204f3eaaecc45bb4a1bdb337d599c74197ce9dd17f28540c653280d0900d8aa333983f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vgcal (0.2.1)
4
+ vgcal (0.2.3)
5
5
  dotenv
6
6
  google-api-client
7
7
  thor (~> 1.1)
@@ -113,7 +113,11 @@ module Vgcal
113
113
  elsif options['start-date'] && options['end-date']
114
114
  Date.parse(options['end-date'].to_s)
115
115
  else
116
- Date.today.to_s
116
+ if Date.today.sunday?
117
+ (Date.today + 6).to_s
118
+ else
119
+ (Date.today + (6 - Date.today.wday)).to_s
120
+ end
117
121
  end
118
122
  "#{e_date}T23:59:59+09:00"
119
123
  end
data/lib/vgcal/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vgcal
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vgcal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shota Ito
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-19 00:00:00.000000000 Z
11
+ date: 2021-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler