Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit

Permalink
Created repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
artob committed Sep 2, 2010
0 parents commit e7fe86c
Show file tree
Hide file tree
Showing 18 changed files with 137 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env ruby -rubygems
# -*- encoding: utf-8 -*-

GEMSPEC = Gem::Specification.new do |gem|
gem.version = File.read('VERSION').chomp
gem.date = File.mtime('VERSION').strftime('%Y-%m-%d')

gem.name = 'rsa'
gem.homepage = 'http://rsa.rubyforge.org/'
gem.license = 'Public Domain' if gem.respond_to?(:license=)
gem.summary = 'RSA encryption for Ruby.'
gem.description = 'RSA.rb is a Ruby library for RSA encryption.'
gem.rubyforge_project = 'rsa'

gem.author = 'Arto Bendiken'
gem.email = '[email protected]'

gem.platform = Gem::Platform::RUBY
gem.files = %w(AUTHORS CREDITS README UNLICENSE VERSION) + Dir.glob('lib/**/*.rb')
gem.bindir = %q(bin)
gem.executables = %w()
gem.default_executable = gem.executables.first
gem.require_paths = %w(lib)
gem.extensions = %w()
gem.test_files = %w()
gem.has_rdoc = false

gem.required_ruby_version = '>= 1.8.1'
gem.requirements = []
gem.add_development_dependency 'yard', '>= 0.6.0'
gem.add_development_dependency 'rspec', '>= 1.3.0'
gem.post_install_message = nil
end
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.DS_Store
.tmp
.yardoc
pkg
tmp
12 changes: 12 additions & 0 deletions .yardopts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--title "RSA.rb: RSA Encryption for Ruby"
--output-dir doc/yard
--protected
--no-private
--hide-void-return
--markup markdown
--readme README.md
-
AUTHORS
CREDITS
UNLICENSE
VERSION
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Arto Bendiken <[email protected]>
Empty file added CREDITS
Empty file.
1 change: 1 addition & 0 deletions README
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
RSA.rb: RSA Encryption for Ruby
===============================
13 changes: 13 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env ruby
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), 'lib')))
require 'rubygems'
begin
require 'rakefile' # http://github.com/bendiken/rakefile
rescue LoadError => e
end
require 'rsa'

desc "Build the rsa-#{File.read('VERSION').chomp}.gem file"
task :build do
sh "gem build .gemspec"
end
24 changes: 24 additions & 0 deletions UNLICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <http://unlicense.org/>
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.0
3 changes: 3 additions & 0 deletions bin/rsa
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env ruby
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')))
require 'rsa'
2 changes: 2 additions & 0 deletions doc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rdoc
yard
3 changes: 3 additions & 0 deletions doc/examples/decrypt.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env ruby
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib')))
require 'rsa'
3 changes: 3 additions & 0 deletions doc/examples/encrypt.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env ruby
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib')))
require 'rsa'
3 changes: 3 additions & 0 deletions lib/rsa.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module RSA
autoload :VERSION, 'rsa/version'
end
22 changes: 22 additions & 0 deletions lib/rsa/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module RSA
module VERSION
MAJOR = 0
MINOR = 0
TINY = 0
EXTRA = nil

STRING = [MAJOR, MINOR, TINY, EXTRA].compact.join('.')

##
# @return [String]
def self.to_s() STRING end

##
# @return [String]
def self.to_str() STRING end

##
# @return [Array(Integer, Integer, Integer)]
def self.to_a() [MAJOR, MINOR, TINY] end
end
end
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require 'rsa'
include RSA
7 changes: 7 additions & 0 deletions spec/version_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require File.join(File.dirname(__FILE__), 'spec_helper')

describe 'RSA::VERSION' do
it "matches the VERSION file" do
RSA::VERSION.to_s.should == File.read(File.join(File.dirname(__FILE__), '..', 'VERSION')).chomp
end
end

0 comments on commit e7fe86c

Please sign in to comment.