-
Notifications
You must be signed in to change notification settings - Fork 0
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
5 changed files
with
76 additions
and
1 deletion.
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,2 @@ | ||
rdoc | ||
*.gem |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
require 'rake' | ||
require "rake/rdoctask" | ||
|
||
# ===== RDOC BUILDING ===== | ||
# This isn't necessary if installing from a gem. | ||
|
||
Rake::RDocTask.new do |rdoc| | ||
rdoc.rdoc_dir = "rdoc" | ||
rdoc.rdoc_files.add "lib/**/*.rb", "README.rdoc" | ||
end | ||
|
||
# ===== SPEC TESTING ===== | ||
|
||
begin | ||
require "spec/rake/spectask" | ||
|
||
Spec::Rake::SpecTask.new(:spec) do |spec| | ||
spec.spec_opts = ['-c' '-f specdoc'] | ||
spec.spec_files = ['spec'] | ||
end | ||
|
||
Spec::Rake::SpecTask.new(:spec_with_backtrace) do |spec| | ||
spec.spec_opts = ['-c' '-f specdoc', '-b'] | ||
spec.spec_files = ['spec'] | ||
end | ||
rescue LoadError | ||
task :spec do | ||
puts "You must have rspec installed to run this task." | ||
end | ||
end | ||
|
||
# ===== GEM BUILDING ===== | ||
|
||
desc "Build the gem file for this package" | ||
task :build_gem do | ||
STDOUT.puts `gem build poro.gemspec` | ||
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,26 @@ | ||
require 'rake' | ||
|
||
Gem::Specification.new do |s| | ||
s.name = 'secure_string' | ||
s.version = '0.9.0' | ||
|
||
s.required_ruby_version = '>= 1.9.2' | ||
|
||
s.authors = ['Jeff Reinecke'] | ||
s.email = 'jeff@paploo.net' | ||
s.homepage = 'http://www.github.com/paploo/secure_string' | ||
|
||
s.require_paths = ['lib'] | ||
s.licenses = ['BSD'] | ||
s.files = FileList['README.rdoc', 'LICENSE.txt', 'Rakefile', 'lib/**/*', 'spec/**/*'] | ||
|
||
s.has_rdoc = true | ||
s.extra_rdoc_files = ['README.rdoc'] | ||
|
||
s.summary = 'A String subclass for simple handling of binary data and encryption.' | ||
s.description = <<-DESC | ||
A String subclass to simplify handling of: | ||
1. Binary data, including HEX encoding and Bin64 encoding. | ||
2. Encryption such as RSA, AES, and digest methods such as SHA and MD5. | ||
DESC | ||
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,4 @@ | ||
# Add the lib dir to the load path. | ||
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib') | ||
# Require the main require file. | ||
require File.basename(File.expand_path(File.join(File.dirname(__FILE__),'..'))) |