fs_auth 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 (58) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +3 -0
  3. data/Rakefile +40 -0
  4. data/app/controllers/application_controller.rb +3 -0
  5. data/app/controllers/users_controller.rb +125 -0
  6. data/app/filters/AdminRequired.rb +21 -0
  7. data/app/filters/LoginRequired.rb +11 -0
  8. data/app/filters/WebmasterRequired.rb +21 -0
  9. data/app/models/user.rb +62 -0
  10. data/app/views/users/_login.html.erb +28 -0
  11. data/app/views/users/_user.html.erb +11 -0
  12. data/app/views/users/admin.html.erb +17 -0
  13. data/app/views/users/change_password.html.erb +26 -0
  14. data/app/views/users/delete.html.erb +2 -0
  15. data/app/views/users/edit.html.erb +29 -0
  16. data/app/views/users/forgot_password.html.erb +9 -0
  17. data/app/views/users/login.html.erb +28 -0
  18. data/app/views/users/logout.html.erb +2 -0
  19. data/app/views/users/signup.html.erb +35 -0
  20. data/app/views/users/welcome.html.erb +1 -0
  21. data/config/routes.rb +3 -0
  22. data/db/migrate/20111222014537_create_users.rb +18 -0
  23. data/lib/fs_auth.rb +22 -0
  24. data/lib/fs_auth/engine.rb +5 -0
  25. data/lib/fs_auth/version.rb +3 -0
  26. data/lib/tasks/fs_auth_tasks.rake +4 -0
  27. data/test/dummy/README.rdoc +261 -0
  28. data/test/dummy/Rakefile +7 -0
  29. data/test/dummy/app/assets/javascripts/application.js +15 -0
  30. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  31. data/test/dummy/app/controllers/application_controller.rb +3 -0
  32. data/test/dummy/app/helpers/application_helper.rb +2 -0
  33. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  34. data/test/dummy/config.ru +4 -0
  35. data/test/dummy/config/application.rb +56 -0
  36. data/test/dummy/config/boot.rb +10 -0
  37. data/test/dummy/config/database.yml +25 -0
  38. data/test/dummy/config/environment.rb +5 -0
  39. data/test/dummy/config/environments/development.rb +37 -0
  40. data/test/dummy/config/environments/production.rb +67 -0
  41. data/test/dummy/config/environments/test.rb +37 -0
  42. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  43. data/test/dummy/config/initializers/inflections.rb +15 -0
  44. data/test/dummy/config/initializers/mime_types.rb +5 -0
  45. data/test/dummy/config/initializers/secret_token.rb +7 -0
  46. data/test/dummy/config/initializers/session_store.rb +8 -0
  47. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  48. data/test/dummy/config/locales/en.yml +5 -0
  49. data/test/dummy/config/routes.rb +58 -0
  50. data/test/dummy/public/404.html +26 -0
  51. data/test/dummy/public/422.html +26 -0
  52. data/test/dummy/public/500.html +25 -0
  53. data/test/dummy/public/favicon.ico +0 -0
  54. data/test/dummy/script/rails +6 -0
  55. data/test/fs_auth_test.rb +7 -0
  56. data/test/integration/navigation_test.rb +10 -0
  57. data/test/test_helper.rb +15 -0
  58. metadata +142 -0
@@ -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.exe
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,7 @@
1
+ require 'test_helper'
2
+
3
+ class FsAuthTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, FsAuth
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,142 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fs_auth
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - Matthew J. Schrader
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2013-03-11 00:00:00 -05:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rails
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 3
29
+ - 2
30
+ - 3
31
+ version: 3.2.3
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: sqlite3
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ version: "0"
44
+ type: :development
45
+ version_requirements: *id002
46
+ description: Simple authentication
47
+ email: SchraderMJ11@gmail.com
48
+ executables: []
49
+
50
+ extensions: []
51
+
52
+ extra_rdoc_files: []
53
+
54
+ files:
55
+ - app/controllers/application_controller.rb
56
+ - app/controllers/users_controller.rb
57
+ - app/filters/AdminRequired.rb
58
+ - app/filters/LoginRequired.rb
59
+ - app/filters/WebmasterRequired.rb
60
+ - app/models/user.rb
61
+ - app/views/users/_login.html.erb
62
+ - app/views/users/_user.html.erb
63
+ - app/views/users/admin.html.erb
64
+ - app/views/users/change_password.html.erb
65
+ - app/views/users/delete.html.erb
66
+ - app/views/users/edit.html.erb
67
+ - app/views/users/forgot_password.html.erb
68
+ - app/views/users/login.html.erb
69
+ - app/views/users/logout.html.erb
70
+ - app/views/users/signup.html.erb
71
+ - app/views/users/welcome.html.erb
72
+ - config/routes.rb
73
+ - db/migrate/20111222014537_create_users.rb
74
+ - lib/fs_auth/engine.rb
75
+ - lib/fs_auth/version.rb
76
+ - lib/fs_auth.rb
77
+ - lib/tasks/fs_auth_tasks.rake
78
+ - MIT-LICENSE
79
+ - Rakefile
80
+ - README.rdoc
81
+ has_rdoc: true
82
+ homepage: http://www.forwardspin.com
83
+ licenses: []
84
+
85
+ post_install_message:
86
+ rdoc_options: []
87
+
88
+ require_paths:
89
+ - lib
90
+ required_ruby_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ segments:
95
+ - 0
96
+ version: "0"
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ segments:
102
+ - 0
103
+ version: "0"
104
+ requirements: []
105
+
106
+ rubyforge_project:
107
+ rubygems_version: 1.3.6
108
+ signing_key:
109
+ specification_version: 3
110
+ summary: Simple authentication
111
+ test_files:
112
+ - test/dummy/app/assets/javascripts/application.js
113
+ - test/dummy/app/assets/stylesheets/application.css
114
+ - test/dummy/app/controllers/application_controller.rb
115
+ - test/dummy/app/helpers/application_helper.rb
116
+ - test/dummy/app/views/layouts/application.html.erb
117
+ - test/dummy/config/application.rb
118
+ - test/dummy/config/boot.rb
119
+ - test/dummy/config/database.yml
120
+ - test/dummy/config/environment.rb
121
+ - test/dummy/config/environments/development.rb
122
+ - test/dummy/config/environments/production.rb
123
+ - test/dummy/config/environments/test.rb
124
+ - test/dummy/config/initializers/backtrace_silencers.rb
125
+ - test/dummy/config/initializers/inflections.rb
126
+ - test/dummy/config/initializers/mime_types.rb
127
+ - test/dummy/config/initializers/secret_token.rb
128
+ - test/dummy/config/initializers/session_store.rb
129
+ - test/dummy/config/initializers/wrap_parameters.rb
130
+ - test/dummy/config/locales/en.yml
131
+ - test/dummy/config/routes.rb
132
+ - test/dummy/config.ru
133
+ - test/dummy/public/404.html
134
+ - test/dummy/public/422.html
135
+ - test/dummy/public/500.html
136
+ - test/dummy/public/favicon.ico
137
+ - test/dummy/Rakefile
138
+ - test/dummy/README.rdoc
139
+ - test/dummy/script/rails
140
+ - test/fs_auth_test.rb
141
+ - test/integration/navigation_test.rb
142
+ - test/test_helper.rb