inspecstyle 0.1.1 → 0.1.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
  SHA256:
3
- metadata.gz: bcb9ee68a7dd29338399f6b60bbde2a0b1e74eb0e92729a7e3f217d3260f0a08
4
- data.tar.gz: 1e91471f1ce7c21d657a1dffdeddb3d0f8fb277162e9ddc469655ae117e2216c
3
+ metadata.gz: b906208d63efff19eb182ce0a3b066206556695ca72e229b6b0afa60d74d91e4
4
+ data.tar.gz: e9a707ede42ac3da35c82019fd24cc8bb3dcf495a4853df54fead8bfa003bb85
5
5
  SHA512:
6
- metadata.gz: 8b0845a3f7b8fc29a3c37e7cf2afbfceb31135693757ab07a84c53e1f9966e70d61cff79118a42cf6c7fb80ed1c5dc58cd67f41f61f7300a86f34ec1ae53388e
7
- data.tar.gz: d2b938a1bb46dac3a32d805b303a52606536d9a750459fae7afea3110b19d478f34ff59fc01fb9ef67ca6fae88b0e06b3be3f949be8f77f3276e9c7d8273b154
6
+ metadata.gz: 589110f446bf5b0dc7ebf5538619a3e3d67717f27cebaaa6042730b2e88bef920d2344bbfbcd1631be42476961ddf5bb99533a1ed16ed6f4e3efc1dd0b154617
7
+ data.tar.gz: f14685e321ef3919d3bcbab64a87a703fbf799e314bd4064851500c1dac4d21d16457a8b7a025a858406be363522f8f6a0cb3f321307543ba6cb03881a95ac17
data/.gitignore CHANGED
@@ -6,3 +6,4 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ *.gem
@@ -2,6 +2,7 @@ InSpecStyle/DeprecatedAttributes:
2
2
  Description: 'Attributes are deprecated in favor of inputs'
3
3
  Enabled: true
4
4
  VersionAdded: '0.82'
5
+ StyleGuide: 'https://github.com/inspec/inspec/issues/3802'
5
6
 
6
7
  InspecStyle/FirstCop:
7
8
  Description: 'This first cop is a sandbox for exploring new InspecStyle cops.'
@@ -4,8 +4,9 @@
4
4
  module RuboCop
5
5
  module Cop
6
6
  module InSpecStyle
7
+ # Checks if deprecated method attribute is used.
7
8
  #
8
- # @example EnforcedStyle: input (default)
9
+ # @example
9
10
  # # Attributes have been deprecated for inputs
10
11
  # # https://github.com/inspec/inspec/issues/3802
11
12
  #
@@ -33,7 +34,8 @@ module RuboCop
33
34
 
34
35
  def range(node)
35
36
  # Only highlights the method 'attribute'
36
- range_between(node.source_range.begin_pos,
37
+ range_between(
38
+ node.source_range.begin_pos,
37
39
  node.source_range.begin_pos+9
38
40
  )
39
41
  end
@@ -1,5 +1,5 @@
1
1
  module RuboCop
2
2
  module InSpecStyle
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inspecstyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Schwaderer