diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..a1188ec50 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +script: "bundle exec rake test" + +rvm: + - ruby-head + +matrix: + allow_failures: + - rvm: ruby-head + fast_finish: true diff --git a/README.md b/README.md index a8fb5b898..47f7a5333 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # Openssl -TODO: Write a gem description +* [![Build Status](https://travis-ci.org/zzak/openssl.svg?branch=master)](https://travis-ci.org/zzak/openssl) + +OpenSSL provides SSL, TLS and general purpose cryptography. It wraps the OpenSSL library. ## Installation @@ -24,8 +26,17 @@ TODO: Write usage instructions here ## Contributing -1. Fork it ( https://github.com/[my-github-username]/openssl/fork ) +1. Fork it ( https://github.com/zzak/openssl/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request + +## Updating from source + +``` +~/code/openssl => cp -R ~/src/ruby/ext/openssl/*.{c,h} ext/openssl/. +~/code/openssl => cp -R ~/src/ruby/ext/openssl/deprecation.rb ext/openssl/deprecation.rb +~/code/openssl => cp -R ~/src/ruby/ext/openssl/extconf.rb ext/openssl/extconf.rb +~/code/openssl => cp -R ~/src/ruby/ext/openssl/lib/* lib/. +``` diff --git a/lib/openssl/version.rb b/lib/openssl/version.rb deleted file mode 100644 index 7be268725..000000000 --- a/lib/openssl/version.rb +++ /dev/null @@ -1,3 +0,0 @@ -module OpenSSL - VERSION = "0.0.1" -end diff --git a/lib/openssl/x509.rb b/lib/openssl/x509.rb index 10a088944..38b65c71c 100644 --- a/lib/openssl/x509.rb +++ b/lib/openssl/x509.rb @@ -70,7 +70,7 @@ module RFC2253DN HexPair = /#{HexChar}#{HexChar}/ HexString = /#{HexPair}+/ Pair = /\\(?:[#{Special}]|\\|"|#{HexPair})/ - StringChar = /[^#{Special}\\"]/ + StringChar = /[^\\"#{Special}]/ QuoteChar = /[^\\"]/ AttributeType = /[a-zA-Z][0-9a-zA-Z]*|[0-9]+(?:\.[0-9]+)*/ AttributeValue = / diff --git a/openssl.gemspec b/openssl.gemspec index 042e2b25f..55c3e57af 100644 --- a/openssl.gemspec +++ b/openssl.gemspec @@ -1,16 +1,16 @@ # coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -require 'openssl/version' +require 'openssl' Gem::Specification.new do |spec| spec.name = "openssl" spec.version = OpenSSL::VERSION - spec.authors = ["SHIBATA Hiroshi"] - spec.email = ["hsbt@ruby-lang.org"] - spec.summary = %q{Write a short summary. Required.} - spec.description = %q{Write a longer description. Optional.} - spec.homepage = "" + spec.authors = ["Martin Bosslet", "SHIBATA Hiroshi", "Zachary Scott"] + spec.email = ["ruby-core@ruby-lang.org"] + spec.summary = %q{OpenSSL provides SSL, TLS and general purpose cryptography.} + spec.description = %q{It wraps the OpenSSL library.} + spec.homepage = "http://www.ruby-lang.org/" spec.files = `git ls-files -z`.split("\x0") spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }