identity_client 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +3 -0
  3. data/Rakefile +40 -0
  4. data/app/assets/javascripts/identity_client/application.js +15 -0
  5. data/app/assets/stylesheets/identity_client/application.css +13 -0
  6. data/app/controllers/identity_client/application_controller.rb +11 -0
  7. data/app/controllers/identity_client/sessions_controller.rb +11 -0
  8. data/app/helpers/identity_client/application_helper.rb +11 -0
  9. data/app/models/identity_client/user.rb +11 -0
  10. data/app/views/layouts/identity_client/application.html.erb +14 -0
  11. data/config/routes.rb +3 -0
  12. data/db/migrate/20130406131436_create_identity_client_users.rb +11 -0
  13. data/lib/identity_client.rb +4 -0
  14. data/lib/identity_client/engine.rb +21 -0
  15. data/lib/identity_client/version.rb +3 -0
  16. data/lib/tasks/identity_client_tasks.rake +4 -0
  17. data/test/dummy/README.rdoc +261 -0
  18. data/test/dummy/Rakefile +7 -0
  19. data/test/dummy/app/assets/javascripts/application.js +15 -0
  20. data/test/dummy/app/assets/javascripts/home.js +2 -0
  21. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  22. data/test/dummy/app/assets/stylesheets/home.css +4 -0
  23. data/test/dummy/app/controllers/application_controller.rb +3 -0
  24. data/test/dummy/app/controllers/home_controller.rb +5 -0
  25. data/test/dummy/app/helpers/application_helper.rb +2 -0
  26. data/test/dummy/app/helpers/home_helper.rb +2 -0
  27. data/test/dummy/app/views/home/show.html.erb +2 -0
  28. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  29. data/test/dummy/config.ru +4 -0
  30. data/test/dummy/config/application.rb +59 -0
  31. data/test/dummy/config/boot.rb +10 -0
  32. data/test/dummy/config/database.yml +25 -0
  33. data/test/dummy/config/environment.rb +5 -0
  34. data/test/dummy/config/environments/development.rb +37 -0
  35. data/test/dummy/config/environments/production.rb +67 -0
  36. data/test/dummy/config/environments/test.rb +37 -0
  37. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  38. data/test/dummy/config/initializers/inflections.rb +15 -0
  39. data/test/dummy/config/initializers/mime_types.rb +5 -0
  40. data/test/dummy/config/initializers/secret_token.rb +7 -0
  41. data/test/dummy/config/initializers/session_store.rb +8 -0
  42. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  43. data/test/dummy/config/locales/en.yml +5 -0
  44. data/test/dummy/config/routes.rb +5 -0
  45. data/test/dummy/db/development.sqlite3 +0 -0
  46. data/test/dummy/db/test.sqlite3 +0 -0
  47. data/test/dummy/log/development.log +904 -0
  48. data/test/dummy/log/test.log +3 -0
  49. data/test/dummy/public/404.html +26 -0
  50. data/test/dummy/public/422.html +26 -0
  51. data/test/dummy/public/500.html +25 -0
  52. data/test/dummy/public/favicon.ico +0 -0
  53. data/test/dummy/script/rails +6 -0
  54. data/test/dummy/test/functional/home_controller_test.rb +9 -0
  55. data/test/dummy/test/unit/helpers/home_helper_test.rb +4 -0
  56. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  57. data/test/dummy/tmp/cache/assets/CDF/870/sprockets%2Fb878faf942403e313a5b103e5d80488e +0 -0
  58. data/test/dummy/tmp/cache/assets/CF9/7C0/sprockets%2F40fc2f3d2a468a00e463f1d313cb1683 +0 -0
  59. data/test/dummy/tmp/cache/assets/D05/D40/sprockets%2F1c9faaf28d05409b88ad3113374d613c +0 -0
  60. data/test/dummy/tmp/cache/assets/D11/D90/sprockets%2Fa7c31ef4a7e8cd478e554bd936160114 +0 -0
  61. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  62. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  63. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  64. data/test/dummy/tmp/cache/assets/D98/8B0/sprockets%2Fedbef6e0d0a4742346cf479f2c522eb0 +0 -0
  65. data/test/dummy/tmp/cache/assets/DCA/470/sprockets%2F52edd2978ab17448be6c2a0da3ba9e3f +0 -0
  66. data/test/dummy/tmp/cache/assets/DD4/C20/sprockets%2Fc22def08884acd72dd45a9c6dc7bd535 +0 -0
  67. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  68. data/test/dummy/tmp/cache/assets/DED/F20/sprockets%2Fe2ec6b180edb4e4d0c5e691da72ad13a +0 -0
  69. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  70. data/test/fixtures/identity_client/users.yml +11 -0
  71. data/test/identity_client_test.rb +7 -0
  72. data/test/integration/navigation_test.rb +10 -0
  73. data/test/test_helper.rb +15 -0
  74. data/test/unit/identity_client/user_test.rb +9 -0
  75. metadata +241 -0
@@ -0,0 +1,3 @@
1
+ Connecting to database specified by database.yml
2
+  (0.3ms) begin transaction
3
+  (0.0ms) rollback transaction
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ class HomeControllerTest < ActionController::TestCase
4
+ test "should get show" do
5
+ get :show
6
+ assert_response :success
7
+ end
8
+
9
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class HomeHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ provider: MyString
5
+ uid: MyString
6
+ name: MyString
7
+
8
+ two:
9
+ provider: MyString
10
+ uid: MyString
11
+ name: MyString
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class IdentityClientTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, IdentityClient
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ fixtures :all
5
+
6
+ # test "the truth" do
7
+ # assert true
8
+ # end
9
+ end
10
+
@@ -0,0 +1,15 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module IdentityClient
4
+ class UserTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,241 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: identity_client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Patrick Robertson
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-04-06 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.13
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 3.2.13
30
+ - !ruby/object:Gem::Dependency
31
+ name: omniauth
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: omniauth-icis
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: '0.1'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '0.1'
62
+ - !ruby/object:Gem::Dependency
63
+ name: sqlite3
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ description: quick and dirty client for rails apps on my OAuth provider
79
+ email:
80
+ - patrick@iorahealth.com
81
+ executables: []
82
+ extensions: []
83
+ extra_rdoc_files: []
84
+ files:
85
+ - app/assets/javascripts/identity_client/application.js
86
+ - app/assets/stylesheets/identity_client/application.css
87
+ - app/controllers/identity_client/application_controller.rb
88
+ - app/controllers/identity_client/sessions_controller.rb
89
+ - app/helpers/identity_client/application_helper.rb
90
+ - app/models/identity_client/user.rb
91
+ - app/views/layouts/identity_client/application.html.erb
92
+ - config/routes.rb
93
+ - db/migrate/20130406131436_create_identity_client_users.rb
94
+ - lib/identity_client/engine.rb
95
+ - lib/identity_client/version.rb
96
+ - lib/identity_client.rb
97
+ - lib/tasks/identity_client_tasks.rake
98
+ - MIT-LICENSE
99
+ - Rakefile
100
+ - README.rdoc
101
+ - test/dummy/app/assets/javascripts/application.js
102
+ - test/dummy/app/assets/javascripts/home.js
103
+ - test/dummy/app/assets/stylesheets/application.css
104
+ - test/dummy/app/assets/stylesheets/home.css
105
+ - test/dummy/app/controllers/application_controller.rb
106
+ - test/dummy/app/controllers/home_controller.rb
107
+ - test/dummy/app/helpers/application_helper.rb
108
+ - test/dummy/app/helpers/home_helper.rb
109
+ - test/dummy/app/views/home/show.html.erb
110
+ - test/dummy/app/views/layouts/application.html.erb
111
+ - test/dummy/config/application.rb
112
+ - test/dummy/config/boot.rb
113
+ - test/dummy/config/database.yml
114
+ - test/dummy/config/environment.rb
115
+ - test/dummy/config/environments/development.rb
116
+ - test/dummy/config/environments/production.rb
117
+ - test/dummy/config/environments/test.rb
118
+ - test/dummy/config/initializers/backtrace_silencers.rb
119
+ - test/dummy/config/initializers/inflections.rb
120
+ - test/dummy/config/initializers/mime_types.rb
121
+ - test/dummy/config/initializers/secret_token.rb
122
+ - test/dummy/config/initializers/session_store.rb
123
+ - test/dummy/config/initializers/wrap_parameters.rb
124
+ - test/dummy/config/locales/en.yml
125
+ - test/dummy/config/routes.rb
126
+ - test/dummy/config.ru
127
+ - test/dummy/db/development.sqlite3
128
+ - test/dummy/db/test.sqlite3
129
+ - test/dummy/log/development.log
130
+ - test/dummy/log/test.log
131
+ - test/dummy/public/404.html
132
+ - test/dummy/public/422.html
133
+ - test/dummy/public/500.html
134
+ - test/dummy/public/favicon.ico
135
+ - test/dummy/Rakefile
136
+ - test/dummy/README.rdoc
137
+ - test/dummy/script/rails
138
+ - test/dummy/test/functional/home_controller_test.rb
139
+ - test/dummy/test/unit/helpers/home_helper_test.rb
140
+ - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
141
+ - test/dummy/tmp/cache/assets/CDF/870/sprockets%2Fb878faf942403e313a5b103e5d80488e
142
+ - test/dummy/tmp/cache/assets/CF9/7C0/sprockets%2F40fc2f3d2a468a00e463f1d313cb1683
143
+ - test/dummy/tmp/cache/assets/D05/D40/sprockets%2F1c9faaf28d05409b88ad3113374d613c
144
+ - test/dummy/tmp/cache/assets/D11/D90/sprockets%2Fa7c31ef4a7e8cd478e554bd936160114
145
+ - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
146
+ - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
147
+ - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
148
+ - test/dummy/tmp/cache/assets/D98/8B0/sprockets%2Fedbef6e0d0a4742346cf479f2c522eb0
149
+ - test/dummy/tmp/cache/assets/DCA/470/sprockets%2F52edd2978ab17448be6c2a0da3ba9e3f
150
+ - test/dummy/tmp/cache/assets/DD4/C20/sprockets%2Fc22def08884acd72dd45a9c6dc7bd535
151
+ - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
152
+ - test/dummy/tmp/cache/assets/DED/F20/sprockets%2Fe2ec6b180edb4e4d0c5e691da72ad13a
153
+ - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
154
+ - test/fixtures/identity_client/users.yml
155
+ - test/identity_client_test.rb
156
+ - test/integration/navigation_test.rb
157
+ - test/test_helper.rb
158
+ - test/unit/identity_client/user_test.rb
159
+ homepage: http://iorahealth.com
160
+ licenses: []
161
+ post_install_message:
162
+ rdoc_options: []
163
+ require_paths:
164
+ - lib
165
+ required_ruby_version: !ruby/object:Gem::Requirement
166
+ none: false
167
+ requirements:
168
+ - - ! '>='
169
+ - !ruby/object:Gem::Version
170
+ version: '0'
171
+ required_rubygems_version: !ruby/object:Gem::Requirement
172
+ none: false
173
+ requirements:
174
+ - - ! '>='
175
+ - !ruby/object:Gem::Version
176
+ version: '0'
177
+ requirements: []
178
+ rubyforge_project:
179
+ rubygems_version: 1.8.24
180
+ signing_key:
181
+ specification_version: 3
182
+ summary: quick and dirty client for rails apps on my OAuth provider
183
+ test_files:
184
+ - test/dummy/app/assets/javascripts/application.js
185
+ - test/dummy/app/assets/javascripts/home.js
186
+ - test/dummy/app/assets/stylesheets/application.css
187
+ - test/dummy/app/assets/stylesheets/home.css
188
+ - test/dummy/app/controllers/application_controller.rb
189
+ - test/dummy/app/controllers/home_controller.rb
190
+ - test/dummy/app/helpers/application_helper.rb
191
+ - test/dummy/app/helpers/home_helper.rb
192
+ - test/dummy/app/views/home/show.html.erb
193
+ - test/dummy/app/views/layouts/application.html.erb
194
+ - test/dummy/config/application.rb
195
+ - test/dummy/config/boot.rb
196
+ - test/dummy/config/database.yml
197
+ - test/dummy/config/environment.rb
198
+ - test/dummy/config/environments/development.rb
199
+ - test/dummy/config/environments/production.rb
200
+ - test/dummy/config/environments/test.rb
201
+ - test/dummy/config/initializers/backtrace_silencers.rb
202
+ - test/dummy/config/initializers/inflections.rb
203
+ - test/dummy/config/initializers/mime_types.rb
204
+ - test/dummy/config/initializers/secret_token.rb
205
+ - test/dummy/config/initializers/session_store.rb
206
+ - test/dummy/config/initializers/wrap_parameters.rb
207
+ - test/dummy/config/locales/en.yml
208
+ - test/dummy/config/routes.rb
209
+ - test/dummy/config.ru
210
+ - test/dummy/db/development.sqlite3
211
+ - test/dummy/db/test.sqlite3
212
+ - test/dummy/log/development.log
213
+ - test/dummy/log/test.log
214
+ - test/dummy/public/404.html
215
+ - test/dummy/public/422.html
216
+ - test/dummy/public/500.html
217
+ - test/dummy/public/favicon.ico
218
+ - test/dummy/Rakefile
219
+ - test/dummy/README.rdoc
220
+ - test/dummy/script/rails
221
+ - test/dummy/test/functional/home_controller_test.rb
222
+ - test/dummy/test/unit/helpers/home_helper_test.rb
223
+ - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
224
+ - test/dummy/tmp/cache/assets/CDF/870/sprockets%2Fb878faf942403e313a5b103e5d80488e
225
+ - test/dummy/tmp/cache/assets/CF9/7C0/sprockets%2F40fc2f3d2a468a00e463f1d313cb1683
226
+ - test/dummy/tmp/cache/assets/D05/D40/sprockets%2F1c9faaf28d05409b88ad3113374d613c
227
+ - test/dummy/tmp/cache/assets/D11/D90/sprockets%2Fa7c31ef4a7e8cd478e554bd936160114
228
+ - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
229
+ - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
230
+ - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
231
+ - test/dummy/tmp/cache/assets/D98/8B0/sprockets%2Fedbef6e0d0a4742346cf479f2c522eb0
232
+ - test/dummy/tmp/cache/assets/DCA/470/sprockets%2F52edd2978ab17448be6c2a0da3ba9e3f
233
+ - test/dummy/tmp/cache/assets/DD4/C20/sprockets%2Fc22def08884acd72dd45a9c6dc7bd535
234
+ - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
235
+ - test/dummy/tmp/cache/assets/DED/F20/sprockets%2Fe2ec6b180edb4e4d0c5e691da72ad13a
236
+ - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
237
+ - test/fixtures/identity_client/users.yml
238
+ - test/identity_client_test.rb
239
+ - test/integration/navigation_test.rb
240
+ - test/test_helper.rb
241
+ - test/unit/identity_client/user_test.rb