Commit c2dec248ecc2f6d174e38af401718e9491342713
1 parent
3bdf3750
Exists in
master
Updating gemspec
Showing
1 changed file
with
33 additions
and
18 deletions
Show diff stats
omniauth-env.gemspec
1 | -# coding: utf-8 | |
2 | -require File.expand_path('../lib/omniauth-env/version', __FILE__) | |
1 | +# -*- encoding: utf-8 -*- | |
3 | 2 | |
4 | -Gem::Specification.new do |spec| | |
5 | - spec.name = "omniauth-env" | |
6 | - spec.version = OmniAuth::Env::VERSION | |
7 | - spec.authors = ["Shahaf Arad"] | |
8 | - spec.email = ["shahaf2a@gmail.com"] | |
9 | - spec.description = %q{REMOTE_USER strategy for omniauth.} | |
10 | - spec.summary = %q{REMOTE_USER strategy for omniauth.} | |
11 | - spec.homepage = "https://github.com/av3r4ge/omniauth-env" | |
3 | +Gem::Specification.new do |s| | |
4 | + s.name = "omniauth-env" | |
5 | + s.version = "0.0.1" | |
12 | 6 | |
13 | - spec.files = `git ls-files`.split($/) | |
14 | - spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } | |
15 | - spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) | |
16 | - spec.require_paths = ["lib"] | |
7 | + s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | |
8 | + s.authors = ["Shahaf Arad"] | |
9 | + s.date = "2014-03-31" | |
10 | + s.description = "REMOTE_USER strategy for omniauth." | |
11 | + s.email = ["shahaf2a@gmail.com"] | |
12 | + 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~"] | |
13 | + s.homepage = "https://github.com/av3r4ge/omniauth-env" | |
14 | + s.require_paths = ["lib"] | |
15 | + s.rubygems_version = "1.8.11" | |
16 | + s.summary = "REMOTE_USER strategy for omniauth." | |
17 | 17 | |
18 | - spec.add_runtime_dependency 'omniauth', '~> 1.0' | |
19 | - spec.add_runtime_dependency 'gitlab_omniauth-ldap', '~> 1.0.3' | |
18 | + if s.respond_to? :specification_version then | |
19 | + s.specification_version = 3 | |
20 | 20 | |
21 | - spec.add_development_dependency "bundler", "~> 1.3" | |
22 | - spec.add_development_dependency "rake" | |
21 | + if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then | |
22 | + s.add_runtime_dependency(%q<omniauth>, ["~> 1.0"]) | |
23 | + s.add_runtime_dependency(%q<gitlab_omniauth-ldap>, ["~> 1.0.3"]) | |
24 | + s.add_development_dependency(%q<bundler>, ["~> 1.3"]) | |
25 | + s.add_development_dependency(%q<rake>, [">= 0"]) | |
26 | + else | |
27 | + s.add_dependency(%q<omniauth>, ["~> 1.0"]) | |
28 | + s.add_dependency(%q<gitlab_omniauth-ldap>, ["~> 1.0.3"]) | |
29 | + s.add_dependency(%q<bundler>, ["~> 1.3"]) | |
30 | + s.add_dependency(%q<rake>, [">= 0"]) | |
31 | + end | |
32 | + else | |
33 | + s.add_dependency(%q<omniauth>, ["~> 1.0"]) | |
34 | + s.add_dependency(%q<gitlab_omniauth-ldap>, ["~> 1.0.3"]) | |
35 | + s.add_dependency(%q<bundler>, ["~> 1.3"]) | |
36 | + s.add_dependency(%q<rake>, [">= 0"]) | |
37 | + end | |
23 | 38 | end | ... | ... |