Skip to content

Commit 684171b

Browse files
committed
Rubocop auto correct
1 parent c957d07 commit 684171b

File tree

9 files changed

+759
-772
lines changed

9 files changed

+759
-772
lines changed

.rubocop.yml

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

Gemfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# frozen_string_literal: true
22

3-
source "https://rubygems.org"
3+
source 'https://rubygems.org'
44

55
# Specify your gem's dependencies in ruby-hdf5.gemspec
66
gemspec
77

8-
gem "rake"
8+
gem 'rake'
99

10-
gem "test-unit", "~> 3.0"
10+
gem 'test-unit', '~> 3.0'
1111

12-
gem "rubocop"
12+
gem 'rubocop'
1313

14-
gem "irb"
14+
gem 'irb'

Rakefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# frozen_string_literal: true
22

3-
require "bundler/gem_tasks"
4-
require "rake/testtask"
3+
require 'bundler/gem_tasks'
4+
require 'rake/testtask'
55

66
Rake::TestTask.new(:test) do |t|
7-
t.libs << "test"
8-
t.libs << "lib"
9-
t.test_files = FileList["test/**/*_test.rb"]
7+
t.libs << 'test'
8+
t.libs << 'lib'
9+
t.test_files = FileList['test/**/*_test.rb']
1010
end
1111

12-
require "rubocop/rake_task"
12+
require 'rubocop/rake_task'
1313

1414
RuboCop::RakeTask.new
1515

lib/hdf5.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
require "ffi"
4-
require_relative "hdf5/version"
3+
require 'ffi'
4+
require_relative 'hdf5/version'
55

66
module HDF5
77
class Error < StandardError; end
@@ -10,18 +10,18 @@ class << self
1010
attr_accessor :lib_path
1111

1212
def search_hdf5lib(name = nil)
13-
return File.expand_path(name, ENV["HDF5_LIB_PATH"]) if ENV["HDF5_LIB_PATH"]
13+
return File.expand_path(name, ENV['HDF5_LIB_PATH']) if ENV['HDF5_LIB_PATH']
1414

1515
name = "libhdf5.#{FFI::Platform::LIBSUFFIX}"
1616

1717
begin
18-
require "pkg-config"
19-
libs = PKGConfig.libs("hdf5")
18+
require 'pkg-config'
19+
libs = PKGConfig.libs('hdf5')
2020
pattern = %r{(?<=-L)/[^ ]+}
2121
lib_dir = libs.scan(pattern).first
2222
lib_path = File.expand_path(name, lib_dir)
2323
rescue PackageConfig::NotFoundError
24-
warn "hdf5.pc not found."
24+
warn 'hdf5.pc not found.'
2525
end
2626
return lib_path if File.exist?(lib_path)
2727

@@ -32,4 +32,4 @@ def search_hdf5lib(name = nil)
3232
self.lib_path = search_hdf5lib
3333
end
3434

35-
require_relative "hdf5/ffi3"
35+
require_relative 'hdf5/ffi3'

0 commit comments

Comments
 (0)