abstract_notifier 0.3.0 → 0.3.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: 4b04d84548a4895eb31535c7f50540916aa956b6609c5a2970404b4978720215
4
- data.tar.gz: 6298d48963f69f556d9b26d7f81d67e8b67083bc18bd5ef587f3633a866a2678
3
+ metadata.gz: 03f0a4930f3a771cd4c4ba112ea3dfb0ad5df8da51d2a355c5588aa4d4d164f7
4
+ data.tar.gz: cac11a3dc5d86a394ae114aab6b4f751b028e0e582f344611061ebb50903374a
5
5
  SHA512:
6
- metadata.gz: 66f870bd767fba06773a9be991a5c0a6a0cd7f25f2a375a7f21b4e323bfceee3bf43de1c431ae43dc528964237d73f3d19876d1f94059b3afb3e43760e8cbdfb
7
- data.tar.gz: 4686c9145b53a42ba6b649e93ff49d1c48a6c31b1c6056b40ce5fc778b8eb24aeb8bab707639f14d48c689181e15e5a5cf06ed1cffc9ae8129f980a2d650a230
6
+ metadata.gz: bd0fb71fa422dfaa8309294eff7593561af5d0dde3a45fba0345c1642ae6418f269e5d8d409bfbffafd967897506be2d6aa5990329041ca8d131ea7cf77ede43
7
+ data.tar.gz: 83c389be95c2d1ee64f5dc1645d80992f08b7ed03a382407c9f869d1cbd079cb4823d4c2924451131d55578d7382dfaaa93131ec52771b303959e9a2b2e15d0d
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 0.3.1 (2020-04-09)
6
+
7
+ - Fix loading testing utils. ([@brovikov][])
8
+
9
+ Change the RSpec check to `defined?(RSpec::Core)` to prevent from
10
+ loading testing utils when only `RSpec` module is defined.
11
+
5
12
  ## 0.3.0 (2020-03-02)
6
13
 
7
14
  - **Drop Ruby 2.4 support**. ([@palkan][])
@@ -17,3 +24,4 @@
17
24
  Initial version.
18
25
 
19
26
  [@palkan]: https://github.com/palkan
27
+ [@brovikov]: https://github.com/brovikov
data/README.md CHANGED
@@ -190,6 +190,8 @@ expect { EventsNotifier.with(profile: profile).canceled(event).notify_now }.
190
190
  expect { EventsNotifier.with(profile: profile).canceled(event).notify_later}.
191
191
  to have_enqueued_notification(identify: '123', body: 'Alarma!')
192
192
  ```
193
+
194
+ **NOTE:** test mode activated automatically if `RAILS_ENV` or `RACK_ENV` env variable is equal to "test". Otherwise add `require "abstract_notifier/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)).
193
195
 
194
196
  ## Related projects
195
197
 
@@ -45,4 +45,4 @@ end
45
45
 
46
46
  AbstractNotifier::Notification.prepend AbstractNotifier::Testing::Notification
47
47
 
48
- require "abstract_notifier/testing/rspec" if defined?(RSpec)
48
+ require "abstract_notifier/testing/rspec" if defined?(RSpec::Core)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AbstractNotifier
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abstract_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.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-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_delivery