rails-env 1.0.4 → 1.0.5

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
  SHA1:
3
- metadata.gz: e229d273c71090c439672c8aa4eceb9d61f1e33a
4
- data.tar.gz: 7ddba604e194c41cd96eaa58cc3bef0bf488104d
3
+ metadata.gz: 090040b7adbed72a4e3cf77672bc5ab2d35d8cfd
4
+ data.tar.gz: 7791272c42622b829b5b5d7a409b96f2b16b75f2
5
5
  SHA512:
6
- metadata.gz: eeb3f0b810379554ed2259097e5b2bfa69dbcb5c05e06d00ccab0e3250122e0be368a9030d66ace07d525c2e84618c348dd40ce3a3f4e6ca624acc750098a6fa
7
- data.tar.gz: 1f7de41eaade15bb74feef5e7d75fbbc1e6bc527cbf10dc4bde3c7f7d459e7560f52461345d41ef1f12322e28feecdc74f5ad4c13a9d5619356e9f946a4829f7
6
+ metadata.gz: fe41ee71ac13c65069d27a107c868dae6e895f0adfdb5856cc6f244d82c70e8f6f89bd17a952736d26173adaf71f49fd0acffed5cb737a04ecc26d87f9dc9a6d
7
+ data.tar.gz: 1ed4c557662ce1858fd7414b0ad66b8613bac26981b904f484d4c1cb7e2a6715b3eed21942c34f3e9d2557db173b9d81b30fdaf847a62aba98efe3669a42be8b
@@ -1,3 +1,3 @@
1
1
  module RailsEnv
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
data/lib/rails-env.rb CHANGED
@@ -23,11 +23,11 @@ module RailsEnv
23
23
  end
24
24
 
25
25
  def self.propagate_configuration!
26
- propagate(:action_mailer, "::ActionMailer::Base")
27
- propagate(:active_record, "::ActiveRecord::Base")
28
- propagate(:active_job, "::ActiveJob::Base")
29
26
  propagate(:action_controller, "::ActionController::Base")
27
+ propagate(:action_mailer, "::ActionMailer::Base")
30
28
  propagate(:action_view, "::ActionView::Base")
29
+ propagate(:active_job, "::ActiveJob::Base")
30
+ propagate(:active_record, "::ActiveRecord::Base")
31
31
  propagate(:time_zone, "::Time", :zone)
32
32
  propagate_i18n
33
33
  end
data/test/test_helper.rb CHANGED
@@ -4,6 +4,7 @@ require "bundler/setup"
4
4
  require "rails"
5
5
  require "action_mailer/railtie"
6
6
  require "action_view/railtie"
7
+ require "active_job/railtie"
7
8
  require "rails-env"
8
9
 
9
10
  require "minitest/utils"
@@ -10,6 +10,7 @@ class ConfigPropagationTest < Minitest::Test
10
10
  config.i18n.available_locales = ["pt-BR"]
11
11
  config.i18n.default_locale = "pt-BR"
12
12
  config.action_view.raise_on_missing_translations = true
13
+ config.active_job.queue_adapter = :test
13
14
  end
14
15
  end
15
16
 
@@ -46,4 +47,8 @@ class ConfigPropagationTest < Minitest::Test
46
47
  test "sets raise on missing translations" do
47
48
  assert ActionView::Base.raise_on_missing_translations
48
49
  end
50
+
51
+ test "sets queue adapter" do
52
+ assert_kind_of ActiveJob::QueueAdapters::TestAdapter, ActiveJob::Base.queue_adapter
53
+ end
49
54
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-env
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira