pronto-flay 0.6.1 → 0.6.2

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: d798833b3f98caba9a3817e52af6f288ba6af86e
4
- data.tar.gz: 138f7fcdb05cea5c78755fc2790936f291141537
3
+ metadata.gz: 83ff1a8fa0dd0b55bcce583b025d8dfb766edfb1
4
+ data.tar.gz: e0d4e812a6959b5319f3ed0f7c6f82ab0eaeafd2
5
5
  SHA512:
6
- metadata.gz: 968efe1eb2211920a08f8510d5842e8a71e116ae8c5882ee7aef0933339740f91e4cbeddc69dab1fbea6c97e9661886aa3335b762e572f982c04b75b7d046985
7
- data.tar.gz: e3867e878abc895127192702a15dc2ff95cb427e180972ccc1b7d51b5b6ed281566b21f6d2c9b41ef5db0cba9437363f89be9e2383c357f0cfa2b535031a9f5c
6
+ metadata.gz: ee6d19841d01027159adda46b7ccb835c4ad34cfa3eba01bdb271c3e7a6b7bb8848748a7f7b2c489ef845a03b9683177c1225bd880ed115204378d066d5f71bd
7
+ data.tar.gz: 99334c9bb5a824025f549a56dc2b8598e816953c7edf2bab37988e0e8be667e56972c5ba3286315b1cdc93059f1f5709923cf050348cbe2efc821cd90b288268
@@ -4,11 +4,7 @@ require 'flay'
4
4
  module Pronto
5
5
  class Flay < Runner
6
6
  def run
7
- files = ruby_patches.map(&:new_file_full_path)
8
- files = ::Flay.filter_files(files)
9
-
10
7
  if files.any?
11
- flay.process(*files)
12
8
  flay.analyze
13
9
  messages
14
10
  else
@@ -16,8 +12,19 @@ module Pronto
16
12
  end
17
13
  end
18
14
 
15
+ # The current Flay (2.8.0) takes care of filtering
16
+ # files by looking at .flayignore.
17
+ # Saving the returned Flay object at @flay so we
18
+ # can inspect it and build the messages Array.
19
+ #
20
+ # Coercing files with Array to protect against
21
+ # +nil+ values.
19
22
  def flay
20
- @flay ||= ::Flay.new
23
+ @flay ||= ::Flay.run(Array(files))
24
+ end
25
+
26
+ def files
27
+ @files ||= ruby_patches.map(&:new_file_full_path)
21
28
  end
22
29
 
23
30
  def messages
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module FlayVersion
3
- VERSION = '0.6.1'.freeze
3
+ VERSION = '0.6.2'.freeze
4
4
  end
5
5
  end
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
33
33
  s.require_paths = ['lib']
34
34
 
35
35
  s.add_dependency('pronto', '~> 0.6.0')
36
- s.add_dependency('flay', '~> 2.7', '>= 2.6.0')
36
+ s.add_dependency('flay', '~> 2.8')
37
37
  s.add_development_dependency('rake', '~> 11.0')
38
38
  s.add_development_dependency('rspec', '~> 3.4')
39
39
  s.add_development_dependency('rspec-its', '~> 1.2')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto-flay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mindaugas Mozūras
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-23 00:00:00.000000000 Z
11
+ date: 2016-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pronto
@@ -30,20 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.7'
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 2.6.0
33
+ version: '2.8'
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
38
  - - "~>"
42
39
  - !ruby/object:Gem::Version
43
- version: '2.7'
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 2.6.0
40
+ version: '2.8'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: rake
49
43
  requirement: !ruby/object:Gem::Requirement