as_user 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. data/CHANGELOG.rdoc +8 -0
  2. data/{LICENSE → MIT-LICENSE} +2 -4
  3. data/README.rdoc +3 -0
  4. data/Rakefile +39 -1
  5. data/app/assets/javascripts/as_user/application.js +15 -0
  6. data/app/assets/stylesheets/as_user/application.css +13 -0
  7. data/app/controllers/as_user/application_controller.rb +4 -0
  8. data/app/controllers/as_user/users_controller.rb +87 -0
  9. data/app/helpers/as_user/application_helper.rb +4 -0
  10. data/app/helpers/as_user/users_helper.rb +4 -0
  11. data/app/models/user.rb +15 -0
  12. data/app/views/as_user/users/_form.html.erb +29 -0
  13. data/app/views/as_user/users/edit.html.erb +6 -0
  14. data/app/views/as_user/users/index.html.erb +27 -0
  15. data/app/views/as_user/users/new.html.erb +5 -0
  16. data/app/views/as_user/users/show.html.erb +20 -0
  17. data/app/views/layouts/as_user/application.html.erb +14 -0
  18. data/config/routes.rb +5 -0
  19. data/db/migrate/20121213033825_create_as_user_users.rb +12 -0
  20. data/lib/as_user.rb +1 -7
  21. data/lib/as_user/engine.rb +5 -0
  22. data/lib/as_user/version.rb +1 -1
  23. data/lib/tasks/as_user_tasks.rake +4 -0
  24. data/test/as_user_test.rb +7 -0
  25. data/test/dummy/README.rdoc +261 -0
  26. data/test/dummy/Rakefile +7 -0
  27. data/test/dummy/app/assets/javascripts/application.js +15 -0
  28. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  29. data/test/dummy/app/controllers/application_controller.rb +3 -0
  30. data/test/dummy/app/helpers/application_helper.rb +2 -0
  31. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  32. data/test/dummy/config.ru +4 -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 +55 -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 +4 -0
  48. data/test/dummy/db/schema.rb +26 -0
  49. data/test/dummy/log/development.log +52 -0
  50. data/test/dummy/log/test.log +2182 -0
  51. data/test/dummy/public/404.html +26 -0
  52. data/test/dummy/public/422.html +26 -0
  53. data/test/dummy/public/500.html +25 -0
  54. data/test/dummy/public/favicon.ico +0 -0
  55. data/test/dummy/script/rails +6 -0
  56. data/test/fixtures/as_user/users.yml +11 -0
  57. data/test/functional/as_user/users_controller_test.rb +53 -0
  58. data/test/integration/navigation_test.rb +10 -0
  59. data/test/test_helper.rb +15 -0
  60. data/test/unit/as_user/user_test.rb +58 -0
  61. data/test/unit/helpers/as_user/users_helper_test.rb +6 -0
  62. metadata +154 -15
  63. data/.gitignore +0 -17
  64. data/Gemfile +0 -4
  65. data/README.md +0 -29
  66. data/as_user.gemspec +0 -17
data/.gitignore DELETED
@@ -1,17 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in as_user.gemspec
4
- gemspec
data/README.md DELETED
@@ -1,29 +0,0 @@
1
- # AsUser
2
-
3
- TODO: Write a gem description
4
-
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- gem 'as_user'
10
-
11
- And then execute:
12
-
13
- $ bundle
14
-
15
- Or install it yourself as:
16
-
17
- $ gem install as_user
18
-
19
- ## Usage
20
-
21
- TODO: Write usage instructions here
22
-
23
- ## Contributing
24
-
25
- 1. Fork it
26
- 2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Added some feature'`)
28
- 4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request
data/as_user.gemspec DELETED
@@ -1,17 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/as_user/version', __FILE__)
3
-
4
- Gem::Specification.new do |gem|
5
- gem.authors = ["Andersen Fan"]
6
- gem.email = ["as181920@hotmail.com"]
7
- gem.summary = %q{basic user handling}
8
- gem.description = %q{basick user handling:create,login,logout,and so on. stores data in mongodb. used by younoter.com}
9
- gem.homepage = "http://younoter.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 = "as_user"
15
- gem.require_paths = ["lib"]
16
- gem.version = AsUser::VERSION
17
- end