solidstats 0.0.3 → 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.
data/config/routes.rb CHANGED
@@ -1,3 +1,4 @@
1
1
  Solidstats::Engine.routes.draw do
2
2
  root to: "dashboard#index"
3
+ get "refresh", to: "dashboard#refresh", as: :refresh
3
4
  end
@@ -1,3 +1,3 @@
1
1
  module Solidstats
2
- VERSION = "0.0.3"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -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.3
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-20 00:00:00.000000000 Z
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: secuiry, lints, performance, and more.'
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: '0'
95
+ version: 2.7.0
91
96
  required_rubygems_version: !ruby/object:Gem::Requirement
92
97
  requirements:
93
98
  - - ">="
@@ -1,5 +0,0 @@
1
- <div class="audit-filters">
2
- <button class="filter-btn active" data-filter="all">All</button>
3
- <button class="filter-btn" data-filter="high">High Severity</button>
4
- <button class="filter-btn" data-filter="copy-solutions">Copy All Solutions</button>
5
- </div>