muck-activities 0.1.25 → 0.1.26
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/views/activities/_activity_feed.html.erb +1 -1
- data/muck-activities.gemspec +141 -7
- data/test/rails_root/config/database.yml +13 -13
- data/test/rails_root/config/environment.rb +4 -2
- data/test/rails_root/config/global_config.yml +6 -1
- data/test/rails_root/config/initializers/geokit_config.rb +63 -0
- data/test/rails_root/db/migrate/{20090602041838_create_users.rb → 20090327231918_create_users.rb} +11 -10
- data/test/rails_root/db/migrate/20090402234137_create_languages.rb +1 -1
- data/test/rails_root/db/migrate/20090730154102_allow_null_user.rb +9 -0
- data/test/rails_root/db/migrate/20090804184247_add_comment_count_to_shares.rb +9 -0
- data/test/rails_root/db/migrate/20090804231857_add_shares_uri_index.rb +9 -0
- data/test/rails_root/db/migrate/20091124203137_add_location_to_profiles.rb +15 -0
- data/test/rails_root/db/migrate/20091124205819_add_fields_to_profiles.rb +21 -0
- data/test/rails_root/lib/tasks/muck.rake +7 -0
- data/test/rails_root/public/images/arrow_down.gif +0 -0
- data/test/rails_root/public/images/arrow_up.gif +0 -0
- data/test/rails_root/public/images/fancybox/fancy_closebox.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_left.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_progress.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_right.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_shadow_e.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_shadow_n.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_shadow_ne.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_shadow_nw.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_shadow_s.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_shadow_se.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_shadow_sw.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_shadow_w.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_title_left.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_title_main.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_title_right.png +0 -0
- data/test/rails_root/public/images/icons/blue_guy.png +0 -0
- data/test/rails_root/public/images/icons/button_background.png +0 -0
- data/test/rails_root/public/images/icons/cancel.png +0 -0
- data/test/rails_root/public/images/icons/close.png +0 -0
- data/test/rails_root/public/images/icons/comment.png +0 -0
- data/test/rails_root/public/images/icons/exclaim.png +0 -0
- data/test/rails_root/public/images/icons/external.png +0 -0
- data/test/rails_root/public/images/icons/feed.png +0 -0
- data/test/rails_root/public/images/icons/grey_guy.png +0 -0
- data/test/rails_root/public/images/icons/hide.png +0 -0
- data/test/rails_root/public/images/icons/information.png +0 -0
- data/test/rails_root/public/images/icons/minus.png +0 -0
- data/test/rails_root/public/images/icons/pending.png +0 -0
- data/test/rails_root/public/images/icons/question.png +0 -0
- data/test/rails_root/public/images/icons/search_box.png +0 -0
- data/test/rails_root/public/images/icons/star.png +0 -0
- data/test/rails_root/public/images/icons/stop.png +0 -0
- data/test/rails_root/public/images/icons/thumb_down.png +0 -0
- data/test/rails_root/public/images/icons/thumb_up.png +0 -0
- data/test/rails_root/public/images/nothing.png +0 -0
- data/test/rails_root/public/javascripts/jquery/colorpicker.js +450 -0
- data/test/rails_root/public/javascripts/jquery/jquery.autocomplete.js.readme +6 -0
- data/test/rails_root/public/javascripts/jquery/jquery.autocomplete.min.js +15 -0
- data/test/rails_root/public/javascripts/jquery/jquery.autocomplete.pack.js +767 -0
- data/test/rails_root/public/javascripts/jquery/jquery.easing.js +1 -0
- data/test/rails_root/public/javascripts/jquery/jquery.fancybox.js +16 -0
- data/test/rails_root/public/javascripts/jquery/jquery.metadata.min.js +13 -0
- data/test/rails_root/public/javascripts/jquery/jquery.queryString.js +33 -0
- data/test/rails_root/public/javascripts/jquery/jquery.swapimage.js +66 -0
- data/test/rails_root/public/javascripts/jquery/jquery.swapimage.min.js +11 -0
- data/test/rails_root/public/javascripts/jquery/jquery.tips.js +7 -6
- data/test/rails_root/public/javascripts/jquery/jrails.js +1 -0
- data/test/rails_root/public/javascripts/muck.js +57 -6
- data/test/rails_root/public/javascripts/muck_activities.js +17 -10
- data/test/rails_root/public/javascripts/muck_time/en.js +53 -0
- data/test/rails_root/public/javascripts/tree.js +107 -0
- data/test/rails_root/public/stylesheets/jquery/jquery.autocomplete.css +15 -0
- data/test/rails_root/public/stylesheets/jquery/jquery.fancybox.css +38 -0
- data/test/rails_root/public/stylesheets/muck-activities.css +39 -0
- data/test/rails_root/public/stylesheets/styles.css +13 -3
- data/test/rails_root/test/unit/activity_feed_test.rb +8 -2
- data/test/rails_root/test/unit/activity_test.rb +17 -29
- data/test/rails_root/test/unit/share_test.rb +1 -0
- data/test/rails_root/test/unit/user_test.rb +1 -0
- data/test/rails_root/vendor/plugins/geokit-rails/CHANGELOG.rdoc +46 -0
- data/test/rails_root/vendor/plugins/geokit-rails/MIT-LICENSE +20 -0
- data/test/rails_root/vendor/plugins/geokit-rails/README.markdown +561 -0
- data/test/rails_root/vendor/plugins/geokit-rails/Rakefile +18 -0
- data/test/rails_root/vendor/plugins/geokit-rails/about.yml +9 -0
- data/test/rails_root/vendor/plugins/geokit-rails/assets/api_keys_template +61 -0
- data/test/rails_root/vendor/plugins/geokit-rails/init.rb +1 -0
- data/test/rails_root/vendor/plugins/geokit-rails/install.rb +14 -0
- data/test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails.rb +26 -0
- data/test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/acts_as_mappable.rb +456 -0
- data/test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/abstract.rb +31 -0
- data/test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/mysql.rb +22 -0
- data/test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/postgresql.rb +22 -0
- data/test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/sqlserver.rb +43 -0
- data/test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/defaults.rb +22 -0
- data/test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/geocoder_control.rb +16 -0
- data/test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/ip_geocode_lookup.rb +46 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/acts_as_mappable_test.rb +474 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/boot.rb +25 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/database.yml +20 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/fixtures/companies.yml +7 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/fixtures/custom_locations.yml +54 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/fixtures/locations.yml +54 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/fixtures/mock_addresses.yml +17 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/fixtures/mock_families.yml +2 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/fixtures/mock_houses.yml +9 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/fixtures/mock_organizations.yml +5 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/fixtures/mock_people.yml +5 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/fixtures/stores.yml +0 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/ip_geocode_lookup_test.rb +77 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/models/company.rb +3 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/models/custom_location.rb +12 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/models/location.rb +4 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/models/mock_address.rb +4 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/models/mock_family.rb +3 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/models/mock_house.rb +3 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/models/mock_organization.rb +4 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/models/mock_person.rb +4 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/models/store.rb +3 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/schema.rb +60 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/tasks.rake +31 -0
- data/test/rails_root/vendor/plugins/geokit-rails/test/test_helper.rb +23 -0
- metadata +137 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.26
|
@@ -8,7 +8,7 @@
|
|
8
8
|
jQuery(document).ready(function(){
|
9
9
|
setup_submit_delete();
|
10
10
|
<% if GlobalConfig.enable_live_activity_updates -%>
|
11
|
-
setInterval(function() {jQuery.ajax({success:function(request){update_feed(request);}, type: "GET", url:'<%= activities_path(:parent_id => activities_object, :parent_type => activities_object.
|
11
|
+
setInterval(function() {jQuery.ajax({success:function(request){update_feed(request);}, type: "GET", url:'<%= activities_path(:parent_id => activities_object, :parent_type => activities_object.class, :activity_filter => params[:activity_filter], :format => 'js') %>&latest_activity_id=' + get_latest_activity_id()})}, <%=GlobalConfig.live_activity_update_interval%> * 1000)
|
12
12
|
<% end -%>
|
13
13
|
});
|
14
14
|
<% end -%>
|
data/muck-activities.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{muck-activities}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.26"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin Ball", "Joel Duffin"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2010-01-20}
|
13
13
|
s.description = %q{Activity engine for the muck system.}
|
14
14
|
s.email = %q{justin@tatemae.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -122,6 +122,7 @@ Gem::Specification.new do |s|
|
|
122
122
|
"test/rails_root/config/environments/production.rb",
|
123
123
|
"test/rails_root/config/environments/test.rb",
|
124
124
|
"test/rails_root/config/global_config.yml",
|
125
|
+
"test/rails_root/config/initializers/geokit_config.rb",
|
125
126
|
"test/rails_root/config/initializers/inflections.rb",
|
126
127
|
"test/rails_root/config/initializers/mime_types.rb",
|
127
128
|
"test/rails_root/config/initializers/requires.rb",
|
@@ -129,35 +130,78 @@ Gem::Specification.new do |s|
|
|
129
130
|
"test/rails_root/config/routes.rb",
|
130
131
|
"test/rails_root/db/.keep",
|
131
132
|
"test/rails_root/db/migrate/20090320174818_create_muck_permissions_and_roles.rb",
|
133
|
+
"test/rails_root/db/migrate/20090327231918_create_users.rb",
|
132
134
|
"test/rails_root/db/migrate/20090402033319_add_muck_activities.rb",
|
133
135
|
"test/rails_root/db/migrate/20090402234137_create_languages.rb",
|
134
136
|
"test/rails_root/db/migrate/20090426041056_create_countries.rb",
|
135
137
|
"test/rails_root/db/migrate/20090426041103_create_states.rb",
|
136
138
|
"test/rails_root/db/migrate/20090512013727_create_profiles.rb",
|
137
|
-
"test/rails_root/db/migrate/20090602041838_create_users.rb",
|
138
139
|
"test/rails_root/db/migrate/20090613173314_create_comments.rb",
|
139
140
|
"test/rails_root/db/migrate/20090730044139_add_comment_cache.rb",
|
141
|
+
"test/rails_root/db/migrate/20090730154102_allow_null_user.rb",
|
140
142
|
"test/rails_root/db/migrate/20090803185323_create_shares.rb",
|
143
|
+
"test/rails_root/db/migrate/20090804184247_add_comment_count_to_shares.rb",
|
144
|
+
"test/rails_root/db/migrate/20090804231857_add_shares_uri_index.rb",
|
141
145
|
"test/rails_root/db/migrate/20090818204527_add_activity_indexes.rb",
|
142
146
|
"test/rails_root/db/migrate/20090819030523_add_attachable_to_activities.rb",
|
147
|
+
"test/rails_root/db/migrate/20091124203137_add_location_to_profiles.rb",
|
148
|
+
"test/rails_root/db/migrate/20091124205819_add_fields_to_profiles.rb",
|
143
149
|
"test/rails_root/features/step_definitions/webrat_steps.rb",
|
144
150
|
"test/rails_root/features/support/env.rb",
|
145
151
|
"test/rails_root/features/support/paths.rb",
|
146
152
|
"test/rails_root/lib/tasks/cucumber.rake",
|
153
|
+
"test/rails_root/lib/tasks/muck.rake",
|
147
154
|
"test/rails_root/public/.htaccess",
|
148
155
|
"test/rails_root/public/404.html",
|
149
156
|
"test/rails_root/public/422.html",
|
150
157
|
"test/rails_root/public/500.html",
|
151
158
|
"test/rails_root/public/dispatch.rb",
|
152
159
|
"test/rails_root/public/favicon.ico",
|
160
|
+
"test/rails_root/public/images/arrow_down.gif",
|
153
161
|
"test/rails_root/public/images/arrow_left.gif",
|
154
162
|
"test/rails_root/public/images/arrow_right.gif",
|
163
|
+
"test/rails_root/public/images/arrow_up.gif",
|
155
164
|
"test/rails_root/public/images/blue/preview.gif",
|
165
|
+
"test/rails_root/public/images/fancybox/fancy_closebox.png",
|
166
|
+
"test/rails_root/public/images/fancybox/fancy_left.png",
|
167
|
+
"test/rails_root/public/images/fancybox/fancy_progress.png",
|
168
|
+
"test/rails_root/public/images/fancybox/fancy_right.png",
|
169
|
+
"test/rails_root/public/images/fancybox/fancy_shadow_e.png",
|
170
|
+
"test/rails_root/public/images/fancybox/fancy_shadow_n.png",
|
171
|
+
"test/rails_root/public/images/fancybox/fancy_shadow_ne.png",
|
172
|
+
"test/rails_root/public/images/fancybox/fancy_shadow_nw.png",
|
173
|
+
"test/rails_root/public/images/fancybox/fancy_shadow_s.png",
|
174
|
+
"test/rails_root/public/images/fancybox/fancy_shadow_se.png",
|
175
|
+
"test/rails_root/public/images/fancybox/fancy_shadow_sw.png",
|
176
|
+
"test/rails_root/public/images/fancybox/fancy_shadow_w.png",
|
177
|
+
"test/rails_root/public/images/fancybox/fancy_title_left.png",
|
178
|
+
"test/rails_root/public/images/fancybox/fancy_title_main.png",
|
179
|
+
"test/rails_root/public/images/fancybox/fancy_title_right.png",
|
156
180
|
"test/rails_root/public/images/icons/accept.png",
|
157
181
|
"test/rails_root/public/images/icons/add.png",
|
182
|
+
"test/rails_root/public/images/icons/blue_guy.png",
|
183
|
+
"test/rails_root/public/images/icons/button_background.png",
|
184
|
+
"test/rails_root/public/images/icons/cancel.png",
|
185
|
+
"test/rails_root/public/images/icons/close.png",
|
186
|
+
"test/rails_root/public/images/icons/comment.png",
|
158
187
|
"test/rails_root/public/images/icons/delete.png",
|
188
|
+
"test/rails_root/public/images/icons/exclaim.png",
|
189
|
+
"test/rails_root/public/images/icons/external.png",
|
190
|
+
"test/rails_root/public/images/icons/feed.png",
|
191
|
+
"test/rails_root/public/images/icons/grey_guy.png",
|
192
|
+
"test/rails_root/public/images/icons/hide.png",
|
193
|
+
"test/rails_root/public/images/icons/information.png",
|
194
|
+
"test/rails_root/public/images/icons/minus.png",
|
195
|
+
"test/rails_root/public/images/icons/pending.png",
|
196
|
+
"test/rails_root/public/images/icons/question.png",
|
197
|
+
"test/rails_root/public/images/icons/search_box.png",
|
198
|
+
"test/rails_root/public/images/icons/star.png",
|
199
|
+
"test/rails_root/public/images/icons/stop.png",
|
200
|
+
"test/rails_root/public/images/icons/thumb_down.png",
|
201
|
+
"test/rails_root/public/images/icons/thumb_up.png",
|
159
202
|
"test/rails_root/public/images/icons/vote.png",
|
160
203
|
"test/rails_root/public/images/loading.gif",
|
204
|
+
"test/rails_root/public/images/nothing.png",
|
161
205
|
"test/rails_root/public/images/profile_default.jpg",
|
162
206
|
"test/rails_root/public/images/rails.png",
|
163
207
|
"test/rails_root/public/images/red/preview.gif",
|
@@ -169,17 +213,30 @@ Gem::Specification.new do |s|
|
|
169
213
|
"test/rails_root/public/javascripts/dragdrop.js",
|
170
214
|
"test/rails_root/public/javascripts/effects.js",
|
171
215
|
"test/rails_root/public/javascripts/fancyzoom.min.js",
|
216
|
+
"test/rails_root/public/javascripts/jquery/colorpicker.js",
|
172
217
|
"test/rails_root/public/javascripts/jquery/jquery-ui.js",
|
218
|
+
"test/rails_root/public/javascripts/jquery/jquery.autocomplete.js.readme",
|
219
|
+
"test/rails_root/public/javascripts/jquery/jquery.autocomplete.min.js",
|
220
|
+
"test/rails_root/public/javascripts/jquery/jquery.autocomplete.pack.js",
|
221
|
+
"test/rails_root/public/javascripts/jquery/jquery.easing.js",
|
222
|
+
"test/rails_root/public/javascripts/jquery/jquery.fancybox.js",
|
173
223
|
"test/rails_root/public/javascripts/jquery/jquery.form.js",
|
174
224
|
"test/rails_root/public/javascripts/jquery/jquery.jgrowl.js",
|
175
225
|
"test/rails_root/public/javascripts/jquery/jquery.js",
|
226
|
+
"test/rails_root/public/javascripts/jquery/jquery.metadata.min.js",
|
227
|
+
"test/rails_root/public/javascripts/jquery/jquery.queryString.js",
|
228
|
+
"test/rails_root/public/javascripts/jquery/jquery.swapimage.js",
|
229
|
+
"test/rails_root/public/javascripts/jquery/jquery.swapimage.min.js",
|
176
230
|
"test/rails_root/public/javascripts/jquery/jquery.tips.js",
|
231
|
+
"test/rails_root/public/javascripts/jquery/jrails.js",
|
177
232
|
"test/rails_root/public/javascripts/muck.js",
|
178
233
|
"test/rails_root/public/javascripts/muck_activities.js",
|
234
|
+
"test/rails_root/public/javascripts/muck_time/en.js",
|
179
235
|
"test/rails_root/public/javascripts/prototype.js",
|
180
236
|
"test/rails_root/public/javascripts/scriptaculous.js",
|
181
237
|
"test/rails_root/public/javascripts/slider.js",
|
182
238
|
"test/rails_root/public/javascripts/sound.js",
|
239
|
+
"test/rails_root/public/javascripts/tree.js",
|
183
240
|
"test/rails_root/public/robots.txt",
|
184
241
|
"test/rails_root/public/stylesheets/.keep",
|
185
242
|
"test/rails_root/public/stylesheets/admin.css",
|
@@ -233,6 +290,8 @@ Gem::Specification.new do |s|
|
|
233
290
|
"test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_cd0a0a_256x240.png",
|
234
291
|
"test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_ffffff_256x240.png",
|
235
292
|
"test/rails_root/public/stylesheets/jquery/cupertino/jquery-ui-1.7.1.custom.css",
|
293
|
+
"test/rails_root/public/stylesheets/jquery/jquery.autocomplete.css",
|
294
|
+
"test/rails_root/public/stylesheets/jquery/jquery.fancybox.css",
|
236
295
|
"test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png",
|
237
296
|
"test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_flat_55_fbec88_40x100.png",
|
238
297
|
"test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png",
|
@@ -278,6 +337,7 @@ Gem::Specification.new do |s|
|
|
278
337
|
"test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffd27a_256x240.png",
|
279
338
|
"test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffffff_256x240.png",
|
280
339
|
"test/rails_root/public/stylesheets/jquery/ui-lightness/jquery-ui-1.7.1.custom.css",
|
340
|
+
"test/rails_root/public/stylesheets/muck-activities.css",
|
281
341
|
"test/rails_root/public/stylesheets/reset.css",
|
282
342
|
"test/rails_root/public/stylesheets/styles.css",
|
283
343
|
"test/rails_root/public/stylesheets/themes/blue/styles.css",
|
@@ -309,6 +369,48 @@ Gem::Specification.new do |s|
|
|
309
369
|
"test/rails_root/test/unit/activity_test.rb",
|
310
370
|
"test/rails_root/test/unit/share_test.rb",
|
311
371
|
"test/rails_root/test/unit/user_test.rb",
|
372
|
+
"test/rails_root/vendor/plugins/geokit-rails/CHANGELOG.rdoc",
|
373
|
+
"test/rails_root/vendor/plugins/geokit-rails/MIT-LICENSE",
|
374
|
+
"test/rails_root/vendor/plugins/geokit-rails/README.markdown",
|
375
|
+
"test/rails_root/vendor/plugins/geokit-rails/Rakefile",
|
376
|
+
"test/rails_root/vendor/plugins/geokit-rails/about.yml",
|
377
|
+
"test/rails_root/vendor/plugins/geokit-rails/assets/api_keys_template",
|
378
|
+
"test/rails_root/vendor/plugins/geokit-rails/init.rb",
|
379
|
+
"test/rails_root/vendor/plugins/geokit-rails/install.rb",
|
380
|
+
"test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails.rb",
|
381
|
+
"test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/acts_as_mappable.rb",
|
382
|
+
"test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/abstract.rb",
|
383
|
+
"test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/mysql.rb",
|
384
|
+
"test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/postgresql.rb",
|
385
|
+
"test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/sqlserver.rb",
|
386
|
+
"test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/defaults.rb",
|
387
|
+
"test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/geocoder_control.rb",
|
388
|
+
"test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/ip_geocode_lookup.rb",
|
389
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/acts_as_mappable_test.rb",
|
390
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/boot.rb",
|
391
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/database.yml",
|
392
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/fixtures/companies.yml",
|
393
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/fixtures/custom_locations.yml",
|
394
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/fixtures/locations.yml",
|
395
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/fixtures/mock_addresses.yml",
|
396
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/fixtures/mock_families.yml",
|
397
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/fixtures/mock_houses.yml",
|
398
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/fixtures/mock_organizations.yml",
|
399
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/fixtures/mock_people.yml",
|
400
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/fixtures/stores.yml",
|
401
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/ip_geocode_lookup_test.rb",
|
402
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/models/company.rb",
|
403
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/models/custom_location.rb",
|
404
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/models/location.rb",
|
405
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/models/mock_address.rb",
|
406
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/models/mock_family.rb",
|
407
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/models/mock_house.rb",
|
408
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/models/mock_organization.rb",
|
409
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/models/mock_person.rb",
|
410
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/models/store.rb",
|
411
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/schema.rb",
|
412
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/tasks.rake",
|
413
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/test_helper.rb",
|
312
414
|
"uninstall.rb"
|
313
415
|
]
|
314
416
|
s.homepage = %q{http://github.com/tatemae/muck_activities}
|
@@ -333,23 +435,29 @@ Gem::Specification.new do |s|
|
|
333
435
|
"test/rails_root/config/environments/development.rb",
|
334
436
|
"test/rails_root/config/environments/production.rb",
|
335
437
|
"test/rails_root/config/environments/test.rb",
|
438
|
+
"test/rails_root/config/initializers/geokit_config.rb",
|
336
439
|
"test/rails_root/config/initializers/inflections.rb",
|
337
440
|
"test/rails_root/config/initializers/mime_types.rb",
|
338
441
|
"test/rails_root/config/initializers/requires.rb",
|
339
442
|
"test/rails_root/config/initializers/session_store.rb",
|
340
443
|
"test/rails_root/config/routes.rb",
|
341
444
|
"test/rails_root/db/migrate/20090320174818_create_muck_permissions_and_roles.rb",
|
445
|
+
"test/rails_root/db/migrate/20090327231918_create_users.rb",
|
342
446
|
"test/rails_root/db/migrate/20090402033319_add_muck_activities.rb",
|
343
447
|
"test/rails_root/db/migrate/20090402234137_create_languages.rb",
|
344
448
|
"test/rails_root/db/migrate/20090426041056_create_countries.rb",
|
345
449
|
"test/rails_root/db/migrate/20090426041103_create_states.rb",
|
346
450
|
"test/rails_root/db/migrate/20090512013727_create_profiles.rb",
|
347
|
-
"test/rails_root/db/migrate/20090602041838_create_users.rb",
|
348
451
|
"test/rails_root/db/migrate/20090613173314_create_comments.rb",
|
349
452
|
"test/rails_root/db/migrate/20090730044139_add_comment_cache.rb",
|
453
|
+
"test/rails_root/db/migrate/20090730154102_allow_null_user.rb",
|
350
454
|
"test/rails_root/db/migrate/20090803185323_create_shares.rb",
|
455
|
+
"test/rails_root/db/migrate/20090804184247_add_comment_count_to_shares.rb",
|
456
|
+
"test/rails_root/db/migrate/20090804231857_add_shares_uri_index.rb",
|
351
457
|
"test/rails_root/db/migrate/20090818204527_add_activity_indexes.rb",
|
352
458
|
"test/rails_root/db/migrate/20090819030523_add_attachable_to_activities.rb",
|
459
|
+
"test/rails_root/db/migrate/20091124203137_add_location_to_profiles.rb",
|
460
|
+
"test/rails_root/db/migrate/20091124205819_add_fields_to_profiles.rb",
|
353
461
|
"test/rails_root/features/step_definitions/webrat_steps.rb",
|
354
462
|
"test/rails_root/features/support/env.rb",
|
355
463
|
"test/rails_root/features/support/paths.rb",
|
@@ -361,7 +469,32 @@ Gem::Specification.new do |s|
|
|
361
469
|
"test/rails_root/test/unit/activity_feed_test.rb",
|
362
470
|
"test/rails_root/test/unit/activity_test.rb",
|
363
471
|
"test/rails_root/test/unit/share_test.rb",
|
364
|
-
"test/rails_root/test/unit/user_test.rb"
|
472
|
+
"test/rails_root/test/unit/user_test.rb",
|
473
|
+
"test/rails_root/vendor/plugins/geokit-rails/init.rb",
|
474
|
+
"test/rails_root/vendor/plugins/geokit-rails/install.rb",
|
475
|
+
"test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/acts_as_mappable.rb",
|
476
|
+
"test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/abstract.rb",
|
477
|
+
"test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/mysql.rb",
|
478
|
+
"test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/postgresql.rb",
|
479
|
+
"test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/sqlserver.rb",
|
480
|
+
"test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/defaults.rb",
|
481
|
+
"test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/geocoder_control.rb",
|
482
|
+
"test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/ip_geocode_lookup.rb",
|
483
|
+
"test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails.rb",
|
484
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/acts_as_mappable_test.rb",
|
485
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/boot.rb",
|
486
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/ip_geocode_lookup_test.rb",
|
487
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/models/company.rb",
|
488
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/models/custom_location.rb",
|
489
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/models/location.rb",
|
490
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/models/mock_address.rb",
|
491
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/models/mock_family.rb",
|
492
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/models/mock_house.rb",
|
493
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/models/mock_organization.rb",
|
494
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/models/mock_person.rb",
|
495
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/models/store.rb",
|
496
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/schema.rb",
|
497
|
+
"test/rails_root/vendor/plugins/geokit-rails/test/test_helper.rb"
|
365
498
|
]
|
366
499
|
|
367
500
|
if s.respond_to? :specification_version then
|
@@ -383,3 +516,4 @@ Gem::Specification.new do |s|
|
|
383
516
|
s.add_dependency(%q<muck-comments>, [">= 0"])
|
384
517
|
end
|
385
518
|
end
|
519
|
+
|
@@ -1,17 +1,17 @@
|
|
1
1
|
development:
|
2
|
-
adapter:
|
3
|
-
database:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
2
|
+
adapter: mysql
|
3
|
+
database: muck_activities_development
|
4
|
+
username: root
|
5
|
+
password:
|
6
|
+
host: localhost
|
7
|
+
encoding: utf8
|
8
|
+
test:
|
9
|
+
adapter: mysql
|
10
|
+
database: muck_activities_test
|
11
|
+
username: root
|
12
|
+
password:
|
13
|
+
host: localhost
|
14
|
+
encoding: utf8
|
15
15
|
|
16
16
|
cucumber:
|
17
17
|
<<: *TEST
|
@@ -17,10 +17,12 @@ Rails::Initializer.run do |config|
|
|
17
17
|
config.time_zone = 'UTC'
|
18
18
|
config.gem "will_paginate"
|
19
19
|
config.gem "authlogic"
|
20
|
-
config.gem "
|
20
|
+
config.gem "geokit"
|
21
|
+
config.gem "sanitize"
|
22
|
+
config.gem "searchlogic"
|
21
23
|
config.gem "bcrypt-ruby", :lib => "bcrypt"
|
22
24
|
config.gem "awesome_nested_set"
|
23
|
-
config.gem '
|
25
|
+
config.gem 'paperclip'
|
24
26
|
config.gem 'muck-engine', :lib => 'muck_engine'
|
25
27
|
config.gem 'muck-users', :lib => 'muck_users'
|
26
28
|
config.gem 'muck-comments', :lib => 'muck_comments'
|
@@ -5,9 +5,14 @@ default: &DEFAULT
|
|
5
5
|
application_url: localhost:3000
|
6
6
|
|
7
7
|
# session key information
|
8
|
-
session_key:
|
8
|
+
session_key: _muck_activities_session
|
9
9
|
session_secret: ea55c4d5e105735fdfb1caec46711b3dd14ec976d0ba95b4c0f575cb046cc358bce7a335ee36eb29253fb680ef8b838d871f6baeff48220fee8e9e42ab84774b
|
10
10
|
|
11
|
+
# Geo kit configuration.
|
12
|
+
google_geo_key: ''
|
13
|
+
yahoo_geo_key: ''
|
14
|
+
|
15
|
+
|
11
16
|
# enable_activity_file_uploads: true # Turn on file uploads in the activity feed. Requires that uploader be installed.
|
12
17
|
# enable_activity_image_uploads: true # Turn on image uploads in the activity feed. Requires that uploader and muck_albums be installed.
|
13
18
|
# enable_activity_video_sharing: true # Turn on video sharing in the activity feed.
|
@@ -0,0 +1,63 @@
|
|
1
|
+
require 'geokit'
|
2
|
+
|
3
|
+
if defined? Geokit
|
4
|
+
|
5
|
+
# These defaults are used in Geokit::Mappable.distance_to and in acts_as_mappable
|
6
|
+
Geokit::default_units = :miles
|
7
|
+
Geokit::default_formula = :sphere
|
8
|
+
|
9
|
+
# This is the timeout value in seconds to be used for calls to the geocoder web
|
10
|
+
# services. For no timeout at all, comment out the setting. The timeout unit
|
11
|
+
# is in seconds.
|
12
|
+
Geokit::Geocoders::request_timeout = 3
|
13
|
+
|
14
|
+
# These settings are used if web service calls must be routed through a proxy.
|
15
|
+
# These setting can be nil if not needed, otherwise, addr and port must be
|
16
|
+
# filled in at a minimum. If the proxy requires authentication, the username
|
17
|
+
# and password can be provided as well.
|
18
|
+
Geokit::Geocoders::proxy_addr = nil
|
19
|
+
Geokit::Geocoders::proxy_port = nil
|
20
|
+
Geokit::Geocoders::proxy_user = nil
|
21
|
+
Geokit::Geocoders::proxy_pass = nil
|
22
|
+
|
23
|
+
# This is your yahoo application key for the Yahoo Geocoder.
|
24
|
+
# See http://developer.yahoo.com/faq/index.html#appid
|
25
|
+
# and http://developer.yahoo.com/maps/rest/V1/geocode.html
|
26
|
+
Geokit::Geocoders::yahoo = GlobalConfig.yahoo_geo_key
|
27
|
+
|
28
|
+
# This is your Google Maps geocoder key.
|
29
|
+
# See http://www.google.com/apis/maps/signup.html
|
30
|
+
# and http://www.google.com/apis/maps/documentation/#Geocoding_Examples
|
31
|
+
Geokit::Geocoders::google = GlobalConfig.google_geo_key
|
32
|
+
|
33
|
+
# This is your username and password for geocoder.us.
|
34
|
+
# To use the free service, the value can be set to nil or false. For
|
35
|
+
# usage tied to an account, the value should be set to username:password.
|
36
|
+
# See http://geocoder.us
|
37
|
+
# and http://geocoder.us/user/signup
|
38
|
+
Geokit::Geocoders::geocoder_us = false
|
39
|
+
|
40
|
+
# This is your authorization key for geocoder.ca.
|
41
|
+
# To use the free service, the value can be set to nil or false. For
|
42
|
+
# usage tied to an account, set the value to the key obtained from
|
43
|
+
# Geocoder.ca.
|
44
|
+
# See http://geocoder.ca
|
45
|
+
# and http://geocoder.ca/?register=1
|
46
|
+
Geokit::Geocoders::geocoder_ca = false
|
47
|
+
|
48
|
+
# Uncomment to use a username with the Geonames geocoder
|
49
|
+
#Geokit::Geocoders::geonames="REPLACE_WITH_YOUR_GEONAMES_USERNAME"
|
50
|
+
|
51
|
+
# This is the order in which the geocoders are called in a failover scenario
|
52
|
+
# If you only want to use a single geocoder, put a single symbol in the array.
|
53
|
+
# Valid symbols are :google, :yahoo, :us, and :ca.
|
54
|
+
# Be aware that there are Terms of Use restrictions on how you can use the
|
55
|
+
# various geocoders. Make sure you read up on relevant Terms of Use for each
|
56
|
+
# geocoder you are going to use.
|
57
|
+
Geokit::Geocoders::provider_order = [:google,:us]
|
58
|
+
|
59
|
+
# The IP provider order. Valid symbols are :ip,:geo_plugin.
|
60
|
+
# As before, make sure you read up on relevant Terms of Use for each
|
61
|
+
# Geokit::Geocoders::ip_provider_order = [:geo_plugin,:ip]
|
62
|
+
|
63
|
+
end
|
data/test/rails_root/db/migrate/{20090602041838_create_users.rb → 20090327231918_create_users.rb}
RENAMED
@@ -1,5 +1,4 @@
|
|
1
1
|
class CreateUsers < ActiveRecord::Migration
|
2
|
-
|
3
2
|
def self.up
|
4
3
|
create_table :users, :force => true do |t|
|
5
4
|
t.string :login
|
@@ -8,29 +7,31 @@ class CreateUsers < ActiveRecord::Migration
|
|
8
7
|
t.string :last_name
|
9
8
|
t.string :crypted_password
|
10
9
|
t.string :password_salt
|
11
|
-
t.string :persistence_token
|
12
|
-
t.string :single_access_token
|
13
|
-
t.string :perishable_token
|
10
|
+
t.string :persistence_token, :null => false
|
11
|
+
t.string :single_access_token, :null => false
|
12
|
+
t.string :perishable_token, :null => false
|
14
13
|
t.integer :login_count, :null => false, :default => 0
|
15
14
|
t.integer :failed_login_count, :null => false, :default => 0
|
16
15
|
t.datetime :last_request_at
|
17
|
-
t.datetime :last_login_at
|
18
16
|
t.datetime :current_login_at
|
17
|
+
t.datetime :last_login_at
|
19
18
|
t.string :current_login_ip
|
20
19
|
t.string :last_login_ip
|
21
|
-
t.boolean :terms_of_service,
|
22
|
-
t.string :time_zone,
|
20
|
+
t.boolean :terms_of_service, :default => false, :null => false
|
21
|
+
t.string :time_zone, :default => "UTC"
|
23
22
|
t.datetime :disabled_at
|
23
|
+
t.datetime :created_at
|
24
24
|
t.datetime :activated_at
|
25
|
-
t.
|
25
|
+
t.datetime :updated_at
|
26
|
+
t.string :identity_url
|
27
|
+
t.string :url_key
|
26
28
|
end
|
27
29
|
|
28
30
|
add_index :users, :login
|
29
31
|
add_index :users, :email
|
30
32
|
add_index :users, :persistence_token
|
31
|
-
add_index :users, :perishable_token
|
32
|
-
add_index :users, :single_access_token
|
33
33
|
add_index :users, :last_request_at
|
34
|
+
|
34
35
|
end
|
35
36
|
|
36
37
|
def self.down
|