warden-github 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore CHANGED
@@ -2,3 +2,4 @@ coverage
2
2
  .bundle
3
3
  pkg
4
4
  .DS_Store
5
+ Gemfile.lock
data/Rakefile CHANGED
@@ -13,9 +13,4 @@ Spec::Rake::SpecTask.new do |t|
13
13
  t.spec_files = FileList['spec/**/*_spec.rb']
14
14
  t.spec_opts = %w(-fs --color)
15
15
  t.spec_opts << '--loadby' << 'random'
16
-
17
- t.rcov_opts << '--exclude' << 'spec,.bundle,.rvm'
18
- t.rcov = ENV.has_key?('NO_RCOV') ? ENV['NO_RCOV'] != 'true' : true
19
- t.rcov_opts << '--text-summary'
20
- t.rcov_opts << '--sort' << 'coverage' << '--sort-reverse'
21
16
  end
@@ -7,8 +7,18 @@ module Warden
7
7
  @client_id, @secret, @scopes, @callback_url = client_id, secret, scopes, callback_url
8
8
  end
9
9
 
10
+ def ssl_options
11
+ ca_file = "/usr/lib/ssl/certs/ca-certificates.crt"
12
+ if File.exists?(ca_file)
13
+ { :ca_file => ca_file }
14
+ else
15
+ { :ca_file => ''}
16
+ end
17
+ end
18
+
10
19
  def client
11
20
  @client ||= OAuth2::Client.new(@client_id, @secret,
21
+ :ssl => ssl_options,
12
22
  :site => 'https://github.com',
13
23
  :authorize_path => '/login/oauth/authorize',
14
24
  :access_token_path => '/login/oauth/access_token')
@@ -1,5 +1,5 @@
1
1
  module Warden
2
2
  module Github
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
@@ -0,0 +1,32 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "warden-github"
6
+ s.version = "0.0.9"
7
+ s.platform = Gem::Platform::RUBY
8
+ s.authors = ["Corey Donohoe"]
9
+ s.email = ["atmos@atmos.org"]
10
+ s.homepage = "http://github.com/atmos/warden-github"
11
+ s.summary = "A warden strategy for easy oauth integration with github"
12
+ s.description = s.summary
13
+
14
+ s.rubyforge_project = "warden-github"
15
+
16
+ s.add_dependency "json", "~>1.5"
17
+ s.add_dependency "warden", "~>1.0.4"
18
+ s.add_dependency "oauth2", "~>0.4.1"
19
+
20
+ s.add_development_dependency "rake"
21
+ s.add_development_dependency "rspec", "~>1.3.0"
22
+ s.add_development_dependency "shotgun"
23
+ s.add_development_dependency "bundler", "~>1.0"
24
+ s.add_development_dependency "addressable", "~>2.2.0"
25
+ s.add_development_dependency "rack-test", "~>0.5.3"
26
+ s.add_development_dependency "ruby-debug"
27
+
28
+ s.files = `git ls-files`.split("\n")
29
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
30
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
31
+ s.require_paths = ["lib"]
32
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warden-github
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Corey Donohoe
@@ -195,6 +195,7 @@ files:
195
195
  - spec/oauth_spec.rb
196
196
  - spec/proxy_spec.rb
197
197
  - spec/spec_helper.rb
198
+ - warden-github.gemspec
198
199
  has_rdoc: true
199
200
  homepage: http://github.com/atmos/warden-github
200
201
  licenses: []