gpuzzletime 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/gpuzzletime +53 -0
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84c332b5bdbfdfc6c66f31f2cf48314bbad37107f812d861600374403f7deab6
|
4
|
+
data.tar.gz: 7f289f722bbdf8ea40fe69fe2563adc98ce1b11b6e74160dc6835ea62854400d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 057bf0c0bc62f3c26eccd57be0ab173700775fbd4006ce83a2f84c7b2f81ea9e01cdf87962d90be0907147dc943969961cdc04bdc6a5b5fff1a53f125621df86
|
7
|
+
data.tar.gz: 1aa1c4a961b9e7e59b9cc2fbc720cbf314ca3ff7dc01b455276385811c8143cca73e09e90e6fe5a10463688c971e3b6b913527b1c4ec177af8fd4a0926c6694a
|
data/exe/gpuzzletime
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require 'fileutils'
|
5
|
+
require 'pathname'
|
6
|
+
|
7
|
+
def upgrade_needed?
|
8
|
+
Pathname.new('~/.config/gpuzzletime').expand_path.exist?
|
9
|
+
end
|
10
|
+
|
11
|
+
def upgrade_config
|
12
|
+
FileUtils.mv Pathname.new('~/.config/gpuzzletime').expand_path,
|
13
|
+
Pathname.new('~/.config/ptimelog').expand_path,
|
14
|
+
verbose: true
|
15
|
+
end
|
16
|
+
|
17
|
+
warn <<~MESSAGE
|
18
|
+
|
19
|
+
=========================================================================
|
20
|
+
|
21
|
+
The name of the project has changed. Please use ptimelog from now on.
|
22
|
+
|
23
|
+
=========================================================================
|
24
|
+
|
25
|
+
MESSAGE
|
26
|
+
|
27
|
+
if upgrade_needed?
|
28
|
+
warn <<~MESSAGE
|
29
|
+
This script can automatically rename the directory for
|
30
|
+
configuration and external scripts on your machine.
|
31
|
+
|
32
|
+
MESSAGE
|
33
|
+
|
34
|
+
puts 'Upgrade now? [Yn]'
|
35
|
+
answer = STDIN.gets.chomp
|
36
|
+
|
37
|
+
if answer.empty? || answer =~ /^y/i
|
38
|
+
upgrade_config
|
39
|
+
puts 'Done.'
|
40
|
+
else
|
41
|
+
puts 'Okay, leaving everything as it were.'
|
42
|
+
end
|
43
|
+
puts
|
44
|
+
end
|
45
|
+
|
46
|
+
warn <<~MESSAGE
|
47
|
+
=========================================================================
|
48
|
+
|
49
|
+
No further action has been taken.
|
50
|
+
|
51
|
+
=========================================================================
|
52
|
+
|
53
|
+
MESSAGE
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gpuzzletime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthias Viehweger
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ptimelog
|
@@ -27,10 +27,12 @@ dependencies:
|
|
27
27
|
description:
|
28
28
|
email:
|
29
29
|
- kronn@kronn.de
|
30
|
-
executables:
|
30
|
+
executables:
|
31
|
+
- gpuzzletime
|
31
32
|
extensions: []
|
32
33
|
extra_rdoc_files: []
|
33
|
-
files:
|
34
|
+
files:
|
35
|
+
- exe/gpuzzletime
|
34
36
|
homepage: https://github.com/kronn/ptimelog
|
35
37
|
licenses:
|
36
38
|
- MIT
|