muck-activities 0.1.17 → 0.1.18

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 CHANGED
@@ -57,44 +57,10 @@ begin
57
57
  gemspec.add_dependency "muck-engine"
58
58
  gemspec.add_dependency "muck-users"
59
59
  gemspec.add_dependency "muck-comments"
60
- # gemspec.files.include %w(
61
- # tasks/*
62
- # db/migrate/*.rb
63
- # app/**/**/**/*
64
- # config/*
65
- # locales/*
66
- # rails/*
67
- # test/*
68
- # lib/**/*
69
- # public/**/* )
60
+ end
61
+ Jeweler::RubyforgeTasks.new do |rubyforge|
62
+ rubyforge.doc_task = "rdoc"
70
63
  end
71
64
  rescue LoadError
72
65
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
73
66
  end
74
-
75
- # rubyforge tasks
76
- begin
77
- require 'rake/contrib/sshpublisher'
78
- namespace :rubyforge do
79
-
80
- desc "Release gem and RDoc documentation to RubyForge"
81
- task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
82
-
83
- namespace :release do
84
- desc "Publish RDoc to RubyForge."
85
- task :docs => [:rdoc] do
86
- config = YAML.load(
87
- File.read(File.expand_path('~/.rubyforge/user-config.yml'))
88
- )
89
-
90
- host = "#{config['username']}@rubyforge.org"
91
- remote_dir = "/var/www/gforge-projects/muck-activities/"
92
- local_dir = 'rdoc'
93
-
94
- Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
95
- end
96
- end
97
- end
98
- rescue LoadError
99
- puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
100
- end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.17
1
+ 0.1.18
@@ -43,7 +43,7 @@ class Muck::ActivitiesController < ApplicationController
43
43
  page << 'jQuery("#submit_status").show();'
44
44
  page << 'jQuery("#progress-bar").hide();'
45
45
  page << 'setup_submit_delete();'
46
- page << 'apply_comment_methods();'
46
+ page << 'apply_activity_ajax_methods();'
47
47
  end
48
48
  end
49
49
  format.html do
@@ -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-activities}
5
- s.version = "0.1.17"
8
+ s.version = "0.1.18"
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{Activity engine for the muck system.}
11
14
  s.email = %q{justinball@gmail.com}
12
15
  s.extra_rdoc_files = [
@@ -344,7 +347,6 @@ Gem::Specification.new do |s|
344
347
  "test/rails_root/db/migrate/20090613173314_create_comments.rb",
345
348
  "test/rails_root/db/migrate/20090730044139_add_comment_cache.rb",
346
349
  "test/rails_root/db/migrate/20090803185323_create_shares.rb",
347
- "test/rails_root/db/schema.rb",
348
350
  "test/rails_root/features/step_definitions/webrat_steps.rb",
349
351
  "test/rails_root/features/support/env.rb",
350
352
  "test/rails_root/features/support/paths.rb",
@@ -1,8 +1,8 @@
1
1
  jQuery(document).ready(function() {
2
- apply_comment_methods();
2
+ apply_activity_ajax_methods();
3
3
  });
4
4
 
5
- function apply_comment_methods(){
5
+ function apply_activity_ajax_methods(){
6
6
  setup_comment_submit();
7
7
  hide_comment_boxes();
8
8
  apply_comment_hover();
@@ -57,7 +57,7 @@ function setup_comment_submit(){
57
57
  comment_box.removeClass('activity-no-comments');
58
58
  comment_box.addClass('activity-has-comments');
59
59
  comment_box.find('textarea').show();
60
- apply_comment_methods();
60
+ apply_activity_ajax_methods();
61
61
  }
62
62
  });
63
63
  return false;
@@ -1,8 +1,8 @@
1
1
  jQuery(document).ready(function() {
2
- apply_comment_methods();
2
+ apply_activity_ajax_methods();
3
3
  });
4
4
 
5
- function apply_comment_methods(){
5
+ function apply_activity_ajax_methods(){
6
6
  setup_comment_submit();
7
7
  hide_comment_boxes();
8
8
  apply_comment_hover();
@@ -49,7 +49,7 @@ function setup_comment_submit(){
49
49
  jQuery('.activity-comment').get(0).clone(true);
50
50
  jQuery('.comment-loading').remove();
51
51
  jQuery('.activity-has-comments').find('textarea').show();
52
- apply_comment_methods();
52
+ apply_activity_ajax_methods();
53
53
  }
54
54
  });
55
55
  return false;
@@ -83,6 +83,12 @@ function get_latest_activity_id(){
83
83
  }
84
84
  }
85
85
 
86
+ function apply_comment_hover(){
87
+ jQuery('.activity-comment').hover(
88
+ function () { jQuery(this).addClass('comment-hover'); },
89
+ function () { jQuery(this).removeClass('comment-hover'); } );
90
+ }
91
+
86
92
  function update_feed(request){
87
93
  jQuery('#activity-feed-content').prepend(request);
88
94
  }
@@ -91,10 +97,4 @@ function apply_activity_hover(){
91
97
  jQuery('.activity-content').hover(
92
98
  function () { jQuery(this).addClass('activity-hover'); },
93
99
  function () { jQuery(this).removeClass('activity-hover'); } );
94
- }
95
-
96
- function apply_comment_hover(){
97
- jQuery('.activity-comment').hover(
98
- function () { jQuery(this).addClass('comment-hover'); },
99
- function () { jQuery(this).removeClass('comment-hover'); } );
100
100
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muck-activities
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17
4
+ version: 0.1.18
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
@@ -400,7 +400,6 @@ test_files:
400
400
  - test/rails_root/db/migrate/20090613173314_create_comments.rb
401
401
  - test/rails_root/db/migrate/20090730044139_add_comment_cache.rb
402
402
  - test/rails_root/db/migrate/20090803185323_create_shares.rb
403
- - test/rails_root/db/schema.rb
404
403
  - test/rails_root/features/step_definitions/webrat_steps.rb
405
404
  - test/rails_root/features/support/env.rb
406
405
  - test/rails_root/features/support/paths.rb
@@ -1,154 +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 => 20090803185323) 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", :default => ""
44
- t.integer "user_id", :default => 0, :null => false
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 "countries", :force => true do |t|
58
- t.string "name", :limit => 128, :default => "", :null => false
59
- t.string "abbreviation", :limit => 3, :default => "", :null => false
60
- t.integer "sort", :default => 1000, :null => false
61
- end
62
-
63
- add_index "countries", ["abbreviation"], :name => "index_countries_on_abbreviation"
64
- add_index "countries", ["name"], :name => "index_countries_on_name"
65
-
66
- create_table "languages", :force => true do |t|
67
- t.string "name"
68
- t.string "english_name"
69
- t.string "locale"
70
- t.boolean "supported", :default => true
71
- t.integer "is_default", :default => 0
72
- end
73
-
74
- add_index "languages", ["locale"], :name => "index_languages_on_locale"
75
- add_index "languages", ["name"], :name => "index_languages_on_name"
76
-
77
- create_table "permissions", :force => true do |t|
78
- t.integer "role_id", :null => false
79
- t.integer "user_id", :null => false
80
- t.datetime "created_at"
81
- t.datetime "updated_at"
82
- end
83
-
84
- create_table "profiles", :force => true do |t|
85
- t.integer "user_id"
86
- t.string "photo_file_name"
87
- t.string "photo_content_type"
88
- t.integer "photo_file_size"
89
- t.datetime "created_at"
90
- t.datetime "updated_at"
91
- end
92
-
93
- add_index "profiles", ["user_id"], :name => "index_profiles_on_user_id"
94
-
95
- create_table "roles", :force => true do |t|
96
- t.string "rolename"
97
- t.datetime "created_at"
98
- t.datetime "updated_at"
99
- end
100
-
101
- create_table "shares", :force => true do |t|
102
- t.string "uri", :limit => 2083, :default => "", :null => false
103
- t.string "title"
104
- t.text "message"
105
- t.integer "shared_by_id", :null => false
106
- t.datetime "created_at"
107
- t.datetime "updated_at"
108
- end
109
-
110
- add_index "shares", ["shared_by_id"], :name => "index_shares_on_shared_by_id"
111
-
112
- create_table "states", :force => true do |t|
113
- t.string "name", :limit => 128, :default => "", :null => false
114
- t.string "abbreviation", :limit => 3, :default => "", :null => false
115
- t.integer "country_id", :limit => 8, :null => false
116
- end
117
-
118
- add_index "states", ["abbreviation"], :name => "index_states_on_abbreviation"
119
- add_index "states", ["country_id"], :name => "index_states_on_country_id"
120
- add_index "states", ["name"], :name => "index_states_on_name"
121
-
122
- create_table "users", :force => true do |t|
123
- t.string "login"
124
- t.string "email"
125
- t.string "first_name"
126
- t.string "last_name"
127
- t.string "crypted_password"
128
- t.string "password_salt"
129
- t.string "persistence_token"
130
- t.string "single_access_token"
131
- t.string "perishable_token"
132
- t.integer "login_count", :default => 0, :null => false
133
- t.integer "failed_login_count", :default => 0, :null => false
134
- t.datetime "last_request_at"
135
- t.datetime "last_login_at"
136
- t.datetime "current_login_at"
137
- t.string "current_login_ip"
138
- t.string "last_login_ip"
139
- t.boolean "terms_of_service", :default => false, :null => false
140
- t.string "time_zone", :default => "UTC"
141
- t.datetime "disabled_at"
142
- t.datetime "activated_at"
143
- t.datetime "created_at"
144
- t.datetime "updated_at"
145
- end
146
-
147
- add_index "users", ["email"], :name => "index_users_on_email"
148
- add_index "users", ["last_request_at"], :name => "index_users_on_last_request_at"
149
- add_index "users", ["login"], :name => "index_users_on_login"
150
- add_index "users", ["perishable_token"], :name => "index_users_on_perishable_token"
151
- add_index "users", ["persistence_token"], :name => "index_users_on_persistence_token"
152
- add_index "users", ["single_access_token"], :name => "index_users_on_single_access_token"
153
-
154
- end