Skip to content

Commit

Permalink
Merge pull request #25 from utkarsh2102/drop-git
Browse files Browse the repository at this point in the history
Drop `git ls-files` in gemspec
  • Loading branch information
tarcieri committed Jul 16, 2020
2 parents e2c904d + 75914c4 commit 2448332
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require:
- rubocop-packaging

AllCops:
TargetRubyVersion: 2.4
DisplayCopNames: true
Expand All @@ -13,16 +16,13 @@ Gemspec/DuplicatedAssignment:
# Layout
#

Lauout/LineLength:
Layout/LineLength:
Max: 128

#
# Lint
#

Lint/HandleExceptions:
Enabled: false

Lint/SuppressedException:
Enabled: false

Expand Down
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ group :development, :test do
gem "rake", require: false
gem "rake-compiler", "~> 1.0", require: false
gem "rspec", "~> 3.7", require: false
gem "rubocop", "0.75.0", require: false
gem "rubocop", "~> 0.88", require: false
gem "rubocop-packaging", "~> 0.1.1", require: false
end
4 changes: 2 additions & 2 deletions ed25519.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ Gem::Specification.new do |spec|
DESCRIPTION
spec.homepage = "https://github.com/crypto-rb/ed25519"
spec.license = "MIT"
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.files = Dir["{ext,lib}/**/*", "CHANGES.md", "LICENSE"]
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.extra_rdoc_files = ["README.md", "ed25519.png"]

if defined? JRUBY_VERSION
spec.platform = "java"
Expand Down
4 changes: 2 additions & 2 deletions lib/ed25519.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
require "ed25519/verify_key"

# The Ed25519 digital signatre algorithm
# rubocop:disable Metrics/LineLength,Style/IfUnlessModifier
# rubocop:disable Layout/LineLength
module Ed25519
module_function

Expand Down Expand Up @@ -65,7 +65,7 @@ def self_test
raise SelfTestFailure, "failed to detect an invalid signature" unless ex.is_a?(Ed25519::VerifyError)
end
end
# rubocop:enable Metrics/LineLength,Style/IfUnlessModifier
# rubocop:enable Layout/LineLength

# Automatically run self-test when library loads
Ed25519.self_test

0 comments on commit 2448332

Please sign in to comment.