Gem dependency refactor
This commit is contained in:
parent
051d69ee95
commit
9d19c63b97
|
@ -0,0 +1,4 @@
|
|||
--markup markdown
|
||||
--markup-provider maruku
|
||||
-
|
||||
LICENSE
|
15
Gemfile
15
Gemfile
|
@ -1,10 +1,9 @@
|
|||
source 'http://rubygems.org'
|
||||
|
||||
OMNIAUTH_GEMS = %w(oa-basic oa-core oa-oauth oa-openid oa-enterprise oa-more omniauth)
|
||||
|
||||
OMNIAUTH_GEMS.each do |jem|
|
||||
gem jem, :path => jem
|
||||
end
|
||||
|
||||
eval File.read(File.join(File.dirname(__FILE__), '/development_dependencies.rb'))
|
||||
|
||||
gemspec :path => 'oa-basic'
|
||||
gemspec :path => 'oa-core'
|
||||
gemspec :path => 'oa-enterprise'
|
||||
gemspec :path => 'oa-more'
|
||||
gemspec :path => 'oa-oauth'
|
||||
gemspec :path => 'oa-openid'
|
||||
gemspec :path => 'omniauth'
|
||||
|
|
127
Rakefile
127
Rakefile
|
@ -1,4 +1,3 @@
|
|||
require 'rubygems'
|
||||
require 'rake'
|
||||
|
||||
begin
|
||||
|
@ -23,44 +22,12 @@ def each_gem(action, &block)
|
|||
end
|
||||
end
|
||||
|
||||
def version_file
|
||||
File.dirname(__FILE__) + '/VERSION'
|
||||
end
|
||||
|
||||
def version
|
||||
File.open(version_file, 'r').read.strip
|
||||
end
|
||||
|
||||
def bump_version(position)
|
||||
v = version
|
||||
v = v.split('.').map{|s| s.to_i}
|
||||
v[position] += 1
|
||||
write_version(*v)
|
||||
end
|
||||
|
||||
def write_version(major, minor, patch)
|
||||
major = nil if major == ''
|
||||
minor = nil if minor == ''
|
||||
patch = nil if patch == ''
|
||||
|
||||
v = version
|
||||
v = v.split('.').map{|s| s.to_i}
|
||||
|
||||
v[0] = major || v[0]
|
||||
v[1] = minor || v[1]
|
||||
v[2] = patch || v[2]
|
||||
|
||||
File.open(version_file, 'w'){ |f| f.write v.map{|i| i.to_s}.join('.') }
|
||||
puts "Version is now: #{version}"
|
||||
end
|
||||
|
||||
desc 'Run specs for all of the gems.'
|
||||
task :spec do
|
||||
error_gems = []
|
||||
each_gem('specs are running...') do |jem|
|
||||
ENV['RSPEC_FORMAT'] = 'progress'
|
||||
each_gem('specs are running...') do |gem|
|
||||
unless system('rake spec')
|
||||
error_gems << jem
|
||||
error_gems << gem
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -73,99 +40,56 @@ task :spec do
|
|||
end
|
||||
end
|
||||
|
||||
namespace :dependencies do
|
||||
desc 'Install all dependencies via Bundler'
|
||||
task :install do
|
||||
each_gem('is installing dependencies...') do
|
||||
system('bundle install')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
task :release => ['release:tag', 'gems:publish', 'doc:pages:publish']
|
||||
|
||||
namespace :release do
|
||||
task :tag do
|
||||
system("git tag v#{version}")
|
||||
system('git push origin --tags')
|
||||
desc 'Push all gems to Gemcutter'
|
||||
task :push do
|
||||
each_gem('is releasing to Gemcutter...') do
|
||||
system('rake release')
|
||||
end
|
||||
end
|
||||
|
||||
namespace :gems do
|
||||
desc 'Build all gems'
|
||||
task :build do
|
||||
each_gem('is building gems...') do
|
||||
system('rake build')
|
||||
end
|
||||
end
|
||||
|
||||
desc 'Build all gems'
|
||||
task :build do
|
||||
each_gem('is building gems...') do
|
||||
system('rake gem')
|
||||
end
|
||||
end
|
||||
|
||||
desc 'Push all gems to Gemcutter'
|
||||
task :push do
|
||||
each_gem('is releasing to Gemcutter...') do
|
||||
system('rake gem:publish')
|
||||
end
|
||||
desc 'Install all gems'
|
||||
task :install do
|
||||
each_gem('is installing gems...') do
|
||||
system('rake install')
|
||||
end
|
||||
end
|
||||
|
||||
desc 'Install all gems'
|
||||
task :install do
|
||||
each_gem('is installing gems...') do
|
||||
system('rake gem:install')
|
||||
end
|
||||
end
|
||||
|
||||
desc "Uninstall gems"
|
||||
task :uninstall do
|
||||
sh "sudo gem uninstall #{OMNIAUTH_GEMS.join(" ")} -a"
|
||||
end
|
||||
|
||||
desc "Uninstall gems"
|
||||
task :uninstall do
|
||||
sh "sudo gem uninstall #{OMNIAUTH_GEMS.join(" ")} -a"
|
||||
end
|
||||
|
||||
desc "Clean pkg and other stuff"
|
||||
task :clean do
|
||||
OMNIAUTH_GEMS.each do |dir|
|
||||
Dir.chdir(dir) do
|
||||
%w(tmp pkg coverage dist).each { |d| FileUtils.rm_rf d }
|
||||
%w(tmp pkg coverage dist).each{|d| FileUtils.rm_rf d}
|
||||
end
|
||||
end
|
||||
Dir["**/*.gem"].each { |gem| FileUtils.rm_rf gem }
|
||||
end
|
||||
|
||||
desc 'Display the current version.'
|
||||
task :version do
|
||||
puts "Current Version: #{version}"
|
||||
end
|
||||
|
||||
namespace :version do
|
||||
desc "Write version with MAJOR, MINOR, and PATCH level env variables."
|
||||
task :write do
|
||||
write_version(ENV['MAJOR'], ENV['MINOR'], ENV['PATCH'])
|
||||
end
|
||||
|
||||
namespace :bump do
|
||||
desc "Increment the major version."
|
||||
task(:major){ bump_version(0) }
|
||||
desc "Increment the minor version."
|
||||
task(:minor){ bump_version(1) }
|
||||
desc "Increment the patch version."
|
||||
task(:patch){ bump_version(2) }
|
||||
end
|
||||
end
|
||||
|
||||
task :default => :spec
|
||||
task :test => :spec
|
||||
|
||||
begin
|
||||
YARD_OPTS = ['-m', 'markdown', '-M', 'maruku']
|
||||
require 'yard'
|
||||
YARD::Rake::YardocTask.new(:doc) do |t|
|
||||
t.files = OMNIAUTH_GEMS.inject([]){|a,g| a = a + ["#{g}/lib/**/*.rb"]; a} + ['README.markdown']
|
||||
t.options = YARD_OPTS
|
||||
t.files = OMNIAUTH_GEMS.inject([]){|a,g| a = a + ["#{g}/lib/**/*.rb"]; a} + ['README.markdown']
|
||||
end
|
||||
|
||||
namespace :doc do
|
||||
YARD::Rake::YardocTask.new(:pages) do |t|
|
||||
t.files = OMNIAUTH_GEMS.inject([]){|a,g| a = a + ["#{g}/lib/**/*.rb"]; a} + ['README.markdown']
|
||||
t.options = YARD_OPTS + ['-o', '../omniauth.doc']
|
||||
t.files = OMNIAUTH_GEMS.inject([]){|a,g| a = a + ["#{g}/lib/**/*.rb"]; a} + ['README.markdown']
|
||||
end
|
||||
|
||||
namespace :pages do
|
||||
|
@ -174,12 +98,9 @@ begin
|
|||
Dir.chdir(File.dirname(__FILE__) + '/../omniauth.doc') do
|
||||
system("git add .")
|
||||
system("git add -u")
|
||||
system("git commit -m 'Generating docs for version #{version}.'")
|
||||
system("git push origin gh-pages")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
rescue LoadError
|
||||
puts "You need to install YARD."
|
||||
end
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
# to be evaluated within the context of a Gemspec or a Gemfile
|
||||
|
||||
# It's ridiculous that Bundler can't sync up with .gemspec files for
|
||||
# development dependencies. Until it can, make sure to keep these
|
||||
# two blocks parallel.
|
||||
if Object.const_defined?(:Bundler) && Bundler.const_defined?(:Dsl) && self.kind_of?(Bundler::Dsl)
|
||||
group :development do
|
||||
gem 'addressable', '2.2.4'
|
||||
gem 'rack'
|
||||
gem 'rake'
|
||||
gem 'mg', '~> 0.0.8'
|
||||
gem 'rspec', '~> 2.5.0'
|
||||
gem 'webmock', '~> 1.6.2'
|
||||
gem 'rack-test', '~> 0.5.4'
|
||||
gem 'json_pure', '~> 1.5.1' # multi_json implementation
|
||||
gem 'evernote', '~> 0.9.0' unless RUBY_PLATFORM == 'java'
|
||||
gem 'jruby-openssl', '~> 0.7.2' if RUBY_PLATFORM == 'java'
|
||||
end
|
||||
else #gemspec
|
||||
gem.add_development_dependency 'addressable', '0.2.4'
|
||||
gem.add_development_dependency 'rake'
|
||||
gem.add_development_dependency 'mg', '~> 0.0.8'
|
||||
gem.add_development_dependency 'rspec', '~> 1.3.0'
|
||||
gem.add_development_dependency 'webmock', '~> 1.3.4'
|
||||
gem.add_development_dependency 'rack-test', '~> 0.5.4'
|
||||
gem.add_development_dependency 'json_pure', '~> 1.5.1' # multi_json implementation
|
||||
gem.add_development_dependency 'evernote', '~> 0.9.0' unless RUBY_PLATFORM == 'java'
|
||||
gem.add_runtime_dependency('jruby-openssl', '~> 0.7.2') if RUBY_PLATFORM == 'java'
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
--markup markdown
|
||||
--markup-provider maruku
|
||||
-
|
||||
LICENSE
|
|
@ -1,9 +1,3 @@
|
|||
source "http://rubygems.org"
|
||||
source 'http://rubygems.org'
|
||||
|
||||
gem 'oa-core', :path => File.expand_path('../../oa-core/', __FILE__)
|
||||
|
||||
# Will automatically pull in this gem and all its
|
||||
# dependencies specified in the gemspec
|
||||
gem 'oa-basic', :path => File.expand_path("..", __FILE__)
|
||||
|
||||
eval File.read(File.join(File.dirname(__FILE__), '../development_dependencies.rb'))
|
||||
gemspec
|
||||
|
|
|
@ -1,14 +1,6 @@
|
|||
require 'rubygems'
|
||||
require 'bundler'
|
||||
Bundler.setup
|
||||
require 'rake'
|
||||
|
||||
require 'mg'
|
||||
MG.new('oa-basic.gemspec')
|
||||
|
||||
Bundler::GemHelper.install_tasks
|
||||
require 'rspec/core/rake_task'
|
||||
RSpec::Core::RakeTask.new(:spec) do |s|
|
||||
s.rspec_opts = "--format=#{ENV['RSPEC_FORMAT'] || 'nested'} --colour"
|
||||
end
|
||||
|
||||
RSpec::Core::RakeTask.new(:spec)
|
||||
task :default => :spec
|
||||
task :test => :spec
|
||||
|
|
|
@ -1,22 +1,25 @@
|
|||
require 'rubygems'
|
||||
|
||||
version = File.open(File.dirname(__FILE__) + '/../VERSION', 'r').read.strip
|
||||
# -*- encoding: utf-8 -*-
|
||||
require File.expand_path('../../omniauth/lib/omniauth/version', __FILE__)
|
||||
|
||||
Gem::Specification.new do |gem|
|
||||
gem.name = "oa-basic"
|
||||
gem.version = version
|
||||
gem.summary = %Q{HTTP Basic strategies for OmniAuth.}
|
||||
gem.description = %Q{HTTP Basic strategies for OmniAuth.}
|
||||
gem.email = "michael@intridea.com"
|
||||
gem.homepage = "http://github.com/intridea/omniauth"
|
||||
gem.authors = ["Michael Bleigh"]
|
||||
|
||||
gem.files = Dir.glob("{lib}/**/*") + %w(README.rdoc LICENSE)
|
||||
|
||||
gem.add_dependency 'oa-core', version
|
||||
gem.add_dependency 'rest-client', '~> 1.6.0'
|
||||
gem.add_dependency 'multi_json', '~> 0.0.2'
|
||||
gem.add_dependency 'nokogiri', '~> 1.4.2'
|
||||
|
||||
eval File.read(File.join(File.dirname(__FILE__), '../development_dependencies.rb'))
|
||||
gem.add_runtime_dependency 'oa-core', Omniauth::VERSION.dup
|
||||
gem.add_runtime_dependency 'rest-client', '~> 1.6.0'
|
||||
gem.add_development_dependency 'simplecov', '~> 0.4'
|
||||
gem.add_development_dependency 'rack-test', '~> 0.5'
|
||||
gem.add_development_dependency 'rake', '~> 0.8'
|
||||
gem.add_development_dependency 'rspec', '~> 2.5'
|
||||
gem.add_development_dependency 'webmock', '~> 1.6'
|
||||
gem.add_development_dependency 'yard', '~> 0.6'
|
||||
gem.name = 'oa-basic'
|
||||
gem.version = Omniauth::VERSION.dup
|
||||
gem.summary = %q{HTTP Basic strategies for OmniAuth.}
|
||||
gem.description = %q{HTTP Basic strategies for OmniAuth.}
|
||||
gem.email = ['michael@intridea.com', 'sferik@gmail.com']
|
||||
gem.homepage = 'http://github.com/intridea/omniauth'
|
||||
gem.authors = ['Michael Bleigh', 'Erik Michaels-Ober']
|
||||
gem.executables = `git ls-files -- bin/*`.split("\n").map{|f| File.basename(f)}
|
||||
gem.files = `git ls-files`.split("\n")
|
||||
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
||||
gem.require_paths = ['lib']
|
||||
gem.required_rubygems_version = Gem::Requirement.new('>= 1.3.6') if gem.respond_to? :required_rubygems_version=
|
||||
end
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
--markup markdown
|
||||
--markup-provider maruku
|
||||
-
|
||||
LICENSE
|
|
@ -1,6 +1,3 @@
|
|||
source "http://rubygems.org"
|
||||
source 'http://rubygems.org'
|
||||
|
||||
# Will automatically pull in this gem and all its
|
||||
# dependencies specified in the gemspec
|
||||
gem 'oa-core', :path => File.expand_path("..", __FILE__)
|
||||
eval File.read(File.join(File.dirname(__FILE__), '../development_dependencies.rb'))
|
||||
gemspec
|
||||
|
|
|
@ -1,14 +1,6 @@
|
|||
require 'rubygems'
|
||||
require 'bundler'
|
||||
Bundler.setup
|
||||
require 'rake'
|
||||
|
||||
require 'mg'
|
||||
MG.new('oa-core.gemspec')
|
||||
|
||||
Bundler::GemHelper.install_tasks
|
||||
require 'rspec/core/rake_task'
|
||||
RSpec::Core::RakeTask.new(:spec) do |s|
|
||||
s.rspec_opts = "--format=#{ENV['RSPEC_FORMAT'] || 'nested'} --colour"
|
||||
end
|
||||
|
||||
RSpec::Core::RakeTask.new(:spec)
|
||||
task :default => :spec
|
||||
task :test => :spec
|
||||
|
|
|
@ -1,17 +1,22 @@
|
|||
version = File.open(File.dirname(__FILE__) + '/../VERSION', 'r').read.strip
|
||||
# -*- encoding: utf-8 -*-
|
||||
require File.expand_path('../../omniauth/lib/omniauth/version', __FILE__)
|
||||
|
||||
Gem::Specification.new do |gem|
|
||||
gem.name = "oa-core"
|
||||
gem.version = version
|
||||
gem.summary = %Q{HTTP Basic strategies for OmniAuth.}
|
||||
gem.description = %Q{HTTP Basic strategies for OmniAuth.}
|
||||
gem.email = "michael@intridea.com"
|
||||
gem.homepage = "http://github.com/intridea/omniauth"
|
||||
gem.authors = ["Michael Bleigh"]
|
||||
|
||||
gem.files = Dir.glob("{lib}/**/*") + %w(LICENSE)
|
||||
|
||||
gem.add_dependency 'rack', '~> 1.1'
|
||||
|
||||
eval File.read(File.join(File.dirname(__FILE__), '../development_dependencies.rb'))
|
||||
gem.add_development_dependency 'simplecov', '~> 0.4'
|
||||
gem.add_development_dependency 'rack-test', '~> 0.5'
|
||||
gem.add_development_dependency 'rake', '~> 0.8'
|
||||
gem.add_development_dependency 'rspec', '~> 2.5'
|
||||
gem.add_development_dependency 'yard', '~> 0.6'
|
||||
gem.name = 'oa-core'
|
||||
gem.version = Omniauth::VERSION.dup
|
||||
gem.summary = %q{HTTP Basic strategies for OmniAuth.}
|
||||
gem.description = %q{HTTP Basic strategies for OmniAuth.}
|
||||
gem.email = ['michael@intridea.com', 'sferik@gmail.com']
|
||||
gem.homepage = 'http://github.com/intridea/omniauth'
|
||||
gem.authors = ['Michael Bleigh', 'Erik Michaels-Ober']
|
||||
gem.executables = `git ls-files -- bin/*`.split("\n").map{|f| File.basename(f)}
|
||||
gem.files = `git ls-files`.split("\n")
|
||||
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
||||
gem.require_paths = ['lib']
|
||||
gem.required_rubygems_version = Gem::Requirement.new('>= 1.3.6') if gem.respond_to? :required_rubygems_version=
|
||||
end
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
require 'simplecov'
|
||||
SimpleCov.start
|
||||
require 'rubygems'
|
||||
require 'bundler'
|
||||
Bundler.setup
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
--markup markdown
|
||||
--markup-provider maruku
|
||||
-
|
||||
LICENSE
|
|
@ -1,9 +1,3 @@
|
|||
source "http://rubygems.org"
|
||||
source 'http://rubygems.org'
|
||||
|
||||
gem 'oa-core', :path => File.expand_path('../../oa-core/', __FILE__)
|
||||
|
||||
# Will automatically pull in this gem and all its
|
||||
# dependencies specified in the gemspec
|
||||
gem 'oa-enterprise', :path => File.expand_path("..", __FILE__)
|
||||
|
||||
eval File.read(File.join(File.dirname(__FILE__), '../development_dependencies.rb'))
|
||||
gemspec
|
||||
|
|
|
@ -1,14 +1,6 @@
|
|||
require 'rubygems'
|
||||
require 'bundler'
|
||||
Bundler.setup
|
||||
require 'rake'
|
||||
|
||||
require 'mg'
|
||||
MG.new('oa-enterprise.gemspec')
|
||||
|
||||
Bundler::GemHelper.install_tasks
|
||||
require 'rspec/core/rake_task'
|
||||
RSpec::Core::RakeTask.new(:spec) do |s|
|
||||
s.rspec_opts = "--format=#{ENV['RSPEC_FORMAT'] || 'nested'} --colour"
|
||||
end
|
||||
|
||||
RSpec::Core::RakeTask.new(:spec)
|
||||
task :default => :spec
|
||||
task :test => :spec
|
||||
|
|
|
@ -1,23 +1,29 @@
|
|||
require 'rubygems'
|
||||
|
||||
version = File.open(File.dirname(__FILE__) + '/../VERSION', 'r').read.strip
|
||||
# -*- encoding: utf-8 -*-
|
||||
require File.expand_path('../../omniauth/lib/omniauth/version', __FILE__)
|
||||
|
||||
Gem::Specification.new do |gem|
|
||||
gem.name = "oa-enterprise"
|
||||
gem.version = version
|
||||
gem.summary = %Q{Enterprise strategies for OmniAuth.}
|
||||
gem.description = %Q{Enterprise strategies for OmniAuth.}
|
||||
gem.email = "james.a.rosen@gmail.com"
|
||||
gem.homepage = "http://github.com/intridea/omniauth"
|
||||
gem.authors = ["James A. Rosen", "Ping Yu"]
|
||||
|
||||
gem.files = Dir.glob("{lib}/**/*") + %w(README.rdoc LICENSE)
|
||||
|
||||
gem.add_dependency 'oa-core', version
|
||||
gem.add_dependency 'nokogiri', '~> 1.4.2'
|
||||
gem.add_dependency 'net-ldap', '~> 0.1.1'
|
||||
gem.add_dependency 'rubyntlm', '~> 0.1.1'
|
||||
gem.add_dependency 'pyu-ruby-sasl', '~>0.0.3.1'
|
||||
|
||||
eval File.read(File.join(File.dirname(__FILE__), '../development_dependencies.rb'))
|
||||
gem.add_runtime_dependency 'addressable', '2.2.4'
|
||||
gem.add_runtime_dependency 'oa-core', Omniauth::VERSION.dup
|
||||
gem.add_runtime_dependency 'nokogiri', '~> 1.4.2'
|
||||
gem.add_runtime_dependency 'net-ldap', '~> 0.1.1'
|
||||
gem.add_runtime_dependency 'rubyntlm', '~> 0.1.1'
|
||||
gem.add_runtime_dependency 'pyu-ruby-sasl', '~> 0.0.3.1'
|
||||
gem.add_development_dependency 'simplecov', '~> 0.4'
|
||||
gem.add_development_dependency 'rack-test', '~> 0.5'
|
||||
gem.add_development_dependency 'rake', '~> 0.8'
|
||||
gem.add_development_dependency 'rspec', '~> 2.5'
|
||||
gem.add_development_dependency 'webmock', '~> 1.6'
|
||||
gem.add_development_dependency 'yard', '~> 0.6'
|
||||
gem.name = 'oa-enterprise'
|
||||
gem.version = Omniauth::VERSION.dup
|
||||
gem.summary = %q{Enterprise strategies for OmniAuth.}
|
||||
gem.description = %q{Enterprise strategies for OmniAuth.}
|
||||
gem.email = ['james.a.rosen@gmail.com', 'ping@intridea.com', 'michael@intridea.com', 'sferik@gmail.com']
|
||||
gem.homepage = 'http://github.com/intridea/omniauth'
|
||||
gem.authors = ['James A. Rosen', 'Ping Yu', 'Michael Bleigh', 'Erik Michaels-Ober']
|
||||
gem.executables = `git ls-files -- bin/*`.split("\n").map{|f| File.basename(f)}
|
||||
gem.files = `git ls-files`.split("\n")
|
||||
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
||||
gem.require_paths = ['lib']
|
||||
gem.required_rubygems_version = Gem::Requirement.new('>= 1.3.6') if gem.respond_to? :required_rubygems_version=
|
||||
end
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
require 'rubygems'
|
||||
require 'bundler'
|
||||
Bundler.setup
|
||||
require 'simplecov'
|
||||
SimpleCov.start
|
||||
require 'rspec'
|
||||
require 'rspec/autorun'
|
||||
require 'webmock/rspec'
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
--markup markdown
|
||||
--markup-provider maruku
|
||||
-
|
||||
LICENSE
|
|
@ -1,9 +1,3 @@
|
|||
source "http://rubygems.org"
|
||||
source 'http://rubygems.org'
|
||||
|
||||
gem 'oa-core', :path => File.expand_path('../../oa-core/', __FILE__)
|
||||
|
||||
# Will automatically pull in this gem and all its
|
||||
# dependencies specified in the gemspec
|
||||
gem 'oa-more', :path => File.expand_path("..", __FILE__)
|
||||
|
||||
eval File.read(File.join(File.dirname(__FILE__), '../development_dependencies.rb'))
|
||||
gemspec
|
||||
|
|
|
@ -1,14 +1,6 @@
|
|||
require 'rubygems'
|
||||
require 'bundler'
|
||||
Bundler.setup
|
||||
require 'rake'
|
||||
|
||||
require 'mg'
|
||||
MG.new('oa-more.gemspec')
|
||||
|
||||
Bundler::GemHelper.install_tasks
|
||||
require 'rspec/core/rake_task'
|
||||
RSpec::Core::RakeTask.new(:spec) do |s|
|
||||
s.rspec_opts = "--format=#{ENV['RSPEC_FORMAT'] || 'nested'} --colour"
|
||||
end
|
||||
|
||||
RSpec::Core::RakeTask.new(:spec)
|
||||
task :default => :spec
|
||||
task :test => :spec
|
||||
|
|
|
@ -1,21 +1,27 @@
|
|||
require 'rubygems'
|
||||
|
||||
version = File.open(File.dirname(__FILE__) + '/../VERSION', 'r').read.strip
|
||||
# -*- encoding: utf-8 -*-
|
||||
require File.expand_path('../../omniauth/lib/omniauth/version', __FILE__)
|
||||
|
||||
Gem::Specification.new do |gem|
|
||||
gem.name = "oa-more"
|
||||
gem.version = version
|
||||
gem.summary = %Q{Additional strategies for OmniAuth.}
|
||||
gem.description = %Q{Additional strategies for OmniAuth.}
|
||||
gem.email = "michael@intridea.com"
|
||||
gem.homepage = "http://github.com/intridea/omniauth"
|
||||
gem.authors = ["Michael Bleigh"]
|
||||
|
||||
gem.files = Dir.glob("{lib}/**/*") + %w(README.rdoc LICENSE)
|
||||
|
||||
gem.add_dependency 'oa-core', version
|
||||
gem.add_dependency 'oa-core', Omniauth::VERSION.dup
|
||||
gem.add_dependency 'rest-client', '~> 1.6.0'
|
||||
gem.add_dependency 'multi_json', '~> 0.0.2'
|
||||
|
||||
eval File.read(File.join(File.dirname(__FILE__), '../development_dependencies.rb'))
|
||||
gem.add_development_dependency 'json_pure', '~> 1.5'
|
||||
gem.add_development_dependency 'rake', '~> 0.8'
|
||||
gem.add_development_dependency 'rack-test', '~> 0.5'
|
||||
gem.add_development_dependency 'rspec', '~> 2.5'
|
||||
gem.add_development_dependency 'simplecov', '~> 0.4'
|
||||
gem.add_development_dependency 'webmock', '~> 1.6'
|
||||
gem.add_development_dependency 'yard', '~> 0.6'
|
||||
gem.name = 'oa-more'
|
||||
gem.version = Omniauth::VERSION.dup
|
||||
gem.summary = %q{Additional strategies for OmniAuth.}
|
||||
gem.description = %q{Additional strategies for OmniAuth.}
|
||||
gem.email = 'michael@intridea.com'
|
||||
gem.homepage = 'http://github.com/intridea/omniauth'
|
||||
gem.authors = ['Michael Bleigh', 'Erik Michaels-Ober']
|
||||
gem.executables = `git ls-files -- bin/*`.split("\n").map{|f| File.basename(f)}
|
||||
gem.files = `git ls-files`.split("\n")
|
||||
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
||||
gem.require_paths = ['lib']
|
||||
gem.required_rubygems_version = Gem::Requirement.new('>= 1.3.6') if gem.respond_to? :required_rubygems_version=
|
||||
end
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
--markup markdown
|
||||
--markup-provider maruku
|
||||
-
|
||||
LICENSE
|
|
@ -1,9 +1,3 @@
|
|||
source "http://rubygems.org"
|
||||
source 'http://rubygems.org'
|
||||
|
||||
gem 'oa-core', :path => File.expand_path('../../oa-core/', __FILE__)
|
||||
|
||||
# Will automatically pull in this gem and all its
|
||||
# dependencies specified in the gemspec
|
||||
gem 'oa-oauth', :path => File.expand_path("..", __FILE__)
|
||||
|
||||
eval File.read(File.join(File.dirname(__FILE__), '../development_dependencies.rb'))
|
||||
gemspec
|
||||
|
|
|
@ -1,14 +1,6 @@
|
|||
require 'rubygems'
|
||||
require 'bundler'
|
||||
Bundler.setup
|
||||
require 'rake'
|
||||
|
||||
require 'mg'
|
||||
MG.new('oa-oauth.gemspec')
|
||||
|
||||
Bundler::GemHelper.install_tasks
|
||||
require 'rspec/core/rake_task'
|
||||
RSpec::Core::RakeTask.new(:spec) do |s|
|
||||
s.rspec_opts = "--format=#{ENV['RSPEC_FORMAT'] || 'nested'} --colour"
|
||||
end
|
||||
|
||||
RSpec::Core::RakeTask.new(:spec)
|
||||
task :default => :spec
|
||||
task :test => :spec
|
||||
|
|
|
@ -1,24 +1,29 @@
|
|||
require 'rubygems'
|
||||
|
||||
version = File.open(File.dirname(__FILE__) + '/../VERSION', 'r').read.strip
|
||||
# -*- encoding: utf-8 -*-
|
||||
require File.expand_path('../../omniauth/lib/omniauth/version', __FILE__)
|
||||
|
||||
Gem::Specification.new do |gem|
|
||||
gem.name = "oa-oauth"
|
||||
gem.version = version
|
||||
gem.summary = %Q{OAuth strategies for OmniAuth.}
|
||||
gem.description = %Q{OAuth strategies for OmniAuth.}
|
||||
gem.email = "michael@intridea.com"
|
||||
gem.homepage = "http://github.com/intridea/omniauth"
|
||||
gem.authors = ["Michael Bleigh"]
|
||||
|
||||
gem.files = Dir.glob("{lib}/**/*") + %w(README.rdoc LICENSE)
|
||||
|
||||
gem.add_dependency 'oa-core', version
|
||||
gem.add_dependency 'oa-core', Omniauth::VERSION.dup
|
||||
gem.add_dependency 'multi_json', '>= 0.0.5'
|
||||
gem.add_dependency 'nokogiri', '~> 1.4.2'
|
||||
gem.add_dependency 'oauth', '~> 0.4.0'
|
||||
gem.add_dependency 'faraday', '~> 0.6.1'
|
||||
gem.add_dependency 'oauth2', '~> 0.3.0'
|
||||
|
||||
eval File.read(File.join(File.dirname(__FILE__), '../development_dependencies.rb'))
|
||||
gem.add_dependency 'nokogiri', '~> 1.4.2'
|
||||
gem.add_dependency 'oauth', '~> 0.4.0'
|
||||
gem.add_dependency 'faraday', '~> 0.6.1'
|
||||
gem.add_dependency 'oauth2', '~> 0.3.0'
|
||||
gem.add_development_dependency 'evernote', '~> 0.9'
|
||||
gem.add_development_dependency 'rack-test', '~> 0.5'
|
||||
gem.add_development_dependency 'rake', '~> 0.8'
|
||||
gem.add_development_dependency 'rspec', '~> 2.5'
|
||||
gem.add_development_dependency 'webmock', '~> 1.6'
|
||||
gem.add_development_dependency 'yard', '~> 0.6'
|
||||
gem.name = 'oa-oauth'
|
||||
gem.version = Omniauth::VERSION.dup
|
||||
gem.summary = %q{OAuth strategies for OmniAuth.}
|
||||
gem.description = %q{OAuth strategies for OmniAuth.}
|
||||
gem.email = ['michael@intridea.com', 'sferik@gmail.com']
|
||||
gem.homepage = 'http://github.com/intridea/omniauth'
|
||||
gem.authors = ['Michael Bleigh', 'Erik Michaels-Ober']
|
||||
gem.executables = `git ls-files -- bin/*`.split("\n").map{|f| File.basename(f)}
|
||||
gem.files = `git ls-files`.split("\n")
|
||||
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
||||
gem.require_paths = ['lib']
|
||||
gem.required_rubygems_version = Gem::Requirement.new('>= 1.3.6') if gem.respond_to? :required_rubygems_version=
|
||||
end
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
--markup markdown
|
||||
--markup-provider maruku
|
||||
-
|
||||
LICENSE
|
|
@ -1,9 +1,3 @@
|
|||
source "http://rubygems.org"
|
||||
source 'http://rubygems.org'
|
||||
|
||||
gem 'oa-core', :path => File.expand_path('../../oa-core/', __FILE__)
|
||||
gem 'ruby-openid-apps-discovery'
|
||||
# Will automatically pull in this gem and all its
|
||||
# dependencies specified in the gemspec
|
||||
gem 'oa-openid', :path => File.expand_path("..", __FILE__)
|
||||
|
||||
eval File.read(File.join(File.dirname(__FILE__), '../development_dependencies.rb'))
|
||||
gemspec
|
||||
|
|
|
@ -1,14 +1,6 @@
|
|||
require 'rubygems'
|
||||
require 'bundler'
|
||||
Bundler.setup
|
||||
require 'rake'
|
||||
|
||||
require 'mg'
|
||||
MG.new('oa-openid.gemspec')
|
||||
|
||||
Bundler::GemHelper.install_tasks
|
||||
require 'rspec/core/rake_task'
|
||||
RSpec::Core::RakeTask.new(:spec) do |s|
|
||||
s.rspec_opts = "--format=#{ENV['RSPEC_FORMAT'] || 'nested'} --colour"
|
||||
end
|
||||
|
||||
RSpec::Core::RakeTask.new(:spec)
|
||||
task :default => :spec
|
||||
task :test => :spec
|
||||
|
|
|
@ -1,19 +1,25 @@
|
|||
version = File.open(File.dirname(__FILE__) + '/../VERSION', 'r').read.strip
|
||||
# -*- encoding: utf-8 -*-
|
||||
require File.expand_path('../../omniauth/lib/omniauth/version', __FILE__)
|
||||
|
||||
Gem::Specification.new do |gem|
|
||||
gem.name = "oa-openid"
|
||||
gem.version = version
|
||||
gem.summary = %Q{OpenID strategies for OmniAuth.}
|
||||
gem.description = %Q{OpenID strategies for OmniAuth.}
|
||||
gem.email = "michael@intridea.com"
|
||||
gem.homepage = "http://github.com/intridea/omniauth"
|
||||
gem.authors = ["Michael Bleigh"]
|
||||
|
||||
gem.files = Dir.glob("{lib}/**/*") + %w(README.rdoc LICENSE)
|
||||
|
||||
gem.add_dependency 'oa-core', version
|
||||
gem.add_dependency 'oa-core', Omniauth::VERSION.dup
|
||||
gem.add_dependency 'rack-openid', '~> 1.2.0'
|
||||
gem.add_dependency 'ruby-openid-apps-discovery'
|
||||
|
||||
eval File.read(File.join(File.dirname(__FILE__), '../development_dependencies.rb'))
|
||||
gem.add_development_dependency 'rack-test', '~> 0.5'
|
||||
gem.add_development_dependency 'rake', '~> 0.8'
|
||||
gem.add_development_dependency 'rspec', '~> 2.5'
|
||||
gem.add_development_dependency 'webmock', '~> 1.6'
|
||||
gem.add_development_dependency 'yard', '~> 0.6'
|
||||
gem.name = 'oa-openid'
|
||||
gem.version = Omniauth::VERSION.dup
|
||||
gem.summary = %q{OpenID strategies for OmniAuth.}
|
||||
gem.description = %q{OpenID strategies for OmniAuth.}
|
||||
gem.email = ['michael@intridea.com', 'sferik@gmail.com']
|
||||
gem.homepage = 'http://github.com/intridea/omniauth'
|
||||
gem.authors = ['Michael Bleigh', 'Erik Michaels-Ober']
|
||||
gem.executables = `git ls-files -- bin/*`.split("\n").map{|f| File.basename(f)}
|
||||
gem.files = `git ls-files`.split("\n")
|
||||
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
||||
gem.require_paths = ['lib']
|
||||
gem.required_rubygems_version = Gem::Requirement.new('>= 1.3.6') if gem.respond_to? :required_rubygems_version=
|
||||
end
|
||||
|
|
|
@ -1,14 +1,3 @@
|
|||
source "http://rubygems.org"
|
||||
source 'http://rubygems.org'
|
||||
|
||||
gem 'oa-core', :path => File.expand_path('../../oa-core/', __FILE__)
|
||||
gem 'oa-basic', :path => File.expand_path('../../oa-basic/', __FILE__)
|
||||
gem 'oa-enterprise', :path => File.expand_path('../../oa-enterprise/', __FILE__)
|
||||
gem 'oa-oauth', :path => File.expand_path('../../oa-oauth/', __FILE__)
|
||||
gem 'oa-openid', :path => File.expand_path('../../oa-openid/', __FILE__)
|
||||
gem 'oa-more', :path => File.expand_path('../../oa-more/', __FILE__)
|
||||
|
||||
# Will automatically pull in this gem and all its
|
||||
# dependencies specified in the gemspec
|
||||
gem 'omniauth', :path => File.expand_path("..", __FILE__)
|
||||
|
||||
eval File.read(File.join(File.dirname(__FILE__), '../development_dependencies.rb'))
|
||||
gemspec
|
||||
|
|
|
@ -1,14 +1,2 @@
|
|||
require 'rubygems'
|
||||
require 'bundler'
|
||||
Bundler.setup
|
||||
require 'rake'
|
||||
|
||||
require 'mg'
|
||||
MG.new('omniauth.gemspec')
|
||||
|
||||
require 'rspec/core/rake_task'
|
||||
RSpec::Core::RakeTask.new(:spec) do |s|
|
||||
s.rspec_opts = "--format=#{ENV['RSPEC_FORMAT'] || 'nested'} --colour"
|
||||
end
|
||||
|
||||
task :default => :spec
|
||||
Bundler::GemHelper.install_tasks
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
module Omniauth
|
||||
# The version of the gem
|
||||
VERSION = '0.2.3'.freeze unless defined?(::Omniauth::VERSION)
|
||||
end
|
||||
|
|
@ -1,19 +1,20 @@
|
|||
version = File.open(File.dirname(__FILE__) + '/../VERSION', 'r').read.strip
|
||||
# -*- encoding: utf-8 -*-
|
||||
require File.expand_path('../../omniauth/lib/omniauth/version', __FILE__)
|
||||
|
||||
Gem::Specification.new do |gem|
|
||||
gem.name = "omniauth"
|
||||
gem.version = version
|
||||
gem.summary = %Q{Rack middleware for standardized multi-provider authentication.}
|
||||
gem.description = %Q{OmniAuth is an authentication framework that that separates the concept of authentiation from the concept of identity, providing simple hooks for any application to have one or multiple authentication providers for a user.}
|
||||
gem.email = "michael@intridea.com"
|
||||
gem.homepage = "http://github.com/intridea/omniauth"
|
||||
gem.authors = ["Michael Bleigh"]
|
||||
|
||||
gem.files = Dir.glob("{lib}/**/*") + %w(README.rdoc LICENSE)
|
||||
|
||||
%w(oa-core oa-oauth oa-basic oa-openid oa-enterprise oa-more).each do |subgem|
|
||||
gem.add_dependency subgem, version
|
||||
gem.add_runtime_dependency subgem, Omniauth::VERSION.dup
|
||||
end
|
||||
|
||||
eval File.read(File.join(File.dirname(__FILE__), '../development_dependencies.rb'))
|
||||
gem.name = 'omniauth'
|
||||
gem.version = Omniauth::VERSION.dup
|
||||
gem.summary = %q{Rack middleware for standardized multi-provider authentication.}
|
||||
gem.description = %q{OmniAuth is an authentication framework that that separates the concept of authentiation from the concept of identity, providing simple hooks for any application to have one or multiple authentication providers for a user.}
|
||||
gem.email = ['michael@intridea.com', 'sferik@gmail.com']
|
||||
gem.homepage = 'http://github.com/intridea/omniauth'
|
||||
gem.authors = ['Michael Bleigh', 'Erik Michaels-Ober']
|
||||
gem.executables = `git ls-files -- bin/*`.split("\n").map{|f| File.basename(f)}
|
||||
gem.files = `git ls-files`.split("\n")
|
||||
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
||||
gem.require_paths = ['lib']
|
||||
gem.required_rubygems_version = Gem::Requirement.new('>= 1.3.6') if gem.respond_to? :required_rubygems_version=
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue