konkit_worklogger 0.1.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 +7 -0
- data/.gitignore +15 -0
- data/.rspec +3 -0
- data/.travis.yml +6 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +36 -0
- data/LICENSE.txt +21 -0
- data/README.md +11 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/bin/worklogger +31 -0
- data/konkit_worklogger.gemspec +32 -0
- data/konkit_worklogger.iml +18 -0
- data/lib/konkit_worklogger.rb +11 -0
- data/lib/konkit_worklogger/configuration.rb +35 -0
- data/lib/konkit_worklogger/day_entry.rb +41 -0
- data/lib/konkit_worklogger/month_entry.rb +64 -0
- data/lib/konkit_worklogger/printer.rb +41 -0
- data/lib/konkit_worklogger/updater.rb +15 -0
- data/lib/konkit_worklogger/utils.rb +14 -0
- data/lib/konkit_worklogger/version.rb +3 -0
- data/lib/migration/migrate_old_entries.rb +39 -0
- metadata +111 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e32fb8f5819a91cc824775e141bf9024ba48693b7996ca2db32c4498d95d8e76
|
4
|
+
data.tar.gz: c86267887802a77e7e066d4ed0893128fd54af7c9b0b7c011fc2a53c1b050b1a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5af58d33ff266cd36ea0c5cb6b7cc6616d7dd21e644a014b0eac70376ec0b1e8c8d025ae4b235bebfcc32ebeca74d6c7ece49657db28b2cd9fcf1e631b504628
|
7
|
+
data.tar.gz: a6fa0033fb081ffd0bcff35ab2688d00899b677e734a96e65b593315bb8628a9f3400ad5eeb8ab4d9e4d28f0c02c6fd2b0596f66825022526e9c32d81976a343
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
konkit_worklogger (0.1.0)
|
5
|
+
thor (~> 1.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
diff-lcs (1.3)
|
11
|
+
rake (12.3.3)
|
12
|
+
rspec (3.9.0)
|
13
|
+
rspec-core (~> 3.9.0)
|
14
|
+
rspec-expectations (~> 3.9.0)
|
15
|
+
rspec-mocks (~> 3.9.0)
|
16
|
+
rspec-core (3.9.2)
|
17
|
+
rspec-support (~> 3.9.3)
|
18
|
+
rspec-expectations (3.9.2)
|
19
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
20
|
+
rspec-support (~> 3.9.0)
|
21
|
+
rspec-mocks (3.9.1)
|
22
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
23
|
+
rspec-support (~> 3.9.0)
|
24
|
+
rspec-support (3.9.3)
|
25
|
+
thor (1.0.1)
|
26
|
+
|
27
|
+
PLATFORMS
|
28
|
+
ruby
|
29
|
+
|
30
|
+
DEPENDENCIES
|
31
|
+
konkit_worklogger!
|
32
|
+
rake (~> 12.0)
|
33
|
+
rspec (~> 3.0)
|
34
|
+
|
35
|
+
BUNDLED WITH
|
36
|
+
2.1.4
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 Łukasz Tenerowicz
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# KonkitWorklogger - log your work automatically
|
2
|
+
|
3
|
+
What's the problem with logging work? You have to remember about it.
|
4
|
+
How many times have you forgotten to write the start or the end time of your work?
|
5
|
+
|
6
|
+
This tool measures how long your computer is turned on.
|
7
|
+
Therefore all you need to care about is to turn your computer off when you finish your day.
|
8
|
+
|
9
|
+
Under the hood, it writes a new line to a file each minute (scheduled by cron).
|
10
|
+
Then, it gathers all those "minutes" to calculate your work time.
|
11
|
+
Because of that, it works even if you have to pause the work for some time - you just need to turn the computer off.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'konkit_worklogger'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/bin/worklogger
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'konkit_worklogger'
|
3
|
+
require 'thor'
|
4
|
+
|
5
|
+
class Worklogger < Thor
|
6
|
+
desc 'today', "Display today's work count"
|
7
|
+
def today
|
8
|
+
configuration = WorkLoggerConfiguration.load
|
9
|
+
today = Date.today
|
10
|
+
|
11
|
+
DaySummaryPrinter.new(configuration).print(today.year, today.month, today.day)
|
12
|
+
end
|
13
|
+
|
14
|
+
desc 'month', "Display month's work count"
|
15
|
+
def month
|
16
|
+
configuration = WorkLoggerConfiguration.load
|
17
|
+
today = Date.today
|
18
|
+
|
19
|
+
MonthSummaryPrinter.new(configuration).print(today.year, today.month)
|
20
|
+
end
|
21
|
+
|
22
|
+
desc 'increment', "Do not run this manually. This is called to increment the minutes' counter"
|
23
|
+
def increment
|
24
|
+
configuration = WorkLoggerConfiguration.load
|
25
|
+
now = Time.now
|
26
|
+
|
27
|
+
Updater.new(configuration).write(now)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
Worklogger.start
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require_relative 'lib/konkit_worklogger/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = 'konkit_worklogger'
|
5
|
+
spec.version = KonkitWorklogger::VERSION
|
6
|
+
spec.authors = ['Łukasz Tenerowicz']
|
7
|
+
spec.email = ['konkit@gmail.com']
|
8
|
+
|
9
|
+
spec.summary = 'Worklogger'
|
10
|
+
spec.description = 'Log your time of work automatically with a mechanism based on Cron.'
|
11
|
+
spec.homepage = 'https://github.com/konkit/konkit_worklogger'
|
12
|
+
spec.license = 'MIT'
|
13
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
|
14
|
+
|
15
|
+
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
16
|
+
|
17
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
18
|
+
spec.metadata['source_code_uri'] = spec.homepage
|
19
|
+
spec.metadata['changelog_uri'] = spec.homepage
|
20
|
+
|
21
|
+
# Specify which files should be added to the gem when it is released.
|
22
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
24
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
|
+
end
|
26
|
+
spec.executables = ['worklogger']
|
27
|
+
spec.require_paths = ['lib']
|
28
|
+
|
29
|
+
spec.add_development_dependency('rake', '~> 12.0')
|
30
|
+
spec.add_development_dependency('rspec', '~> 3.0')
|
31
|
+
spec.add_dependency('thor', '~> 1.0')
|
32
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
4
|
+
<exclude-output />
|
5
|
+
<content url="file://$MODULE_DIR$" />
|
6
|
+
<orderEntry type="jdk" jdkName="RVM: ruby-2.7.1 [worklogger]" jdkType="RUBY_SDK" />
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
8
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v2.1.4, RVM: ruby-2.7.1 [worklogger]) [gem]" level="application" />
|
9
|
+
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, RVM: ruby-2.7.1 [worklogger]) [gem]" level="application" />
|
10
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v12.3.3, RVM: ruby-2.7.1 [worklogger]) [gem]" level="application" />
|
11
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.9.0, RVM: ruby-2.7.1 [worklogger]) [gem]" level="application" />
|
12
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.9.2, RVM: ruby-2.7.1 [worklogger]) [gem]" level="application" />
|
13
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.9.2, RVM: ruby-2.7.1 [worklogger]) [gem]" level="application" />
|
14
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.9.1, RVM: ruby-2.7.1 [worklogger]) [gem]" level="application" />
|
15
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.9.3, RVM: ruby-2.7.1 [worklogger]) [gem]" level="application" />
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="thor (v1.0.1, RVM: ruby-2.7.1 [worklogger]) [gem]" level="application" />
|
17
|
+
</component>
|
18
|
+
</module>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'konkit_worklogger/version'
|
2
|
+
require 'konkit_worklogger/day_entry'
|
3
|
+
require 'konkit_worklogger/month_entry'
|
4
|
+
require 'konkit_worklogger/configuration'
|
5
|
+
require 'konkit_worklogger/printer'
|
6
|
+
require 'konkit_worklogger/updater'
|
7
|
+
|
8
|
+
module KonkitWorklogger
|
9
|
+
class Error < StandardError; end
|
10
|
+
# Your code goes here...
|
11
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
require 'fileutils'
|
3
|
+
|
4
|
+
class WorkLoggerConfiguration
|
5
|
+
attr_reader :worklogger_path
|
6
|
+
|
7
|
+
def initialize(worklogger_path, config_path = nil)
|
8
|
+
@worklogger_path = worklogger_path
|
9
|
+
@config_path = config_path || '%s/.konkit_worklogger/config.yml' % Dir.home
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.load
|
13
|
+
conf = if File.file?(@config_path)
|
14
|
+
config_file_content = IO.read(@config_path)
|
15
|
+
config = YAML.safe_load(config_file_content)
|
16
|
+
|
17
|
+
worklogger_path = config['path']
|
18
|
+
|
19
|
+
WorkLoggerConfiguration.new(worklogger_path)
|
20
|
+
else
|
21
|
+
default_entries_path = '%s/.konkit_worklogger/timeentries' % Dir.home
|
22
|
+
|
23
|
+
unless File.directory?('%s/.konkit_worklogger/' % Dir.home)
|
24
|
+
FileUtils.mkdir_p('%s/.konkit_worklogger/' % Dir.home)
|
25
|
+
end
|
26
|
+
|
27
|
+
File.open(@config_path, 'w') { |file| file.write({ 'path' => default_entries_path }.to_yaml) }
|
28
|
+
WorkLoggerConfiguration.new(default_entries_path)
|
29
|
+
end
|
30
|
+
|
31
|
+
FileUtils.mkdir_p(conf.worklogger_path) unless File.directory?(conf.worklogger_path)
|
32
|
+
|
33
|
+
conf
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'csv'
|
4
|
+
require_relative 'utils'
|
5
|
+
|
6
|
+
class DayEntry
|
7
|
+
include Utils
|
8
|
+
attr_reader :time_in_minutes, :start_time, :end_time
|
9
|
+
|
10
|
+
def initialize(time_in_minutes, start_time, end_time)
|
11
|
+
@time_in_minutes = time_in_minutes
|
12
|
+
@start_time = start_time
|
13
|
+
@end_time = end_time
|
14
|
+
end
|
15
|
+
|
16
|
+
def time_today
|
17
|
+
minutes_to_time(@time_in_minutes)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
class DayEntryLoader
|
22
|
+
include Utils
|
23
|
+
|
24
|
+
def initialize(configuration)
|
25
|
+
@configuration = configuration
|
26
|
+
end
|
27
|
+
|
28
|
+
def load_from_file(year, month, day)
|
29
|
+
filename = get_filename(@configuration, year, month, day)
|
30
|
+
|
31
|
+
lines ||= CSV.readlines(filename)
|
32
|
+
|
33
|
+
lines_count = lines.length
|
34
|
+
|
35
|
+
start_time = lines[0][0]
|
36
|
+
|
37
|
+
end_time = lines[lines_count - 1][0]
|
38
|
+
|
39
|
+
DayEntry.new(lines_count, start_time, end_time)
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'utils'
|
4
|
+
|
5
|
+
class MonthEntry
|
6
|
+
attr_reader :time_in_month, :days_worked, :month_balance, :day_entries
|
7
|
+
|
8
|
+
def initialize(time_in_month, days_worked, month_balance, day_entries)
|
9
|
+
@time_in_month = time_in_month
|
10
|
+
@days_worked = days_worked
|
11
|
+
@month_balance = month_balance
|
12
|
+
@day_entries = day_entries
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
class MonthEntryLoader
|
17
|
+
def initialize(day_loader)
|
18
|
+
@day_loader = day_loader
|
19
|
+
end
|
20
|
+
|
21
|
+
def load(year, month)
|
22
|
+
minutes_of_work = 0
|
23
|
+
days_worked = 0
|
24
|
+
month_balance = 0
|
25
|
+
|
26
|
+
day_entries = {}
|
27
|
+
|
28
|
+
(1..31).each do |day|
|
29
|
+
begin
|
30
|
+
day_entry = @day_loader.load_from_file(year, month, day)
|
31
|
+
|
32
|
+
unless day_entry.nil?
|
33
|
+
time_in_day = day_entry.time_in_minutes
|
34
|
+
|
35
|
+
day_entries[day] = time_in_day
|
36
|
+
minutes_of_work += time_in_day
|
37
|
+
days_worked += 1
|
38
|
+
month_balance += time_in_day - (8 * 60)
|
39
|
+
end
|
40
|
+
rescue Errno::ENOENT
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
MonthEntry.new(minutes_of_work, days_worked, month_balance, day_entries)
|
45
|
+
end
|
46
|
+
|
47
|
+
def calculate_balance(year, month)
|
48
|
+
entry = load(year, month)
|
49
|
+
balance_in_sec = entry.month_balance
|
50
|
+
|
51
|
+
balance_in_sec
|
52
|
+
end
|
53
|
+
|
54
|
+
def balance_with_carry(year, month)
|
55
|
+
current_month_entry = load(year, month)
|
56
|
+
previous_month_entry = load(year, month - 1)
|
57
|
+
|
58
|
+
if previous_month_entry.days_worked != 0
|
59
|
+
current_month_entry.month_balance + balance_with_carry(year, month - 1)
|
60
|
+
else
|
61
|
+
current_month_entry.month_balance
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
class DaySummaryPrinter
|
2
|
+
def initialize(configuration)
|
3
|
+
@configuration = configuration
|
4
|
+
end
|
5
|
+
|
6
|
+
def print(year, month, day)
|
7
|
+
entry = DayEntryLoader.new(@configuration).load_from_file(year, month, day)
|
8
|
+
|
9
|
+
date_string = format('%d-%02d-%02d', year, month, day)
|
10
|
+
puts format('%s: %s - %s (%s)', date_string, entry.start_time, entry.end_time, entry.time_today)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
class MonthSummaryPrinter
|
15
|
+
include Utils
|
16
|
+
|
17
|
+
def initialize(configuration)
|
18
|
+
@configuration = configuration
|
19
|
+
end
|
20
|
+
|
21
|
+
def print(year, month)
|
22
|
+
day_loader = DayEntryLoader.new(@configuration)
|
23
|
+
month_loader = MonthEntryLoader.new(day_loader)
|
24
|
+
entry = month_loader.load(year, month)
|
25
|
+
balance_with_carry = month_loader.balance_with_carry(year, month)
|
26
|
+
|
27
|
+
entry.day_entries.each do |day, minutes|
|
28
|
+
day_of_week_abbr = day_of_week(year, month, day)
|
29
|
+
puts format('%s %s - %s', day_of_week_abbr, day, minutes_to_time(minutes))
|
30
|
+
end
|
31
|
+
|
32
|
+
puts 'Days worked this month: %d' % entry.days_worked
|
33
|
+
puts format('Total count of work hours: %s/%s', minutes_to_time(entry.time_in_month), minutes_to_time(entry.days_worked * 8 * 60))
|
34
|
+
puts 'Balance in current month: %s ' % minutes_to_time(entry.month_balance)
|
35
|
+
puts 'Balance with carry in current month: %s ' % minutes_to_time(balance_with_carry)
|
36
|
+
end
|
37
|
+
|
38
|
+
def day_of_week(year, month, day)
|
39
|
+
Date.new(year, month, day).strftime('%A')[0..2]
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class Updater
|
2
|
+
include Utils
|
3
|
+
|
4
|
+
def initialize(configuration)
|
5
|
+
@configuration = configuration
|
6
|
+
end
|
7
|
+
|
8
|
+
def write(time)
|
9
|
+
file_path = get_filename(@configuration, time.year, time.month, time.day)
|
10
|
+
|
11
|
+
CSV.open(file_path, 'a+') do |csv|
|
12
|
+
csv << [format('%d:%02d', time.hour, time.min)]
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Utils
|
2
|
+
def minutes_to_time(minutes)
|
3
|
+
full_hours = minutes / 60
|
4
|
+
min_str = (minutes - 60 * full_hours)
|
5
|
+
|
6
|
+
format('%d:%02d', full_hours, min_str)
|
7
|
+
end
|
8
|
+
|
9
|
+
def get_filename(conf, year, month, day)
|
10
|
+
folder_path = format('%s/%d-%02d', conf.worklogger_path, year.to_i, month.to_i)
|
11
|
+
FileUtils.mkdir_p(folder_path) unless File.directory?(folder_path)
|
12
|
+
format('%s/%02d.csv', folder_path, day.to_i)
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative '../konkit_worklogger/utils'
|
4
|
+
require_relative '../konkit_worklogger/configuration'
|
5
|
+
require 'fileutils'
|
6
|
+
|
7
|
+
class Migration
|
8
|
+
include Utils
|
9
|
+
|
10
|
+
def transform_file(old_fname)
|
11
|
+
config = WorkLoggerConfiguration.load
|
12
|
+
|
13
|
+
old_file_match = old_fname.match(/(?<year>\d\d\d\d)-(?<month>\d\d)-(?<day>\d\d).txt/)
|
14
|
+
|
15
|
+
unless old_file_match.nil?
|
16
|
+
year = old_file_match[:year]
|
17
|
+
month = old_file_match[:month]
|
18
|
+
day = old_file_match[:day]
|
19
|
+
|
20
|
+
new_fname = get_filename(config, year, month, day)
|
21
|
+
|
22
|
+
old_file = File.open(old_fname, 'r')
|
23
|
+
new_file = File.open(new_fname, 'w')
|
24
|
+
|
25
|
+
old_file.each_line do |line|
|
26
|
+
match = line.match(/(\d\d?:\d\d).+/)&.captures
|
27
|
+
|
28
|
+
new_file.write("#{match[0]}\n") unless match.nil? || match.empty?
|
29
|
+
end
|
30
|
+
|
31
|
+
old_file.close
|
32
|
+
new_file.close
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
Dir['*'].select { |f| f =~ /\d\d\d\d\-\d\d\-\d\d\.txt/ }.each do |old_fname|
|
38
|
+
Migration.new.transform_file(old_fname)
|
39
|
+
end
|
metadata
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: konkit_worklogger
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Łukasz Tenerowicz
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-10-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '12.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '12.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: thor
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.0'
|
55
|
+
description: Log your time of work automatically with a mechanism based on Cron.
|
56
|
+
email:
|
57
|
+
- konkit@gmail.com
|
58
|
+
executables:
|
59
|
+
- worklogger
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- ".gitignore"
|
64
|
+
- ".rspec"
|
65
|
+
- ".travis.yml"
|
66
|
+
- Gemfile
|
67
|
+
- Gemfile.lock
|
68
|
+
- LICENSE.txt
|
69
|
+
- README.md
|
70
|
+
- Rakefile
|
71
|
+
- bin/console
|
72
|
+
- bin/setup
|
73
|
+
- bin/worklogger
|
74
|
+
- konkit_worklogger.gemspec
|
75
|
+
- konkit_worklogger.iml
|
76
|
+
- lib/konkit_worklogger.rb
|
77
|
+
- lib/konkit_worklogger/configuration.rb
|
78
|
+
- lib/konkit_worklogger/day_entry.rb
|
79
|
+
- lib/konkit_worklogger/month_entry.rb
|
80
|
+
- lib/konkit_worklogger/printer.rb
|
81
|
+
- lib/konkit_worklogger/updater.rb
|
82
|
+
- lib/konkit_worklogger/utils.rb
|
83
|
+
- lib/konkit_worklogger/version.rb
|
84
|
+
- lib/migration/migrate_old_entries.rb
|
85
|
+
homepage: https://github.com/konkit/konkit_worklogger
|
86
|
+
licenses:
|
87
|
+
- MIT
|
88
|
+
metadata:
|
89
|
+
homepage_uri: https://github.com/konkit/konkit_worklogger
|
90
|
+
source_code_uri: https://github.com/konkit/konkit_worklogger
|
91
|
+
changelog_uri: https://github.com/konkit/konkit_worklogger
|
92
|
+
post_install_message:
|
93
|
+
rdoc_options: []
|
94
|
+
require_paths:
|
95
|
+
- lib
|
96
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 2.3.0
|
101
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0'
|
106
|
+
requirements: []
|
107
|
+
rubygems_version: 3.0.3
|
108
|
+
signing_key:
|
109
|
+
specification_version: 4
|
110
|
+
summary: Worklogger
|
111
|
+
test_files: []
|