dry-plugins 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 +4 -4
- data/.editorconfig +6 -0
- data/lib/dry/plugins/registry/resolver.rb +1 -1
- data/lib/dry/plugins/version.rb +1 -1
- data/lib/rspec/dry-plugins.rb +2 -1
- metadata +2 -2
- data/Gemfile.lock +0 -99
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47131ba7636c707998845789a5dabd69621e3079
|
4
|
+
data.tar.gz: 3beac98c63b6ab937cb61112d1564cb8882af08d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1141e0c16adfd1fe8778e4e51cf2a39550907e34c14c4c19f7dddb1306c90c79360e9c55d4f6f967e1239b70e9f7ee59151e1f2c604cc5950c29eadbdf23da4
|
7
|
+
data.tar.gz: 3d62435c13630407d523f630d5c5f30cc19efea51469ea39f97969ffa9a713adc5b1802ae1af4e122d7ed30b06beac60d2b3646ccb6ec1bbcd63dafb121fb012
|
data/.editorconfig
ADDED
@@ -32,7 +32,7 @@ module Dry
|
|
32
32
|
unless container.key?(name)
|
33
33
|
path = Inflecto.underscore(name).tr('.', '/')
|
34
34
|
require "#{require_path}/#{path}"
|
35
|
-
raise LoadError
|
35
|
+
raise LoadError.new(name, self) unless container.key?(name)
|
36
36
|
end
|
37
37
|
|
38
38
|
super(container, name)
|
data/lib/dry/plugins/version.rb
CHANGED
data/lib/rspec/dry-plugins.rb
CHANGED
@@ -39,12 +39,13 @@ module Dry
|
|
39
39
|
def a_plugins_host(name: :ExamplePluginsHost, parent: nil, &block)
|
40
40
|
an_example_class(name: name, parent: parent) do
|
41
41
|
extend Dry::Plugins
|
42
|
-
instance_exec(&block)
|
42
|
+
instance_exec(&block) if block_given?
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
48
|
+
|
48
49
|
RSpec.configure do |config|
|
49
50
|
config.include Dry::Plugins::RSpec
|
50
51
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-plugins
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Semyonov
|
@@ -129,6 +129,7 @@ executables: []
|
|
129
129
|
extensions: []
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
|
+
- ".editorconfig"
|
132
133
|
- ".gitignore"
|
133
134
|
- ".rspec"
|
134
135
|
- ".rubocop.yml"
|
@@ -136,7 +137,6 @@ files:
|
|
136
137
|
- ".simplecov"
|
137
138
|
- ".yardopts"
|
138
139
|
- Gemfile
|
139
|
-
- Gemfile.lock
|
140
140
|
- LICENSE.md
|
141
141
|
- README.md
|
142
142
|
- Rakefile
|
data/Gemfile.lock
DELETED
@@ -1,99 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
dry-plugins (0.2.0)
|
5
|
-
dry-auto_inject
|
6
|
-
dry-configurable
|
7
|
-
dry-container (~> 0.6.0)
|
8
|
-
dry-core
|
9
|
-
dry-equalizer
|
10
|
-
inflecto
|
11
|
-
|
12
|
-
GEM
|
13
|
-
remote: https://rubygems.org/
|
14
|
-
specs:
|
15
|
-
ast (2.3.0)
|
16
|
-
bundler-audit (0.5.0)
|
17
|
-
bundler (~> 1.2)
|
18
|
-
thor (~> 0.18)
|
19
|
-
commonmarker (0.16.0)
|
20
|
-
ruby-enum (~> 0.5)
|
21
|
-
concurrent-ruby (1.0.5)
|
22
|
-
development-toolbox (0.7.0)
|
23
|
-
bundler (~> 1.13)
|
24
|
-
bundler-audit (~> 0.5)
|
25
|
-
rake (~> 12.0)
|
26
|
-
rspec (~> 3.5)
|
27
|
-
rspec-its (~> 1.2)
|
28
|
-
rubocop (~> 0.48)
|
29
|
-
yard-commonmarker (~> 0.3)
|
30
|
-
diff-lcs (1.3)
|
31
|
-
docile (1.1.5)
|
32
|
-
dry-auto_inject (0.4.3)
|
33
|
-
dry-container (>= 0.3.4)
|
34
|
-
dry-configurable (0.7.0)
|
35
|
-
concurrent-ruby (~> 1.0)
|
36
|
-
dry-container (0.6.0)
|
37
|
-
concurrent-ruby (~> 1.0)
|
38
|
-
dry-configurable (~> 0.1, >= 0.1.3)
|
39
|
-
dry-core (0.3.1)
|
40
|
-
concurrent-ruby (~> 1.0)
|
41
|
-
dry-equalizer (0.2.0)
|
42
|
-
i18n (0.8.1)
|
43
|
-
inflecto (0.0.2)
|
44
|
-
json (2.1.0)
|
45
|
-
parallel (1.11.2)
|
46
|
-
parser (2.4.0.0)
|
47
|
-
ast (~> 2.2)
|
48
|
-
powerpack (0.1.1)
|
49
|
-
rainbow (2.2.2)
|
50
|
-
rake
|
51
|
-
rake (12.0.0)
|
52
|
-
rspec (3.6.0)
|
53
|
-
rspec-core (~> 3.6.0)
|
54
|
-
rspec-expectations (~> 3.6.0)
|
55
|
-
rspec-mocks (~> 3.6.0)
|
56
|
-
rspec-core (3.6.0)
|
57
|
-
rspec-support (~> 3.6.0)
|
58
|
-
rspec-expectations (3.6.0)
|
59
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
60
|
-
rspec-support (~> 3.6.0)
|
61
|
-
rspec-its (1.2.0)
|
62
|
-
rspec-core (>= 3.0.0)
|
63
|
-
rspec-expectations (>= 3.0.0)
|
64
|
-
rspec-mocks (3.6.0)
|
65
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
66
|
-
rspec-support (~> 3.6.0)
|
67
|
-
rspec-support (3.6.0)
|
68
|
-
rubocop (0.49.0)
|
69
|
-
parallel (~> 1.10)
|
70
|
-
parser (>= 2.3.3.1, < 3.0)
|
71
|
-
powerpack (~> 0.1)
|
72
|
-
rainbow (>= 1.99.1, < 3.0)
|
73
|
-
ruby-progressbar (~> 1.7)
|
74
|
-
unicode-display_width (~> 1.0, >= 1.0.1)
|
75
|
-
ruby-enum (0.7.1)
|
76
|
-
i18n
|
77
|
-
ruby-progressbar (1.8.1)
|
78
|
-
simplecov (0.14.1)
|
79
|
-
docile (~> 1.1.0)
|
80
|
-
json (>= 1.8, < 3)
|
81
|
-
simplecov-html (~> 0.10.0)
|
82
|
-
simplecov-html (0.10.1)
|
83
|
-
thor (0.19.4)
|
84
|
-
unicode-display_width (1.2.1)
|
85
|
-
yard (0.9.9)
|
86
|
-
yard-commonmarker (0.3.0)
|
87
|
-
commonmarker (~> 0.16)
|
88
|
-
yard (~> 0.9)
|
89
|
-
|
90
|
-
PLATFORMS
|
91
|
-
ruby
|
92
|
-
|
93
|
-
DEPENDENCIES
|
94
|
-
development-toolbox (~> 0.6)
|
95
|
-
dry-plugins!
|
96
|
-
simplecov
|
97
|
-
|
98
|
-
BUNDLED WITH
|
99
|
-
1.15.1
|