rspec-roda 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +1 -0
- data/Rakefile +16 -0
- data/lib/rspec/roda.rb +6 -4
- data/lib/rspec/roda/version.rb +1 -1
- data/rspec-roda.gemspec +15 -17
- data/spec/rspec/roda_spec.rb +8 -0
- data/spec/spec_helper.rb +3 -0
- metadata +65 -38
- data/rakelib/bundle_audit.rake +0 -5
- data/rakelib/bundler.rake +0 -3
- data/rakelib/rspec.rake +0 -7
- data/rakelib/rubocop.rake +0 -6
- data/rakelib/yard.rake +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8a0ef0fd50116d8684132ca00a704aa85e3e91b3816bf8a440693a4a645b1436
|
4
|
+
data.tar.gz: 9a207f9f1b779642686fbb90a7d820bc90aab16f9e97c56832af8b4c7b423ccc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae5d9c6c944a4c790caf58c3a9ff548be345d29e6c72b57bc491db65599a5334afe21b7c6fca4f679c07cef31dca4cdc728f53990829f9b93d4257d4befe23a8
|
7
|
+
data.tar.gz: 75259cb52e801e4091398a83fd53f1a9d271ff8eb9933df2cb337972dc29482c4a4fcc25241cf0d664c030d6ab65cecc6d378f58482d7387704543288e195a4a
|
data/.rubocop.yml
CHANGED
data/Rakefile
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'bundler/audit/task'
|
3
4
|
require 'bundler/gem_tasks'
|
5
|
+
require 'rspec/core/rake_task'
|
6
|
+
require 'rubocop'
|
7
|
+
require 'rubocop/rake_task'
|
8
|
+
require 'yard'
|
9
|
+
require 'yard/rake/yardoc_task'
|
10
|
+
|
11
|
+
RSpec::Core::RakeTask.new :spec do |t|
|
12
|
+
t.rspec_path = 'bin/rspec'
|
13
|
+
end
|
14
|
+
|
15
|
+
RuboCop::RakeTask.new :cop
|
16
|
+
|
17
|
+
Bundler::Audit::Task.new
|
18
|
+
|
19
|
+
YARD::Rake::YardocTask.new :doc
|
4
20
|
|
5
21
|
task default: %i[spec cop bundle:audit doc]
|
data/lib/rspec/roda.rb
CHANGED
@@ -4,13 +4,15 @@ require 'rspec/roda/version'
|
|
4
4
|
require 'rspec'
|
5
5
|
require 'rspec/its'
|
6
6
|
require 'rack/test'
|
7
|
-
require '
|
7
|
+
require 'dry/inflector'
|
8
8
|
require 'rspec/mocks/standalone'
|
9
9
|
require 'rspec/matchers'
|
10
10
|
|
11
11
|
module RSpec
|
12
12
|
# Module containing different contexts for Roda.
|
13
13
|
module Roda
|
14
|
+
Inflector = Dry::Inflector.new
|
15
|
+
|
14
16
|
# Module containing helpers for specifying Roda apps.
|
15
17
|
module App
|
16
18
|
include Rack::Test::Methods
|
@@ -32,7 +34,7 @@ module RSpec
|
|
32
34
|
# Class interface for plugin specs.
|
33
35
|
module ClassInterface
|
34
36
|
# @param [Module] child
|
35
|
-
def
|
37
|
+
def extended(child)
|
36
38
|
super(child)
|
37
39
|
roda
|
38
40
|
end
|
@@ -63,8 +65,8 @@ module RSpec
|
|
63
65
|
|
64
66
|
# @return [Symbol]
|
65
67
|
def plugin_name
|
66
|
-
@plugin_name ||= metadata[:name] ||
|
67
|
-
|
68
|
+
@plugin_name ||= metadata[:name] || Inflector.underscore(
|
69
|
+
Inflector.demodulize(described_class.name)
|
68
70
|
)
|
69
71
|
end
|
70
72
|
end
|
data/lib/rspec/roda/version.rb
CHANGED
data/rspec-roda.gemspec
CHANGED
@@ -1,9 +1,6 @@
|
|
1
|
-
# coding: utf-8
|
2
1
|
# frozen_string_literal: true
|
3
2
|
|
4
|
-
|
5
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
6
|
-
require 'rspec/roda/version'
|
3
|
+
require_relative 'lib/rspec/roda/version'
|
7
4
|
|
8
5
|
Gem::Specification.new do |spec|
|
9
6
|
spec.name = 'rspec-roda'
|
@@ -16,24 +13,25 @@ Gem::Specification.new do |spec|
|
|
16
13
|
spec.homepage = 'http://alsemyonov.gitlab.com/rspec-roda/'
|
17
14
|
spec.license = 'MIT'
|
18
15
|
|
19
|
-
|
20
|
-
|
21
|
-
|
16
|
+
files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.files = files.reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.test_files = files - spec.files
|
22
19
|
spec.bindir = 'exe'
|
23
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
21
|
spec.require_paths = ['lib']
|
25
22
|
|
26
|
-
spec.add_runtime_dependency '
|
27
|
-
spec.add_runtime_dependency 'rack-test', '~> 0
|
23
|
+
spec.add_runtime_dependency 'dry-inflector'
|
24
|
+
spec.add_runtime_dependency 'rack-test', '~> 1.0'
|
28
25
|
spec.add_runtime_dependency 'roda'
|
29
|
-
spec.add_runtime_dependency 'rspec', '~> 3.
|
26
|
+
spec.add_runtime_dependency 'rspec', '~> 3.7'
|
30
27
|
spec.add_runtime_dependency 'rspec-its', '~> 1.2.0'
|
31
28
|
|
32
|
-
spec.add_development_dependency '
|
33
|
-
spec.add_development_dependency '
|
34
|
-
spec.add_development_dependency '
|
35
|
-
spec.add_development_dependency '
|
36
|
-
spec.add_development_dependency '
|
37
|
-
spec.add_development_dependency '
|
29
|
+
spec.add_development_dependency 'bundler', '~> 1.13'
|
30
|
+
spec.add_development_dependency 'bundler-audit', '~> 0.6.0'
|
31
|
+
spec.add_development_dependency 'rake', '~> 12.0'
|
32
|
+
spec.add_development_dependency 'rspec', '~> 3.5'
|
33
|
+
spec.add_development_dependency 'rspec-its', '~> 1.2'
|
34
|
+
spec.add_development_dependency 'rubocop', '~> 0.57'
|
35
|
+
spec.add_development_dependency 'simplecov', '~> 0.16'
|
36
|
+
spec.add_development_dependency 'yard', '~> 0.9.9'
|
38
37
|
end
|
39
|
-
# rubocop:enable Metrics/BlockLength
|
data/spec/spec_helper.rb
ADDED
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-roda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Semyonov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: dry-inflector
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0
|
33
|
+
version: '1.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0
|
40
|
+
version: '1.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: roda
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '3.
|
61
|
+
version: '3.7'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3.
|
68
|
+
version: '3.7'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec-its
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,89 +81,117 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 1.2.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: bundler
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '1.13'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '1.13'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: bundler-audit
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 0.6.0
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 0.6.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: rake
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: '12.0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: '12.0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: rspec
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: '3.5'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: '3.5'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: rspec-its
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - "
|
143
|
+
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
145
|
+
version: '1.2'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - "
|
150
|
+
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
152
|
+
version: '1.2'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: rubocop
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - "
|
157
|
+
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '0'
|
159
|
+
version: '0.57'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- - "
|
164
|
+
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: '0'
|
166
|
+
version: '0.57'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: simplecov
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0.16'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0.16'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: yard
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 0.9.9
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 0.9.9
|
167
195
|
description: RSpec helpers for testing Roda applications and plugins
|
168
196
|
email:
|
169
197
|
- alex@semyonov.us
|
@@ -195,12 +223,9 @@ files:
|
|
195
223
|
- bin/yri
|
196
224
|
- lib/rspec/roda.rb
|
197
225
|
- lib/rspec/roda/version.rb
|
198
|
-
- rakelib/bundle_audit.rake
|
199
|
-
- rakelib/bundler.rake
|
200
|
-
- rakelib/rspec.rake
|
201
|
-
- rakelib/rubocop.rake
|
202
|
-
- rakelib/yard.rake
|
203
226
|
- rspec-roda.gemspec
|
227
|
+
- spec/rspec/roda_spec.rb
|
228
|
+
- spec/spec_helper.rb
|
204
229
|
homepage: http://alsemyonov.gitlab.com/rspec-roda/
|
205
230
|
licenses:
|
206
231
|
- MIT
|
@@ -221,8 +246,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
246
|
version: '0'
|
222
247
|
requirements: []
|
223
248
|
rubyforge_project:
|
224
|
-
rubygems_version: 2.6
|
249
|
+
rubygems_version: 2.7.6
|
225
250
|
signing_key:
|
226
251
|
specification_version: 4
|
227
252
|
summary: RSpec and Roda integration
|
228
|
-
test_files:
|
253
|
+
test_files:
|
254
|
+
- spec/rspec/roda_spec.rb
|
255
|
+
- spec/spec_helper.rb
|
data/rakelib/bundle_audit.rake
DELETED
data/rakelib/bundler.rake
DELETED
data/rakelib/rspec.rake
DELETED
data/rakelib/rubocop.rake
DELETED