active_delivery 0.4.0 → 0.4.1

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: cb5ab8a6ec56fff50826ab85c266e3feb22f621495b7004b52b3e57230f4cf22
4
- data.tar.gz: 18cd0ec87390d72dfc358988f53d801f2bb7175c5fda373243705518bf66c7d9
3
+ metadata.gz: 850016c54f7c39fe598abe0fd556b1aa6502decae5748c585a6d111723020c47
4
+ data.tar.gz: 96bbad525cae17c66b59c07adc3ecf9db159f13906f31654f3b3ac4d86638d44
5
5
  SHA512:
6
- metadata.gz: 1a154c82c76c588059e7c41a725c58118b9e9e5c59b5695846505f880e830d59ff27e8db90ef661b3a1a98739e62f0baba4efb48d4a453e2d1fe46b0f1358325
7
- data.tar.gz: 5cab3665df3ee06eb878a9e78f15f754ef48ce3b2f71c5e9c14711215ffa584e8ecf3c18b84cfd03cdb00ece0e89da86ed4c812712e2f30f320d9a2ae70417ef
6
+ metadata.gz: 9fc7815ba928c6ebc953bf762cbbf4af720c44d49a6f7a6496d49357059de9d3e05ffe23ec07f66084ba264d3aa18133290602e163810e0bc5986b12a4982b06
7
+ data.tar.gz: 5e7ae24f11552849ad2fdc6fb1147c530817b5bded836302421d02f20719d85a19d2c05feaacf90d082ffa451ff406e354a803581aa473ecafb046c33d77089b
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 0.4.1 (2020-04-22)
6
+
7
+ - Fixed TestDelivery fiber support. ([@pauldub](https://github.com/pauldub))
8
+
5
9
  ## 0.4.0 (2020-03-02)
6
10
 
7
11
  - **Drop Ruby 2.4 support**. ([@palkan][])
data/README.md CHANGED
@@ -184,7 +184,7 @@ specify "when event is not found" do
184
184
  end
185
185
  ```
186
186
 
187
- *NOTE:** test mode activated automatically if `RAILS_ENV` or `RACK_ENV` env variable is equal to "test". Otherwise add `require "active_delivery/testing"` to your `spec_helper.rb` / `rails_helper.rb` manually. This is also required if you're using Spring in test environment (e.g. with help of [spring-commands-rspec](https://github.com/jonleighton/spring-commands-rspec)).
187
+ **NOTE:** test mode activated automatically if `RAILS_ENV` or `RACK_ENV` env variable is equal to "test". Otherwise add `require "active_delivery/testing/rspec"` to your `spec_helper.rb` / `rails_helper.rb` manually. This is also required if you're using Spring in test environment (e.g. with help of [spring-commands-rspec](https://github.com/jonleighton/spring-commands-rspec)).
188
188
 
189
189
  ## Custom "lines"
190
190
 
@@ -7,15 +7,15 @@ module ActiveDelivery
7
7
  raise ArgumentError, "block is required" unless block_given?
8
8
  begin
9
9
  clear
10
- Thread.current[:active_delivery_testing] = true
10
+ Thread.current.thread_variable_set(:active_delivery_testing, true)
11
11
  yield
12
12
  ensure
13
- Thread.current[:active_delivery_testing] = false
13
+ Thread.current.thread_variable_set(:active_delivery_testing, false)
14
14
  end
15
15
  end
16
16
 
17
17
  def enabled?
18
- Thread.current[:active_delivery_testing] == true
18
+ Thread.current.thread_variable_get(:active_delivery_testing) == true
19
19
  end
20
20
 
21
21
  def track(delivery, event, args, options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveDelivery
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_delivery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Dementyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-03 00:00:00.000000000 Z
11
+ date: 2020-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler