authic_client 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +9 -0
  3. data/Rakefile +40 -0
  4. data/app/controllers/authic_client/application_controller.rb +4 -0
  5. data/app/controllers/authic_client/sessions_controller.rb +21 -0
  6. data/app/helpers/authic_client/application_helper.rb +23 -0
  7. data/app/models/authic_user_mixin.rb +19 -0
  8. data/config/initializers/authic.rb +4 -0
  9. data/config/initializers/omniauth.rb +6 -0
  10. data/config/routes.rb +6 -0
  11. data/lib/authic_client/engine.rb +12 -0
  12. data/lib/authic_client/version.rb +3 -0
  13. data/lib/authic_client.rb +4 -0
  14. data/lib/generators/active_record/authic_generator.rb +55 -0
  15. data/lib/generators/active_record/templates/migration.rb +17 -0
  16. data/lib/generators/active_record/templates/migration_existing.rb +24 -0
  17. data/lib/generators/authic/orm_helpers.rb +22 -0
  18. data/lib/tasks/authic_client_tasks.rake +4 -0
  19. data/test/authic_client_test.rb +7 -0
  20. data/test/dummy/README.rdoc +261 -0
  21. data/test/dummy/Rakefile +7 -0
  22. data/test/dummy/app/assets/javascripts/application.js +15 -0
  23. data/test/dummy/app/assets/javascripts/welcome.js +2 -0
  24. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  25. data/test/dummy/app/assets/stylesheets/welcome.css +4 -0
  26. data/test/dummy/app/controllers/application_controller.rb +3 -0
  27. data/test/dummy/app/controllers/welcome_controller.rb +4 -0
  28. data/test/dummy/app/helpers/application_helper.rb +2 -0
  29. data/test/dummy/app/helpers/welcome_helper.rb +2 -0
  30. data/test/dummy/app/models/user.rb +6 -0
  31. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  32. data/test/dummy/app/views/welcome/index.html.erb +9 -0
  33. data/test/dummy/config/application.rb +59 -0
  34. data/test/dummy/config/boot.rb +10 -0
  35. data/test/dummy/config/database.yml +25 -0
  36. data/test/dummy/config/environment.rb +5 -0
  37. data/test/dummy/config/environments/development.rb +37 -0
  38. data/test/dummy/config/environments/production.rb +67 -0
  39. data/test/dummy/config/environments/test.rb +37 -0
  40. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  41. data/test/dummy/config/initializers/inflections.rb +15 -0
  42. data/test/dummy/config/initializers/mime_types.rb +5 -0
  43. data/test/dummy/config/initializers/secret_token.rb +7 -0
  44. data/test/dummy/config/initializers/session_store.rb +8 -0
  45. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  46. data/test/dummy/config/locales/en.yml +5 -0
  47. data/test/dummy/config/routes.rb +61 -0
  48. data/test/dummy/config.ru +4 -0
  49. data/test/dummy/db/development.sqlite3 +0 -0
  50. data/test/dummy/db/migrate/20121030133646_authic_create_users.rb +19 -0
  51. data/test/dummy/db/schema.rb +29 -0
  52. data/test/dummy/log/development.log +523 -0
  53. data/test/dummy/public/404.html +26 -0
  54. data/test/dummy/public/422.html +26 -0
  55. data/test/dummy/public/500.html +25 -0
  56. data/test/dummy/public/favicon.ico +0 -0
  57. data/test/dummy/script/rails +6 -0
  58. data/test/dummy/test/fixtures/users.yml +11 -0
  59. data/test/dummy/test/functional/welcome_controller_test.rb +9 -0
  60. data/test/dummy/test/unit/helpers/welcome_helper_test.rb +4 -0
  61. data/test/dummy/test/unit/user_test.rb +7 -0
  62. data/test/dummy/tmp/cache/assets/C7B/190/sprockets%2F37b103f4623089af1456b90830fe941c +0 -0
  63. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  64. data/test/dummy/tmp/cache/assets/D13/C60/sprockets%2F2dedb8177c20286c4259c1d58c5646cc +0 -0
  65. data/test/dummy/tmp/cache/assets/D21/5D0/sprockets%2Fe2c4f946939f2d7d0b42d86383755cae +0 -0
  66. data/test/dummy/tmp/cache/assets/D32/3B0/sprockets%2F3a2be21d903762bfe546c90a3d51af37 +0 -0
  67. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  68. data/test/dummy/tmp/cache/assets/D36/8F0/sprockets%2Fa6aa5aa70c98eb18044f8e033648aa64 +0 -0
  69. data/test/dummy/tmp/cache/assets/D3E/F40/sprockets%2F25a167c7563d6fe8ec6b13ec1ac09274 +0 -0
  70. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  71. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  72. data/test/dummy/tmp/cache/assets/D9B/460/sprockets%2F7981456e720ca160ccece6cfe77aa2a4 +0 -0
  73. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  74. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  75. data/test/dummy/tmp/cache/assets/E34/750/sprockets%2Fafd8d2dbccef4926475f6dd4c0d07e7a +0 -0
  76. data/test/integration/navigation_test.rb +10 -0
  77. data/test/test_helper.rb +15 -0
  78. metadata +227 -0
@@ -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,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ # This model initially had no columns defined. If you add columns to the
4
+ # model remove the '{}' from the fixture names and add the columns immediately
5
+ # below each fixture, per the syntax in the comments below
6
+ #
7
+ one: {}
8
+ # column: value
9
+ #
10
+ two: {}
11
+ # column: value
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ class WelcomeControllerTest < ActionController::TestCase
4
+ test "should get index" do
5
+ get :index
6
+ assert_response :success
7
+ end
8
+
9
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class WelcomeHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class UserTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
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
metadata ADDED
@@ -0,0 +1,227 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: authic_client
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.0.1
6
+ platform: ruby
7
+ authors:
8
+ - authic
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2012-10-30 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rails
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: 3.2.5
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: omniauth-authic
28
+ requirement: &id002 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
+ name: sqlite3
39
+ requirement: &id003 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: "0"
45
+ type: :development
46
+ prerelease: false
47
+ version_requirements: *id003
48
+ description: This gem will handle the integration of your app with the Authic service
49
+ email:
50
+ - support@authic.com
51
+ executables: []
52
+
53
+ extensions: []
54
+
55
+ extra_rdoc_files: []
56
+
57
+ files:
58
+ - app/controllers/authic_client/application_controller.rb
59
+ - app/controllers/authic_client/sessions_controller.rb
60
+ - app/helpers/authic_client/application_helper.rb
61
+ - app/models/authic_user_mixin.rb
62
+ - config/initializers/authic.rb
63
+ - config/initializers/omniauth.rb
64
+ - config/routes.rb
65
+ - lib/authic_client/engine.rb
66
+ - lib/authic_client/version.rb
67
+ - lib/authic_client.rb
68
+ - lib/generators/active_record/authic_generator.rb
69
+ - lib/generators/active_record/templates/migration.rb
70
+ - lib/generators/active_record/templates/migration_existing.rb
71
+ - lib/generators/authic/orm_helpers.rb
72
+ - lib/tasks/authic_client_tasks.rake
73
+ - MIT-LICENSE
74
+ - Rakefile
75
+ - README.rdoc
76
+ - test/authic_client_test.rb
77
+ - test/dummy/app/assets/javascripts/application.js
78
+ - test/dummy/app/assets/javascripts/welcome.js
79
+ - test/dummy/app/assets/stylesheets/application.css
80
+ - test/dummy/app/assets/stylesheets/welcome.css
81
+ - test/dummy/app/controllers/application_controller.rb
82
+ - test/dummy/app/controllers/welcome_controller.rb
83
+ - test/dummy/app/helpers/application_helper.rb
84
+ - test/dummy/app/helpers/welcome_helper.rb
85
+ - test/dummy/app/models/user.rb
86
+ - test/dummy/app/views/layouts/application.html.erb
87
+ - test/dummy/app/views/welcome/index.html.erb
88
+ - test/dummy/config/application.rb
89
+ - test/dummy/config/boot.rb
90
+ - test/dummy/config/database.yml
91
+ - test/dummy/config/environment.rb
92
+ - test/dummy/config/environments/development.rb
93
+ - test/dummy/config/environments/production.rb
94
+ - test/dummy/config/environments/test.rb
95
+ - test/dummy/config/initializers/backtrace_silencers.rb
96
+ - test/dummy/config/initializers/inflections.rb
97
+ - test/dummy/config/initializers/mime_types.rb
98
+ - test/dummy/config/initializers/secret_token.rb
99
+ - test/dummy/config/initializers/session_store.rb
100
+ - test/dummy/config/initializers/wrap_parameters.rb
101
+ - test/dummy/config/locales/en.yml
102
+ - test/dummy/config/routes.rb
103
+ - test/dummy/config.ru
104
+ - test/dummy/db/development.sqlite3
105
+ - test/dummy/db/migrate/20121030133646_authic_create_users.rb
106
+ - test/dummy/db/schema.rb
107
+ - test/dummy/log/development.log
108
+ - test/dummy/public/404.html
109
+ - test/dummy/public/422.html
110
+ - test/dummy/public/500.html
111
+ - test/dummy/public/favicon.ico
112
+ - test/dummy/Rakefile
113
+ - test/dummy/README.rdoc
114
+ - test/dummy/script/rails
115
+ - test/dummy/test/fixtures/users.yml
116
+ - test/dummy/test/functional/welcome_controller_test.rb
117
+ - test/dummy/test/unit/helpers/welcome_helper_test.rb
118
+ - test/dummy/test/unit/user_test.rb
119
+ - test/dummy/tmp/cache/assets/C7B/190/sprockets%2F37b103f4623089af1456b90830fe941c
120
+ - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
121
+ - test/dummy/tmp/cache/assets/D13/C60/sprockets%2F2dedb8177c20286c4259c1d58c5646cc
122
+ - test/dummy/tmp/cache/assets/D21/5D0/sprockets%2Fe2c4f946939f2d7d0b42d86383755cae
123
+ - test/dummy/tmp/cache/assets/D32/3B0/sprockets%2F3a2be21d903762bfe546c90a3d51af37
124
+ - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
125
+ - test/dummy/tmp/cache/assets/D36/8F0/sprockets%2Fa6aa5aa70c98eb18044f8e033648aa64
126
+ - test/dummy/tmp/cache/assets/D3E/F40/sprockets%2F25a167c7563d6fe8ec6b13ec1ac09274
127
+ - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
128
+ - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
129
+ - test/dummy/tmp/cache/assets/D9B/460/sprockets%2F7981456e720ca160ccece6cfe77aa2a4
130
+ - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
131
+ - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
132
+ - test/dummy/tmp/cache/assets/E34/750/sprockets%2Fafd8d2dbccef4926475f6dd4c0d07e7a
133
+ - test/integration/navigation_test.rb
134
+ - test/test_helper.rb
135
+ homepage: http://github.com/authic/authic_client
136
+ licenses: []
137
+
138
+ post_install_message:
139
+ rdoc_options: []
140
+
141
+ require_paths:
142
+ - lib
143
+ required_ruby_version: !ruby/object:Gem::Requirement
144
+ none: false
145
+ requirements:
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ hash: -152199881921009217
149
+ segments:
150
+ - 0
151
+ version: "0"
152
+ required_rubygems_version: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ">="
156
+ - !ruby/object:Gem::Version
157
+ hash: -152199881921009217
158
+ segments:
159
+ - 0
160
+ version: "0"
161
+ requirements: []
162
+
163
+ rubyforge_project:
164
+ rubygems_version: 1.8.24
165
+ signing_key:
166
+ specification_version: 3
167
+ summary: Turn your Rails app into an Authic client
168
+ test_files:
169
+ - test/authic_client_test.rb
170
+ - test/dummy/app/assets/javascripts/application.js
171
+ - test/dummy/app/assets/javascripts/welcome.js
172
+ - test/dummy/app/assets/stylesheets/application.css
173
+ - test/dummy/app/assets/stylesheets/welcome.css
174
+ - test/dummy/app/controllers/application_controller.rb
175
+ - test/dummy/app/controllers/welcome_controller.rb
176
+ - test/dummy/app/helpers/application_helper.rb
177
+ - test/dummy/app/helpers/welcome_helper.rb
178
+ - test/dummy/app/models/user.rb
179
+ - test/dummy/app/views/layouts/application.html.erb
180
+ - test/dummy/app/views/welcome/index.html.erb
181
+ - test/dummy/config/application.rb
182
+ - test/dummy/config/boot.rb
183
+ - test/dummy/config/database.yml
184
+ - test/dummy/config/environment.rb
185
+ - test/dummy/config/environments/development.rb
186
+ - test/dummy/config/environments/production.rb
187
+ - test/dummy/config/environments/test.rb
188
+ - test/dummy/config/initializers/backtrace_silencers.rb
189
+ - test/dummy/config/initializers/inflections.rb
190
+ - test/dummy/config/initializers/mime_types.rb
191
+ - test/dummy/config/initializers/secret_token.rb
192
+ - test/dummy/config/initializers/session_store.rb
193
+ - test/dummy/config/initializers/wrap_parameters.rb
194
+ - test/dummy/config/locales/en.yml
195
+ - test/dummy/config/routes.rb
196
+ - test/dummy/config.ru
197
+ - test/dummy/db/development.sqlite3
198
+ - test/dummy/db/migrate/20121030133646_authic_create_users.rb
199
+ - test/dummy/db/schema.rb
200
+ - test/dummy/log/development.log
201
+ - test/dummy/public/404.html
202
+ - test/dummy/public/422.html
203
+ - test/dummy/public/500.html
204
+ - test/dummy/public/favicon.ico
205
+ - test/dummy/Rakefile
206
+ - test/dummy/README.rdoc
207
+ - test/dummy/script/rails
208
+ - test/dummy/test/fixtures/users.yml
209
+ - test/dummy/test/functional/welcome_controller_test.rb
210
+ - test/dummy/test/unit/helpers/welcome_helper_test.rb
211
+ - test/dummy/test/unit/user_test.rb
212
+ - test/dummy/tmp/cache/assets/C7B/190/sprockets%2F37b103f4623089af1456b90830fe941c
213
+ - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
214
+ - test/dummy/tmp/cache/assets/D13/C60/sprockets%2F2dedb8177c20286c4259c1d58c5646cc
215
+ - test/dummy/tmp/cache/assets/D21/5D0/sprockets%2Fe2c4f946939f2d7d0b42d86383755cae
216
+ - test/dummy/tmp/cache/assets/D32/3B0/sprockets%2F3a2be21d903762bfe546c90a3d51af37
217
+ - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
218
+ - test/dummy/tmp/cache/assets/D36/8F0/sprockets%2Fa6aa5aa70c98eb18044f8e033648aa64
219
+ - test/dummy/tmp/cache/assets/D3E/F40/sprockets%2F25a167c7563d6fe8ec6b13ec1ac09274
220
+ - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
221
+ - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
222
+ - test/dummy/tmp/cache/assets/D9B/460/sprockets%2F7981456e720ca160ccece6cfe77aa2a4
223
+ - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
224
+ - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
225
+ - test/dummy/tmp/cache/assets/E34/750/sprockets%2Fafd8d2dbccef4926475f6dd4c0d07e7a
226
+ - test/integration/navigation_test.rb
227
+ - test/test_helper.rb