pronto-flay 0.6.0 → 0.6.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: 24feb98e5afbd8d7d66e90fa3b89a8b84516973d
4
- data.tar.gz: b8d486013dcbd5b70375b5d3ca068a9987312ae5
3
+ metadata.gz: d798833b3f98caba9a3817e52af6f288ba6af86e
4
+ data.tar.gz: 138f7fcdb05cea5c78755fc2790936f291141537
5
5
  SHA512:
6
- metadata.gz: 88ea2eca553ee415bd04a88f0f7aef0557beb655f749e0313c6f0e82aa009888f370ad63a498596ca05c2a19819990741ab734eef10c0cf06805962e728f8dcb
7
- data.tar.gz: 038a310a823090dd31aa7c54d2ec1f15ed72de43d9832036efeafe9ad4e091c2fd08b6eb1ca5947fa4aef0b549fdb6d39ea3e9cb034cd22d2edf1de469728c6c
6
+ metadata.gz: 968efe1eb2211920a08f8510d5842e8a71e116ae8c5882ee7aef0933339740f91e4cbeddc69dab1fbea6c97e9661886aa3335b762e572f982c04b75b7d046985
7
+ data.tar.gz: e3867e878abc895127192702a15dc2ff95cb427e180972ccc1b7d51b5b6ed281566b21f6d2c9b41ef5db0cba9437363f89be9e2383c357f0cfa2b535031a9f5c
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module FlayVersion
3
- VERSION = '0.6.0'.freeze
3
+ VERSION = '0.6.1'.freeze
4
4
  end
5
5
  end
data/lib/pronto/flay.rb CHANGED
@@ -58,23 +58,23 @@ module Pronto
58
58
  "#{File.basename(node.file)}:#{node.line}"
59
59
  end
60
60
 
61
- "#{match} code found in #{location.join(', ')}"
61
+ "#{match} code found in #{location.join(', ')} (mass = #{masses[hash]})"
62
62
  end
63
63
 
64
64
  def nodes_for(hash)
65
- @flay.hashes[hash]
65
+ flay.hashes[hash]
66
66
  end
67
67
 
68
68
  def nodes
69
69
  result = []
70
- masses.each do |mass|
71
- nodes_for(mass.first).each { |node| result << node }
70
+ masses.keys.each do |hash|
71
+ nodes_for(hash).each { |node| result << node }
72
72
  end
73
73
  result
74
74
  end
75
75
 
76
76
  def masses
77
- Array(@flay.masses)
77
+ flay.masses
78
78
  end
79
79
  end
80
80
  end
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.0
4
+ version: 0.6.1
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-03-13 00:00:00.000000000 Z
11
+ date: 2016-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pronto