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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/active_delivery/testing.rb +3 -3
- data/lib/active_delivery/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 850016c54f7c39fe598abe0fd556b1aa6502decae5748c585a6d111723020c47
|
4
|
+
data.tar.gz: 96bbad525cae17c66b59c07adc3ecf9db159f13906f31654f3b3ac4d86638d44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fc7815ba928c6ebc953bf762cbbf4af720c44d49a6f7a6496d49357059de9d3e05ffe23ec07f66084ba264d3aa18133290602e163810e0bc5986b12a4982b06
|
7
|
+
data.tar.gz: 5e7ae24f11552849ad2fdc6fb1147c530817b5bded836302421d02f20719d85a19d2c05feaacf90d082ffa451ff406e354a803581aa473ecafb046c33d77089b
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -184,7 +184,7 @@ specify "when event is not found" do
|
|
184
184
|
end
|
185
185
|
```
|
186
186
|
|
187
|
-
|
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
|
10
|
+
Thread.current.thread_variable_set(:active_delivery_testing, true)
|
11
11
|
yield
|
12
12
|
ensure
|
13
|
-
Thread.current
|
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
|
18
|
+
Thread.current.thread_variable_get(:active_delivery_testing) == true
|
19
19
|
end
|
20
20
|
|
21
21
|
def track(delivery, event, args, options)
|
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.
|
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-
|
11
|
+
date: 2020-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|