solidstats 0.0.4 → 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 +4 -4
- data/CHANGELOG.md +61 -5
- data/README.md +52 -5
- data/app/controllers/solidstats/dashboard_controller.rb +43 -123
- data/app/services/solidstats/audit_service.rb +56 -0
- data/app/services/solidstats/data_collector_service.rb +83 -0
- data/app/services/solidstats/todo_service.rb +114 -0
- data/app/views/solidstats/dashboard/_todos.html.erb +6 -27
- data/app/views/solidstats/dashboard/audit/_additional_styles.css +22 -0
- data/app/views/solidstats/dashboard/audit/_audit_details.html.erb +47 -58
- data/app/views/solidstats/dashboard/audit/_audit_summary.html.erb +1 -1
- data/app/views/solidstats/dashboard/audit/_security_audit.html.erb +0 -23
- data/app/views/solidstats/dashboard/audit/_vulnerabilities_table.html.erb +1092 -38
- data/app/views/solidstats/dashboard/audit/_vulnerability_details.html.erb +4 -3
- data/app/views/solidstats/dashboard/index.html.erb +1152 -162
- data/config/routes.rb +1 -0
- data/lib/solidstats/version.rb +1 -1
- data/lib/tasks/solidstats_release.rake +69 -0
- metadata +10 -5
- data/app/views/solidstats/dashboard/audit/_audit_filters.html.erb +0 -5
data/config/routes.rb
CHANGED
data/lib/solidstats/version.rb
CHANGED
@@ -0,0 +1,69 @@
|
|
1
|
+
namespace :solidstats do
|
2
|
+
desc "Build and release the SolidStats gem"
|
3
|
+
task :release do
|
4
|
+
puts "Starting release process for SolidStats..."
|
5
|
+
|
6
|
+
# Ensure we're in the gem root directory
|
7
|
+
gem_root = File.expand_path("../../..", __FILE__)
|
8
|
+
Dir.chdir(gem_root) do
|
9
|
+
# Double-check version
|
10
|
+
require_relative "../../lib/solidstats/version"
|
11
|
+
version = Solidstats::VERSION
|
12
|
+
puts "Releasing version #{version}..."
|
13
|
+
|
14
|
+
# Clean up any old gem builds
|
15
|
+
puts "Cleaning up old gem builds..."
|
16
|
+
system "rm -f *.gem"
|
17
|
+
|
18
|
+
# Build the new gem
|
19
|
+
puts "Building new gem version..."
|
20
|
+
build_output = `gem build solidstats.gemspec`
|
21
|
+
puts build_output
|
22
|
+
|
23
|
+
# Get the filename of the newly built gem
|
24
|
+
gem_file = build_output.match(/File: (.+\.gem)/)[1] rescue nil
|
25
|
+
|
26
|
+
if gem_file && File.exist?(gem_file)
|
27
|
+
puts "Successfully built #{gem_file}"
|
28
|
+
puts "\nTo publish the gem to RubyGems, run:"
|
29
|
+
puts " gem push #{gem_file}"
|
30
|
+
puts "\nTo install the gem locally, run:"
|
31
|
+
puts " gem install #{gem_file}"
|
32
|
+
puts "\nTo verify the gem, run:"
|
33
|
+
puts " gem install -l #{gem_file}"
|
34
|
+
puts " gem list solidstats"
|
35
|
+
else
|
36
|
+
puts "Error: Failed to build gem properly"
|
37
|
+
exit 1
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
desc "Verify the gem is ready for release"
|
43
|
+
task :verify do
|
44
|
+
puts "Verifying SolidStats gem..."
|
45
|
+
|
46
|
+
# Check required files
|
47
|
+
required_files = [ "README.md", "CHANGELOG.md", "lib/solidstats/version.rb", "solidstats.gemspec" ]
|
48
|
+
missing_files = required_files.reject { |f| File.exist?(f) }
|
49
|
+
|
50
|
+
if missing_files.any?
|
51
|
+
puts "Error: Missing required files: #{missing_files.join(', ')}"
|
52
|
+
exit 1
|
53
|
+
end
|
54
|
+
|
55
|
+
# Check version
|
56
|
+
require_relative "../../lib/solidstats/version"
|
57
|
+
version = Solidstats::VERSION
|
58
|
+
puts "Current version: #{version}"
|
59
|
+
|
60
|
+
# Check changelog
|
61
|
+
changelog = File.read("CHANGELOG.md")
|
62
|
+
unless changelog.include?("[#{version}]")
|
63
|
+
puts "Warning: CHANGELOG.md does not contain an entry for version #{version}"
|
64
|
+
end
|
65
|
+
|
66
|
+
puts "Verification completed. Gem appears ready for release."
|
67
|
+
puts "To release, run: rake solidstats:release"
|
68
|
+
end
|
69
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidstats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MezbahAlam
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -38,7 +38,8 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
description: 'View local project health:
|
41
|
+
description: 'View local project health: security dashboard with vulnerability analysis,
|
42
|
+
gem impact assessment, code quality metrics, and project task tracking.'
|
42
43
|
email:
|
43
44
|
- mezbah@infolily.com
|
44
45
|
executables: []
|
@@ -56,11 +57,14 @@ files:
|
|
56
57
|
- app/jobs/solidstats/application_job.rb
|
57
58
|
- app/mailers/solidstats/application_mailer.rb
|
58
59
|
- app/models/solidstats/application_record.rb
|
60
|
+
- app/services/solidstats/audit_service.rb
|
61
|
+
- app/services/solidstats/data_collector_service.rb
|
62
|
+
- app/services/solidstats/todo_service.rb
|
59
63
|
- app/views/layouts/solidstats/application.html.erb
|
60
64
|
- app/views/solidstats/dashboard/_todos.html.erb
|
65
|
+
- app/views/solidstats/dashboard/audit/_additional_styles.css
|
61
66
|
- app/views/solidstats/dashboard/audit/_audit_badge.html.erb
|
62
67
|
- app/views/solidstats/dashboard/audit/_audit_details.html.erb
|
63
|
-
- app/views/solidstats/dashboard/audit/_audit_filters.html.erb
|
64
68
|
- app/views/solidstats/dashboard/audit/_audit_summary.html.erb
|
65
69
|
- app/views/solidstats/dashboard/audit/_no_vulnerabilities.html.erb
|
66
70
|
- app/views/solidstats/dashboard/audit/_security_audit.html.erb
|
@@ -74,6 +78,7 @@ files:
|
|
74
78
|
- lib/solidstats/engine.rb
|
75
79
|
- lib/solidstats/version.rb
|
76
80
|
- lib/tasks/solidstats_install.rake
|
81
|
+
- lib/tasks/solidstats_release.rake
|
77
82
|
- lib/tasks/solidstats_tasks.rake
|
78
83
|
homepage: https://solidstats.infolily.com
|
79
84
|
licenses:
|
@@ -87,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
87
92
|
requirements:
|
88
93
|
- - ">="
|
89
94
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
95
|
+
version: 2.7.0
|
91
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
97
|
requirements:
|
93
98
|
- - ">="
|