warden-github 0.0.1 → 0.0.4

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/README.md CHANGED
@@ -1,10 +1,14 @@
1
1
  warden-github
2
2
  =============
3
3
 
4
- A sinatra app the provides a gem that...
4
+ A [warden](http://github.com/hassox/warden) strategy that provides oauth authentication to github. Find out more about enabling your application at github's [oauth quickstart](http://gist.github.com/419219).
5
5
 
6
- Developing
7
- ==========
6
+ To test it out on localhost set your callback url to 'http://localhost:9292/auth/github/callback'
7
+
8
+ There's an example app in [spec/app.rb](/atmos/warden-github/blob/master/spec/app.rb).
9
+
10
+ The Extension in Action
11
+ =======================
8
12
  % gem install bundler
9
13
  % bundle install
10
- % bundle exec rake
14
+ % GH_CLIENT_ID="<from GH>" GH_SECRET="<from GH>" bundle exec rackup
data/lib/warden-github.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'warden'
2
2
  require 'oauth2'
3
+ require 'json'
3
4
 
4
5
  module Warden
5
6
  module Github
@@ -1,5 +1,5 @@
1
1
  module Warden
2
2
  module Github
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  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: 29
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Corey Donohoe
@@ -54,14 +54,14 @@ dependencies:
54
54
  version_requirements: &id003 !ruby/object:Gem::Requirement
55
55
  none: false
56
56
  requirements:
57
- - - ~>
57
+ - - ">="
58
58
  - !ruby/object:Gem::Version
59
- hash: 1
59
+ hash: 23
60
60
  segments:
61
61
  - 1
62
- - 4
63
- - 3
64
- version: 1.4.3
62
+ - 0
63
+ - 0
64
+ version: 1.0.0
65
65
  requirement: *id003
66
66
  type: :runtime
67
67
  name: json
@@ -76,7 +76,6 @@ extra_rdoc_files:
76
76
  files:
77
77
  - LICENSE
78
78
  - README.md
79
- - Rakefile
80
79
  - lib/warden-github/strategy.rb
81
80
  - lib/warden-github/user.rb
82
81
  - lib/warden-github/version.rb
data/Rakefile DELETED
@@ -1,60 +0,0 @@
1
- require 'rake/gempackagetask'
2
- require 'rubygems/specification'
3
- require 'date'
4
- require 'bundler'
5
-
6
- task :default => [:spec]
7
-
8
- require 'spec/rake/spectask'
9
- desc "Run specs"
10
- Spec::Rake::SpecTask.new do |t|
11
- t.spec_files = FileList['spec/**/*_spec.rb']
12
- t.spec_opts = %w(-fs --color)
13
- t.spec_opts << '--loadby' << 'random'
14
-
15
- t.rcov_opts << '--exclude' << 'spec,.bundle,.rvm'
16
- t.rcov = ENV.has_key?('NO_RCOV') ? ENV['NO_RCOV'] != 'true' : true
17
- t.rcov_opts << '--text-summary'
18
- t.rcov_opts << '--sort' << 'coverage' << '--sort-reverse'
19
- end
20
-
21
- GEM = "warden-github"
22
- GEM_VERSION = "0.0.1"
23
- AUTHOR = "Corey Donohoe"
24
- EMAIL = "atmos@atmos.org"
25
- HOMEPAGE = "http://github.com/atmos/warden-github"
26
- SUMMARY = "A warden extension that integrates with github oauth"
27
-
28
- spec = Gem::Specification.new do |s|
29
- s.name = GEM
30
- s.version = GEM_VERSION
31
- s.platform = Gem::Platform::RUBY
32
- s.has_rdoc = true
33
- s.extra_rdoc_files = ["LICENSE"]
34
- s.summary = SUMMARY
35
- s.description = s.summary
36
- s.author = AUTHOR
37
- s.email = EMAIL
38
- s.homepage = HOMEPAGE
39
-
40
- bundle = Bundler::Definition.from_gemfile('Gemfile')
41
- bundle.dependencies.each do |dep|
42
- next unless dep.groups.include?(:runtime)
43
- s.add_dependency(dep.name, dep.version_requirements.to_s)
44
- end
45
-
46
- s.require_path = 'lib'
47
- s.files = %w(LICENSE README.md Rakefile) + Dir.glob("{lib}/**/*")
48
- end
49
-
50
- Rake::GemPackageTask.new(spec) do |pkg|
51
- pkg.gem_spec = spec
52
- end
53
-
54
- desc "create a gemspec file"
55
- task :make_spec do
56
- File.open("#{GEM}.gemspec", "w") do |file|
57
- file.puts spec.to_ruby
58
- end
59
- end
60
-