currentable 0.2.0 → 0.3.0

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: 48656fcd0ae564e469b9e469e4de8d4ad7f52ff8
4
- data.tar.gz: 173ef4c5547b09cb9d9fedc6c833b58cd8a8c170
3
+ metadata.gz: db303da6f78ad3b29776c79ea648e52790190ce8
4
+ data.tar.gz: d47307e211d13f6d79a14bfdd27e8367fbea0b8a
5
5
  SHA512:
6
- metadata.gz: 82a5e3af042877a7a6b2783bfa9e5d910a205c65f941e833339f068829c9706d494157c1ae50286fa7e63cfd23b317f1e611867e5d51972435fce00d500b667c
7
- data.tar.gz: c59a5cdc87a7752f7dd08dd8bafb5931a6051a6051eaff33ef6b099b1622a92c5029ff8a60b6dce6443f93a7e810eb55f156f640391916367bbd80117fd22925
6
+ metadata.gz: 65f28caaa99b0fc43ac4d4a62ed47edbfbf3c92a7f9d71f3154b8235c3ab4b96b83b42ac4dbacaa5deb97eb18d4799f417db31369f18899667917a836491b76a
7
+ data.tar.gz: e396518806784d0872102acee9980b370024b44ccc886cec6d30295512f8cacf2842c2ed2aa707f6db92e642dddf13696d65dc1e5e7fa22559c5c75b931355bf
data/lib/currentable.rb CHANGED
@@ -11,6 +11,10 @@ if defined? ::Sidekiq
11
11
  require 'currentable/sidetie'
12
12
  end
13
13
 
14
+ if defined? ::RSpec
15
+ require 'currentable/rspectie'
16
+ end
17
+
14
18
  ##
15
19
  # Adds a .current and .current= method to objects for thread storeage.
16
20
  module Currentable
@@ -19,6 +19,9 @@ module Currentable
19
19
  end
20
20
  klass.current = nil
21
21
  end
22
+ if defined? ::Rails
23
+ ::Rails.logger.debug ''
24
+ end
22
25
  end
23
26
  end
24
27
  end
@@ -0,0 +1,5 @@
1
+ require_relative 'cleaner'
2
+
3
+ RSpec.configure do |config|
4
+ config.after(:each) { Currentable::Cleaner.clean_all }
5
+ end
@@ -1,5 +1,5 @@
1
1
  module Currentable
2
2
  ##
3
3
  # The current version of the gem.
4
- VERSION = '0.2.0'.freeze
4
+ VERSION = '0.3.0'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: currentable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maddie Schipper
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-16 00:00:00.000000000 Z
11
+ date: 2018-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -82,6 +82,7 @@ files:
82
82
  - lib/currentable/middleware/sidekiq/server/cleaner.rb
83
83
  - lib/currentable/railtie.rb
84
84
  - lib/currentable/registry.rb
85
+ - lib/currentable/rspectie.rb
85
86
  - lib/currentable/sidetie.rb
86
87
  - lib/currentable/version.rb
87
88
  homepage: https://github.com/maddiesch/currentable