diff --git a/omniauth-env.gemspec b/omniauth-env.gemspec index bf80f74..8e42668 100644 --- a/omniauth-env.gemspec +++ b/omniauth-env.gemspec @@ -1,23 +1,38 @@ -# coding: utf-8 -require File.expand_path('../lib/omniauth-env/version', __FILE__) +# -*- encoding: utf-8 -*- -Gem::Specification.new do |spec| - spec.name = "omniauth-env" - spec.version = OmniAuth::Env::VERSION - spec.authors = ["Shahaf Arad"] - spec.email = ["shahaf2a@gmail.com"] - spec.description = %q{REMOTE_USER strategy for omniauth.} - spec.summary = %q{REMOTE_USER strategy for omniauth.} - spec.homepage = "https://github.com/av3r4ge/omniauth-env" +Gem::Specification.new do |s| + s.name = "omniauth-env" + s.version = "0.0.1" - spec.files = `git ls-files`.split($/) - spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } - spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) - spec.require_paths = ["lib"] + s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= + s.authors = ["Shahaf Arad"] + s.date = "2014-03-31" + s.description = "REMOTE_USER strategy for omniauth." + s.email = ["shahaf2a@gmail.com"] + s.files = [".gitignore", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "lib/omniauth-env.rb", "lib/omniauth-env/version.rb", "lib/omniauth/strategies/env.rb", "omniauth-env.gemspec", "omniauth-env.gemspec~"] + s.homepage = "https://github.com/av3r4ge/omniauth-env" + s.require_paths = ["lib"] + s.rubygems_version = "1.8.11" + s.summary = "REMOTE_USER strategy for omniauth." - spec.add_runtime_dependency 'omniauth', '~> 1.0' - spec.add_runtime_dependency 'gitlab_omniauth-ldap', '~> 1.0.3' + if s.respond_to? :specification_version then + s.specification_version = 3 - spec.add_development_dependency "bundler", "~> 1.3" - spec.add_development_dependency "rake" + if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then + s.add_runtime_dependency(%q, ["~> 1.0"]) + s.add_runtime_dependency(%q, ["~> 1.0.3"]) + s.add_development_dependency(%q, ["~> 1.3"]) + s.add_development_dependency(%q, [">= 0"]) + else + s.add_dependency(%q, ["~> 1.0"]) + s.add_dependency(%q, ["~> 1.0.3"]) + s.add_dependency(%q, ["~> 1.3"]) + s.add_dependency(%q, [">= 0"]) + end + else + s.add_dependency(%q, ["~> 1.0"]) + s.add_dependency(%q, ["~> 1.0.3"]) + s.add_dependency(%q, ["~> 1.3"]) + s.add_dependency(%q, [">= 0"]) + end end -- libgit2 0.21.2