Skip to content

Commit

Permalink
Get ready for 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
paploo committed Nov 4, 2010
1 parent 68ec454 commit 82314fb
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rdoc
*.gem
8 changes: 7 additions & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ mailto:jeff@paploo.net

= Version History

[1.0.0 - 2010-Nov-xx] Initial release.
[0.9.0 - 2010-Nov-03] Initial release.
* Feature complete, but lacks spec tests and examples.

= TODO List

* Add complete spec tests.
* Add examples.

= License

Expand Down
37 changes: 37 additions & 0 deletions Rakefile
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
26 changes: 26 additions & 0 deletions secure_string.gemspec
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
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
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__),'..')))

0 comments on commit 82314fb

Please sign in to comment.