gl_rubocop 0.2.9 → 0.2.10

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
2
  SHA256:
3
- metadata.gz: 598723d7094caaf313991dbda2d2d84e210756dcda15448be93911d49f2ba35d
4
- data.tar.gz: 636eed90643e40868de9e50a0ffd1207f5618280e0012451b35ed25e03389242
3
+ metadata.gz: f0baf6ecdb13c78d20380b520c6c0860c9ce7e46b9990efed418e326e38dc097
4
+ data.tar.gz: 8851722324daf55c6a779efdb862da9a4a9217494a459e74ed39113839a4550d
5
5
  SHA512:
6
- metadata.gz: 535039fab4b2b6e6681e6ff7f846de2163284540292102fe1926132063653d22e62e200c8cfbfd3c64bc684a16be078805098a7ebf3fec4028135da9ad9141cb
7
- data.tar.gz: 2d7a66f9fa41fee0ea58d2cb0ff3cc5a942068d464413df9b080704f8223cd833cb26de8f2788d620b494461329a2fff9e9006202d014e1be8e4bc04337a1adb
6
+ metadata.gz: 47da7a6d8766b9c402ec326e64a20be7497f01c55e0507d55f243b0ef9a1f0bd9a6447a250150430bc4c67b911632c85bd452b7f3a4182067834cdeafc80d992
7
+ data.tar.gz: f38866b90c118322ca57aa4fa4b5b8476d10037d5247d2a69baef6af9c4390ded0ded29691e5d13e64427de11430474d498a9b82f1ea23cc4a01135a87b5baf8
data/README.md CHANGED
@@ -54,3 +54,31 @@ documentation](https://docs.rubocop.org/rubocop/configuration.html#inheriting-co
54
54
  8. Following the authorization prompts listed by the gem command.
55
55
 
56
56
  9. Your changes have now been published to the rubygems registry.
57
+
58
+ ## Testing Locally
59
+ It's likely the case you'll want to test your changes locally before opening a PR, getting approval, and publishing the gem.
60
+
61
+ To do so, complete the following steps:
62
+
63
+ 1. Save the changes to whichever files you have modified.
64
+
65
+ 2. Run the command `gem build` to create the bundle (this may require you to have bumped the version number)
66
+
67
+ 3. Go to the Gemfile in whichever ruby-based repo you want to test your rubocop changes against
68
+
69
+ 4. Create an entry for gl_rubocop specifiying the *relative* path to your local `gl_rubocop` repo (ex. `../code/gl_rubocop`):
70
+
71
+ ```ruby
72
+ gem 'gl_rubocop', '~> 0.2.9', path: '../path/to/your/local/gl_rubocop'
73
+ ```
74
+
75
+ 5. Within the same repo as the Gemfile you just updated run `bundle install`
76
+
77
+ 6. Finally add the following lines to your rubocop configuration file
78
+
79
+ ```yml
80
+ inherit_gem:
81
+ gl_rubocop: default.yml
82
+ ```
83
+
84
+ 7. Now you can test your rubocop changes local with the target repo.
data/default.yml CHANGED
@@ -63,6 +63,7 @@ Lint/MissingSuper:
63
63
  MagicNumbers/NoAssignment:
64
64
  Exclude:
65
65
  - "spec/**/*"
66
+ - "**/spec/**/*"
66
67
  Enabled: false
67
68
  AllowedAssignments:
68
69
  - instance_variables
@@ -72,6 +73,7 @@ MagicNumbers/NoAssignment:
72
73
  MagicNumbers/NoArgument:
73
74
  Exclude:
74
75
  - "spec/**/*"
76
+ - "**/spec/**/*"
75
77
  Enabled: true
76
78
  PermittedValues:
77
79
  - 0
@@ -80,6 +82,7 @@ MagicNumbers/NoArgument:
80
82
  MagicNumbers/NoDefault:
81
83
  Exclude:
82
84
  - "spec/**/*"
85
+ - "**/spec/**/*"
83
86
  Enabled: true
84
87
  PermittedValues:
85
88
  - 0
@@ -88,6 +91,7 @@ MagicNumbers/NoDefault:
88
91
  MagicNumbers/NoReturn:
89
92
  Exclude:
90
93
  - "spec/**/*"
94
+ - "**/spec/**/*"
91
95
  Enabled: true
92
96
  PermittedReturnValues:
93
97
  - 0
@@ -1,3 +1,3 @@
1
1
  module GLRubocop
2
- VERSION = '0.2.9'.freeze
2
+ VERSION = '0.2.10'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gl_rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Give Lively