omniauth-dailycred 0.0.1

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.
Files changed (73) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +6 -0
  3. data/LICENSE +22 -0
  4. data/README.md +123 -0
  5. data/Rakefile +2 -0
  6. data/example/.gitignore +5 -0
  7. data/example/Gemfile +40 -0
  8. data/example/README +261 -0
  9. data/example/Rakefile +7 -0
  10. data/example/app/assets/images/rails.png +0 -0
  11. data/example/app/assets/javascripts/application.js +9 -0
  12. data/example/app/assets/javascripts/sessions.js.coffee +3 -0
  13. data/example/app/assets/stylesheets/application.css +7 -0
  14. data/example/app/assets/stylesheets/sessions.css.scss +3 -0
  15. data/example/app/controllers/application_controller.rb +11 -0
  16. data/example/app/controllers/sessions_controller.rb +19 -0
  17. data/example/app/helpers/application_helper.rb +2 -0
  18. data/example/app/helpers/sessions_helper.rb +2 -0
  19. data/example/app/mailers/.gitkeep +0 -0
  20. data/example/app/models/.gitkeep +0 -0
  21. data/example/app/models/user.rb +11 -0
  22. data/example/app/views/layouts/application.html.erb +14 -0
  23. data/example/app/views/sessions/hello.html.erb +6 -0
  24. data/example/config/application.rb +48 -0
  25. data/example/config/boot.rb +6 -0
  26. data/example/config/database.yml +25 -0
  27. data/example/config/environment.rb +5 -0
  28. data/example/config/environments/development.rb +30 -0
  29. data/example/config/environments/production.rb +60 -0
  30. data/example/config/environments/test.rb +39 -0
  31. data/example/config/initializers/backtrace_silencers.rb +7 -0
  32. data/example/config/initializers/inflections.rb +10 -0
  33. data/example/config/initializers/mime_types.rb +5 -0
  34. data/example/config/initializers/omniauth.rb +4 -0
  35. data/example/config/initializers/secret_token.rb +7 -0
  36. data/example/config/initializers/session_store.rb +8 -0
  37. data/example/config/initializers/wrap_parameters.rb +14 -0
  38. data/example/config/locales/en.yml +5 -0
  39. data/example/config/routes.rb +62 -0
  40. data/example/config.ru +4 -0
  41. data/example/db/migrate/20120702204307_create_users.rb +11 -0
  42. data/example/db/schema.rb +24 -0
  43. data/example/db/seeds.rb +7 -0
  44. data/example/lib/assets/.gitkeep +0 -0
  45. data/example/lib/tasks/.gitkeep +0 -0
  46. data/example/log/.gitkeep +0 -0
  47. data/example/public/404.html +26 -0
  48. data/example/public/422.html +26 -0
  49. data/example/public/500.html +26 -0
  50. data/example/public/favicon.ico +0 -0
  51. data/example/public/robots.txt +5 -0
  52. data/example/script/rails +6 -0
  53. data/example/test/fixtures/.gitkeep +0 -0
  54. data/example/test/fixtures/users.yml +11 -0
  55. data/example/test/functional/.gitkeep +0 -0
  56. data/example/test/functional/sessions_controller_test.rb +7 -0
  57. data/example/test/integration/.gitkeep +0 -0
  58. data/example/test/performance/browsing_test.rb +12 -0
  59. data/example/test/test_helper.rb +13 -0
  60. data/example/test/unit/.gitkeep +0 -0
  61. data/example/test/unit/helpers/sessions_helper_test.rb +4 -0
  62. data/example/test/unit/user_test.rb +7 -0
  63. data/example/vendor/assets/stylesheets/.gitkeep +0 -0
  64. data/example/vendor/plugins/.gitkeep +0 -0
  65. data/example2/Gemfile +6 -0
  66. data/example2/config.ru +29 -0
  67. data/lib/omniauth/strategies/dailycred.rb +45 -0
  68. data/lib/omniauth-dailycred/version.rb +5 -0
  69. data/lib/omniauth-dailycred.rb +20 -0
  70. data/omniauth-dailycred.gemspec +17 -0
  71. data/spec/omniauth/strategies/dailycred_spec.rb +22 -0
  72. data/spec/spec_helper.rb +15 -0
  73. metadata +119 -0
@@ -0,0 +1,17 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/omniauth-dailycred/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Hank Stoever"]
6
+ gem.email = ["hstove@gmail.com"]
7
+ gem.description = %q{descript}
8
+ gem.summary = %q{summary}
9
+ gem.homepage = "https://www.dailycred.com"
10
+
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "omniauth-dailycred"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = Omniauth::Dailycred::VERSION
17
+ end
@@ -0,0 +1,22 @@
1
+ require 'spec_helper'
2
+
3
+ describe OmniAuth::Strategies::Dailycred do
4
+ subject do
5
+ OmniAuth::Strategies::Dailycred.new(nil, @options || {})
6
+ end
7
+
8
+
9
+ describe '#client' do
10
+ it 'should have the correct dwolla site' do
11
+ subject.client.site.should eq("https://auth.dailycred.com")
12
+ end
13
+ it 'should have the correct authorization url' do
14
+ subject.client.options[:authorize_url].should eq("https://auth.dailycred.com/oauth/authorize")
15
+ end
16
+
17
+ it 'should have the correct token url' do
18
+ subject.client.options[:token_url].should eq('https://auth.dailycred.com/oauth/tokeninfo')
19
+ end
20
+ end
21
+
22
+ end
@@ -0,0 +1,15 @@
1
+ $:.unshift File.expand_path('..', __FILE__)
2
+ $:.unshift File.expand_path('../../lib', __FILE__)
3
+ require 'simplecov'
4
+ SimpleCov.start
5
+ require 'rspec'
6
+ require 'rack/test'
7
+ require 'omniauth'
8
+ require 'omniauth-dailycred'
9
+
10
+ Dir[File.expand_path('../support/**/*', __FILE__)].each { |f| require f }
11
+
12
+ RSpec.configure do |config|
13
+ config.include Rack::Test::Methods
14
+ config.extend OmniAuth::Test::StrategyMacros, :type => :strategy
15
+ end
metadata ADDED
@@ -0,0 +1,119 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: omniauth-dailycred
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Hank Stoever
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-07-13 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: descript
15
+ email:
16
+ - hstove@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - .gitignore
22
+ - Gemfile
23
+ - LICENSE
24
+ - README.md
25
+ - Rakefile
26
+ - example/.gitignore
27
+ - example/Gemfile
28
+ - example/README
29
+ - example/Rakefile
30
+ - example/app/assets/images/rails.png
31
+ - example/app/assets/javascripts/application.js
32
+ - example/app/assets/javascripts/sessions.js.coffee
33
+ - example/app/assets/stylesheets/application.css
34
+ - example/app/assets/stylesheets/sessions.css.scss
35
+ - example/app/controllers/application_controller.rb
36
+ - example/app/controllers/sessions_controller.rb
37
+ - example/app/helpers/application_helper.rb
38
+ - example/app/helpers/sessions_helper.rb
39
+ - example/app/mailers/.gitkeep
40
+ - example/app/models/.gitkeep
41
+ - example/app/models/user.rb
42
+ - example/app/views/layouts/application.html.erb
43
+ - example/app/views/sessions/hello.html.erb
44
+ - example/config.ru
45
+ - example/config/application.rb
46
+ - example/config/boot.rb
47
+ - example/config/database.yml
48
+ - example/config/environment.rb
49
+ - example/config/environments/development.rb
50
+ - example/config/environments/production.rb
51
+ - example/config/environments/test.rb
52
+ - example/config/initializers/backtrace_silencers.rb
53
+ - example/config/initializers/inflections.rb
54
+ - example/config/initializers/mime_types.rb
55
+ - example/config/initializers/omniauth.rb
56
+ - example/config/initializers/secret_token.rb
57
+ - example/config/initializers/session_store.rb
58
+ - example/config/initializers/wrap_parameters.rb
59
+ - example/config/locales/en.yml
60
+ - example/config/routes.rb
61
+ - example/db/migrate/20120702204307_create_users.rb
62
+ - example/db/schema.rb
63
+ - example/db/seeds.rb
64
+ - example/lib/assets/.gitkeep
65
+ - example/lib/tasks/.gitkeep
66
+ - example/log/.gitkeep
67
+ - example/public/404.html
68
+ - example/public/422.html
69
+ - example/public/500.html
70
+ - example/public/favicon.ico
71
+ - example/public/robots.txt
72
+ - example/script/rails
73
+ - example/test/fixtures/.gitkeep
74
+ - example/test/fixtures/users.yml
75
+ - example/test/functional/.gitkeep
76
+ - example/test/functional/sessions_controller_test.rb
77
+ - example/test/integration/.gitkeep
78
+ - example/test/performance/browsing_test.rb
79
+ - example/test/test_helper.rb
80
+ - example/test/unit/.gitkeep
81
+ - example/test/unit/helpers/sessions_helper_test.rb
82
+ - example/test/unit/user_test.rb
83
+ - example/vendor/assets/stylesheets/.gitkeep
84
+ - example/vendor/plugins/.gitkeep
85
+ - example2/Gemfile
86
+ - example2/config.ru
87
+ - lib/omniauth-dailycred.rb
88
+ - lib/omniauth-dailycred/version.rb
89
+ - lib/omniauth/strategies/dailycred.rb
90
+ - omniauth-dailycred.gemspec
91
+ - spec/omniauth/strategies/dailycred_spec.rb
92
+ - spec/spec_helper.rb
93
+ homepage: https://www.dailycred.com
94
+ licenses: []
95
+ post_install_message:
96
+ rdoc_options: []
97
+ require_paths:
98
+ - lib
99
+ required_ruby_version: !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
102
+ - - ! '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ required_rubygems_version: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ requirements: []
112
+ rubyforge_project:
113
+ rubygems_version: 1.8.24
114
+ signing_key:
115
+ specification_version: 3
116
+ summary: summary
117
+ test_files:
118
+ - spec/omniauth/strategies/dailycred_spec.rb
119
+ - spec/spec_helper.rb