Skip to content

Commit

Permalink
Merge pull request #3222 from manyfold3d/usage-fix
Browse files Browse the repository at this point in the history
Fix usage architecture report
  • Loading branch information
Floppy authored Nov 22, 2024
2 parents e3217f6 + 50094c8 commit 4f9b530
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/lib/usage_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ def self.generate
version.app Rails.application.config.app_version
version.sha Rails.application.config.git_sha
version.image ENV.fetch("DOCKER_TAG", nil)&.split(":")&.first
version.arch RUBY_PLATFORM
end
report.arch RUBY_PLATFORM
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/lib/usage_report_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

it "includes architecture" do
stub_const("RUBY_PLATFORM", "test-arch")
expect(parsed["arch"]).to eq "test-arch"
expect(parsed["version"]["arch"]).to eq "test-arch"
end

it "includes application version" do
Expand Down

0 comments on commit 4f9b530

Please sign in to comment.