Skip to content

Commit

Permalink
Fix usage report architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Nov 22, 2024
1 parent e3217f6 commit 50094c8
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 50094c8

Please sign in to comment.