as_user 0.0.1 → 0.0.2
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.
- data/CHANGELOG.rdoc +8 -0
- data/{LICENSE → MIT-LICENSE} +2 -4
- data/README.rdoc +3 -0
- data/Rakefile +39 -1
- data/app/assets/javascripts/as_user/application.js +15 -0
- data/app/assets/stylesheets/as_user/application.css +13 -0
- data/app/controllers/as_user/application_controller.rb +4 -0
- data/app/controllers/as_user/users_controller.rb +87 -0
- data/app/helpers/as_user/application_helper.rb +4 -0
- data/app/helpers/as_user/users_helper.rb +4 -0
- data/app/models/user.rb +15 -0
- data/app/views/as_user/users/_form.html.erb +29 -0
- data/app/views/as_user/users/edit.html.erb +6 -0
- data/app/views/as_user/users/index.html.erb +27 -0
- data/app/views/as_user/users/new.html.erb +5 -0
- data/app/views/as_user/users/show.html.erb +20 -0
- data/app/views/layouts/as_user/application.html.erb +14 -0
- data/config/routes.rb +5 -0
- data/db/migrate/20121213033825_create_as_user_users.rb +12 -0
- data/lib/as_user.rb +1 -7
- data/lib/as_user/engine.rb +5 -0
- data/lib/as_user/version.rb +1 -1
- data/lib/tasks/as_user_tasks.rake +4 -0
- data/test/as_user_test.rb +7 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +55 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/db/schema.rb +26 -0
- data/test/dummy/log/development.log +52 -0
- data/test/dummy/log/test.log +2182 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/fixtures/as_user/users.yml +11 -0
- data/test/functional/as_user/users_controller_test.rb +53 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/test_helper.rb +15 -0
- data/test/unit/as_user/user_test.rb +58 -0
- data/test/unit/helpers/as_user/users_helper_test.rb +6 -0
- metadata +154 -15
- data/.gitignore +0 -17
- data/Gemfile +0 -4
- data/README.md +0 -29
- data/as_user.gemspec +0 -17
data/.gitignore
DELETED
data/Gemfile
DELETED
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
|