Skip to content

Commit

Permalink
Doing some minor fixes to the executable
Browse files Browse the repository at this point in the history
  • Loading branch information
roman committed Feb 20, 2009
1 parent dc33868 commit 4df24c8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
17 changes: 9 additions & 8 deletions Rakefile
Expand Up @@ -73,30 +73,31 @@ rescue LoadError
# Too bad.
else
spec = Gem::Specification.new do |s|
s.name = "ruby-openid-tester"
s.name = "rots"
s.version = gem_version
s.platform = Gem::Platform::RUBY
s.summary = "an OpenID server for making tests of OpenID clients implementations"

s.description = <<-EOF
ruby-openid-tester provides a basic OpenID server made in top of the Rack gem.
Ruby OpenID Test Server (ROST) provides a basic OpenID server made in top of the Rack gem.
With this small server, you can make dummy OpenID request for testing purposes,
the success of the response will depend on a parameter given on the url of the authentication request.
EOF

s.files = manifest
s.bindir = 'bin'
s.executables << 'rots'
s.require_path = 'lib'
s.has_rdoc = true
s.extra_rdoc_files = ['README']
s.test_files = Dir['spec/*_spec.rb']

s.author = 'Roman Gonzalez'
s.email = 'romanandreg@gmail.com'
s.homepage = ''
s.rubyforge_project = 'ruby-openid-tester'
s.homepage = 'http://github.com/roman'
s.rubyforge_project = 'rots'

#s.add_development_dependency 'rspec'
s.add_development_dependency 'rspec'
s.add_development_dependency 'rack'
s.add_development_dependency 'ruby-openid', '~> 2.0.0'
end
Expand All @@ -115,10 +116,10 @@ desc "Generate RDoc documentation"
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.options << '--line-numbers' << '--inline-source' <<
'--main' << 'README' <<
'--title' << 'Rack Documentation' <<
'--title' << 'ROTS Documentation' <<
'--charset' << 'utf-8'
rdoc.rdoc_dir = "doc"
rdoc.rdoc_files.include 'README'
rdoc.rdoc_files.include('lib/ruby_openid_tester.rb')
rdoc.rdoc_files.include('lib/ruby_openid_tester/*.rb')
rdoc.rdoc_files.include('lib/ruby_openid_test_server.rb')
rdoc.rdoc_files.include('lib/ruby_openid_test_server/*.rb')
end
25 changes: 13 additions & 12 deletions bin/rots
@@ -1,4 +1,5 @@
#!/usr/bin/ruby
#!/usr/bin/env ruby
# -*- ruby -*-

$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require "rubygems"
Expand All @@ -9,7 +10,17 @@ require "ruby_openid_test_server"
server_options = {
:port => 1123,
:verbose => true,
:config => DATA
:config => <<-DEFAULT_CONFIG
# Default configuration file
identity: john.doe
sreg:
nickname: jdoe
fullname: John Doe
email: jhon@doe.com
dob: 1985-09-21
gender: M
DEFAULT_CONFIG
}

opts = OptionParser.new do |opts|
Expand Down Expand Up @@ -68,13 +79,3 @@ begin
rescue LoadError
Rack::Handler::WEBrick.run server, :Port => server_options[:port]
end

__END__
# Default configuration file
identity: john.doe
sreg:
nickname: jdoe
fullname: John Doe
email: jhon@doe.com
dob: 1985-09-21
gender: M

0 comments on commit 4df24c8

Please sign in to comment.