ruby_dci 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/dci/rspec.rb +2 -0
- data/lib/dci/rspec/helpers.rb +19 -0
- data/lib/dci/rspec/matchers.rb +4 -0
- data/lib/dci/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c9dac03207edb2a9e8062c67a135d24e52179e73
|
|
4
|
+
data.tar.gz: 978e636696c193ce6b4b2880c3aac7dd27438d2f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c1ef2c676ad7cbf87cd3fb1c634ee74dc1f05bc3e39be9c0f4baf0f226d8c7bf2e505b87e321e070135691ec4f07a0cd7a87992ce15392b879dca2817cbfba9
|
|
7
|
+
data.tar.gz: b6950b72858cbad343fbc1ce6a62f262a57a02320cb75db3a3ded1a0ffac3b9dac04b8405fb32769eab69a2f898efaecd92e74a4b2e056fa57549a2877ff315d
|
data/CHANGELOG.md
CHANGED
data/lib/dci/rspec.rb
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
require 'rspec/support'
|
|
2
|
+
|
|
3
|
+
module DCI
|
|
4
|
+
module Rspec
|
|
5
|
+
module Helpers
|
|
6
|
+
def dci_context!(**args)
|
|
7
|
+
Thread.current[:context] = OpenStruct.new(args)
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
RSpec.configure do |config|
|
|
14
|
+
config.include DCI::Rspec::Helpers
|
|
15
|
+
|
|
16
|
+
config.after do
|
|
17
|
+
Thread.current[:context] = nil
|
|
18
|
+
end
|
|
19
|
+
end
|
data/lib/dci/rspec/matchers.rb
CHANGED
data/lib/dci/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby_dci
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aleksandr Lossenko
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-10-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec-support
|
|
@@ -98,6 +98,8 @@ files:
|
|
|
98
98
|
- lib/dci/event_router.rb
|
|
99
99
|
- lib/dci/null_transaction.rb
|
|
100
100
|
- lib/dci/role.rb
|
|
101
|
+
- lib/dci/rspec.rb
|
|
102
|
+
- lib/dci/rspec/helpers.rb
|
|
101
103
|
- lib/dci/rspec/matchers.rb
|
|
102
104
|
- lib/dci/version.rb
|
|
103
105
|
- spec/dci/accessor_spec.rb
|