kirei 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8beff5327a463020ae69872995aa9a5101e492f23fa886f6a29e45cfb173728c
4
- data.tar.gz: a2ec68b1e7e7f182d42587d4e73b3736636d883b7d5f93a804956366368467d2
3
+ metadata.gz: 32afe7523ced76d4fa44aa5125fbd4aa5befeaba2ea25bc94f2322b6375c461f
4
+ data.tar.gz: e6c14a2d80e667ecbd438dc5cd4e6b698ab3e08da394a0a622c027958c8e17cb
5
5
  SHA512:
6
- metadata.gz: 7bc7eef26e4ed940d91a425c69a447a585a76c2512132b1986b927652bc5331dddd6e77fc279ee65d7739e9d991bd1881c8c421023e1b4b25f70d5ae0224bd79
7
- data.tar.gz: 4f1db54baab633700669e6f7d8f153e73a1f5383ebd9b4c593acd95956699c8bc6b8bafa2d4194aa9a00e13a74bea9bf106a631d48c147d9b60f3f912d75f58d
6
+ metadata.gz: ae26b16d43f88cc9639d64ce255f2ebe269c10ae2e55fc0ad06659e5ef5991562bd87b29b6a6731bff00a58a382d78096ac5f4cbc7a155419d69f706a4f013b7
7
+ data.tar.gz: a5a4b6e94f7e33eb30d49d46704c52276a492ca6ed744aa99646427dd587836e37783ddabf1fe23856a2bf88cf9812939369d066252fe09e941ec64b33b95cae
@@ -29,13 +29,13 @@ module Kirei
29
29
  end
30
30
 
31
31
  sig { returns(String) }
32
- def env
32
+ def environment
33
33
  ENV.fetch("RACK_ENV", "development")
34
34
  end
35
35
 
36
36
  sig { returns(String) }
37
37
  def default_db_name
38
- @default_db_name ||= T.let("#{config.app_name}_#{env}".freeze, T.nilable(String))
38
+ @default_db_name ||= T.let("#{config.app_name}_#{environment}".freeze, T.nilable(String))
39
39
  end
40
40
 
41
41
  sig { returns(String) }
@@ -8,7 +8,7 @@ module Kirei
8
8
 
9
9
  before do
10
10
  Thread.current[:request_id] = request.env["HTTP_X_REQUEST_ID"].presence ||
11
- "req_#{AppBase.env}_#{SecureRandom.uuid}"
11
+ "req_#{AppBase.environment}_#{SecureRandom.uuid}"
12
12
  end
13
13
  end
14
14
  end
data/lib/kirei/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Kirei
5
- VERSION = "0.0.1"
5
+ VERSION = "0.0.2"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kirei
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ludwig Reinmiedl