rubocop-dir_methods 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +37 -0
- data/.rubocop.yml +2 -1
- data/Gemfile.lock +1 -1
- data/README.md +3 -0
- data/Rakefile +1 -3
- data/lib/rubocop/dir_methods/version.rb +1 -1
- data/rubocop-dir_methods.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d61e5cceafbe6055c82552084c5e0714fae4c3bfd77d24c8f1cd3bd2863b1e9d
|
4
|
+
data.tar.gz: 1a1e7c581d227c93d203853d739b53ac2fb71a7c42b292c67407a601279cc083
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9888e48d2a1447cf41041497e2379b1a1a1ca6931c67d9aa4c4008cce690f9632d988461c57fe0f329b0a370d0fe1d097239c56d6097b66b46c336260fbfbf8
|
7
|
+
data.tar.gz: c7970c7f7a1770deb015829ea2db907610edfd51ad2313a79ab351c6b0be8b04601a392c93bbd1c128043fca9f10b92d38964cd6cbbd90bf5a6f5584903c67da
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: Ruby
|
9
|
+
|
10
|
+
on:
|
11
|
+
push:
|
12
|
+
branches: [ "main" ]
|
13
|
+
pull_request:
|
14
|
+
branches: [ "main" ]
|
15
|
+
|
16
|
+
permissions:
|
17
|
+
contents: read
|
18
|
+
|
19
|
+
jobs:
|
20
|
+
test:
|
21
|
+
|
22
|
+
runs-on: ubuntu-latest
|
23
|
+
strategy:
|
24
|
+
matrix:
|
25
|
+
ruby-version: ['2.7']
|
26
|
+
|
27
|
+
steps:
|
28
|
+
- uses: actions/checkout@v3
|
29
|
+
- name: Set up Ruby
|
30
|
+
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
|
31
|
+
with:
|
32
|
+
ruby-version: ${{ matrix.ruby-version }}
|
33
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
34
|
+
- name: Run tests
|
35
|
+
run: bundle exec rake
|
36
|
+
- name: Run linter
|
37
|
+
run: bundle exec rubocop
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
[![Ruby](https://github.com/GeorgeGorbanev/rubocop-dir_methods/actions/workflows/ruby.yml/badge.svg)](https://github.com/GeorgeGorbanev/rubocop-dir_methods/actions/workflows/ruby.yml)
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/rubocop-dir_methods.svg)](https://badge.fury.io/rb/rubocop-dir_methods)
|
3
|
+
|
1
4
|
# Rubocop::DirMethods
|
2
5
|
|
3
6
|
This gem is a tool designed to extend the functionality of RuboCop. It provides single RuboCop/Cop with capability to define and enforce custom naming conventions for public methods within specific directories in your Ruby projects. With this gem, you can maintain consistent coding practices and preserve the integrity of your project's codebase.
|
data/Rakefile
CHANGED
@@ -1,12 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "bundler/gem_tasks"
|
4
|
-
require "rubocop/rake_task"
|
5
4
|
require "rspec/core/rake_task"
|
6
5
|
|
7
6
|
RSpec::Core::RakeTask.new(:spec) do |spec|
|
8
7
|
spec.pattern = FileList["spec/**/*_spec.rb"]
|
9
8
|
end
|
10
|
-
RuboCop::RakeTask.new
|
11
9
|
|
12
|
-
task(:default).clear.enhance(["spec"
|
10
|
+
task(:default).clear.enhance(["spec"])
|
data/rubocop-dir_methods.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
"integrity of your project's codebase."
|
17
17
|
spec.homepage = "https://github.com/GeorgeGorbanev/rubocop-dir_methods"
|
18
18
|
spec.license = "MIT"
|
19
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
19
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
20
20
|
|
21
21
|
spec.metadata["homepage_uri"] = spec.homepage
|
22
22
|
spec.metadata["source_code_uri"] = spec.homepage
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-dir_methods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GeorgeGorbanev
|
@@ -35,6 +35,7 @@ executables: []
|
|
35
35
|
extensions: []
|
36
36
|
extra_rdoc_files: []
|
37
37
|
files:
|
38
|
+
- ".github/workflows/ruby.yml"
|
38
39
|
- ".gitignore"
|
39
40
|
- ".rspec"
|
40
41
|
- ".rubocop.yml"
|
@@ -65,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
65
66
|
requirements:
|
66
67
|
- - ">="
|
67
68
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.
|
69
|
+
version: 2.7.0
|
69
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
71
|
requirements:
|
71
72
|
- - ">="
|