pronto-erb_lint 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: f8da196fe5ce4e46d376d138c66d5c97eff2a4a216b2a9fc6f795e78d1c5cff5
4
- data.tar.gz: 0b458b7a56c8142621351c44df7800a9de34768de08b51ee314f1d74cc809fa9
2
+ SHA1:
3
+ metadata.gz: 205addbe4d9986449fbedea8b2fe4fc106f388d0
4
+ data.tar.gz: 44023ad84faaad5bf2f2e407294f18ae588301bb
5
5
  SHA512:
6
- metadata.gz: 6ca8f5acf1878f34f56f8f2e6725c7827c94bd544f01ded29fa0a4a65c2a79da4ac6d1497d1d16272b8ef47afbe0f01bbbd7c36751deb180d5e8a14c895dedf1
7
- data.tar.gz: f2d35a8d866d8635540a5d469ed8784eee93568c233d84268c2bd530ae2b84626821cf8f02ce48f40fe901161c94bffcc3cd57fbf50f2d686a8ad5da35e3cd57
6
+ metadata.gz: 01a20f4a4119c37175fb278eb5a6a83cfa058639e0b17deb9a4fda335ca48503f5b2957ce9f13aa3646edd2035c98eed9b3527fdf7f8db68a5a8d8041050babb
7
+ data.tar.gz: 91d575b686255c49c88c08fa6f91476085d69faed90adf60eaa45b557f87576b2fe557e10b178bec0a1399ea18e700bda46fb873d90fcbbd9fb282ca821827f1
@@ -11,7 +11,6 @@ module Pronto
11
11
  super
12
12
  @options = {}
13
13
  load_config
14
- @inspector = ::ERBLint::Runner.new(file_loader, @config)
15
14
  end
16
15
 
17
16
  def run
@@ -96,10 +95,9 @@ module Pronto
96
95
  end
97
96
 
98
97
  def inspect(patch)
99
- processed_source = processed_source_for(patch)
100
- @inspector.run(processed_source)
101
- offences = @inspector.offenses
102
- offences.map do |offence|
98
+ inspector = ::ERBLint::Runner.new(file_loader, @config)
99
+ inspector.run(processed_source_for(patch))
100
+ inspector.offenses.map do |offence|
103
101
  patch.added_lines
104
102
  .select { |line| offence.line_range.include? line.new_lineno }
105
103
  .map { |line| new_message(offence, line) }
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module ERBLintVersion
3
- VERSION = '0.1.3'.freeze
3
+ VERSION = '0.1.4'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto-erb_lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - tleish
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-05 00:00:00.000000000 Z
11
+ date: 2018-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erb_lint
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  requirements: []
115
115
  rubyforge_project:
116
- rubygems_version: 2.7.3
116
+ rubygems_version: 2.6.12
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: Pronto runner for ERB Lint, erb code analyzer