Skip to content

Commit

Permalink
add Gemfile, Rakefile, version, move/update the gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Mell committed Nov 3, 2011
1 parent 7ea23fb commit d0638ce
Show file tree
Hide file tree
Showing 9 changed files with 79 additions and 25 deletions.
20 changes: 0 additions & 20 deletions .gemspec

This file was deleted.

5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source "http://rubygems.org"

gemspec

gem "test-unit"
15 changes: 15 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require 'rake'
require 'rake/testtask'
require "bundler/gem_tasks"

# see http://rake.rubyforge.org/classes/Rake/TestTask.html
# Run tests with:
# $ cd ruby-openid
# $ rake test
#
desc 'Run the ruby-openid tests.'
Rake::TestTask.new(:test) do |t|
t.libs += ["lib", "test"]
t.test_files = FileList['test/test_*.rb']
t.verbose = true
end
10 changes: 6 additions & 4 deletions lib/openid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
# implied. See the License for the specific language governing
# permissions and limitations under the License.

module OpenID
VERSION = "2.1.8"
end

require "openid/version"
require 'openid/store'
require 'openid/yadis'
require "openid/consumer"
require 'openid/server'

module OpenID
end
2 changes: 1 addition & 1 deletion lib/openid/fetchers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def self.fetcher_use_env_http_proxy
@fetcher = StandardFetcher.new(proxy_uri.host, proxy_uri.port,
proxy_uri.user, proxy_uri.password)
end

class StandardFetcher

USER_AGENT = "ruby-openid/#{OpenID::VERSION} (#{RUBY_PLATFORM})"
Expand Down
10 changes: 10 additions & 0 deletions lib/openid/store.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
require 'openid/store/interface'
require 'openid/store/filesystem'
require 'openid/store/memcache'
require 'openid/store/memory'
require 'openid/store/nonce'

module OpenID
module Store
end
end
3 changes: 3 additions & 0 deletions lib/openid/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module OpenID
VERSION = "2.1.8"
end
15 changes: 15 additions & 0 deletions lib/openid/yadis.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require 'openid/yadis/accept'
require 'openid/yadis/constants'
require 'openid/yadis/discovery'
require 'openid/yadis/filters'
require 'openid/yadis/htmltokenizer'
require 'openid/yadis/parsehtml'
require 'openid/yadis/services'
require 'openid/yadis/xrds'
require 'openid/yadis/xri'
require 'openid/yadis/xrires'

module OpenID
module Yadis
end
end
24 changes: 24 additions & 0 deletions ruby-openid.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "openid/version"

Gem::Specification.new do |s|
s.name = "ruby-openid"
s.version = OpenID::VERSION
s.authors = ["JanRain, Inc", "Mike Mell"]
s.email = ["[email protected]", "[email protected]"]
s.homepage = 'https://github.com/mmell/ruby-openid'
s.summary = 'A library for consuming and serving OpenID identities.'
s.description = %q{TODO: Write a gem description}

s.rubyforge_project = "ruby-openid"

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]

# specify any dependencies here; for example:
# s.add_development_dependency "rspec"
# s.add_runtime_dependency "rest-client"
end

0 comments on commit d0638ce

Please sign in to comment.