rage-rb 1.2.1 → 1.2.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: 67ad39e9dfc3894475e0e30b1a0219444f99526043fc97d1e2537e9b9fe36356
4
- data.tar.gz: 370bb3ccb73db305325562f55a7149e55dadd5b36ac7073005eeca84c2d4f529
3
+ metadata.gz: 75beeb9e9f98cc51b8b7979be7bbd65253a319092855dfb6bfed0a23fca3bc13
4
+ data.tar.gz: dc3d0676ca07217e325ec7af031848de7943d1655a3d27f8845500c5a92657b4
5
5
  SHA512:
6
- metadata.gz: 1de8e46628ae1450973dfab381ea2f188d75b8ee730add438a5fe3434cc2f4c1e79bf56273742790bd5abcde80613d024f58f1d74ffd877046fca2d823eeefc1
7
- data.tar.gz: 70b8d04b15e963156913d86933c7f41e4a5508e8bf48f71dbb0636df76643a788190c9657802f5431f419dba7b320808d8a8aeb94d82662eb00c0a28f1e0e5d7
6
+ metadata.gz: 874cec69c0eb95b78f015105ad75695ad147a190b50488e8bb2bddf2bab5eb9811140d70b6566e3002729892a92ce78f568e48842d3c207ae2db7a3e76b7af80
7
+ data.tar.gz: 848ad81e200d92fcbbeef7cf43f80cdac118bf41b559186e0976e59a79304fac20e183289a0d67316bc88b7d02dfaf98c4f832a1c6a034be63a2eb9582f637a4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.2.2] - 2024-04-03
4
+
5
+ ### Fixed
6
+
7
+ - Correctly determine Rage env (#77).
8
+
3
9
  ## [1.2.1] - 2024-04-03
4
10
 
5
11
  ### Fixed
data/lib/rage/cli.rb CHANGED
@@ -124,7 +124,7 @@ module Rage
124
124
  end
125
125
 
126
126
  def set_env(options)
127
- ENV["RAGE_ENV"] = options[:environment] || ENV["RAGE_ENV"] || ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development"
127
+ ENV["RAGE_ENV"] = options[:environment] if options[:environment]
128
128
  end
129
129
  end
130
130
 
data/lib/rage/rspec.rb CHANGED
@@ -4,7 +4,7 @@ require "rack/test"
4
4
  require "json"
5
5
 
6
6
  # set up environment
7
- ENV["RAGE_ENV"] ||= ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "test"
7
+ ENV["RAGE_ENV"] ||= "test"
8
8
 
9
9
  # load the app
10
10
  require "bundler/setup"
data/lib/rage/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rage
4
- VERSION = "1.2.1"
4
+ VERSION = "1.2.2"
5
5
  end
data/lib/rage-rb.rb CHANGED
@@ -28,7 +28,7 @@ module Rage
28
28
  end
29
29
 
30
30
  def self.env
31
- @__env ||= Rage::Env.new(ENV["RAGE_ENV"])
31
+ @__env ||= Rage::Env.new(ENV["RAGE_ENV"] || ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development")
32
32
  end
33
33
 
34
34
  def self.groups
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rage-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Samoilov