muck-comments 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -57,33 +57,9 @@ begin
57
57
  gemspec.add_dependency "muck-engine"
58
58
  gemspec.add_dependency "muck-users"
59
59
  end
60
- rescue LoadError
61
- puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
62
- end
63
-
64
- # rubyforge tasks
65
- begin
66
- require 'rake/contrib/sshpublisher'
67
- namespace :rubyforge do
68
-
69
- desc "Release gem and RDoc documentation to RubyForge"
70
- task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
71
-
72
- namespace :release do
73
- desc "Publish RDoc to RubyForge."
74
- task :docs => [:rdoc] do
75
- config = YAML.load(
76
- File.read(File.expand_path('~/.rubyforge/user-config.yml'))
77
- )
78
-
79
- host = "#{config['username']}@rubyforge.org"
80
- remote_dir = "/var/www/gforge-projects/muck-comments/"
81
- local_dir = 'rdoc'
82
-
83
- Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
84
- end
85
- end
60
+ Jeweler::RubyforgeTasks.new do |rubyforge|
61
+ rubyforge.doc_task = "rdoc"
86
62
  end
87
63
  rescue LoadError
88
- puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
64
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
89
65
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.1.8
@@ -10,6 +10,7 @@ class Muck::CommentsController < ApplicationController
10
10
  @comment = Comment.find(params[:id]) rescue nil
11
11
  @comments = @parent.comments.by_newest if !@parent.blank?
12
12
  @comments ||= @comment.children if !@comment.blank?
13
+ #@comments ||= Comment.by_newest
13
14
 
14
15
  respond_to do |format|
15
16
  format.html { render :template => 'comments/index', :layout => 'popup' }
@@ -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-comments}
5
- s.version = "0.1.7"
8
+ s.version = "0.1.8"
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-08}
12
+ s.date = %q{2009-08-12}
10
13
  s.description = %q{The comment engine for the muck system.}
11
14
  s.email = %q{justinball@gmail.com}
12
15
  s.extra_rdoc_files = [
@@ -371,7 +374,6 @@ Gem::Specification.new do |s|
371
374
  "test/rails_root/db/migrate/20090730044139_add_comment_cache.rb",
372
375
  "test/rails_root/db/migrate/20090730074858_add_comment_count_to_users.rb",
373
376
  "test/rails_root/db/migrate/20090730154102_allow_null_user.rb",
374
- "test/rails_root/db/schema.rb",
375
377
  "test/rails_root/features/step_definitions/comment_steps.rb",
376
378
  "test/rails_root/features/step_definitions/common_steps.rb",
377
379
  "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-comments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
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-08 00:00:00 -06:00
12
+ date: 2009-08-12 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -417,7 +417,6 @@ test_files:
417
417
  - test/rails_root/db/migrate/20090730044139_add_comment_cache.rb
418
418
  - test/rails_root/db/migrate/20090730074858_add_comment_count_to_users.rb
419
419
  - test/rails_root/db/migrate/20090730154102_allow_null_user.rb
420
- - test/rails_root/db/schema.rb
421
420
  - test/rails_root/features/step_definitions/comment_steps.rb
422
421
  - test/rails_root/features/step_definitions/common_steps.rb
423
422
  - test/rails_root/features/step_definitions/webrat_steps.rb
@@ -1,215 +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 => 20090730154102) 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 "comments", :force => true do |t|
41
- t.integer "commentable_id", :default => 0
42
- t.string "commentable_type", :limit => 15, :default => ""
43
- t.text "body"
44
- t.integer "user_id"
45
- t.integer "parent_id"
46
- t.integer "lft"
47
- t.integer "rgt"
48
- t.integer "is_denied", :default => 0, :null => false
49
- t.boolean "is_reviewed", :default => false
50
- t.datetime "created_at"
51
- t.datetime "updated_at"
52
- end
53
-
54
- add_index "comments", ["commentable_id", "commentable_type"], :name => "index_comments_on_commentable_id_and_commentable_type"
55
- add_index "comments", ["user_id"], :name => "index_comments_on_user_id"
56
-
57
- create_table "content_permissions", :force => true do |t|
58
- t.integer "content_id"
59
- t.integer "user_id"
60
- t.datetime "created_at"
61
- t.datetime "updated_at"
62
- end
63
-
64
- add_index "content_permissions", ["content_id", "user_id"], :name => "index_content_permissions_on_content_id_and_user_id"
65
-
66
- create_table "content_translations", :force => true do |t|
67
- t.integer "content_id"
68
- t.string "title"
69
- t.text "body"
70
- t.string "locale"
71
- t.boolean "user_edited", :default => false
72
- t.datetime "created_at"
73
- t.datetime "updated_at"
74
- end
75
-
76
- add_index "content_translations", ["content_id"], :name => "index_content_translations_on_content_id"
77
- add_index "content_translations", ["locale"], :name => "index_content_translations_on_locale"
78
-
79
- create_table "contents", :force => true do |t|
80
- t.integer "creator_id"
81
- t.string "title"
82
- t.text "body"
83
- t.string "locale"
84
- t.text "body_raw"
85
- t.integer "contentable_id"
86
- t.string "contentable_type"
87
- t.integer "parent_id"
88
- t.integer "lft"
89
- t.integer "rgt"
90
- t.boolean "is_public"
91
- t.string "state"
92
- t.datetime "created_at"
93
- t.datetime "updated_at"
94
- end
95
-
96
- add_index "contents", ["creator_id"], :name => "index_contents_on_creator_id"
97
- add_index "contents", ["parent_id"], :name => "index_contents_on_parent_id"
98
-
99
- create_table "countries", :force => true do |t|
100
- t.string "name", :limit => 128, :default => "", :null => false
101
- t.string "abbreviation", :limit => 3, :default => "", :null => false
102
- t.integer "sort", :default => 1000, :null => false
103
- end
104
-
105
- add_index "countries", ["abbreviation"], :name => "index_countries_on_abbreviation"
106
- add_index "countries", ["name"], :name => "index_countries_on_name"
107
-
108
- create_table "friends", :force => true do |t|
109
- t.integer "inviter_id"
110
- t.integer "invited_id"
111
- t.integer "status", :default => 0
112
- t.datetime "created_at"
113
- t.datetime "updated_at"
114
- end
115
-
116
- add_index "friends", ["invited_id", "inviter_id"], :name => "index_friends_on_invited_id_and_inviter_id"
117
- add_index "friends", ["inviter_id", "invited_id"], :name => "index_friends_on_inviter_id_and_invited_id"
118
-
119
- create_table "languages", :force => true do |t|
120
- t.string "name"
121
- t.string "english_name"
122
- t.string "locale"
123
- t.boolean "supported", :default => true
124
- t.integer "is_default", :default => 0
125
- end
126
-
127
- add_index "languages", ["locale"], :name => "index_languages_on_locale"
128
- add_index "languages", ["name"], :name => "index_languages_on_name"
129
-
130
- create_table "permissions", :force => true do |t|
131
- t.integer "role_id", :null => false
132
- t.integer "user_id", :null => false
133
- t.datetime "created_at"
134
- t.datetime "updated_at"
135
- end
136
-
137
- create_table "roles", :force => true do |t|
138
- t.string "rolename"
139
- t.datetime "created_at"
140
- t.datetime "updated_at"
141
- end
142
-
143
- create_table "slugs", :force => true do |t|
144
- t.string "name"
145
- t.integer "sluggable_id"
146
- t.integer "sequence", :default => 1, :null => false
147
- t.string "sluggable_type", :limit => 40
148
- t.string "scope", :limit => 40
149
- t.datetime "created_at"
150
- end
151
-
152
- add_index "slugs", ["name", "sluggable_type", "scope", "sequence"], :name => "index_slugs_on_name_and_sluggable_type_and_scope_and_sequence", :unique => true
153
- add_index "slugs", ["sluggable_id"], :name => "index_slugs_on_sluggable_id"
154
-
155
- create_table "states", :force => true do |t|
156
- t.string "name", :limit => 128, :default => "", :null => false
157
- t.string "abbreviation", :limit => 3, :default => "", :null => false
158
- t.integer "country_id", :limit => 8, :null => false
159
- end
160
-
161
- add_index "states", ["abbreviation"], :name => "index_states_on_abbreviation"
162
- add_index "states", ["country_id"], :name => "index_states_on_country_id"
163
- add_index "states", ["name"], :name => "index_states_on_name"
164
-
165
- create_table "taggings", :force => true do |t|
166
- t.integer "tag_id"
167
- t.integer "taggable_id"
168
- t.integer "tagger_id"
169
- t.string "tagger_type"
170
- t.string "taggable_type"
171
- t.string "context"
172
- t.datetime "created_at"
173
- end
174
-
175
- add_index "taggings", ["tag_id"], :name => "index_taggings_on_tag_id"
176
- add_index "taggings", ["taggable_id", "taggable_type", "context"], :name => "index_taggings_on_taggable_id_and_taggable_type_and_context"
177
-
178
- create_table "tags", :force => true do |t|
179
- t.string "name"
180
- end
181
-
182
- create_table "users", :force => true do |t|
183
- t.string "login"
184
- t.string "email"
185
- t.string "first_name"
186
- t.string "last_name"
187
- t.string "crypted_password"
188
- t.string "password_salt"
189
- t.string "persistence_token"
190
- t.string "single_access_token"
191
- t.string "perishable_token"
192
- t.integer "login_count", :default => 0, :null => false
193
- t.integer "failed_login_count", :default => 0, :null => false
194
- t.datetime "last_request_at"
195
- t.datetime "last_login_at"
196
- t.datetime "current_login_at"
197
- t.string "current_login_ip"
198
- t.string "last_login_ip"
199
- t.boolean "terms_of_service", :default => false, :null => false
200
- t.string "time_zone", :default => "UTC"
201
- t.datetime "disabled_at"
202
- t.datetime "activated_at"
203
- t.datetime "created_at"
204
- t.datetime "updated_at"
205
- t.integer "comment_count", :default => 0
206
- end
207
-
208
- add_index "users", ["email"], :name => "index_users_on_email"
209
- add_index "users", ["last_request_at"], :name => "index_users_on_last_request_at"
210
- add_index "users", ["login"], :name => "index_users_on_login"
211
- add_index "users", ["perishable_token"], :name => "index_users_on_perishable_token"
212
- add_index "users", ["persistence_token"], :name => "index_users_on_persistence_token"
213
- add_index "users", ["single_access_token"], :name => "index_users_on_single_access_token"
214
-
215
- end