hephaestus 0.7.0 → 0.7.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f7de19c3d9ce15fc3a7851c0ca74e88202a62c8fcbf46cffb13131df112f384
4
- data.tar.gz: bdd11f809c9c38d8c8b193a00c99ffce4a0dce847da1766a9f0ec371e932e359
3
+ metadata.gz: 0ddb2acb833029f86546e1ba193985470e19f06b8b1914876372ce16c0b08a4e
4
+ data.tar.gz: 413397588e5473881666644b45bfcf090bc63adab199a77e51e0a3cec1226ef1
5
5
  SHA512:
6
- metadata.gz: 19f8a930236eefd1fc9b6b6c0c612e314c103f5e2482aadf331543b8750b5b21df2de2b43c0b1dc02425eaaeba6cdd6f8f76e525626b94226e9eb85ac6cd6b16
7
- data.tar.gz: 0cab0d8f9ae2fdeff83f5a85af55b65917d375c1937cdea374276c9005d6b471f3ae8b6c08e4e1c45181095722c51f13895d079628a77cc8061eb7e685fa358f
6
+ metadata.gz: 13ca6d123fde10d85b3a9f90d64f12c75d395667df8a35fbd27b37e07fd952cd8497049f4ce753afe2a27b217cfc49e2fb3e57964cf2e27688f24dfb3d1beaf2
7
+ data.tar.gz: 981ff3a8586e4445bc8ad96cd90554887b0c90e476a223f68c70bf78f57c9233ad972d3d44a78248c8352287f1be0e84ca0ce8c0d7ff202282f38d49a70d79a9
@@ -13,14 +13,7 @@ module Hephaestus
13
13
 
14
14
  GIT_SHA = case Rails.env
15
15
  when "production", "staging"
16
- result = nil
17
- result = "" if PRECOMPILING # skip if we're just precompiling assets
18
-
19
- result ||= Rails.root.join("GIT_SHA").read if Rails.root.join("GIT_SHA").exist?
20
-
21
- result ||= %x(git rev-parse HEAD) # fallback to git (should only happen locally)
22
-
23
- result || ""
16
+ ENV["GIT_SHA"]
24
17
  when "development"
25
18
  %x(git rev-parse HEAD)
26
19
  when "test"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Hephaestus
5
- VERSION = "0.7.0"
5
+ VERSION = "0.7.1"
6
6
  RAILS_VERSION = ">= 8.0"
7
7
  RUBY_VERSION = File
8
8
  .read("#{File.dirname(__FILE__)}/../../.ruby-version")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hephaestus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-15 00:00:00.000000000 Z
11
+ date: 2024-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootsnap