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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d179da954eaf4443ccc003a8eb4660beb6b2f31b
4
- data.tar.gz: 8d8325cf8b7fdb7dcd7aced470f68929ac8a3f64
3
+ metadata.gz: ebb515c81e1b1bcdbd00ce1b1a1a4bfaf5fd8717
4
+ data.tar.gz: f7087754e4f6fe9e7ae3c22a6e8abdd5244ab363
5
5
  SHA512:
6
- metadata.gz: 2af6ccd3d2d0dfeb6104715af00db161c33340c5c2d3c15d11c976fcd821dad6a6e10438ea76ef2d2590450c993180d67998e0da07c9c83a207f2743ebd0d582
7
- data.tar.gz: 0f130a534b39e4850da865a87e1a72469b5a04372d2b35603ad62d06bf7493cedff523a055d064dd70d080cdd9eb9aa465e378b636fa0000f0046097161452e3
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.0)
4
+ polishgeeks-dev-tools (1.3.1)
5
5
  brakeman
6
6
  bundler-audit
7
7
  faker
8
- haml-lint
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
- haml-lint (0.13.0)
70
+ haml_lint (0.17.1)
77
71
  haml (~> 4.0)
78
- rubocop (>= 0.25.0)
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 (3.11)
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.8.0)
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 (~> 2.3)
146
- reek (= 3.11)
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+) failures/
12
+ FAILURES_REGEXP = /(\d+) failure/
13
13
  # Regexp used to match Rspec pendings
14
14
  PENDING_REGEXP = /(\d+) pending/
15
15
 
@@ -3,6 +3,6 @@ module PolishGeeks
3
3
  # Dev Tools for PolishGeeks developers
4
4
  module DevTools
5
5
  # Current version of dev tools
6
- VERSION = '1.3.0'.freeze
6
+ VERSION = '1.3.1'.freeze
7
7
  end
8
8
  end
@@ -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 'haml-lint'
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.0
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-03 00:00:00.000000000 Z
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: haml-lint
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
  - - ">="