ptimelog 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ptimelog/version.rb +1 -1
- data/ptimelog.gemspec +3 -1
- metadata +2 -4
- data/exe/gpuzzletime +0 -53
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4683decb77f362d2861b903e30db9dcb330151f7ee43d6ddb3c332d3af4243b2
|
4
|
+
data.tar.gz: 23c0c132975613fb3f16c064930e6aa72b49e28fbd7cd9b3636aef6863cbb1e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e24c93aefa5a8ae475013593af737f872bade8f0f02997551bd2fe2cce049e64bd42869fe9648630f1b02191f2f7fc87883b942a9e266492c0fa09227c51b592
|
7
|
+
data.tar.gz: 043b2383d127e1aeccb716f8e14e47a365cdc309862c0d1309916ceb1695b194e1cb9aad1e4bc5f63f3b9a95aa3aae55981606018370b03d077a1f5a3d42159a
|
data/lib/ptimelog/version.rb
CHANGED
data/ptimelog.gemspec
CHANGED
@@ -15,7 +15,9 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.homepage = 'https://github.com/kronn/ptimelog'
|
16
16
|
spec.license = 'MIT'
|
17
17
|
|
18
|
-
spec.files = `git ls-files -z`.split("\x0").reject
|
18
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
19
|
+
f.match(%r{(gpuzzletime|^(test|spec|features)/)})
|
20
|
+
end
|
19
21
|
spec.bindir = 'exe'
|
20
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
23
|
spec.require_paths = ['lib']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ptimelog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthias Viehweger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -112,7 +112,6 @@ description:
|
|
112
112
|
email:
|
113
113
|
- kronn@kronn.de
|
114
114
|
executables:
|
115
|
-
- gpuzzletime
|
116
115
|
- ptimelog
|
117
116
|
extensions: []
|
118
117
|
extra_rdoc_files: []
|
@@ -131,7 +130,6 @@ files:
|
|
131
130
|
- Rakefile
|
132
131
|
- bin/console
|
133
132
|
- bin/setup
|
134
|
-
- exe/gpuzzletime
|
135
133
|
- exe/ptimelog
|
136
134
|
- lib/ptimelog.rb
|
137
135
|
- lib/ptimelog/app.rb
|
data/exe/gpuzzletime
DELETED
@@ -1,53 +0,0 @@
|
|
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
|