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 +4 -4
- data/lib/pronto/flay.rb +12 -5
- data/lib/pronto/flay/version.rb +1 -1
- data/pronto-flay.gemspec +1 -1
- metadata +4 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83ff1a8fa0dd0b55bcce583b025d8dfb766edfb1
|
4
|
+
data.tar.gz: e0d4e812a6959b5319f3ed0f7c6f82ab0eaeafd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee6d19841d01027159adda46b7ccb835c4ad34cfa3eba01bdb271c3e7a6b7bb8848748a7f7b2c489ef845a03b9683177c1225bd880ed115204378d066d5f71bd
|
7
|
+
data.tar.gz: 99334c9bb5a824025f549a56dc2b8598e816953c7edf2bab37988e0e8be667e56972c5ba3286315b1cdc93059f1f5709923cf050348cbe2efc821cd90b288268
|
data/lib/pronto/flay.rb
CHANGED
@@ -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.
|
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
|
data/lib/pronto/flay/version.rb
CHANGED
data/pronto-flay.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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.
|
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.
|
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
|