cremefraiche 1.1.8 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/cremefraiche +31 -31
- data/cremefraiche.gemspec +1 -1
- data/lib/.translations.swp +0 -0
- data/lib/config +1 -1
- data/lib/configuration.rb +4 -4
- data/lib/translations +3 -0
- data/lib/version.rb +2 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3efc7d8f9fa09101a0c5ddeb4ccc42ff65a2ff1146e6384dd333fef7215caf7
|
4
|
+
data.tar.gz: ce3983f14453cdf80d8ae9ec9a901c6fe0770f8babc36a25287bb3869f823b62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22c0d331466b9ab3ec151722f5eab65ab00ed0068af2a212e2934b8d929bc2dbc2ce83a19a36e4c244da015ab56d8a219fe0b80f9784975a60c8b4e70b0fc23f
|
7
|
+
data.tar.gz: 4ece41bcbad3152df4a0a1b4ad8168deb17bfb5b13e3a05f5744d9fc7753603ea4f1cf2c8545d40bc8956d538f54864315a2d4ee202069cc4d9b80913ee64b41
|
data/bin/cremefraiche
CHANGED
@@ -26,6 +26,37 @@ require_relative '../lib/version'
|
|
26
26
|
extend(BasicLogging)
|
27
27
|
extend(Translating)
|
28
28
|
|
29
|
+
# Should a user wish to either update her/his private version of the configuration-file by the current
|
30
|
+
# contents of the file originally found in the downloaded program package, this function does the job.
|
31
|
+
# It creates a copy of the original file, also, if there is not yet one, in ~/.cremefraiche/config or
|
32
|
+
# whatever the Configuration-singleton returns as file-name for user_configuration.
|
33
|
+
def handle_user_conf
|
34
|
+
conf_check = ConfCheck.new()
|
35
|
+
diffs = conf_check.diffs
|
36
|
+
replace = false
|
37
|
+
if( diffs)
|
38
|
+
if(diffs && diffs[:missing].empty? && diffs[:additional].empty?)
|
39
|
+
puts trl("No changes to your user-configuration are necessary.")
|
40
|
+
return false;
|
41
|
+
else
|
42
|
+
m = diffs[:missing]
|
43
|
+
a = diffs[:additional]
|
44
|
+
puts trl("\nThe following changes can be effectuated on your user-configuration")
|
45
|
+
puts "\t+ " << trl("New options") << ":\n\t\t" << m.join('\n\t\t ') if !m.empty?
|
46
|
+
puts "\t- " << trl("Obsolete Options") << ":\n\t\t" << a.join(', ') if !a.empty?
|
47
|
+
puts trl("Do you want to replace your current user-configuration?")
|
48
|
+
puts trl("If you answer 'yes' a back-up copy of your old file will still be available.")
|
49
|
+
puts trl("But your old settings will be replaced by the defaults.")
|
50
|
+
print trl("Your answer (Y/n): ")
|
51
|
+
replace = STDIN.getc.downcase == trl("y") ? true : false
|
52
|
+
end
|
53
|
+
if(! replace)
|
54
|
+
return false;
|
55
|
+
end
|
56
|
+
end
|
57
|
+
conf_check.write_user_conf
|
58
|
+
return replace;
|
59
|
+
end
|
29
60
|
# prints the usage message
|
30
61
|
def usage
|
31
62
|
if $WIN
|
@@ -84,34 +115,3 @@ end
|
|
84
115
|
cf = CremeFraiche.instance()
|
85
116
|
cf.process(*ARGV)
|
86
117
|
|
87
|
-
# Should a user wish to either update her/his private version of the configuration-file by the current
|
88
|
-
# contents of the file originally found in the downloaded program package, this function does the job.
|
89
|
-
# It creates a copy of the original file, also, if there is not yet one, in ~/.cremefraiche/config or
|
90
|
-
# whatever the Configuration-singleton returns as file-name for user_configuration.
|
91
|
-
def handle_user_conf
|
92
|
-
conf_check = ConfCheck.new()
|
93
|
-
diffs = conf_check.diffs
|
94
|
-
replace = false
|
95
|
-
if( diffs)
|
96
|
-
if(diffs && diffs[:missing].empty? && diffs[:additional].empty?)
|
97
|
-
puts trl("No changes to your user-configuration are necessary.")
|
98
|
-
return false;
|
99
|
-
else
|
100
|
-
m = diffs[:missing]
|
101
|
-
a = diffs[:additional]
|
102
|
-
puts trl("\nThe following changes can be effectuated on your user-configuration")
|
103
|
-
puts "\t+ " << trl("New options") << ":\n\t\t" << m.join('\n\t\t ') if !m.empty?
|
104
|
-
puts "\t- " << trl("Obsolete Options") << ":\n\t\t" << a.join(', ') if !a.empty?
|
105
|
-
puts trl("Do you want to replace your current user-configuration?")
|
106
|
-
puts trl("If you answer 'yes' a back-up copy of your old file will still be available.")
|
107
|
-
puts trl("But your old settings will be replaced by the defaults.")
|
108
|
-
print trl("Your answer (Y/n): ")
|
109
|
-
replace = STDIN.getc.downcase == trl("y") ? true : false
|
110
|
-
end
|
111
|
-
if(! replace)
|
112
|
-
return false;
|
113
|
-
end
|
114
|
-
end
|
115
|
-
conf_check.write_user_conf
|
116
|
-
return replace;
|
117
|
-
end
|
data/cremefraiche.gemspec
CHANGED
@@ -19,6 +19,6 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.add_runtime_dependency 'mail', '~> 2.8', '>= 2.8.0'
|
20
20
|
s.add_runtime_dependency 'gtk3', '~> 4.0', '>= 4.0.5'
|
21
21
|
s.executables = 'cremefraiche', 'cremefraicheGui'
|
22
|
-
s.license = '
|
22
|
+
s.license = 'NONSTANDARD'
|
23
23
|
s.required_ruby_version = '>= 2.5'
|
24
24
|
end
|
Binary file
|
data/lib/config
CHANGED
data/lib/configuration.rb
CHANGED
@@ -34,8 +34,10 @@ class Configuration
|
|
34
34
|
# file.
|
35
35
|
def initialize
|
36
36
|
read_config
|
37
|
-
|
38
|
-
|
37
|
+
v = @conf["log level"]
|
38
|
+
set_level( v ? BasicLogging::Levels[v.to_sym] : nil)
|
39
|
+
v = @conf["log file"]
|
40
|
+
set_target(v ? v : STDOUT)
|
39
41
|
|
40
42
|
check_programs_installed
|
41
43
|
end
|
@@ -227,8 +229,6 @@ class Configuration
|
|
227
229
|
end
|
228
230
|
return false
|
229
231
|
end
|
230
|
-
|
231
|
-
|
232
232
|
end
|
233
233
|
|
234
234
|
$CONF = Configuration.instance
|
data/lib/translations
CHANGED
@@ -222,6 +222,9 @@ Use literally 'user-conf' as argument.:
|
|
222
222
|
This either creates or overwrites a configuration file in a sub-directory '.cremefraiche' of the current user's home-directory:
|
223
223
|
de: Damit wird eine Konfigurationsdatei im Unterverzeichnis '.cremefraiche' des Benutzerverzeichnisses aktualisiert oder überschrieben
|
224
224
|
fr: Ainsi, un fichier de configuration dans le sous-répertoire '.cremefraiche' dans le répertoire de l'utilisateur est actualisé ou remplacé.
|
225
|
+
No changes to your user-configuration are necessary.:
|
226
|
+
de: Keine Änderungen in Ihrer Konfiguration erforderlich.
|
227
|
+
fr: Aucun changent nécessaire dans votre configuration.
|
225
228
|
##### Configuration-options ####
|
226
229
|
pdf prefix:
|
227
230
|
de: PDF Prefix
|
data/lib/version.rb
CHANGED
@@ -16,8 +16,8 @@
|
|
16
16
|
=end
|
17
17
|
|
18
18
|
YEARS="2011 - 2023"
|
19
|
-
VERSION="1.1.
|
20
|
-
SUMMARY="
|
19
|
+
VERSION="1.1.9"
|
20
|
+
SUMMARY="Bugfix for invalid log-levels, undefined method error in the executable"
|
21
21
|
|
22
22
|
App_name = 'Creme Fraiche'
|
23
23
|
Author = 'Michael Uplawski'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cremefraiche
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Uplawski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: prawn
|
@@ -143,6 +143,7 @@ files:
|
|
143
143
|
- bin/cremefraicheGui
|
144
144
|
- cremefraiche.gemspec
|
145
145
|
- doc/gui_howto.pdf
|
146
|
+
- lib/.translations.swp
|
146
147
|
- lib/LANG
|
147
148
|
- lib/basic_logging.rb
|
148
149
|
- lib/busy_indicator/.busy_function_test.rb.swp
|
@@ -196,7 +197,7 @@ files:
|
|
196
197
|
- lib/version.rb
|
197
198
|
homepage: ''
|
198
199
|
licenses:
|
199
|
-
-
|
200
|
+
- NONSTANDARD
|
200
201
|
metadata: {}
|
201
202
|
post_install_message:
|
202
203
|
rdoc_options: []
|
@@ -217,5 +218,5 @@ requirements:
|
|
217
218
|
rubygems_version: 3.4.20
|
218
219
|
signing_key:
|
219
220
|
specification_version: 4
|
220
|
-
summary:
|
221
|
+
summary: Bugfix for invalid log-levels, undefined method error in the executable
|
221
222
|
test_files: []
|