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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2597ca4e84265eb115ab05db871b55b11564a208c4222d2713bbcb179d0bee59
4
- data.tar.gz: b17f217c171dd434c89943ff656832358072a6d69063e16f52a47b2b2e1703ba
3
+ metadata.gz: d61e5cceafbe6055c82552084c5e0714fae4c3bfd77d24c8f1cd3bd2863b1e9d
4
+ data.tar.gz: 1a1e7c581d227c93d203853d739b53ac2fb71a7c42b292c67407a601279cc083
5
5
  SHA512:
6
- metadata.gz: 2376dfbd471fc7fe629e5d4a98741a2635b4214cda686b9f6251a4f1935c85d05a5b0ea72750b457e1246f0f040ec2d27a8da26bab883375ce8a37e37169d405
7
- data.tar.gz: aef64d3b3e4d984807d20c9cddb0f077f6329b356672704ea9124403849cd0a9b9cd2c89b1f086e67aceb267906feaf3322a37b3fd73ecbbbc76517c6801619a
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
@@ -1,7 +1,8 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.5
2
+ TargetRubyVersion: 2.7
3
3
  Exclude:
4
4
  - "spec/dummy_app/**/*"
5
+ - "vendor/**/*"
5
6
 
6
7
  Style/StringLiterals:
7
8
  EnforcedStyle: double_quotes
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop-dir_methods (0.1.0)
4
+ rubocop-dir_methods (0.1.1)
5
5
  rubocop
6
6
 
7
7
  GEM
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", "rubocop"])
10
+ task(:default).clear.enhance(["spec"])
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module DirMethods
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
@@ -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.5.0")
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.0
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.5.0
69
+ version: 2.7.0
69
70
  required_rubygems_version: !ruby/object:Gem::Requirement
70
71
  requirements:
71
72
  - - ">="