assayo 0.0.14 → 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 +4 -4
- data/README.md +56 -50
- data/assayo/assets/chart/person.svg +1 -0
- data/assayo/assets/chart/person_add.svg +1 -0
- data/assayo/assets/chart/person_add_remove.svg +1 -0
- data/assayo/assets/chart/person_remove.svg +1 -0
- data/assayo/assets/chart/release.svg +1 -0
- data/assayo/assets/chart/tasks.svg +1 -0
- data/assayo/assets/chart/travel.svg +1 -0
- data/assayo/assets/chart/vacation_end.svg +1 -0
- data/assayo/assets/chart/vacation_start.svg +1 -0
- data/assayo/favicon.svg +24 -24
- data/assayo/static/index.css +2 -2
- data/assayo/static/index.js +3 -3
- data/ruby/assayo +61 -61
- metadata +11 -22
- data/assayo/assets/character/halo/1.png +0 -0
- data/assayo/assets/character/weapon/1.png +0 -0
- data/assayo/assets/character/weapon/2.png +0 -0
- data/assayo/assets/character/weapon/3.png +0 -0
- data/assayo/assets/character/weapon/4.png +0 -0
- data/assayo/assets/character/weapon/5.png +0 -0
- data/assayo/assets/character/weapon/6.png +0 -0
- data/assayo/assets/character/weapon/7.png +0 -0
- data/assayo/assets/character/weapon/8.png +0 -0
- data/assayo/assets/character/weapon/9.png +0 -0
- data/assayo/assets/character/wings/1.png +0 -0
- data/assayo/assets/character/wings/2.png +0 -0
- data/assayo/assets/character/wings/3.png +0 -0
- data/assayo/assets/character/wings/4.png +0 -0
- data/assayo/assets/character/wings/5.png +0 -0
- data/assayo/assets/character/wings/6.png +0 -0
- data/assayo/assets/character/wings/7.png +0 -0
- data/assayo/assets/character/wings/8.png +0 -0
- data/assayo/assets/character/wings/9.png +0 -0
- data/assayo/assets/sponsor/money.jpg +0 -0
data/ruby/assayo
CHANGED
@@ -1,61 +1,61 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
def get_save_log_command()
|
4
|
-
$raw = "--raw --numstat"
|
5
|
-
if ARGV.include?('--no-file')
|
6
|
-
$raw = ""
|
7
|
-
end
|
8
|
-
return "git --no-pager log #{$raw} --oneline --all --reverse --date=iso-strict --pretty=format:\"%ad>%aN>%aE>%s\""
|
9
|
-
end
|
10
|
-
|
11
|
-
def show_message(message)
|
12
|
-
if ARGV.include?('--debug')
|
13
|
-
puts "Assayo: #{message}"
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
def write_in_file(fileName, content)
|
18
|
-
File.open(fileName, 'w') do |file|
|
19
|
-
file.write(content)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
def create_report()
|
24
|
-
# folder, when library was saved
|
25
|
-
$SOURCE_DIR = '../assayo'
|
26
|
-
$SOURCE_PATH = __dir__
|
27
|
-
|
28
|
-
# folder, when user run library
|
29
|
-
$DIST_DIR = 'assayo'
|
30
|
-
$DIST_PATH = Dir.pwd
|
31
|
-
|
32
|
-
# 1. Copy folder ./assayo from package to ./assayo in project
|
33
|
-
$source = File.join($SOURCE_PATH, $SOURCE_DIR)
|
34
|
-
$target = File.join($DIST_PATH, $DIST_DIR)
|
35
|
-
$copy_cmd = "cp -r #{$source} #{$target}"
|
36
|
-
begin
|
37
|
-
system($copy_cmd) or raise $copy_cmd
|
38
|
-
rescue => e
|
39
|
-
puts "Assayo: cant copy files: #{e.message}"
|
40
|
-
end
|
41
|
-
show_message("directory with HTML report was be created")
|
42
|
-
|
43
|
-
# Run "git log" and save output in file ./assayo/log.txt
|
44
|
-
show_message("reading git log was be started")
|
45
|
-
$fileName = File.join(Dir.pwd, $DIST_DIR, "log.txt")
|
46
|
-
$save_log_cmd = get_save_log_command()
|
47
|
-
begin
|
48
|
-
system($save_log_cmd, { out: $fileName }) or raise $save_log_cmd
|
49
|
-
rescue => e
|
50
|
-
puts "Assayo: cant create log file: #{e.message}"
|
51
|
-
end
|
52
|
-
show_message("the file with git log was be saved")
|
53
|
-
|
54
|
-
# 3. Replace symbols in ./assayo/log.txt
|
55
|
-
$content = IO.read($fileName)
|
56
|
-
$content = $content.gsub(/`/, "")
|
57
|
-
$content = $content.gsub(/\$/, "")
|
58
|
-
write_in_file($fileName, "R(f\`#{$content}\`);")
|
59
|
-
end
|
60
|
-
|
61
|
-
create_report()
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
def get_save_log_command()
|
4
|
+
$raw = "--raw --numstat"
|
5
|
+
if ARGV.include?('--no-file')
|
6
|
+
$raw = ""
|
7
|
+
end
|
8
|
+
return "git --no-pager log #{$raw} --oneline --all --reverse --date=iso-strict --pretty=format:\"%ad>%aN>%aE>%s\""
|
9
|
+
end
|
10
|
+
|
11
|
+
def show_message(message)
|
12
|
+
if ARGV.include?('--debug')
|
13
|
+
puts "Assayo: #{message}"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def write_in_file(fileName, content)
|
18
|
+
File.open(fileName, 'w') do |file|
|
19
|
+
file.write(content)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def create_report()
|
24
|
+
# folder, when library was saved
|
25
|
+
$SOURCE_DIR = '../assayo'
|
26
|
+
$SOURCE_PATH = __dir__
|
27
|
+
|
28
|
+
# folder, when user run library
|
29
|
+
$DIST_DIR = 'assayo'
|
30
|
+
$DIST_PATH = Dir.pwd
|
31
|
+
|
32
|
+
# 1. Copy folder ./assayo from package to ./assayo in project
|
33
|
+
$source = File.join($SOURCE_PATH, $SOURCE_DIR)
|
34
|
+
$target = File.join($DIST_PATH, $DIST_DIR)
|
35
|
+
$copy_cmd = "cp -r #{$source} #{$target}"
|
36
|
+
begin
|
37
|
+
system($copy_cmd) or raise $copy_cmd
|
38
|
+
rescue => e
|
39
|
+
puts "Assayo: cant copy files: #{e.message}"
|
40
|
+
end
|
41
|
+
show_message("directory with HTML report was be created")
|
42
|
+
|
43
|
+
# Run "git log" and save output in file ./assayo/log.txt
|
44
|
+
show_message("reading git log was be started")
|
45
|
+
$fileName = File.join(Dir.pwd, $DIST_DIR, "log.txt")
|
46
|
+
$save_log_cmd = get_save_log_command()
|
47
|
+
begin
|
48
|
+
system($save_log_cmd, { out: $fileName }) or raise $save_log_cmd
|
49
|
+
rescue => e
|
50
|
+
puts "Assayo: cant create log file: #{e.message}"
|
51
|
+
end
|
52
|
+
show_message("the file with git log was be saved")
|
53
|
+
|
54
|
+
# 3. Replace symbols in ./assayo/log.txt
|
55
|
+
$content = IO.read($fileName)
|
56
|
+
$content = $content.gsub(/`/, "")
|
57
|
+
$content = $content.gsub(/\$/, "")
|
58
|
+
write_in_file($fileName, "R(f\`#{$content}\`);")
|
59
|
+
end
|
60
|
+
|
61
|
+
create_report()
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: assayo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aleksei Bakhirev
|
8
8
|
autorequire:
|
9
9
|
bindir: ruby
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Visualization and analysis you git log. Creates HTML report about commits
|
14
14
|
statistics, employees and company. Also it parse git log and give a achievements
|
@@ -116,30 +116,20 @@ files:
|
|
116
116
|
- assayo/assets/cards/tasks.png
|
117
117
|
- assayo/assets/cards/tasks_month.png
|
118
118
|
- assayo/assets/cards/work_days.png
|
119
|
-
- assayo/assets/character/halo/1.png
|
120
|
-
- assayo/assets/character/weapon/1.png
|
121
|
-
- assayo/assets/character/weapon/2.png
|
122
|
-
- assayo/assets/character/weapon/3.png
|
123
|
-
- assayo/assets/character/weapon/4.png
|
124
|
-
- assayo/assets/character/weapon/5.png
|
125
|
-
- assayo/assets/character/weapon/6.png
|
126
|
-
- assayo/assets/character/weapon/7.png
|
127
|
-
- assayo/assets/character/weapon/8.png
|
128
|
-
- assayo/assets/character/weapon/9.png
|
129
|
-
- assayo/assets/character/wings/1.png
|
130
|
-
- assayo/assets/character/wings/2.png
|
131
|
-
- assayo/assets/character/wings/3.png
|
132
|
-
- assayo/assets/character/wings/4.png
|
133
|
-
- assayo/assets/character/wings/5.png
|
134
|
-
- assayo/assets/character/wings/6.png
|
135
|
-
- assayo/assets/character/wings/7.png
|
136
|
-
- assayo/assets/character/wings/8.png
|
137
|
-
- assayo/assets/character/wings/9.png
|
138
119
|
- assayo/assets/chart/clock.svg
|
139
120
|
- assayo/assets/chart/commit.svg
|
121
|
+
- assayo/assets/chart/person.svg
|
122
|
+
- assayo/assets/chart/person_add.svg
|
123
|
+
- assayo/assets/chart/person_add_remove.svg
|
124
|
+
- assayo/assets/chart/person_remove.svg
|
125
|
+
- assayo/assets/chart/release.svg
|
140
126
|
- assayo/assets/chart/sort.svg
|
141
127
|
- assayo/assets/chart/sort_down.svg
|
142
128
|
- assayo/assets/chart/sort_up.svg
|
129
|
+
- assayo/assets/chart/tasks.svg
|
130
|
+
- assayo/assets/chart/travel.svg
|
131
|
+
- assayo/assets/chart/vacation_end.svg
|
132
|
+
- assayo/assets/chart/vacation_start.svg
|
143
133
|
- assayo/assets/close.svg
|
144
134
|
- assayo/assets/games/4x3.png
|
145
135
|
- assayo/assets/games/billboard1.png
|
@@ -217,7 +207,6 @@ files:
|
|
217
207
|
- assayo/assets/recommendations/info.svg
|
218
208
|
- assayo/assets/recommendations/warning.svg
|
219
209
|
- assayo/assets/sponsor/halo.png
|
220
|
-
- assayo/assets/sponsor/money.jpg
|
221
210
|
- assayo/assets/switch/person.svg
|
222
211
|
- assayo/assets/switch/team.svg
|
223
212
|
- assayo/favicon.svg
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|