muck-blogs 0.1.1 → 0.1.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/Rakefile +3 -27
- data/VERSION +1 -1
- data/muck-blogs.gemspec +5 -3
- metadata +2 -3
- data/test/rails_root/db/schema.rb +0 -226
data/Rakefile
CHANGED
|
@@ -58,33 +58,9 @@ begin
|
|
|
58
58
|
gemspec.add_dependency "muck-users"
|
|
59
59
|
gemspec.add_dependency "muck-contents"
|
|
60
60
|
end
|
|
61
|
+
Jeweler::RubyforgeTasks.new do |rubyforge|
|
|
62
|
+
rubyforge.doc_task = "rdoc"
|
|
63
|
+
end
|
|
61
64
|
rescue LoadError
|
|
62
65
|
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
|
63
66
|
end
|
|
64
|
-
|
|
65
|
-
# rubyforge tasks
|
|
66
|
-
begin
|
|
67
|
-
require 'rake/contrib/sshpublisher'
|
|
68
|
-
namespace :rubyforge do
|
|
69
|
-
|
|
70
|
-
desc "Release gem and RDoc documentation to RubyForge"
|
|
71
|
-
task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
|
|
72
|
-
|
|
73
|
-
namespace :release do
|
|
74
|
-
desc "Publish RDoc to RubyForge."
|
|
75
|
-
task :docs => [:rdoc] do
|
|
76
|
-
config = YAML.load(
|
|
77
|
-
File.read(File.expand_path('~/.rubyforge/user-config.yml'))
|
|
78
|
-
)
|
|
79
|
-
|
|
80
|
-
host = "#{config['username']}@rubyforge.org"
|
|
81
|
-
remote_dir = "/var/www/gforge-projects/muck-blogs/"
|
|
82
|
-
local_dir = 'rdoc'
|
|
83
|
-
|
|
84
|
-
Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
|
|
85
|
-
end
|
|
86
|
-
end
|
|
87
|
-
end
|
|
88
|
-
rescue LoadError
|
|
89
|
-
puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
|
|
90
|
-
end
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.2
|
data/muck-blogs.gemspec
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
# Generated by jeweler
|
|
2
|
+
# DO NOT EDIT THIS FILE
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
|
1
4
|
# -*- encoding: utf-8 -*-
|
|
2
5
|
|
|
3
6
|
Gem::Specification.new do |s|
|
|
4
7
|
s.name = %q{muck-blogs}
|
|
5
|
-
s.version = "0.1.
|
|
8
|
+
s.version = "0.1.2"
|
|
6
9
|
|
|
7
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
8
11
|
s.authors = ["Justin Ball"]
|
|
9
|
-
s.date = %q{2009-08-
|
|
12
|
+
s.date = %q{2009-08-12}
|
|
10
13
|
s.description = %q{The blog engine for the muck system.}
|
|
11
14
|
s.email = %q{justinball@gmail.com}
|
|
12
15
|
s.extra_rdoc_files = [
|
|
@@ -607,7 +610,6 @@ Gem::Specification.new do |s|
|
|
|
607
610
|
"test/rails_root/db/migrate/20090730154102_allow_null_user.rb",
|
|
608
611
|
"test/rails_root/db/migrate/20090806230610_add_layout_to_contents.rb",
|
|
609
612
|
"test/rails_root/db/migrate/20090808165453_create_blogs.rb",
|
|
610
|
-
"test/rails_root/db/schema.rb",
|
|
611
613
|
"test/rails_root/features/step_definitions/comment_steps.rb",
|
|
612
614
|
"test/rails_root/features/step_definitions/common_steps.rb",
|
|
613
615
|
"test/rails_root/features/step_definitions/webrat_steps.rb",
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: muck-blogs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Ball
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-08-
|
|
12
|
+
date: 2009-08-12 00:00:00 -06:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
@@ -663,7 +663,6 @@ test_files:
|
|
|
663
663
|
- test/rails_root/db/migrate/20090730154102_allow_null_user.rb
|
|
664
664
|
- test/rails_root/db/migrate/20090806230610_add_layout_to_contents.rb
|
|
665
665
|
- test/rails_root/db/migrate/20090808165453_create_blogs.rb
|
|
666
|
-
- test/rails_root/db/schema.rb
|
|
667
666
|
- test/rails_root/features/step_definitions/comment_steps.rb
|
|
668
667
|
- test/rails_root/features/step_definitions/common_steps.rb
|
|
669
668
|
- test/rails_root/features/step_definitions/webrat_steps.rb
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
# This file is auto-generated from the current state of the database. Instead of editing this file,
|
|
2
|
-
# please use the migrations feature of Active Record to incrementally modify your database, and
|
|
3
|
-
# then regenerate this schema definition.
|
|
4
|
-
#
|
|
5
|
-
# Note that this schema.rb definition is the authoritative source for your database schema. If you need
|
|
6
|
-
# to create the application database on another system, you should be using db:schema:load, not running
|
|
7
|
-
# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
|
8
|
-
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
|
9
|
-
#
|
|
10
|
-
# It's strongly recommended to check this file into your version control system.
|
|
11
|
-
|
|
12
|
-
ActiveRecord::Schema.define(:version => 20090808165453) do
|
|
13
|
-
|
|
14
|
-
create_table "activities", :force => true do |t|
|
|
15
|
-
t.integer "item_id"
|
|
16
|
-
t.string "item_type"
|
|
17
|
-
t.string "template"
|
|
18
|
-
t.integer "source_id"
|
|
19
|
-
t.string "source_type"
|
|
20
|
-
t.text "content"
|
|
21
|
-
t.string "title"
|
|
22
|
-
t.boolean "is_status_update", :default => false
|
|
23
|
-
t.boolean "is_public", :default => true
|
|
24
|
-
t.datetime "created_at"
|
|
25
|
-
t.datetime "updated_at"
|
|
26
|
-
t.integer "comment_count", :default => 0
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
add_index "activities", ["item_id", "item_type"], :name => "index_activities_on_item_id_and_item_type"
|
|
30
|
-
|
|
31
|
-
create_table "activity_feeds", :force => true do |t|
|
|
32
|
-
t.integer "activity_id"
|
|
33
|
-
t.integer "ownable_id"
|
|
34
|
-
t.string "ownable_type"
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
add_index "activity_feeds", ["activity_id"], :name => "index_activity_feeds_on_activity_id"
|
|
38
|
-
add_index "activity_feeds", ["ownable_id", "ownable_type"], :name => "index_activity_feeds_on_ownable_id_and_ownable_type"
|
|
39
|
-
|
|
40
|
-
create_table "blogs", :force => true do |t|
|
|
41
|
-
t.integer "blogable_id", :default => 0
|
|
42
|
-
t.string "blogable_type", :default => ""
|
|
43
|
-
t.string "title"
|
|
44
|
-
t.datetime "created_at"
|
|
45
|
-
t.datetime "updated_at"
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
add_index "blogs", ["blogable_id", "blogable_type"], :name => "index_blogs_on_blogable_id_and_blogable_type"
|
|
49
|
-
|
|
50
|
-
create_table "comments", :force => true do |t|
|
|
51
|
-
t.integer "commentable_id", :default => 0
|
|
52
|
-
t.string "commentable_type", :limit => 15, :default => ""
|
|
53
|
-
t.text "body"
|
|
54
|
-
t.integer "user_id"
|
|
55
|
-
t.integer "parent_id"
|
|
56
|
-
t.integer "lft"
|
|
57
|
-
t.integer "rgt"
|
|
58
|
-
t.integer "is_denied", :default => 0, :null => false
|
|
59
|
-
t.boolean "is_reviewed", :default => false
|
|
60
|
-
t.datetime "created_at"
|
|
61
|
-
t.datetime "updated_at"
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
add_index "comments", ["commentable_id", "commentable_type"], :name => "index_comments_on_commentable_id_and_commentable_type"
|
|
65
|
-
add_index "comments", ["user_id"], :name => "index_comments_on_user_id"
|
|
66
|
-
|
|
67
|
-
create_table "content_permissions", :force => true do |t|
|
|
68
|
-
t.integer "content_id"
|
|
69
|
-
t.integer "user_id"
|
|
70
|
-
t.datetime "created_at"
|
|
71
|
-
t.datetime "updated_at"
|
|
72
|
-
end
|
|
73
|
-
|
|
74
|
-
add_index "content_permissions", ["content_id", "user_id"], :name => "index_content_permissions_on_content_id_and_user_id"
|
|
75
|
-
|
|
76
|
-
create_table "content_translations", :force => true do |t|
|
|
77
|
-
t.integer "content_id"
|
|
78
|
-
t.string "title"
|
|
79
|
-
t.text "body"
|
|
80
|
-
t.string "locale"
|
|
81
|
-
t.boolean "user_edited", :default => false
|
|
82
|
-
t.datetime "created_at"
|
|
83
|
-
t.datetime "updated_at"
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
add_index "content_translations", ["content_id"], :name => "index_content_translations_on_content_id"
|
|
87
|
-
add_index "content_translations", ["locale"], :name => "index_content_translations_on_locale"
|
|
88
|
-
|
|
89
|
-
create_table "contents", :force => true do |t|
|
|
90
|
-
t.integer "creator_id"
|
|
91
|
-
t.string "title"
|
|
92
|
-
t.text "body"
|
|
93
|
-
t.string "locale"
|
|
94
|
-
t.text "body_raw"
|
|
95
|
-
t.integer "contentable_id"
|
|
96
|
-
t.string "contentable_type"
|
|
97
|
-
t.integer "parent_id"
|
|
98
|
-
t.integer "lft"
|
|
99
|
-
t.integer "rgt"
|
|
100
|
-
t.boolean "is_public"
|
|
101
|
-
t.string "state"
|
|
102
|
-
t.datetime "created_at"
|
|
103
|
-
t.datetime "updated_at"
|
|
104
|
-
t.string "layout"
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
add_index "contents", ["creator_id"], :name => "index_contents_on_creator_id"
|
|
108
|
-
add_index "contents", ["parent_id"], :name => "index_contents_on_parent_id"
|
|
109
|
-
|
|
110
|
-
create_table "countries", :force => true do |t|
|
|
111
|
-
t.string "name", :limit => 128, :default => "", :null => false
|
|
112
|
-
t.string "abbreviation", :limit => 3, :default => "", :null => false
|
|
113
|
-
t.integer "sort", :default => 1000, :null => false
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
add_index "countries", ["abbreviation"], :name => "index_countries_on_abbreviation"
|
|
117
|
-
add_index "countries", ["name"], :name => "index_countries_on_name"
|
|
118
|
-
|
|
119
|
-
create_table "friends", :force => true do |t|
|
|
120
|
-
t.integer "inviter_id"
|
|
121
|
-
t.integer "invited_id"
|
|
122
|
-
t.integer "status", :default => 0
|
|
123
|
-
t.datetime "created_at"
|
|
124
|
-
t.datetime "updated_at"
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
add_index "friends", ["invited_id", "inviter_id"], :name => "index_friends_on_invited_id_and_inviter_id"
|
|
128
|
-
add_index "friends", ["inviter_id", "invited_id"], :name => "index_friends_on_inviter_id_and_invited_id"
|
|
129
|
-
|
|
130
|
-
create_table "languages", :force => true do |t|
|
|
131
|
-
t.string "name"
|
|
132
|
-
t.string "english_name"
|
|
133
|
-
t.string "locale"
|
|
134
|
-
t.boolean "supported", :default => true
|
|
135
|
-
t.integer "is_default", :default => 0
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
add_index "languages", ["locale"], :name => "index_languages_on_locale"
|
|
139
|
-
add_index "languages", ["name"], :name => "index_languages_on_name"
|
|
140
|
-
|
|
141
|
-
create_table "permissions", :force => true do |t|
|
|
142
|
-
t.integer "role_id", :null => false
|
|
143
|
-
t.integer "user_id", :null => false
|
|
144
|
-
t.datetime "created_at"
|
|
145
|
-
t.datetime "updated_at"
|
|
146
|
-
end
|
|
147
|
-
|
|
148
|
-
create_table "roles", :force => true do |t|
|
|
149
|
-
t.string "rolename"
|
|
150
|
-
t.datetime "created_at"
|
|
151
|
-
t.datetime "updated_at"
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
create_table "slugs", :force => true do |t|
|
|
155
|
-
t.string "name"
|
|
156
|
-
t.integer "sluggable_id"
|
|
157
|
-
t.integer "sequence", :default => 1, :null => false
|
|
158
|
-
t.string "sluggable_type", :limit => 40
|
|
159
|
-
t.string "scope", :limit => 40
|
|
160
|
-
t.datetime "created_at"
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
add_index "slugs", ["name", "sluggable_type", "scope", "sequence"], :name => "index_slugs_on_name_and_sluggable_type_and_scope_and_sequence", :unique => true
|
|
164
|
-
add_index "slugs", ["sluggable_id"], :name => "index_slugs_on_sluggable_id"
|
|
165
|
-
|
|
166
|
-
create_table "states", :force => true do |t|
|
|
167
|
-
t.string "name", :limit => 128, :default => "", :null => false
|
|
168
|
-
t.string "abbreviation", :limit => 3, :default => "", :null => false
|
|
169
|
-
t.integer "country_id", :limit => 8, :null => false
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
add_index "states", ["abbreviation"], :name => "index_states_on_abbreviation"
|
|
173
|
-
add_index "states", ["country_id"], :name => "index_states_on_country_id"
|
|
174
|
-
add_index "states", ["name"], :name => "index_states_on_name"
|
|
175
|
-
|
|
176
|
-
create_table "taggings", :force => true do |t|
|
|
177
|
-
t.integer "tag_id"
|
|
178
|
-
t.integer "taggable_id"
|
|
179
|
-
t.integer "tagger_id"
|
|
180
|
-
t.string "tagger_type"
|
|
181
|
-
t.string "taggable_type"
|
|
182
|
-
t.string "context"
|
|
183
|
-
t.datetime "created_at"
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
add_index "taggings", ["tag_id"], :name => "index_taggings_on_tag_id"
|
|
187
|
-
add_index "taggings", ["taggable_id", "taggable_type", "context"], :name => "index_taggings_on_taggable_id_and_taggable_type_and_context"
|
|
188
|
-
|
|
189
|
-
create_table "tags", :force => true do |t|
|
|
190
|
-
t.string "name"
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
create_table "users", :force => true do |t|
|
|
194
|
-
t.string "login"
|
|
195
|
-
t.string "email"
|
|
196
|
-
t.string "first_name"
|
|
197
|
-
t.string "last_name"
|
|
198
|
-
t.string "crypted_password"
|
|
199
|
-
t.string "password_salt"
|
|
200
|
-
t.string "persistence_token"
|
|
201
|
-
t.string "single_access_token"
|
|
202
|
-
t.string "perishable_token"
|
|
203
|
-
t.integer "login_count", :default => 0, :null => false
|
|
204
|
-
t.integer "failed_login_count", :default => 0, :null => false
|
|
205
|
-
t.datetime "last_request_at"
|
|
206
|
-
t.datetime "last_login_at"
|
|
207
|
-
t.datetime "current_login_at"
|
|
208
|
-
t.string "current_login_ip"
|
|
209
|
-
t.string "last_login_ip"
|
|
210
|
-
t.boolean "terms_of_service", :default => false, :null => false
|
|
211
|
-
t.string "time_zone", :default => "UTC"
|
|
212
|
-
t.datetime "disabled_at"
|
|
213
|
-
t.datetime "activated_at"
|
|
214
|
-
t.datetime "created_at"
|
|
215
|
-
t.datetime "updated_at"
|
|
216
|
-
t.integer "comment_count", :default => 0
|
|
217
|
-
end
|
|
218
|
-
|
|
219
|
-
add_index "users", ["email"], :name => "index_users_on_email"
|
|
220
|
-
add_index "users", ["last_request_at"], :name => "index_users_on_last_request_at"
|
|
221
|
-
add_index "users", ["login"], :name => "index_users_on_login"
|
|
222
|
-
add_index "users", ["perishable_token"], :name => "index_users_on_perishable_token"
|
|
223
|
-
add_index "users", ["persistence_token"], :name => "index_users_on_persistence_token"
|
|
224
|
-
add_index "users", ["single_access_token"], :name => "index_users_on_single_access_token"
|
|
225
|
-
|
|
226
|
-
end
|