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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8e7ea8ea5a63ad88aae65509327564a7d129c370
4
- data.tar.gz: f8a7e70cc8816e18d38d4545af0e11a916503c03
2
+ SHA256:
3
+ metadata.gz: 8a0ef0fd50116d8684132ca00a704aa85e3e91b3816bf8a440693a4a645b1436
4
+ data.tar.gz: 9a207f9f1b779642686fbb90a7d820bc90aab16f9e97c56832af8b4c7b423ccc
5
5
  SHA512:
6
- metadata.gz: 459b2670e415f8b9b401470243126fe9f5f5354a806f027195261dd4f26545d0e03eb37dd583d0b64028674b8bfca7e29c99d7e223d5f384d318bc01fdf6abfd
7
- data.tar.gz: dd5bedb8dde31655b1c2f9f096ebe15e1d956ac1a9d07868c5306df4d2e9ea9cee272d70b267d4f5ba21712c44f9b477cc53d2b4719f6eca989008a2472a7c3c
6
+ metadata.gz: ae5d9c6c944a4c790caf58c3a9ff548be345d29e6c72b57bc491db65599a5334afe21b7c6fca4f679c07cef31dca4cdc728f53990829f9b93d4257d4befe23a8
7
+ data.tar.gz: 75259cb52e801e4091398a83fd53f1a9d271ff8eb9933df2cb337972dc29482c4a4fcc25241cf0d664c030d6ab65cecc6d378f58482d7387704543288e195a4a
@@ -9,6 +9,7 @@ AllCops:
9
9
 
10
10
  Metrics/BlockLength:
11
11
  Exclude:
12
+ - '*.gemspec'
12
13
  - rakelib/**/*.rb
13
14
  - spec/**/*.rb
14
15
  - vendor/**/*.rb
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]
@@ -4,13 +4,15 @@ require 'rspec/roda/version'
4
4
  require 'rspec'
5
5
  require 'rspec/its'
6
6
  require 'rack/test'
7
- require 'inflecto'
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 included(child)
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] || Inflecto.underscore(
67
- Inflecto.demodulize(described_class.name)
68
+ @plugin_name ||= metadata[:name] || Inflector.underscore(
69
+ Inflector.demodulize(described_class.name)
68
70
  )
69
71
  end
70
72
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  module Roda
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  end
7
7
  end
@@ -1,9 +1,6 @@
1
- # coding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
- lib = File.expand_path('../lib', __FILE__)
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
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
20
- f.match(%r{^(test|spec|features)/})
21
- end
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 'inflecto'
27
- spec.add_runtime_dependency 'rack-test', '~> 0.6.3'
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.0'
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 'development-toolbox', '~> 0.7'
33
- spec.add_development_dependency 'rspec-its', '~> 1.2.0'
34
- spec.add_development_dependency 'simplecov', '~> 0.12.0'
35
- spec.add_development_dependency 'rom-repository', '>= 0.3.1'
36
- spec.add_development_dependency 'rom-sql', '>= 0.9'
37
- spec.add_development_dependency 'sequel'
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
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+ require 'spec_helper'
3
+
4
+ describe RSpec::Roda do
5
+ it 'has a version number' do
6
+ expect(RSpec::Roda::VERSION).not_to be nil
7
+ end
8
+ end
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
3
+ require 'rspec/roda'
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.0
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: 2017-05-21 00:00:00.000000000 Z
11
+ date: 2018-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: inflecto
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.6.3
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.6.3
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.0'
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.0'
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: development-toolbox
84
+ name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0.7'
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: '0.7'
96
+ version: '1.13'
97
97
  - !ruby/object:Gem::Dependency
98
- name: rspec-its
98
+ name: bundler-audit
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.2.0
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: 1.2.0
110
+ version: 0.6.0
111
111
  - !ruby/object:Gem::Dependency
112
- name: simplecov
112
+ name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 0.12.0
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: 0.12.0
124
+ version: '12.0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: rom-repository
126
+ name: rspec
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 0.3.1
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: 0.3.1
138
+ version: '3.5'
139
139
  - !ruby/object:Gem::Dependency
140
- name: rom-sql
140
+ name: rspec-its
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ">="
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '0.9'
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: '0.9'
152
+ version: '1.2'
153
153
  - !ruby/object:Gem::Dependency
154
- name: sequel
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.11
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
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/audit/task'
4
-
5
- Bundler::Audit::Task.new
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'rspec/core/rake_task'
4
-
5
- RSpec::Core::RakeTask.new :spec do |t|
6
- t.rspec_path = 'bin/rspec'
7
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'rubocop/rake_task'
4
- require 'rubocop'
5
-
6
- RuboCop::RakeTask.new(:cop)
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'yard'
4
- require 'yard/rake/yardoc_task'
5
-
6
- YARD::Rake::YardocTask.new :doc