hobby-devtools 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/hobby-devtools.gemspec +2 -5
- data/lib/hobby/devtools/rspec.rb +0 -2
- data/lib/hobby/devtools/rspec_helper.rb +4 -3
- metadata +3 -46
- data/lib/hobby/devtools/power_assert.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88b7bef35094403c7c721c6723c6fb893efc321b
|
4
|
+
data.tar.gz: b1b0c54e84f2b5c47d5d9101b1088527f5031fb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ff1cfa8d82d14c92a19fe53310ce1c12a36a7301dc50dee914f1ecc47ad195cea042fa6b878c0e93a0ccb094062ed2491f12ec3e8e6d5e7153538f7ec7b5e6b
|
7
|
+
data.tar.gz: aa47ee94be60df732e63ec214715b669b5b6a72f9ca7efb5fe7059bb9e606c91df740317e15291fc25a606fee3cf3808cc51d9a2f75969d65a4aed4d44d98ab5
|
data/hobby-devtools.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |g|
|
2
2
|
g.name = 'hobby-devtools'
|
3
3
|
g.files = `git ls-files`.split($/)
|
4
|
-
g.version = '0.0.
|
4
|
+
g.version = '0.0.12'
|
5
5
|
g.summary = 'My setup for development of Hobby-related projects.'
|
6
6
|
g.authors = ['Anatoly Chernow']
|
7
7
|
|
@@ -10,12 +10,9 @@ Gem::Specification.new do |g|
|
|
10
10
|
g.add_dependency 'mutant'
|
11
11
|
g.add_dependency 'mutant-rspec'
|
12
12
|
g.add_dependency 'rspec'
|
13
|
-
g.add_dependency '
|
14
|
-
g.add_dependency 'minitest-power_assert'
|
13
|
+
g.add_dependency 'rspec-power_assert'
|
15
14
|
g.add_dependency 'pry'
|
16
15
|
g.add_dependency 'awesome_print'
|
17
16
|
g.add_dependency 'puma'
|
18
17
|
g.add_dependency 'bgem'
|
19
|
-
g.add_dependency 'terminal-table'
|
20
|
-
g.add_dependency 'rainbow'
|
21
18
|
end
|
data/lib/hobby/devtools/rspec.rb
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
require 'hobby/test'
|
2
2
|
require 'puma'
|
3
3
|
|
4
|
-
require '
|
4
|
+
require 'rspec/power_assert'
|
5
|
+
RSpec::PowerAssert.example_assertion_alias :assert
|
6
|
+
RSpec::PowerAssert.example_group_assertion_alias :assert
|
7
|
+
|
5
8
|
require 'hobby/devtools/mutant'
|
6
9
|
require 'hobby/devtools/rspec'
|
7
10
|
|
8
11
|
RSpec.configure do |config|
|
9
|
-
config.expect_with :rspec, :minitest
|
10
|
-
|
11
12
|
unless ENV['PRY']
|
12
13
|
require 'timeout'
|
13
14
|
config.around :each do |example|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hobby-devtools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anatoly Chernow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hobby
|
@@ -81,21 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: minitest-power_assert
|
84
|
+
name: rspec-power_assert
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
87
|
- - ">="
|
@@ -164,34 +150,6 @@ dependencies:
|
|
164
150
|
- - ">="
|
165
151
|
- !ruby/object:Gem::Version
|
166
152
|
version: '0'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: terminal-table
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - ">="
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '0'
|
174
|
-
type: :runtime
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - ">="
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '0'
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
|
-
name: rainbow
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - ">="
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: '0'
|
188
|
-
type: :runtime
|
189
|
-
prerelease: false
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - ">="
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: '0'
|
195
153
|
description:
|
196
154
|
email:
|
197
155
|
executables: []
|
@@ -201,7 +159,6 @@ files:
|
|
201
159
|
- ".gitignore"
|
202
160
|
- hobby-devtools.gemspec
|
203
161
|
- lib/hobby/devtools/mutant.rb
|
204
|
-
- lib/hobby/devtools/power_assert.rb
|
205
162
|
- lib/hobby/devtools/rspec.rb
|
206
163
|
- lib/hobby/devtools/rspec_helper.rb
|
207
164
|
homepage:
|
@@ -1,19 +0,0 @@
|
|
1
|
-
require 'minitest'
|
2
|
-
require 'minitest-power_assert'
|
3
|
-
|
4
|
-
assert = if ENV['PRY']
|
5
|
-
require 'pry'
|
6
|
-
require 'awesome_print'
|
7
|
-
|
8
|
-
Module.new do
|
9
|
-
def assert &block
|
10
|
-
PowerAssert.start Proc.new, assertion_method: __method__ do |pa|
|
11
|
-
block.binding.pry unless pa.yield
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
else
|
16
|
-
Minitest::PowerAssert::Assertions
|
17
|
-
end
|
18
|
-
|
19
|
-
Minitest::Assertions.prepend assert
|