routing_data 0.2.1 → 0.2.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.
Files changed (88) hide show
  1. data/README.md +1 -1
  2. data/lib/routing_data.rb +1 -1
  3. data/lib/routing_data/version.rb +1 -1
  4. metadata +2 -86
  5. data/dummy/Gemfile +0 -38
  6. data/dummy/README.rdoc +0 -261
  7. data/dummy/Rakefile +0 -7
  8. data/dummy/app/assets/images/rails.png +0 -0
  9. data/dummy/app/assets/javascripts/application.js +0 -14
  10. data/dummy/app/assets/javascripts/blogs.js.coffee +0 -3
  11. data/dummy/app/assets/javascripts/categories.js.coffee +0 -3
  12. data/dummy/app/assets/javascripts/home.js.coffee +0 -3
  13. data/dummy/app/assets/javascripts/posts.js.coffee +0 -3
  14. data/dummy/app/assets/javascripts/users.js.coffee +0 -3
  15. data/dummy/app/assets/stylesheets/application.css +0 -13
  16. data/dummy/app/assets/stylesheets/blogs.css.scss +0 -3
  17. data/dummy/app/assets/stylesheets/categories.css.scss +0 -3
  18. data/dummy/app/assets/stylesheets/home.css.scss +0 -3
  19. data/dummy/app/assets/stylesheets/posts.css.scss +0 -3
  20. data/dummy/app/assets/stylesheets/scaffolds.css.scss +0 -69
  21. data/dummy/app/assets/stylesheets/users.css.scss +0 -3
  22. data/dummy/app/controllers/application_controller.rb +0 -3
  23. data/dummy/app/controllers/blogs_controller.rb +0 -83
  24. data/dummy/app/controllers/categories_controller.rb +0 -83
  25. data/dummy/app/controllers/home_controller.rb +0 -5
  26. data/dummy/app/controllers/posts_controller.rb +0 -86
  27. data/dummy/app/controllers/users_controller.rb +0 -83
  28. data/dummy/app/helpers/application_helper.rb +0 -2
  29. data/dummy/app/helpers/blogs_helper.rb +0 -2
  30. data/dummy/app/helpers/categories_helper.rb +0 -2
  31. data/dummy/app/helpers/home_helper.rb +0 -2
  32. data/dummy/app/helpers/posts_helper.rb +0 -2
  33. data/dummy/app/helpers/users_helper.rb +0 -2
  34. data/dummy/app/models/blog.rb +0 -6
  35. data/dummy/app/models/category.rb +0 -5
  36. data/dummy/app/models/post.rb +0 -11
  37. data/dummy/app/models/user.rb +0 -7
  38. data/dummy/app/views/blogs/_form.html.erb +0 -33
  39. data/dummy/app/views/blogs/edit.html.erb +0 -6
  40. data/dummy/app/views/blogs/index.html.erb +0 -29
  41. data/dummy/app/views/blogs/new.html.erb +0 -5
  42. data/dummy/app/views/blogs/show.html.erb +0 -25
  43. data/dummy/app/views/categories/_form.html.erb +0 -25
  44. data/dummy/app/views/categories/edit.html.erb +0 -6
  45. data/dummy/app/views/categories/index.html.erb +0 -25
  46. data/dummy/app/views/categories/new.html.erb +0 -5
  47. data/dummy/app/views/categories/show.html.erb +0 -15
  48. data/dummy/app/views/home/index.html.erb +0 -29
  49. data/dummy/app/views/layouts/application.html.erb +0 -15
  50. data/dummy/app/views/posts/_form.html.erb +0 -37
  51. data/dummy/app/views/posts/edit.html.erb +0 -6
  52. data/dummy/app/views/posts/index.html.erb +0 -29
  53. data/dummy/app/views/posts/new.html.erb +0 -5
  54. data/dummy/app/views/posts/show.html.erb +0 -25
  55. data/dummy/app/views/users/_form.html.erb +0 -25
  56. data/dummy/app/views/users/edit.html.erb +0 -6
  57. data/dummy/app/views/users/index.html.erb +0 -25
  58. data/dummy/app/views/users/new.html.erb +0 -5
  59. data/dummy/app/views/users/show.html.erb +0 -15
  60. data/dummy/config.ru +0 -4
  61. data/dummy/config/application.rb +0 -68
  62. data/dummy/config/boot.rb +0 -6
  63. data/dummy/config/database.yml +0 -25
  64. data/dummy/config/environment.rb +0 -5
  65. data/dummy/config/environments/development.rb +0 -39
  66. data/dummy/config/environments/production.rb +0 -67
  67. data/dummy/config/environments/test.rb +0 -37
  68. data/dummy/config/initializers/backtrace_silencers.rb +0 -7
  69. data/dummy/config/initializers/inflections.rb +0 -15
  70. data/dummy/config/initializers/mime_types.rb +0 -5
  71. data/dummy/config/initializers/secret_token.rb +0 -7
  72. data/dummy/config/initializers/session_store.rb +0 -8
  73. data/dummy/config/initializers/wrap_parameters.rb +0 -14
  74. data/dummy/config/locales/en.yml +0 -5
  75. data/dummy/config/routes.rb +0 -10
  76. data/dummy/db/development.sqlite3 +0 -0
  77. data/dummy/db/migrate/20121118170847_create_users.rb +0 -11
  78. data/dummy/db/migrate/20121118170945_create_posts.rb +0 -13
  79. data/dummy/db/migrate/20121118171015_create_categories.rb +0 -10
  80. data/dummy/db/migrate/20121118171532_create_blogs.rb +0 -12
  81. data/dummy/db/schema.rb +0 -50
  82. data/dummy/db/seeds.rb +0 -7
  83. data/dummy/public/404.html +0 -26
  84. data/dummy/public/422.html +0 -26
  85. data/dummy/public/500.html +0 -25
  86. data/dummy/public/favicon.ico +0 -0
  87. data/dummy/public/robots.txt +0 -5
  88. data/dummy/script/rails +0 -6
@@ -1,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -1,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -1,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -1,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -1,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -1,13 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the top of the
9
- * compiled file, but it's generally better to create a new file per style scope.
10
- *
11
- *= require_self
12
- *= require_tree .
13
- */
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the Blogs controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the Categories controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the Home controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the Posts controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,69 +0,0 @@
1
- body {
2
- background-color: #fff;
3
- color: #333;
4
- font-family: verdana, arial, helvetica, sans-serif;
5
- font-size: 13px;
6
- line-height: 18px;
7
- }
8
-
9
- p, ol, ul, td {
10
- font-family: verdana, arial, helvetica, sans-serif;
11
- font-size: 13px;
12
- line-height: 18px;
13
- }
14
-
15
- pre {
16
- background-color: #eee;
17
- padding: 10px;
18
- font-size: 11px;
19
- }
20
-
21
- a {
22
- color: #000;
23
- &:visited {
24
- color: #666;
25
- }
26
- &:hover {
27
- color: #fff;
28
- background-color: #000;
29
- }
30
- }
31
-
32
- div {
33
- &.field, &.actions {
34
- margin-bottom: 10px;
35
- }
36
- }
37
-
38
- #notice {
39
- color: green;
40
- }
41
-
42
- .field_with_errors {
43
- padding: 2px;
44
- background-color: red;
45
- display: table;
46
- }
47
-
48
- #error_explanation {
49
- width: 450px;
50
- border: 2px solid red;
51
- padding: 7px;
52
- padding-bottom: 0;
53
- margin-bottom: 20px;
54
- background-color: #f0f0f0;
55
- h2 {
56
- text-align: left;
57
- font-weight: bold;
58
- padding: 5px 5px 5px 15px;
59
- font-size: 12px;
60
- margin: -7px;
61
- margin-bottom: 0px;
62
- background-color: #c00;
63
- color: #fff;
64
- }
65
- ul li {
66
- font-size: 12px;
67
- list-style: square;
68
- }
69
- }
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the Users controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,3 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- protect_from_forgery
3
- end
@@ -1,83 +0,0 @@
1
- class BlogsController < ApplicationController
2
- # GET /blogs
3
- # GET /blogs.json
4
- def index
5
- @blogs = Blog.all
6
-
7
- respond_to do |format|
8
- format.html # index.html.erb
9
- format.json { render json: @blogs }
10
- end
11
- end
12
-
13
- # GET /blogs/1
14
- # GET /blogs/1.json
15
- def show
16
- @blog = Blog.find(params[:id])
17
-
18
- respond_to do |format|
19
- format.html # show.html.erb
20
- format.json { render json: @blog }
21
- end
22
- end
23
-
24
- # GET /blogs/new
25
- # GET /blogs/new.json
26
- def new
27
- @blog = Blog.new
28
-
29
- respond_to do |format|
30
- format.html # new.html.erb
31
- format.json { render json: @blog }
32
- end
33
- end
34
-
35
- # GET /blogs/1/edit
36
- def edit
37
- @blog = Blog.find(params[:id])
38
- end
39
-
40
- # POST /blogs
41
- # POST /blogs.json
42
- def create
43
- @blog = Blog.new(params[:blog])
44
-
45
- respond_to do |format|
46
- if @blog.save
47
- format.html { redirect_to @blog, notice: 'Blog was successfully created.' }
48
- format.json { render json: @blog, status: :created, location: @blog }
49
- else
50
- format.html { render action: "new" }
51
- format.json { render json: @blog.errors, status: :unprocessable_entity }
52
- end
53
- end
54
- end
55
-
56
- # PUT /blogs/1
57
- # PUT /blogs/1.json
58
- def update
59
- @blog = Blog.find(params[:id])
60
-
61
- respond_to do |format|
62
- if @blog.update_attributes(params[:blog])
63
- format.html { redirect_to @blog, notice: 'Blog was successfully updated.' }
64
- format.json { head :no_content }
65
- else
66
- format.html { render action: "edit" }
67
- format.json { render json: @blog.errors, status: :unprocessable_entity }
68
- end
69
- end
70
- end
71
-
72
- # DELETE /blogs/1
73
- # DELETE /blogs/1.json
74
- def destroy
75
- @blog = Blog.find(params[:id])
76
- @blog.destroy
77
-
78
- respond_to do |format|
79
- format.html { redirect_to blogs_url }
80
- format.json { head :no_content }
81
- end
82
- end
83
- end
@@ -1,83 +0,0 @@
1
- class CategoriesController < ApplicationController
2
- # GET /categories
3
- # GET /categories.json
4
- def index
5
- @categories = Category.all
6
-
7
- respond_to do |format|
8
- format.html # index.html.erb
9
- format.json { render json: @categories }
10
- end
11
- end
12
-
13
- # GET /categories/1
14
- # GET /categories/1.json
15
- def show
16
- @category = Category.find(params[:id])
17
-
18
- respond_to do |format|
19
- format.html # show.html.erb
20
- format.json { render json: @category }
21
- end
22
- end
23
-
24
- # GET /categories/new
25
- # GET /categories/new.json
26
- def new
27
- @category = Category.new
28
-
29
- respond_to do |format|
30
- format.html # new.html.erb
31
- format.json { render json: @category }
32
- end
33
- end
34
-
35
- # GET /categories/1/edit
36
- def edit
37
- @category = Category.find(params[:id])
38
- end
39
-
40
- # POST /categories
41
- # POST /categories.json
42
- def create
43
- @category = Category.new(params[:category])
44
-
45
- respond_to do |format|
46
- if @category.save
47
- format.html { redirect_to @category, notice: 'Category was successfully created.' }
48
- format.json { render json: @category, status: :created, location: @category }
49
- else
50
- format.html { render action: "new" }
51
- format.json { render json: @category.errors, status: :unprocessable_entity }
52
- end
53
- end
54
- end
55
-
56
- # PUT /categories/1
57
- # PUT /categories/1.json
58
- def update
59
- @category = Category.find(params[:id])
60
-
61
- respond_to do |format|
62
- if @category.update_attributes(params[:category])
63
- format.html { redirect_to @category, notice: 'Category was successfully updated.' }
64
- format.json { head :no_content }
65
- else
66
- format.html { render action: "edit" }
67
- format.json { render json: @category.errors, status: :unprocessable_entity }
68
- end
69
- end
70
- end
71
-
72
- # DELETE /categories/1
73
- # DELETE /categories/1.json
74
- def destroy
75
- @category = Category.find(params[:id])
76
- @category.destroy
77
-
78
- respond_to do |format|
79
- format.html { redirect_to categories_url }
80
- format.json { head :no_content }
81
- end
82
- end
83
- end
@@ -1,5 +0,0 @@
1
- class HomeController < ApplicationController
2
- def index
3
- @posts = Post.all
4
- end
5
- end
@@ -1,86 +0,0 @@
1
- class PostsController < ApplicationController
2
- # GET /posts
3
- # GET /posts.json
4
- def index
5
- @posts = Post.all
6
-
7
- respond_to do |format|
8
- format.html # index.html.erb
9
- format.json { render json: @posts }
10
- end
11
- end
12
-
13
- # GET /posts/1
14
- # GET /posts/1.json
15
- def show
16
- @post = Post.find(params[:id])
17
-
18
- respond_to do |format|
19
- format.html # show.html.erb
20
- format.json { render json: @post }
21
- end
22
- end
23
-
24
- # GET /posts/new
25
- # GET /posts/new.json
26
- def new
27
- @post = Post.new
28
-
29
- respond_to do |format|
30
- format.html # new.html.erb
31
- format.json { render json: @post }
32
- end
33
- end
34
-
35
- # GET /posts/1/edit
36
- def edit
37
- @post = Post.find(params[:id])
38
- end
39
-
40
- # POST /posts
41
- # POST /posts.json
42
- def create
43
- @post = Post.new(params[:post])
44
-
45
- respond_to do |format|
46
- if @post.save
47
- format.html { redirect_to @post, notice: 'Post was successfully created.' }
48
- format.json { render json: @post, status: :created, location: @post }
49
- else
50
- format.html { render action: "new" }
51
- format.json { render json: @post.errors, status: :unprocessable_entity }
52
- end
53
- end
54
- end
55
-
56
- # PUT /posts/1
57
- # PUT /posts/1.json
58
- def update
59
- @post = Post.find(params[:id])
60
-
61
- respond_to do |format|
62
- if @post.update_attributes(params[:post])
63
- format.html { redirect_to @post, notice: 'Post was successfully updated.' }
64
- format.json { head :no_content }
65
- else
66
- format.html { render action: "edit" }
67
- format.json { render json: @post.errors, status: :unprocessable_entity }
68
- end
69
- end
70
- end
71
-
72
- # DELETE /posts/1
73
- # DELETE /posts/1.json
74
- def destroy
75
- @post = Post.find(params[:id])
76
- @post.destroy
77
-
78
- respond_to do |format|
79
- format.html { redirect_to posts_url }
80
- format.json { head :no_content }
81
- end
82
- end
83
-
84
- def ololo
85
- end
86
- end
@@ -1,83 +0,0 @@
1
- class UsersController < ApplicationController
2
- # GET /users
3
- # GET /users.json
4
- def index
5
- @users = User.all
6
-
7
- respond_to do |format|
8
- format.html # index.html.erb
9
- format.json { render json: @users }
10
- end
11
- end
12
-
13
- # GET /users/1
14
- # GET /users/1.json
15
- def show
16
- @user = User.find(params[:id])
17
-
18
- respond_to do |format|
19
- format.html # show.html.erb
20
- format.json { render json: @user }
21
- end
22
- end
23
-
24
- # GET /users/new
25
- # GET /users/new.json
26
- def new
27
- @user = User.new
28
-
29
- respond_to do |format|
30
- format.html # new.html.erb
31
- format.json { render json: @user }
32
- end
33
- end
34
-
35
- # GET /users/1/edit
36
- def edit
37
- @user = User.find(params[:id])
38
- end
39
-
40
- # POST /users
41
- # POST /users.json
42
- def create
43
- @user = User.new(params[:user])
44
-
45
- respond_to do |format|
46
- if @user.save
47
- format.html { redirect_to @user, notice: 'User was successfully created.' }
48
- format.json { render json: @user, status: :created, location: @user }
49
- else
50
- format.html { render action: "new" }
51
- format.json { render json: @user.errors, status: :unprocessable_entity }
52
- end
53
- end
54
- end
55
-
56
- # PUT /users/1
57
- # PUT /users/1.json
58
- def update
59
- @user = User.find(params[:id])
60
-
61
- respond_to do |format|
62
- if @user.update_attributes(params[:user])
63
- format.html { redirect_to @user, notice: 'User was successfully updated.' }
64
- format.json { head :no_content }
65
- else
66
- format.html { render action: "edit" }
67
- format.json { render json: @user.errors, status: :unprocessable_entity }
68
- end
69
- end
70
- end
71
-
72
- # DELETE /users/1
73
- # DELETE /users/1.json
74
- def destroy
75
- @user = User.find(params[:id])
76
- @user.destroy
77
-
78
- respond_to do |format|
79
- format.html { redirect_to users_url }
80
- format.json { head :no_content }
81
- end
82
- end
83
- end