Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Commit

Permalink
Initial project skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed Apr 23, 2017
0 parents commit 00a9619
Show file tree
Hide file tree
Showing 12 changed files with 123 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/.bundle/
/.yardoc
/Gemfile.lock
/_yardoc/
/coverage/
/doc/
/pkg/
/spec/reports/
/tmp/

# rspec failure tracking
.rspec_status
7 changes: 7 additions & 0 deletions .rakeTasks
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Settings><!--This file was automatically generated by Ruby plugin.
You are allowed to:
1. Remove rake task
2. Add existing rake tasks
To add existing rake tasks automatically delete this file and reload the project.
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build zcred-0.0.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install zcred-0.0.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install zcred-0.0.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.0.0 and build and push zcred-0.0.0.gem to Rubygems" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RuboCop" fullCmd="rubocop" taksId="rubocop" /><RakeGroup description="" fullCmd="" taksId="rubocop"><RakeTask description="Auto-correct RuboCop offenses" fullCmd="rubocop:auto_correct" taksId="auto_correct" /></RakeGroup><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--format documentation
--color
31 changes: 31 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
AllCops:
DisplayCopNames: true

#
# Style
#

LineLength:
Max: 128

Style/StringLiterals:
EnforcedStyle: double_quotes

#
# Metrics
#

Metrics/AbcSize:
Enabled: false

Metrics/CyclomaticComplexity:
Enabled: false

Metrics/PerceivedComplexity:
Enabled: false

Metrics/ClassLength:
Max: 100

Metrics/MethodLength:
Max: 25
11 changes: 11 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# frozen_string_literal: true

source "https://rubygems.org"

gemspec

group :development, :test do
gem "rake"
gem "rspec", "~> 3.5"
gem "rubocop", "0.48.1"
end
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SIVChain

Advanced symmetric encryption using the AES-SIV ([RFC 5297]) and CHAIN
constructions
11 changes: 11 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# frozen_string_literal: true

require "bundler/gem_tasks"

require "rspec/core/rake_task"
RSpec::Core::RakeTask.new

require "rubocop/rake_task"
RuboCop::RakeTask.new

task default: %w[spec rubocop]
5 changes: 5 additions & 0 deletions lib/sivchain.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require "sivchain/version"

# Advanced symmetric encryption using the AES-SIV (RFC 5297) and CHAIN constructions
module SIVChain
end
3 changes: 3 additions & 0 deletions lib/sivchain/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module SIVChain
VERSION = "0.0.0".freeze
end
24 changes: 24 additions & 0 deletions sivchain.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# coding: utf-8

lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "sivchain/version"

Gem::Specification.new do |spec|
spec.name = "sivchain"
spec.version = SIVChain::VERSION
spec.authors = ["Tony Arcieri"]
spec.email = ["[email protected]"]
spec.licenses = ["MIT"]
spec.homepage = "https://github.com/zcred/sivchain/tree/master/ruby/"
spec.summary = "AES-SIV and CHAIN symmetric encryption"
spec.description = "Advanced symmetric encryption using the AES-SIV (RFC 5297) and CHAIN constructions"
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.required_ruby_version = ">= 2.2.2"

spec.add_development_dependency "bundler", "~> 1.14"
end
7 changes: 7 additions & 0 deletions spec/sivchain_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require "spec_helper"

RSpec.describe SIVChain do
it "has a version number" do
expect(SIVChain::VERSION).not_to be nil
end
end
6 changes: 6 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# frozen_string_literal: true

require "bundler/setup"
require "sivchain"

RSpec.configure(&:disable_monkey_patching!)

0 comments on commit 00a9619

Please sign in to comment.