syc-task 0.4.2 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZGQ3NGYyZWYwNTk0YmI5NDJlZmY4ZTdiNzEwZTQ2NjUyMTAxMzc3Mw==
5
- data.tar.gz: !binary |-
6
- OGM5OWNjOGFlNjdlMTZjYTZiMTljMDUwMzgyZTFiYzQ4YTgxY2MzZg==
2
+ SHA256:
3
+ metadata.gz: 6ccfa0f5931e92b569b0eea689ab3a32eb7f11f70678c4bd0974b4e450bde3da
4
+ data.tar.gz: 2095cd5842e87b9332c208e5043eeba5b79119dbabe258835bc4c17528cd18c8
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZTkxYjAxY2JmZmNiZDRmMTE0NjlkMDRkY2Y2YmVmMGRjOTFmZGQ5MjdkMTFj
10
- NzA0YTUzZjc2NDhiOGYzYTI1ZDkyNDRjOTFhMDBlNjRkZDgzNDI1ZTkzOTk1
11
- ZGQ2N2FkMjFkZDUxM2E5OTlkODY1MjM1MDZjNzdmYTE1Yjg4M2M=
12
- data.tar.gz: !binary |-
13
- MWM5ODAxOGZiNjZjMjQ3NmVmZWQ1Mzc5NWYyMzcxOGFlMTM1ODZmYmEyMTU4
14
- M2MxMGFhNmI2ZDZkODFiMTQ2M2ZiNmE5NzNmMzFmMzE3MjE1ZmU4MzE2NDQx
15
- YTU4NzNlMTYyYmYxMWJjM2ZiNWI1NDRkN2NmMzBjNzExMGRjNzg=
6
+ metadata.gz: 999425e2e7e32be1044a63a622471e65362ff49150c2b6b8e0bac2ce9b7dbea641c1939ac03fde98c09189c4929afe6605d76ae0e79abc8d283cf25d3bfaeb53
7
+ data.tar.gz: 4e3dbce634f217b62980b2c7ce8b8a77c08a9b40e54a3e1c2b799803ad2b605ce6e50f595ac9336cffd05d6f8f81bed8f31bd090b78b55e1c4e40b3c58f37ad9
data/README.rdoc CHANGED
@@ -190,6 +190,8 @@ added at or after the current time within the time schedule. Tasks that are done
190
190
  and scheduled in the future are not shown. Tasks done and in the past are shown
191
191
  with the actual processing time.
192
192
 
193
+ The day starts at 00:00 and ends at 23:59. So 24:00 should be 00:00.
194
+
193
195
  Create a schedule with working time from 8a.m. to 6p.m. and meetings between
194
196
  9a.m. and 9.30a.m. and 1p.m. and 2.45p.m.
195
197
  $ syctask schedule -w "8:00-18:00" -b "9:00-9:30,13:00-14:45"
@@ -415,7 +417,7 @@ with
415
417
  ==== Create schedule
416
418
  I create a schedule with my working hours and meetings that have been scheduled
417
419
  with
418
- $ syctask -w "8:00-18:00" -b "9:00-10:00,14:30-16:00" -m "Team,Status"
420
+ $ syctask schedule -w "8:00-18:00" -b "9:00-10:00,14:30-16:00" -m "Team,Status"
419
421
 
420
422
  ==== Create an agenda
421
423
  I assign the topics I want to discuss in the meetings to the meetings with
@@ -453,7 +455,9 @@ directory with the ID and save the files in this directory. If there is an
453
455
  existing directory I link to the file from the ID directory
454
456
 
455
457
  ==Supported platform
456
- syc-task has been tested with 1.9.3. It also works in Windows using Cygwin.
458
+ syc-task up to version 0.4.2 has been tested with Ruby 1.9.3. Version 0.4.2 also runs
459
+ with Ruby 2.7. It also works in Windows using Cygwin. Version 1.0.0 has been upgraded
460
+ to Ruby 3.2.
457
461
 
458
462
  ==Add TAB-completion to syctask
459
463
  To activate bash's TAB-completion following lines have to be added to ~/.bashrc
@@ -616,6 +620,9 @@ Implementation of new, update, list and done commands.
616
620
  * When tasks.log file is missing `syctask inspect` prints warning with reason
617
621
  why statistics cannot be printed
618
622
 
623
+ ====Version 1.0.0
624
+ * Upgrade to Ruby 3.2.2
625
+
619
626
  ==Development
620
627
  Pull from Github and then run
621
628
 
data/bin/console_timer CHANGED
@@ -32,7 +32,7 @@ class ConsoleTimer
32
32
  while track
33
33
  sleep 1
34
34
  output
35
- track = File.exists? @semaphore
35
+ track = File.exist? @semaphore
36
36
  end
37
37
  exit 0
38
38
  end
data/bin/syctask CHANGED
@@ -48,7 +48,7 @@ command :settings do |c|
48
48
  puts options[:taskdir]
49
49
  dir = File.expand_path(options[:taskdir]) unless options[:taskdir].empty?
50
50
  if dir
51
- unless File.exists? dir
51
+ unless File.exist? dir
52
52
  puts sprintf("Directory %s doesn't exist!", dir).color(:red)
53
53
  print sprintf("%s ", "Create it (Y/n)?").color(:red)
54
54
  set_taskdir = gets.chomp == 'Y'
@@ -99,7 +99,7 @@ command :info do |c|
99
99
  dir = options[:dir]
100
100
  dir ||= ENV['HOME']
101
101
  dir = File.expand_path(dir)
102
- help_now! "Directory #{dir} does not exists" unless File.exists? dir
102
+ help_now! "Directory #{dir} does not exists" unless File.exist? dir
103
103
  id = options[:id]
104
104
  if id
105
105
  tasks = Syctask::get_files(dir, [], /#{id}\.task/)
@@ -324,8 +324,8 @@ command :edit do |c|
324
324
  task = @service.read(global_options[:taskdir], args[0])
325
325
  if task
326
326
  task_file = "#{task.dir}/#{task.id}.task"
327
- if File.exists? task_file
328
- system "vi #{task_file}" if File.exists? task_file
327
+ if File.exist? task_file
328
+ system "vi #{task_file}" if File.exist? task_file
329
329
  else
330
330
  puts sprintf("--> Task %s doesn't exist", task_file).color(:red)
331
331
  end
@@ -682,7 +682,7 @@ pre do |global,command,options,args|
682
682
  global[:taskdir] = global[:t] = dir.squeeze("/")
683
683
  end
684
684
 
685
- if command.name == :new and not File.exists? global[:taskdir]
685
+ if command.name == :new and not File.exist? global[:taskdir]
686
686
  puts sprintf("Directory %s doesn't exist!", global[:taskdir]).color(:red)
687
687
  print sprintf("%s", "Create it (Y/n)? ").color(:red)
688
688
  proceed = STDIN.gets.chomp == 'Y'