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.
- data/README.md +1 -1
- data/lib/routing_data.rb +1 -1
- data/lib/routing_data/version.rb +1 -1
- metadata +2 -86
- data/dummy/Gemfile +0 -38
- data/dummy/README.rdoc +0 -261
- data/dummy/Rakefile +0 -7
- data/dummy/app/assets/images/rails.png +0 -0
- data/dummy/app/assets/javascripts/application.js +0 -14
- data/dummy/app/assets/javascripts/blogs.js.coffee +0 -3
- data/dummy/app/assets/javascripts/categories.js.coffee +0 -3
- data/dummy/app/assets/javascripts/home.js.coffee +0 -3
- data/dummy/app/assets/javascripts/posts.js.coffee +0 -3
- data/dummy/app/assets/javascripts/users.js.coffee +0 -3
- data/dummy/app/assets/stylesheets/application.css +0 -13
- data/dummy/app/assets/stylesheets/blogs.css.scss +0 -3
- data/dummy/app/assets/stylesheets/categories.css.scss +0 -3
- data/dummy/app/assets/stylesheets/home.css.scss +0 -3
- data/dummy/app/assets/stylesheets/posts.css.scss +0 -3
- data/dummy/app/assets/stylesheets/scaffolds.css.scss +0 -69
- data/dummy/app/assets/stylesheets/users.css.scss +0 -3
- data/dummy/app/controllers/application_controller.rb +0 -3
- data/dummy/app/controllers/blogs_controller.rb +0 -83
- data/dummy/app/controllers/categories_controller.rb +0 -83
- data/dummy/app/controllers/home_controller.rb +0 -5
- data/dummy/app/controllers/posts_controller.rb +0 -86
- data/dummy/app/controllers/users_controller.rb +0 -83
- data/dummy/app/helpers/application_helper.rb +0 -2
- data/dummy/app/helpers/blogs_helper.rb +0 -2
- data/dummy/app/helpers/categories_helper.rb +0 -2
- data/dummy/app/helpers/home_helper.rb +0 -2
- data/dummy/app/helpers/posts_helper.rb +0 -2
- data/dummy/app/helpers/users_helper.rb +0 -2
- data/dummy/app/models/blog.rb +0 -6
- data/dummy/app/models/category.rb +0 -5
- data/dummy/app/models/post.rb +0 -11
- data/dummy/app/models/user.rb +0 -7
- data/dummy/app/views/blogs/_form.html.erb +0 -33
- data/dummy/app/views/blogs/edit.html.erb +0 -6
- data/dummy/app/views/blogs/index.html.erb +0 -29
- data/dummy/app/views/blogs/new.html.erb +0 -5
- data/dummy/app/views/blogs/show.html.erb +0 -25
- data/dummy/app/views/categories/_form.html.erb +0 -25
- data/dummy/app/views/categories/edit.html.erb +0 -6
- data/dummy/app/views/categories/index.html.erb +0 -25
- data/dummy/app/views/categories/new.html.erb +0 -5
- data/dummy/app/views/categories/show.html.erb +0 -15
- data/dummy/app/views/home/index.html.erb +0 -29
- data/dummy/app/views/layouts/application.html.erb +0 -15
- data/dummy/app/views/posts/_form.html.erb +0 -37
- data/dummy/app/views/posts/edit.html.erb +0 -6
- data/dummy/app/views/posts/index.html.erb +0 -29
- data/dummy/app/views/posts/new.html.erb +0 -5
- data/dummy/app/views/posts/show.html.erb +0 -25
- data/dummy/app/views/users/_form.html.erb +0 -25
- data/dummy/app/views/users/edit.html.erb +0 -6
- data/dummy/app/views/users/index.html.erb +0 -25
- data/dummy/app/views/users/new.html.erb +0 -5
- data/dummy/app/views/users/show.html.erb +0 -15
- data/dummy/config.ru +0 -4
- data/dummy/config/application.rb +0 -68
- data/dummy/config/boot.rb +0 -6
- data/dummy/config/database.yml +0 -25
- data/dummy/config/environment.rb +0 -5
- data/dummy/config/environments/development.rb +0 -39
- data/dummy/config/environments/production.rb +0 -67
- data/dummy/config/environments/test.rb +0 -37
- data/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/dummy/config/initializers/inflections.rb +0 -15
- data/dummy/config/initializers/mime_types.rb +0 -5
- data/dummy/config/initializers/secret_token.rb +0 -7
- data/dummy/config/initializers/session_store.rb +0 -8
- data/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/dummy/config/locales/en.yml +0 -5
- data/dummy/config/routes.rb +0 -10
- data/dummy/db/development.sqlite3 +0 -0
- data/dummy/db/migrate/20121118170847_create_users.rb +0 -11
- data/dummy/db/migrate/20121118170945_create_posts.rb +0 -13
- data/dummy/db/migrate/20121118171015_create_categories.rb +0 -10
- data/dummy/db/migrate/20121118171532_create_blogs.rb +0 -12
- data/dummy/db/schema.rb +0 -50
- data/dummy/db/seeds.rb +0 -7
- data/dummy/public/404.html +0 -26
- data/dummy/public/422.html +0 -26
- data/dummy/public/500.html +0 -25
- data/dummy/public/favicon.ico +0 -0
- data/dummy/public/robots.txt +0 -5
- data/dummy/script/rails +0 -6
@@ -1,12 +0,0 @@
|
|
1
|
-
class CreateBlogs < ActiveRecord::Migration
|
2
|
-
def change
|
3
|
-
create_table :blogs do |t|
|
4
|
-
t.integer :admin_id, null: false
|
5
|
-
t.string :name, null: false
|
6
|
-
t.string :description, null: false
|
7
|
-
t.integer :posts_count, null: false, default: 0
|
8
|
-
|
9
|
-
t.timestamps
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
data/dummy/db/schema.rb
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
# This file is auto-generated from the current state of the database. Instead
|
3
|
-
# of editing this file, please use the migrations feature of Active Record to
|
4
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
-
#
|
6
|
-
# Note that this schema.rb definition is the authoritative source for your
|
7
|
-
# database schema. If you need to create the application database on another
|
8
|
-
# system, you should be using db:schema:load, not running all the migrations
|
9
|
-
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
-
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
-
#
|
12
|
-
# It's strongly recommended to check this file into your version control system.
|
13
|
-
|
14
|
-
ActiveRecord::Schema.define(:version => 20121118171532) do
|
15
|
-
|
16
|
-
create_table "blogs", :force => true do |t|
|
17
|
-
t.integer "admin_id", :null => false
|
18
|
-
t.string "name", :null => false
|
19
|
-
t.string "description", :null => false
|
20
|
-
t.integer "posts_count", :default => 0, :null => false
|
21
|
-
t.datetime "created_at", :null => false
|
22
|
-
t.datetime "updated_at", :null => false
|
23
|
-
end
|
24
|
-
|
25
|
-
create_table "categories", :force => true do |t|
|
26
|
-
t.string "name", :null => false
|
27
|
-
t.integer "posts_count", :default => 0, :null => false
|
28
|
-
t.datetime "created_at", :null => false
|
29
|
-
t.datetime "updated_at", :null => false
|
30
|
-
end
|
31
|
-
|
32
|
-
create_table "posts", :force => true do |t|
|
33
|
-
t.string "title", :null => false
|
34
|
-
t.text "content", :null => false
|
35
|
-
t.integer "author_id", :null => false
|
36
|
-
t.integer "category_id", :null => false
|
37
|
-
t.integer "blog_id", :null => false
|
38
|
-
t.datetime "created_at", :null => false
|
39
|
-
t.datetime "updated_at", :null => false
|
40
|
-
end
|
41
|
-
|
42
|
-
create_table "users", :force => true do |t|
|
43
|
-
t.string "name", :null => false
|
44
|
-
t.string "email", :null => false
|
45
|
-
t.integer "role", :default => 0, :null => false
|
46
|
-
t.datetime "created_at", :null => false
|
47
|
-
t.datetime "updated_at", :null => false
|
48
|
-
end
|
49
|
-
|
50
|
-
end
|
data/dummy/db/seeds.rb
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
# This file should contain all the record creation needed to seed the database with its default values.
|
2
|
-
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
|
3
|
-
#
|
4
|
-
# Examples:
|
5
|
-
#
|
6
|
-
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
7
|
-
# Mayor.create(name: 'Emanuel', city: cities.first)
|
data/dummy/public/404.html
DELETED
@@ -1,26 +0,0 @@
|
|
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>
|
data/dummy/public/422.html
DELETED
@@ -1,26 +0,0 @@
|
|
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>
|
data/dummy/public/500.html
DELETED
@@ -1,25 +0,0 @@
|
|
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>
|
data/dummy/public/favicon.ico
DELETED
File without changes
|
data/dummy/public/robots.txt
DELETED
data/dummy/script/rails
DELETED
@@ -1,6 +0,0 @@
|
|
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'
|