warder 0.2.2 → 0.2.3

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: 5ce6a5ae6fa2e132a1aa894be28bd683e83a5ea6
4
- data.tar.gz: 8f56efcb997bd2ee849d7e978149cd0e1b133d3f
3
+ metadata.gz: adcef9b5fd7e20b745a0e20eec3640250a9e7b1e
4
+ data.tar.gz: e451870cc1f39eba9b7b55fd7974b45cb2134386
5
5
  SHA512:
6
- metadata.gz: 78569d1fd5f6a23734c84775ef4508000cfec3db3ba65051281a46a7fa1a7cec3a64f83593fa18c729c06927b83eb82e4f1e572d055918440f9e0e885237efe7
7
- data.tar.gz: 939efeec5ea2014a340eee05a10c9525744d98da150595ead00111fcc653ccc3e6431a3eb7a5ad8d470865388d426469246f82c97b2f1242c391a1e6513eb63f
6
+ metadata.gz: 76e0823ec8708ce0e668f7024d5804c24f5572f57d3662765788fb3373360aadb318e2eaa2e4b928cdf0ea015714553a59ff42d5ff4c8e490fd8d0b426272fbe
7
+ data.tar.gz: 2723be3029d18a4f0b95bed37480b995bffc27446d7b7dcdc9248bb48dba3b8aa44e5c8d3a8edaff6c5cb93722dc5d5a9a43257cf022db6b3e0df8fc53c2577a
data/bin/warder CHANGED
@@ -4,4 +4,4 @@ lib = File.expand_path('../../lib', __FILE__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  require 'warder'
7
- Warder::CLI.new(ARGV).execute!
7
+ Warder::CLI.new(ARGV.dup).execute!
@@ -7,7 +7,7 @@ def gem_freshness_output
7
7
  prep = "cd spec/fixtures/#{@projectname}/ && cp Gemfile_lock Gemfile.lock"
8
8
  `#{prep} && bundle-audit check; rm -f Gemfile.lock`
9
9
  .split("\n")
10
- .reject { |line| line.match('patched versions found') }
10
+ .reject { |line| line.match('ulnerabilities found') }
11
11
  .join("\n")
12
12
  else
13
13
  fail NotImplementedError
@@ -1,5 +1,5 @@
1
1
  def executing_code_smells
2
- "executing 'reek --no-color .'"
2
+ "executing 'reek --no-color . 2>/dev/null'"
3
3
  end
4
4
 
5
5
  def code_smells_output
@@ -1,5 +1,6 @@
1
+ require 'aruba'
1
2
  require 'aruba/cucumber'
2
- require 'aruba/in_process'
3
+ require 'aruba/processes/in_process'
3
4
 
4
5
  require 'simplecov'
5
6
  SimpleCov.start do
@@ -16,5 +17,5 @@ ENV['PATH'] = "#{bin_path}#{File::PATH_SEPARATOR}#{ENV['PATH']}"
16
17
 
17
18
  require 'warder'
18
19
 
19
- Aruba::InProcess.main_class = Warder::CLI
20
- Aruba.process = Aruba::InProcess
20
+ Aruba.process = Aruba::Processes::InProcess
21
+ Aruba.process.main_class = Warder::CLI
@@ -5,7 +5,7 @@ module Warder
5
5
  CLI_FULL_OPTION = 'bundle-audit'
6
6
  DESCRIPTION = 'Run bundle freshness validation'
7
7
  COMMAND_NAME = 'bundle-audit'
8
- FAILURE_REGEXP = /(No u|U)npatched versions found/
8
+ FAILURE_REGEXP = /(No v|V)ulnerabilities found/
9
9
 
10
10
  private
11
11
 
@@ -6,5 +6,11 @@ module Warder
6
6
  DESCRIPTION = 'Run code smells validation'
7
7
  COMMAND_NAME = 'reek --no-color'
8
8
  FAILURE_REGEXP = /(?<issues>\d+) warnings?/
9
+
10
+ private
11
+
12
+ def command_with_options
13
+ "#{self.class::COMMAND_NAME} #{@options.files} 2>/dev/null"
14
+ end
9
15
  end
10
16
  end
@@ -1,4 +1,4 @@
1
1
  # define warder version
2
2
  module Warder
3
- VERSION = '0.2.2'
3
+ VERSION = '0.2.3'
4
4
  end
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'rails', '~> 4.2.2'
3
+ gem 'rails', '~> 4.2.3'
4
4
 
5
5
  gem 'sqlite3'
@@ -1,36 +1,36 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- actionmailer (4.2.2)
5
- actionpack (= 4.2.2)
6
- actionview (= 4.2.2)
7
- activejob (= 4.2.2)
4
+ actionmailer (4.2.3)
5
+ actionpack (= 4.2.3)
6
+ actionview (= 4.2.3)
7
+ activejob (= 4.2.3)
8
8
  mail (~> 2.5, >= 2.5.4)
9
9
  rails-dom-testing (~> 1.0, >= 1.0.5)
10
- actionpack (4.2.2)
11
- actionview (= 4.2.2)
12
- activesupport (= 4.2.2)
10
+ actionpack (4.2.3)
11
+ actionview (= 4.2.3)
12
+ activesupport (= 4.2.3)
13
13
  rack (~> 1.6)
14
14
  rack-test (~> 0.6.2)
15
15
  rails-dom-testing (~> 1.0, >= 1.0.5)
16
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
17
- actionview (4.2.2)
18
- activesupport (= 4.2.2)
16
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
17
+ actionview (4.2.3)
18
+ activesupport (= 4.2.3)
19
19
  builder (~> 3.1)
20
20
  erubis (~> 2.7.0)
21
21
  rails-dom-testing (~> 1.0, >= 1.0.5)
22
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
23
- activejob (4.2.2)
24
- activesupport (= 4.2.2)
22
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
23
+ activejob (4.2.3)
24
+ activesupport (= 4.2.3)
25
25
  globalid (>= 0.3.0)
26
- activemodel (4.2.2)
27
- activesupport (= 4.2.2)
26
+ activemodel (4.2.3)
27
+ activesupport (= 4.2.3)
28
28
  builder (~> 3.1)
29
- activerecord (4.2.2)
30
- activemodel (= 4.2.2)
31
- activesupport (= 4.2.2)
29
+ activerecord (4.2.3)
30
+ activemodel (= 4.2.3)
31
+ activesupport (= 4.2.3)
32
32
  arel (~> 6.0)
33
- activesupport (4.2.2)
33
+ activesupport (4.2.3)
34
34
  i18n (~> 0.7)
35
35
  json (~> 1.7, >= 1.7.7)
36
36
  minitest (~> 5.1)
@@ -55,16 +55,16 @@ GEM
55
55
  rack (1.6.4)
56
56
  rack-test (0.6.3)
57
57
  rack (>= 1.0)
58
- rails (4.2.2)
59
- actionmailer (= 4.2.2)
60
- actionpack (= 4.2.2)
61
- actionview (= 4.2.2)
62
- activejob (= 4.2.2)
63
- activemodel (= 4.2.2)
64
- activerecord (= 4.2.2)
65
- activesupport (= 4.2.2)
58
+ rails (4.2.3)
59
+ actionmailer (= 4.2.3)
60
+ actionpack (= 4.2.3)
61
+ actionview (= 4.2.3)
62
+ activejob (= 4.2.3)
63
+ activemodel (= 4.2.3)
64
+ activerecord (= 4.2.3)
65
+ activesupport (= 4.2.3)
66
66
  bundler (>= 1.3.0, < 2.0)
67
- railties (= 4.2.2)
67
+ railties (= 4.2.3)
68
68
  sprockets-rails
69
69
  rails-deprecated_sanitizer (1.0.3)
70
70
  activesupport (>= 4.2.0.alpha)
@@ -74,15 +74,15 @@ GEM
74
74
  rails-deprecated_sanitizer (>= 1.0.1)
75
75
  rails-html-sanitizer (1.0.2)
76
76
  loofah (~> 2.0)
77
- railties (4.2.2)
78
- actionpack (= 4.2.2)
79
- activesupport (= 4.2.2)
77
+ railties (4.2.3)
78
+ actionpack (= 4.2.3)
79
+ activesupport (= 4.2.3)
80
80
  rake (>= 0.8.7)
81
81
  thor (>= 0.18.1, < 2.0)
82
82
  rake (10.4.2)
83
83
  sprockets (3.2.0)
84
84
  rack (~> 1.0)
85
- sprockets-rails (2.3.1)
85
+ sprockets-rails (2.3.2)
86
86
  actionpack (>= 3.0)
87
87
  activesupport (>= 3.0)
88
88
  sprockets (>= 2.8, < 4.0)
@@ -96,5 +96,8 @@ PLATFORMS
96
96
  ruby
97
97
 
98
98
  DEPENDENCIES
99
- rails (~> 4.2.1)
99
+ rails (~> 4.2.3)
100
100
  sqlite3
101
+
102
+ BUNDLED WITH
103
+ 1.10.4
@@ -18,20 +18,20 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features|cucumber)\/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_dependency 'rubocop', '~> 0.31'
22
- spec.add_dependency 'reek', '~> 2.2'
21
+ spec.add_dependency 'rubocop', '~> 0.32'
22
+ spec.add_dependency 'reek', '~> 3.0'
23
23
  spec.add_dependency 'flay', '~> 2.6.1'
24
24
  spec.add_dependency 'flog', '~> 4.3'
25
25
  spec.add_dependency 'mago', '~> 0.1'
26
26
  spec.add_dependency 'brakeman', '~> 3.0'
27
27
  spec.add_dependency 'rails_best_practices', '~> 1.15'
28
- spec.add_dependency 'sandi_meter', '~> 1.1'
28
+ spec.add_dependency 'sandi_meter', '~> 1.2'
29
29
  spec.add_dependency 'bundler-audit', '~> 0.3'
30
30
 
31
31
  spec.add_development_dependency 'bundler', '~> 1.3'
32
32
  spec.add_development_dependency 'rake', '~> 10.0'
33
33
  spec.add_development_dependency 'rspec', '~> 3.3'
34
34
  spec.add_development_dependency 'cucumber', '~> 2.0'
35
- spec.add_development_dependency 'aruba', '~> 0.6'
35
+ spec.add_development_dependency 'aruba', '~> 0.7'
36
36
  spec.add_development_dependency 'simplecov', '~> 0.10'
37
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yura Tolstik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-20 00:00:00.000000000 Z
11
+ date: 2015-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.31'
19
+ version: '0.32'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.31'
26
+ version: '0.32'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: reek
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.2'
33
+ version: '3.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: '2.2'
40
+ version: '3.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: flay
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '1.1'
117
+ version: '1.2'
118
118
  type: :runtime
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: '1.1'
124
+ version: '1.2'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: bundler-audit
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -198,14 +198,14 @@ dependencies:
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: '0.6'
201
+ version: '0.7'
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: '0.6'
208
+ version: '0.7'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: simplecov
211
211
  requirement: !ruby/object:Gem::Requirement
@@ -352,7 +352,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
352
352
  version: '0'
353
353
  requirements: []
354
354
  rubyforge_project:
355
- rubygems_version: 2.4.6
355
+ rubygems_version: 2.4.8
356
356
  signing_key:
357
357
  specification_version: 4
358
358
  summary: Tool to help improve the quality of ruby code