wheels 0.0.30 → 0.0.31

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.30
1
+ 0.0.31
@@ -12,6 +12,5 @@ class AttachmentsController < InheritedResources::Base
12
12
  def create
13
13
  create! {collection_url}
14
14
  end
15
-
16
15
  end
17
16
 
@@ -10,8 +10,6 @@ module PagesHelper
10
10
  pages.map{|p| [p.title, p.id]}
11
11
  end
12
12
 
13
-
14
-
15
13
  ######################################################
16
14
  ##
17
15
  ##
@@ -5,8 +5,6 @@
5
5
  - resource.errors.full_messages.each do |msg|
6
6
  %li= msg
7
7
 
8
- != S3Provider.new(:key=>"attachments/#{current_user.id}").form_fields
9
-
10
8
  = form_for [@page, Attachment.new(:page=>@page)], :remote=>true, :html=>{:multipart=>true, :id=>"upload_form"} do |f|
11
9
  = f.file_field :file, :id=>"file_input"
12
10
  = f.hidden_field :file_file_name, :id=>"file_file_name_input"
@@ -0,0 +1,23 @@
1
+ class CreateAccessControlEntries < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :access_control_entries do |t|
4
+ t.string :resource_class_name
5
+ t.integer :resource_id
6
+ t.integer :user_id
7
+ t.integer :role_id
8
+ t.boolean :can
9
+ t.string :verb
10
+ t.string :serialized_options
11
+ t.timestamps
12
+ end
13
+ add_index :access_control_entries, :resource_class_name
14
+ add_index :access_control_entries, [:resource_class_name, :resource_id]
15
+ add_index :access_control_entries, :user_id
16
+ add_index :access_control_entries, :role_id
17
+ end
18
+
19
+ def self.down
20
+ drop_table :access_control_entries
21
+ end
22
+ end
23
+
@@ -0,0 +1,21 @@
1
+ class CreateAttachments < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :attachments do |t|
4
+ t.string :file_file_name
5
+ t.string :file_content_type
6
+ t.integer :file_file_size
7
+ t.datetime :file_updated_at
8
+ t.integer :page_id
9
+ t.string :resource_class_name
10
+ t.integer :resource_id
11
+
12
+ t.timestamps
13
+ end
14
+ add_index :attachments, [:resource_class_name, :resource_id]
15
+ end
16
+
17
+ def self.down
18
+ drop_table :attachments
19
+ end
20
+ end
21
+
@@ -0,0 +1,14 @@
1
+ class CreateDiscussions < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :discussions do |t|
4
+ t.string :subject
5
+ t.integer :forum_id
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+
11
+ def self.down
12
+ drop_table :discussions
13
+ end
14
+ end
@@ -0,0 +1,15 @@
1
+ class CreateForumMessages < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :forum_messages do |t|
4
+ t.integer :author_id
5
+ t.text :message
6
+ t.integer :discussion_id
7
+ t.timestamps
8
+ end
9
+ end
10
+
11
+ def self.down
12
+ drop_table :forum_messages
13
+ end
14
+ end
15
+
@@ -0,0 +1,13 @@
1
+ class CreateForums < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :forums do |t|
4
+ t.string :name
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+
10
+ def self.down
11
+ drop_table :forums
12
+ end
13
+ end
@@ -0,0 +1,16 @@
1
+ class CreatePages < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :pages do |t|
4
+ t.string :title
5
+ t.text :body
6
+ t.boolean :show_title, :default => true
7
+ t.integer :parent_id
8
+ t.timestamps
9
+ end
10
+ end
11
+
12
+ def self.down
13
+ drop_table :pages
14
+ end
15
+ end
16
+
@@ -35,16 +35,22 @@ run "git submodule add -b rails3 http://github.com/mislav/will_paginate.git vend
35
35
 
36
36
  stategies << lambda do
37
37
  generate "devise:install"
38
- generate "devise User"
38
+ generate "devise User"; sleep 1
39
39
  migration_template 'db/migrate/add_fields_to_users.rb', 'db/migrate/add_fields_to_users'
40
- generate "acts_as_taggable_on:migration"
40
+ generate "acts_as_taggable_on:migration"; sleep 1
41
+
42
+ migration_template "db/migrate/create_access_control_entries.rb", "db/migrate/create_access_control_entries"; sleep 1
43
+ migration_template "db/migrate/create_attachments.rb", "db/migrate/create_attachments"; sleep 1
41
44
  migration_template 'db/migrate/create_blogs.rb', 'db/migrate/create_blogs'; sleep 1
45
+ migration_template "db/migrate/create_discussions.rb", "db/migrate/create_discussions"; sleep 1
46
+ migration_template "db/migrate/create_forums.rb", "db/migrate/create_forums"; sleep 1
42
47
  migration_template 'db/migrate/create_galleries.rb', 'db/migrate/create_galleries'; sleep 1
43
48
  migration_template 'db/migrate/create_images.rb', 'db/migrate/create_images'; sleep 1
49
+ migration_template "db/migrate/create_pages.rb", "db/migrate/create_pages"; sleep 1
44
50
  migration_template 'db/migrate/create_profiles.rb', 'db/migrate/create_profiles'; sleep 1
45
- migration_template 'db/migrate/create_roles.rb', 'db/migrate/create_roles'
46
- migration_template 'db/migrate/insert_admin_user_and_roles.rb',
47
- 'db/migrate/insert_admin_user_and_roles'
51
+ migration_template 'db/migrate/create_roles.rb', 'db/migrate/create_roles'; sleep 1
52
+ migration_template 'db/migrate/insert_admin_user_and_roles.rb', 'db/migrate/insert_admin_user_and_roles'; sleep 1
53
+ plugin 'hassle', :git=>"http://github.com/pedro/hassle.git"
48
54
 
49
55
  # create wheels_resources first so that devise_for :users will appear first in routes.rb
50
56
  route "wheels_resources"
data/wheels.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wheels}
8
- s.version = "0.0.30"
8
+ s.version = "0.0.31"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tyler Gannon"]
12
- s.date = %q{2010-08-20}
12
+ s.date = %q{2010-08-22}
13
13
  s.description = %q{Call rails generate wheels.}
14
14
  s.email = %q{tgannon@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -148,9 +148,15 @@ Gem::Specification.new do |s|
148
148
  "app/views/users/index.html.haml",
149
149
  "config/amazon_s3.yml",
150
150
  "db/migrate/add_fields_to_users.rb",
151
+ "db/migrate/create_access_control_entries.rb",
152
+ "db/migrate/create_attachments.rb",
151
153
  "db/migrate/create_blogs.rb",
154
+ "db/migrate/create_discussions.rb",
155
+ "db/migrate/create_forum_messages.rb",
156
+ "db/migrate/create_forums.rb",
152
157
  "db/migrate/create_galleries.rb",
153
158
  "db/migrate/create_images.rb",
159
+ "db/migrate/create_pages.rb",
154
160
  "db/migrate/create_profiles.rb",
155
161
  "db/migrate/create_roles.rb",
156
162
  "db/migrate/insert_admin_user_and_roles.rb",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wheels
3
3
  version: !ruby/object:Gem::Version
4
- hash: 35
4
+ hash: 33
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 30
10
- version: 0.0.30
9
+ - 31
10
+ version: 0.0.31
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tyler Gannon
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-20 00:00:00 -07:00
18
+ date: 2010-08-22 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -173,9 +173,15 @@ files:
173
173
  - app/views/users/index.html.haml
174
174
  - config/amazon_s3.yml
175
175
  - db/migrate/add_fields_to_users.rb
176
+ - db/migrate/create_access_control_entries.rb
177
+ - db/migrate/create_attachments.rb
176
178
  - db/migrate/create_blogs.rb
179
+ - db/migrate/create_discussions.rb
180
+ - db/migrate/create_forum_messages.rb
181
+ - db/migrate/create_forums.rb
177
182
  - db/migrate/create_galleries.rb
178
183
  - db/migrate/create_images.rb
184
+ - db/migrate/create_pages.rb
179
185
  - db/migrate/create_profiles.rb
180
186
  - db/migrate/create_roles.rb
181
187
  - db/migrate/insert_admin_user_and_roles.rb