This repository has been archived by the owner on Nov 9, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
124 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
AllCops: | ||
TargetRubyVersion: 2.2 | ||
DisplayCopNames: true | ||
|
||
# | ||
# Layout | ||
# | ||
|
||
Layout/IndentHeredoc: | ||
Enabled: false | ||
|
||
# | ||
# Metrics | ||
# | ||
|
||
Metrics/AbcSize: | ||
Enabled: false | ||
|
||
Metrics/CyclomaticComplexity: | ||
Enabled: false | ||
|
||
Metrics/PerceivedComplexity: | ||
Enabled: false | ||
|
||
Metrics/BlockLength: | ||
Max: 100 | ||
|
||
Metrics/ClassLength: | ||
Max: 100 | ||
|
||
Metrics/LineLength: | ||
Max: 128 | ||
|
||
Metrics/MethodLength: | ||
Max: 25 | ||
|
||
# | ||
# Style | ||
# | ||
|
||
Style/FrozenStringLiteralComment: | ||
Enabled: true | ||
|
||
Style/StringLiterals: | ||
EnforcedStyle: double_quotes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
module RbNaCl | ||
module Libsodium | ||
VERSION = '1.0.16' | ||
VERSION = "1.0.16".freeze | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,22 @@ | ||
# coding: utf-8 | ||
lib = File.expand_path('../lib', __FILE__) | ||
# frozen_string_literal: true | ||
|
||
lib = File.expand_path("../lib", __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'rbnacl/libsodium/version' | ||
require "rbnacl/libsodium/version" | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "rbnacl-libsodium" | ||
spec.version = RbNaCl::Libsodium::VERSION | ||
spec.authors = ["Artiom Di", "Tony Arcieri"] | ||
spec.date = Time.now.strftime('%Y-%m-%d') | ||
spec.email = ["kron82@gmail.com", "bascule@gmail.com"] | ||
spec.summary = %q{rbnacl with bundled libsodium} | ||
spec.homepage = "https://github.com/crypto-rb/rbnacl-libsodium" | ||
spec.summary = "rbnacl with bundled libsodium" | ||
spec.homepage = "https://github.com/cryptosphere/rbnacl-libsodium" | ||
spec.license = "MIT" | ||
|
||
spec.files = `git ls-files -z`.split("\x0") | ||
spec.files += Dir.glob("vendor/libsodium/**/*") | ||
spec.files = `git ls-files -z`.split("\x0") + Dir.glob("vendor/libsodium/**/*") | ||
spec.require_paths = ["lib"] | ||
spec.extensions = ["ext/rbnacl/extconf.rb"] | ||
|
||
spec.extensions = ['ext/rbnacl/extconf.rb'] | ||
|
||
spec.required_ruby_version = ">= 2.2.6" | ||
spec.add_runtime_dependency "rbnacl", ">= 5.0.0" | ||
spec.required_ruby_version = '>= 2.2.6' | ||
|
||
spec.add_development_dependency "bundler", "~> 1.16" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
RSpec.describe RbNaCl::Libsodium do | ||
it "has a version number" do | ||
expect(RbNaCl::Libsodium::VERSION).to be_a(String) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
require "bundler/setup" | ||
require "rbnacl/libsodium" | ||
|
||
RSpec.configure do |config| | ||
# Enable flags like --only-failures and --next-failure | ||
config.example_status_persistence_file_path = ".rspec_status" | ||
|
||
# Disable RSpec exposing methods globally on `Module` and `main` | ||
config.disable_monkey_patching! | ||
|
||
config.expect_with :rspec do |c| | ||
c.syntax = :expect | ||
end | ||
end |