Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c61b92

Browse files
authored
Fix rubocop issues (#53)
* Update Travis-CI config * Removed .rubocop.yml * Update source based on rubocop output
1 parent 717b540 commit 9c61b92

File tree

12 files changed

+151
-163
lines changed

12 files changed

+151
-163
lines changed

.rubocop.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
language: ruby
22
rvm:
3-
- 2.4.0
4-
- 2.3.3
5-
- 2.2.6
3+
- 2.5
4+
- 2.6
5+
- 2.7
66

77
script: bundle exec rake spec rubocop
88
install: bundle install --jobs=1

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
### Added
99

1010
### Changed
11+
- Tested RVM versions to `2.5`, `2.6`, and `2.7`.
12+
- Source files to reflect changes requested by rubocop.
1113

1214
### Deprecated
1315

1416
### Removed
17+
- `.rubocop.yml` in favor of just using defaults.
1518

1619
### Fixed
1720

Gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
source "https://rubygems.org"
1+
# frozen_string_literal: true
2+
3+
source 'https://rubygems.org'
24

35
# Specify your gem's dependencies in capistrano-laravel.gemspec
46
gemspec

Rakefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
require "bundler/gem_tasks"
2-
require "rspec/core/rake_task"
3-
require "rubocop/rake_task"
1+
# frozen_string_literal: true
42

5-
task default: [:spec, :rubocop]
3+
require 'bundler/gem_tasks'
4+
require 'rspec/core/rake_task'
5+
require 'rubocop/rake_task'
6+
7+
task default: %i[spec rubocop]
68
RSpec::Core::RakeTask.new(:spec)
79

8-
desc "Run RuboCop checks"
10+
desc 'Run RuboCop checks'
911
RuboCop::RakeTask.new

bin/console

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
#!/usr/bin/env ruby
22

3-
require "bundler/setup"
4-
require "capistrano/laravel"
3+
# frozen_string_literal: true
4+
5+
require 'bundler/setup'
6+
require 'capistrano/laravel'
57

68
# You can add fixtures and/or initialization code here to make experimenting
79
# with your gem easier. You can also use a different console, if you like.
810

911
# (If you use this, don't forget to add pry to your Gemfile!)
10-
# require "pry"
12+
# require 'pry'
1113
# Pry.start
1214

13-
require "irb"
15+
require 'irb'
1416
IRB.start

capistrano-laravel.gemspec

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,35 @@
1-
# coding: utf-8
2-
lib = File.expand_path("../lib", __FILE__)
1+
# frozen_string_literal: true
2+
3+
lib = File.expand_path('lib', __dir__)
34
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4-
require "capistrano/laravel/version"
5+
require 'capistrano/laravel/version'
56

67
Gem::Specification.new do |spec|
7-
spec.name = "capistrano-laravel"
8+
spec.name = 'capistrano-laravel'
89
spec.version = Capistrano::Laravel::VERSION
9-
spec.authors = ["Peter Mitchell", "Andrew Miller"]
10-
10+
spec.authors = ['Peter Mitchell', 'Andrew Miller']
11+
1112

12-
spec.summary = "Laravel specific deployment options for Capistrano 3.x"
13-
spec.description = "Laravel deployment for Capistrano 3.x"
14-
spec.homepage = "https://github.com/capistrano/laravel"
15-
spec.license = "MIT"
13+
spec.summary = 'Laravel specific deployment options for Capistrano 3.x'
14+
spec.description = 'Laravel deployment for Capistrano 3.x'
15+
spec.homepage = 'https://github.com/capistrano/laravel'
16+
spec.license = 'MIT'
1617

1718
spec.files = `git ls-files -z`.split("\x0").reject do |f|
1819
f.match(%r{^(test|spec|features)/})
1920
end
20-
spec.bindir = "exe"
21+
spec.bindir = 'exe'
2122
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22-
spec.require_paths = ["lib"]
23+
spec.require_paths = ['lib']
2324

24-
spec.required_ruby_version = ">= 2.2.0"
25+
spec.required_ruby_version = '>= 2.3.0'
2526

26-
spec.add_dependency "capistrano", ">= 3.0.0"
27-
spec.add_dependency "capistrano-composer", ">= 0.0.6"
28-
spec.add_dependency "capistrano-file-permissions", ">= 1.0.0"
27+
spec.add_dependency 'capistrano', '>= 3.0.0'
28+
spec.add_dependency 'capistrano-composer', '>= 0.0.6'
29+
spec.add_dependency 'capistrano-file-permissions', '>= 1.0.0'
2930

30-
spec.add_development_dependency "bundler"
31-
spec.add_development_dependency "rake", ">= 10.0.0"
32-
spec.add_development_dependency "rspec"
33-
spec.add_development_dependency "rubocop"
31+
spec.add_development_dependency 'bundler'
32+
spec.add_development_dependency 'rake', '>= 10.0.0'
33+
spec.add_development_dependency 'rspec'
34+
spec.add_development_dependency 'rubocop'
3435
end

lib/capistrano/laravel.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
require "capistrano/composer"
2-
require "capistrano/file-permissions"
3-
require "capistrano/laravel/version"
1+
# frozen_string_literal: true
42

5-
load File.expand_path("../tasks/laravel.rake", __FILE__)
3+
require 'capistrano/composer'
4+
require 'capistrano/file-permissions'
5+
require 'capistrano/laravel/version'
6+
7+
load File.expand_path('tasks/laravel.rake', __dir__)

lib/capistrano/laravel/version.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
# frozen_string_literal: true
2+
13
module Capistrano
24
module Laravel
3-
VERSION = "1.2.2".freeze
5+
VERSION = '1.2.2'
46
end
57
end

0 commit comments

Comments
 (0)