Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit fdf2636

Browse files
author
Pegasus204
committed
rubocop auto-fix
1 parent abf7109 commit fdf2636

File tree

6 files changed

+33
-22
lines changed

6 files changed

+33
-22
lines changed

Gemfile

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

3-
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
3+
source 'https://rubygems.org'
4+
5+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
46

57
# Specify your gem's dependencies in ruboty-esaba.gemspec
68
gemspec

Rakefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
require "bundler/gem_tasks"
2-
task :default => :spec
1+
# frozen_string_literal: true
2+
3+
require 'bundler/gem_tasks'
4+
task default: :spec

bin/console

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
23

3-
require "bundler/setup"
4-
require "ruboty/esaba"
4+
require 'bundler/setup'
5+
require 'ruboty/esaba'
56

67
# You can add fixtures and/or initialization code here to make experimenting
78
# with your gem easier. You can also use a different console, if you like.
@@ -10,5 +11,5 @@ require "ruboty/esaba"
1011
# require "pry"
1112
# Pry.start
1213

13-
require "irb"
14+
require 'irb'
1415
IRB.start(__FILE__)

lib/ruboty/esaba.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
require "ruboty/esaba/version"
1+
# frozen_string_literal: true
2+
3+
require 'ruboty/esaba/version'
24

35
module Ruboty
46
module Esaba

lib/ruboty/esaba/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 Ruboty
24
module Esaba
3-
VERSION = "0.1.0"
5+
VERSION = '0.1.0'
46
end
57
end

ruboty-esaba.gemspec

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11

2-
lib = File.expand_path("../lib", __FILE__)
2+
# frozen_string_literal: true
3+
4+
lib = File.expand_path('lib', __dir__)
35
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4-
require "ruboty/esaba/version"
6+
require 'ruboty/esaba/version'
57

68
Gem::Specification.new do |spec|
7-
spec.name = "ruboty-esaba"
9+
spec.name = 'ruboty-esaba'
810
spec.version = Ruboty::Esaba::VERSION
9-
spec.authors = ["Pegasus204"]
10-
spec.email = ["[email protected]"]
11+
spec.authors = ['Pegasus204']
12+
spec.email = ['[email protected]']
1113

1214
spec.summary = 'Show esaba URL by esa URL'
1315
spec.description = 'Show esaba URL by esa URL'
@@ -16,20 +18,20 @@ Gem::Specification.new do |spec|
1618
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
1719
# to allow pushing to a single host or delete this section to allow pushing to any host.
1820
if spec.respond_to?(:metadata)
19-
spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
21+
spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
2022
else
21-
raise "RubyGems 2.0 or newer is required to protect against " \
22-
"public gem pushes."
23+
raise 'RubyGems 2.0 or newer is required to protect against ' \
24+
'public gem pushes.'
2325
end
2426

25-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
27+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
2628
f.match(%r{^(test|spec|features)/})
2729
end
28-
spec.bindir = "exe"
30+
spec.bindir = 'exe'
2931
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30-
spec.require_paths = ["lib"]
32+
spec.require_paths = ['lib']
3133

32-
spec.add_development_dependency "bundler", "~> 1.16"
33-
spec.add_development_dependency "rake", "~> 10.0"
34+
spec.add_development_dependency 'bundler', '~> 1.16'
35+
spec.add_development_dependency 'rake', '~> 10.0'
3436
spec.add_development_dependency 'rubocop'
3537
end

0 commit comments

Comments
 (0)