polishgeeks-dev-tools 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/Gemfile.lock +9 -26
- data/lib/polish_geeks/dev_tools/commands/rspec.rb +1 -1
- data/lib/polish_geeks/dev_tools/version.rb +1 -1
- data/polishgeeks_dev_tools.gemspec +1 -2
- data/spec/lib/polish_geeks/dev_tools/commands/rspec_files_structure_spec.rb +1 -1
- data/spec/lib/polish_geeks/dev_tools/commands/rspec_spec.rb +6 -0
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebb515c81e1b1bcdbd00ce1b1a1a4bfaf5fd8717
|
4
|
+
data.tar.gz: f7087754e4f6fe9e7ae3c22a6e8abdd5244ab363
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e15c2816fc94fbe5df41e0e9d02946548fd76e2aaead4008c5f0327c2b8ce24eeba6d5adfa5282e0ed097892f9c5da3478c12bb74842e8d6a4c4a5d1c2ae60c
|
7
|
+
data.tar.gz: dc2d68e1649212aa2e3b6ddac14d75b79f836acb1ac0edcb3535422dc0feb75dcd1666cd49824a4add127bbe9d90e7a74d442f9a4e7189827e3b668a8ffec499
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,13 @@
|
|
2
2
|
|
3
3
|
## master (unreleased)
|
4
4
|
|
5
|
+
## 1.3.1 (15/04/2016)
|
6
|
+
|
7
|
+
- Remove dependency for mongoid-rspec
|
8
|
+
- #54: Fix Command::Rspec to handle single test failure
|
9
|
+
- Bump rubycritic dependency to 2.9.0
|
10
|
+
- #58: Rename haml-lint gem to haml_lint
|
11
|
+
|
5
12
|
## 1.3.0 (03/04/2016)
|
6
13
|
|
7
14
|
- Move to ruby 2.3.0 by default
|
@@ -55,7 +62,6 @@ Now you need to change that to
|
|
55
62
|
```
|
56
63
|
|
57
64
|
- #12: Add rubocop-rspec which checks add code style checking for your RSpec files
|
58
|
-
|
59
65
|
- #33: Add an option to disallow pending specs
|
60
66
|
|
61
67
|
If you want to allow pending specs then
|
data/Gemfile.lock
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
polishgeeks-dev-tools (1.3.
|
4
|
+
polishgeeks-dev-tools (1.3.1)
|
5
5
|
brakeman
|
6
6
|
bundler-audit
|
7
7
|
faker
|
8
|
-
|
9
|
-
mongoid-rspec
|
8
|
+
haml_lint
|
10
9
|
pry
|
11
10
|
rspec
|
12
11
|
rubocop
|
@@ -20,9 +19,6 @@ PATH
|
|
20
19
|
GEM
|
21
20
|
remote: https://rubygems.org/
|
22
21
|
specs:
|
23
|
-
activemodel (4.2.6)
|
24
|
-
activesupport (= 4.2.6)
|
25
|
-
builder (~> 3.1)
|
26
22
|
activesupport (4.2.6)
|
27
23
|
i18n (~> 0.7)
|
28
24
|
json (~> 1.7, >= 1.7.7)
|
@@ -45,8 +41,6 @@ GEM
|
|
45
41
|
sass (~> 3.0)
|
46
42
|
slim (>= 1.3.6, < 4.0)
|
47
43
|
terminal-table (~> 1.4)
|
48
|
-
bson (4.0.4)
|
49
|
-
builder (3.2.2)
|
50
44
|
bundler-audit (0.5.0)
|
51
45
|
bundler (~> 1.2)
|
52
46
|
thor (~> 0.18)
|
@@ -73,9 +67,10 @@ GEM
|
|
73
67
|
sexp_processor (~> 4.4)
|
74
68
|
haml (4.0.7)
|
75
69
|
tilt
|
76
|
-
|
70
|
+
haml_lint (0.17.1)
|
77
71
|
haml (~> 4.0)
|
78
|
-
|
72
|
+
rake (>= 10, < 12)
|
73
|
+
rubocop (>= 0.36.0)
|
79
74
|
sysexits (~> 1.1)
|
80
75
|
highline (1.7.8)
|
81
76
|
i18n (0.7.0)
|
@@ -85,18 +80,6 @@ GEM
|
|
85
80
|
addressable (~> 2.3)
|
86
81
|
method_source (0.8.2)
|
87
82
|
minitest (5.8.4)
|
88
|
-
mongo (2.2.4)
|
89
|
-
bson (~> 4.0)
|
90
|
-
mongoid (5.1.2)
|
91
|
-
activemodel (~> 4.0)
|
92
|
-
mongo (~> 2.1)
|
93
|
-
origin (~> 2.2)
|
94
|
-
tzinfo (>= 0.3.37)
|
95
|
-
mongoid-rspec (3.0.0)
|
96
|
-
mongoid (~> 5.0)
|
97
|
-
rake
|
98
|
-
rspec (~> 3.3)
|
99
|
-
origin (2.2.0)
|
100
83
|
parser (2.3.0.7)
|
101
84
|
ast (~> 2.2)
|
102
85
|
powerpack (0.1.1)
|
@@ -106,7 +89,7 @@ GEM
|
|
106
89
|
slop (~> 3.4)
|
107
90
|
rainbow (2.1.0)
|
108
91
|
rake (11.1.2)
|
109
|
-
reek (
|
92
|
+
reek (4.0.1)
|
110
93
|
codeclimate-engine-rb (~> 0.3.1)
|
111
94
|
parser (~> 2.3, >= 2.3.0.6)
|
112
95
|
rainbow (~> 2.0)
|
@@ -137,13 +120,13 @@ GEM
|
|
137
120
|
sexp_processor (~> 4.0)
|
138
121
|
ruby_parser (3.8.1)
|
139
122
|
sexp_processor (~> 4.1)
|
140
|
-
rubycritic (2.
|
123
|
+
rubycritic (2.9.0)
|
141
124
|
colorize
|
142
125
|
flay (= 2.7.0)
|
143
126
|
flog (= 4.3.2)
|
144
127
|
launchy (= 2.4.3)
|
145
|
-
parser (
|
146
|
-
reek (=
|
128
|
+
parser (= 2.3.0.7)
|
129
|
+
reek (= 4.0.1)
|
147
130
|
ruby_parser (~> 3.8)
|
148
131
|
virtus (~> 1.0)
|
149
132
|
safe_yaml (1.0.4)
|
@@ -9,7 +9,7 @@ module PolishGeeks
|
|
9
9
|
# Regexp used to match Rspec examples count
|
10
10
|
EXAMPLES_REGEXP = /(\d+) examples/
|
11
11
|
# Regexp used to match Rspec failures
|
12
|
-
FAILURES_REGEXP = /(\d+)
|
12
|
+
FAILURES_REGEXP = /(\d+) failure/
|
13
13
|
# Regexp used to match Rspec pendings
|
14
14
|
PENDING_REGEXP = /(\d+) pending/
|
15
15
|
|
@@ -27,8 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
s.add_dependency 'rubocop-rspec'
|
28
28
|
s.add_dependency 'timecop'
|
29
29
|
s.add_dependency 'brakeman'
|
30
|
-
s.add_dependency '
|
31
|
-
s.add_dependency 'mongoid-rspec'
|
30
|
+
s.add_dependency 'haml_lint'
|
32
31
|
|
33
32
|
s.files = `git ls-files -z`.split("\x0")
|
34
33
|
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
@@ -51,7 +51,7 @@ RSpec.describe PolishGeeks::DevTools::Commands::RspecFilesStructure do
|
|
51
51
|
it { expect(subject.send(:analyzed_files)).not_to be_empty }
|
52
52
|
|
53
53
|
context 'when we gather files for analyze' do
|
54
|
-
let(:file) { Tempfile.new }
|
54
|
+
let(:file) { Tempfile.new('tempfile') }
|
55
55
|
let(:files_collection) { [file] }
|
56
56
|
|
57
57
|
before { expect(subject).to receive(:checked_files) { files_collection } }
|
@@ -18,6 +18,12 @@ RSpec.describe PolishGeeks::DevTools::Commands::Rspec do
|
|
18
18
|
end
|
19
19
|
|
20
20
|
describe '#valid?' do
|
21
|
+
context 'when there is 1 failure' do
|
22
|
+
before { subject.instance_variable_set(:@output, '1 failure') }
|
23
|
+
|
24
|
+
it { expect(subject.valid?).to eq false }
|
25
|
+
end
|
26
|
+
|
21
27
|
context 'when there are failures' do
|
22
28
|
before { subject.instance_variable_set(:@output, '2 failures') }
|
23
29
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polishgeeks-dev-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maciej Mensfeld
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -207,21 +207,7 @@ dependencies:
|
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0'
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
|
-
name:
|
211
|
-
requirement: !ruby/object:Gem::Requirement
|
212
|
-
requirements:
|
213
|
-
- - ">="
|
214
|
-
- !ruby/object:Gem::Version
|
215
|
-
version: '0'
|
216
|
-
type: :runtime
|
217
|
-
prerelease: false
|
218
|
-
version_requirements: !ruby/object:Gem::Requirement
|
219
|
-
requirements:
|
220
|
-
- - ">="
|
221
|
-
- !ruby/object:Gem::Version
|
222
|
-
version: '0'
|
223
|
-
- !ruby/object:Gem::Dependency
|
224
|
-
name: mongoid-rspec
|
210
|
+
name: haml_lint
|
225
211
|
requirement: !ruby/object:Gem::Requirement
|
226
212
|
requirements:
|
227
213
|
- - ">="
|