open_porch 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +41 -0
- data/Gemfile.lock +130 -0
- data/README.md +170 -0
- data/Rakefile +19 -0
- data/VERSION +1 -0
- data/app/controllers/admin/areas/base_controller.rb +11 -0
- data/app/controllers/admin/areas/issues_controller.rb +67 -0
- data/app/controllers/admin/areas/memberships_controller.rb +7 -0
- data/app/controllers/admin/areas/posts_controller.rb +44 -0
- data/app/controllers/admin/areas_controller.rb +89 -0
- data/app/controllers/admin/base_controller.rb +16 -0
- data/app/controllers/admin/user_activity_controller.rb +29 -0
- data/app/controllers/admin/users_controller.rb +57 -0
- data/app/controllers/application_controller.rb +15 -0
- data/app/controllers/areas/base_controller.rb +25 -0
- data/app/controllers/areas/issues_controller.rb +35 -0
- data/app/controllers/areas/posts_controller.rb +28 -0
- data/app/controllers/areas_controller.rb +30 -0
- data/app/controllers/passwords_controller.rb +42 -0
- data/app/controllers/registrations_controller.rb +42 -0
- data/app/controllers/sessions_controller.rb +33 -0
- data/app/controllers/users_controller.rb +77 -0
- data/app/helpers/open_porch_helper.rb +24 -0
- data/app/mailers/user_mailer.rb +35 -0
- data/app/models/address.rb +57 -0
- data/app/models/area.rb +171 -0
- data/app/models/area_activity.rb +24 -0
- data/app/models/email_message.rb +104 -0
- data/app/models/issue.rb +66 -0
- data/app/models/issue_number.rb +22 -0
- data/app/models/membership.rb +27 -0
- data/app/models/post.rb +64 -0
- data/app/models/session_user.rb +69 -0
- data/app/models/user.rb +140 -0
- data/app/models/user_activity.rb +31 -0
- data/app/models/user_authority_check.rb +14 -0
- data/app/views/admin/areas/_form.html.haml +8 -0
- data/app/views/admin/areas/_nav.html.haml +12 -0
- data/app/views/admin/areas/edit.html.haml +22 -0
- data/app/views/admin/areas/edit_borders.html.haml +44 -0
- data/app/views/admin/areas/index.html.haml +61 -0
- data/app/views/admin/areas/issues/_post.html.haml +15 -0
- data/app/views/admin/areas/issues/add_posts.js.rjs +3 -0
- data/app/views/admin/areas/issues/edit.html.haml +37 -0
- data/app/views/admin/areas/issues/index.html.haml +31 -0
- data/app/views/admin/areas/issues/remove_posts.js.rjs +3 -0
- data/app/views/admin/areas/issues/show.html.haml +13 -0
- data/app/views/admin/areas/memberships/index.html.haml +17 -0
- data/app/views/admin/areas/new.html.haml +6 -0
- data/app/views/admin/areas/new.js.haml +4 -0
- data/app/views/admin/areas/posts/_edit.html.haml +6 -0
- data/app/views/admin/areas/posts/_post_status.html.haml +1 -0
- data/app/views/admin/areas/posts/destroy.js.rjs +1 -0
- data/app/views/admin/areas/posts/edit.js.rjs +1 -0
- data/app/views/admin/areas/posts/show.js.rjs +1 -0
- data/app/views/admin/areas/posts/toggle_reviewed_by.js.rjs +1 -0
- data/app/views/admin/areas/posts/update.js.rjs +5 -0
- data/app/views/admin/areas/show.html.haml +5 -0
- data/app/views/admin/user_activity/show.html.haml +5 -0
- data/app/views/admin/users/_form.html.haml +21 -0
- data/app/views/admin/users/edit.html.haml +5 -0
- data/app/views/admin/users/index.html.haml +31 -0
- data/app/views/admin/users/new.html.haml +5 -0
- data/app/views/areas/issues/index.html.haml +31 -0
- data/app/views/areas/issues/show.html.haml +22 -0
- data/app/views/areas/posts/_post.html.haml +8 -0
- data/app/views/areas/posts/_posts_search_form.html.haml +8 -0
- data/app/views/areas/posts/index.html.haml +27 -0
- data/app/views/areas/posts/new.html.haml +10 -0
- data/app/views/areas/show.html.haml +47 -0
- data/app/views/layouts/_account_nav.html.haml +18 -0
- data/app/views/layouts/_flash_message.html.haml +4 -0
- data/app/views/layouts/_footer.html.haml +9 -0
- data/app/views/layouts/_head.html.haml +16 -0
- data/app/views/layouts/admin/_nav.html.haml +13 -0
- data/app/views/layouts/admin.html.haml +15 -0
- data/app/views/layouts/application.html.haml +14 -0
- data/app/views/layouts/area_editor.html.haml +11 -0
- data/app/views/passwords/edit.html.haml +9 -0
- data/app/views/passwords/new.html.haml +13 -0
- data/app/views/registrations/_address_form.html.haml +7 -0
- data/app/views/registrations/create.html.haml +49 -0
- data/app/views/registrations/index.html.haml +30 -0
- data/app/views/registrations/new.html.haml +17 -0
- data/app/views/sessions/new.html.haml +18 -0
- data/app/views/stylesheets/common.sass +239 -0
- data/app/views/stylesheets/content.sass +193 -0
- data/app/views/stylesheets/reset.sass +46 -0
- data/app/views/stylesheets/structure.sass +11 -0
- data/app/views/stylesheets/typography.sass +57 -0
- data/app/views/user_mailer/email_verification.html.erb +5 -0
- data/app/views/user_mailer/email_verification.text.erb +7 -0
- data/app/views/user_mailer/new_issue.html.erb +32 -0
- data/app/views/user_mailer/new_issue.text.erb +26 -0
- data/app/views/user_mailer/password_reset.html.erb +7 -0
- data/app/views/user_mailer/password_reset.text.erb +6 -0
- data/app/views/users/_form.html.haml +5 -0
- data/app/views/users/edit.html.haml +11 -0
- data/app/views/users/new.html.haml +41 -0
- data/app/views/users/show.html.haml +30 -0
- data/bin/open_porch_engine +135 -0
- data/config/application.rb +43 -0
- data/config/boot.rb +13 -0
- data/config/database_example.yml +59 -0
- data/config/environment.rb +5 -0
- data/config/environments/development.rb +26 -0
- data/config/environments/production.rb +49 -0
- data/config/environments/test.rb +35 -0
- data/config/initializers/backtrace_silencers.rb +7 -0
- data/config/initializers/email_regex.rb +38 -0
- data/config/initializers/geokit_config.rb +61 -0
- data/config/initializers/inflections.rb +20 -0
- data/config/initializers/meta_search.rb +7 -0
- data/config/initializers/mime_types.rb +5 -0
- data/config/initializers/open_porch.rb +41 -0
- data/config/initializers/sass.rb +1 -0
- data/config/initializers/secret_token.rb +7 -0
- data/config/initializers/session_store.rb +8 -0
- data/config/initializers/states_provinces.rb +2 -0
- data/config/initializers/will_paginate.rb +2 -0
- data/config/locales/en.yml +5 -0
- data/config/open_porch_example.yml +23 -0
- data/config/routes.rb +54 -0
- data/config/schedule.rb +9 -0
- data/config.ru +4 -0
- data/db/migrate/01_create_areas.rb +21 -0
- data/db/migrate/02_create_users.rb +28 -0
- data/db/migrate/03_create_memberships.rb +14 -0
- data/db/migrate/04_create_posts.rb +20 -0
- data/db/migrate/05_create_issue_numbers.rb +13 -0
- data/db/migrate/06_create_issues.rb +21 -0
- data/db/migrate/20110204173301_add_published_to_areas.rb +10 -0
- data/db/migrate/20110204194840_create_user_activities.rb +13 -0
- data/db/migrate/20110208163604_add_zip_to_areas.rb +11 -0
- data/db/migrate/20110209175723_add_counters_to_areas.rb +11 -0
- data/db/migrate/20110209182244_remove_subject_from_issues.rb +9 -0
- data/db/migrate/20110209190146_add_reviewer_info_to_posts.rb +9 -0
- data/db/migrate/20110215173144_add_email_validation_key_to_users.rb +13 -0
- data/db/migrate/20110215182716_remove_published_from_areas.rb +10 -0
- data/db/migrate/20110215211012_create_area_activities.rb +19 -0
- data/db/migrate/20110215213802_create_email_messages.rb +19 -0
- data/db/migrate/20110217165018_change_send_mode_to_string.rb +17 -0
- data/db/migrate/20110223160609_denormalize_user_info_in_posts.rb +19 -0
- data/db/seeds.rb +7 -0
- data/doc/README_FOR_APP +2 -0
- data/lib/generators/open_porch_generator.rb +37 -0
- data/lib/open_porch/engine.rb +20 -0
- data/lib/open_porch.rb +3 -0
- data/lib/tasks/.gitkeep +0 -0
- data/lib/tasks/open_porch.rake +10 -0
- data/lib/tasks/postageapp_tasks.rake +78 -0
- data/open_porch.gemspec +335 -0
- data/public/404.html +26 -0
- data/public/422.html +26 -0
- data/public/500.html +26 -0
- data/public/favicon.ico +0 -0
- data/public/images/icons/ajax-loader.gif +0 -0
- data/public/images/icons/calendar.png +0 -0
- data/public/images/icons/post_new.png +0 -0
- data/public/images/icons/post_reviewed.png +0 -0
- data/public/javascripts/application.js +3 -0
- data/public/javascripts/google_maps.js +153 -0
- data/public/javascripts/highcharts.js +162 -0
- data/public/javascripts/highcharts_init.js +30 -0
- data/public/javascripts/issue_edit.js +57 -0
- data/public/javascripts/jquery-ui.min.js +191 -0
- data/public/javascripts/jquery.js +154 -0
- data/public/javascripts/rails.js +137 -0
- data/public/javascripts/region_editor.js +616 -0
- data/public/javascripts/user_activity.js +29 -0
- data/public/robots.txt +5 -0
- data/public/stylesheets/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/public/stylesheets/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/public/stylesheets/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/public/stylesheets/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/public/stylesheets/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/public/stylesheets/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/public/stylesheets/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/public/stylesheets/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/public/stylesheets/images/ui-icons_222222_256x240.png +0 -0
- data/public/stylesheets/images/ui-icons_2e83ff_256x240.png +0 -0
- data/public/stylesheets/images/ui-icons_454545_256x240.png +0 -0
- data/public/stylesheets/images/ui-icons_888888_256x240.png +0 -0
- data/public/stylesheets/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/public/stylesheets/jquery-ui.css +362 -0
- data/script/rails +6 -0
- data/test/dummy/area.rb +5 -0
- data/test/dummy/area_activity.rb +7 -0
- data/test/dummy/issue.rb +4 -0
- data/test/dummy/membership.rb +4 -0
- data/test/dummy/post.rb +12 -0
- data/test/dummy/user.rb +29 -0
- data/test/dummy/user_activity.rb +11 -0
- data/test/functional/admin/areas/issues_controller_test.rb +48 -0
- data/test/functional/admin/areas/memberships_controller_test.rb +45 -0
- data/test/functional/admin/areas/posts_controller_test.rb +54 -0
- data/test/functional/admin/areas_controller_test.rb +134 -0
- data/test/functional/admin/base_controller_test.rb +8 -0
- data/test/functional/admin/user_activity_controller_test.rb +28 -0
- data/test/functional/admin/users_controller_test.rb +144 -0
- data/test/functional/areas/issues_controller_test.rb +33 -0
- data/test/functional/areas/posts_controller_test.rb +50 -0
- data/test/functional/areas_controller_test.rb +12 -0
- data/test/functional/passwords_controller_test.rb +64 -0
- data/test/functional/registrations_controller_test.rb +64 -0
- data/test/functional/sessions_controller_test.rb +120 -0
- data/test/functional/users_controller_test.rb +144 -0
- data/test/performance/browsing_test.rb +9 -0
- data/test/test_helper.rb +92 -0
- data/test/unit/address_test.rb +25 -0
- data/test/unit/area_activity_test.rb +57 -0
- data/test/unit/area_test.rb +92 -0
- data/test/unit/email_message_test.rb +8 -0
- data/test/unit/issue_number_test.rb +25 -0
- data/test/unit/issue_test.rb +154 -0
- data/test/unit/membership_test.rb +20 -0
- data/test/unit/post_test.rb +69 -0
- data/test/unit/session_user_test.rb +65 -0
- data/test/unit/user_activity_test.rb +31 -0
- data/test/unit/user_mailer_test.rb +20 -0
- data/test/unit/user_test.rb +61 -0
- data/vendor/plugins/.gitkeep +0 -0
- metadata +456 -0
data/open_porch.gemspec
ADDED
@@ -0,0 +1,335 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{open_porch}
|
8
|
+
s.version = "0.5.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["The Working Group Inc"]
|
12
|
+
s.date = %q{2011-03-22}
|
13
|
+
s.default_executable = %q{open_porch_engine}
|
14
|
+
s.description = %q{}
|
15
|
+
s.email = %q{jack@theworkinggroup.ca}
|
16
|
+
s.executables = ["open_porch_engine"]
|
17
|
+
s.extra_rdoc_files = [
|
18
|
+
"README.md"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
"Gemfile",
|
22
|
+
"Gemfile.lock",
|
23
|
+
"README.md",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"app/controllers/admin/areas/base_controller.rb",
|
27
|
+
"app/controllers/admin/areas/issues_controller.rb",
|
28
|
+
"app/controllers/admin/areas/memberships_controller.rb",
|
29
|
+
"app/controllers/admin/areas/posts_controller.rb",
|
30
|
+
"app/controllers/admin/areas_controller.rb",
|
31
|
+
"app/controllers/admin/base_controller.rb",
|
32
|
+
"app/controllers/admin/user_activity_controller.rb",
|
33
|
+
"app/controllers/admin/users_controller.rb",
|
34
|
+
"app/controllers/application_controller.rb",
|
35
|
+
"app/controllers/areas/base_controller.rb",
|
36
|
+
"app/controllers/areas/issues_controller.rb",
|
37
|
+
"app/controllers/areas/posts_controller.rb",
|
38
|
+
"app/controllers/areas_controller.rb",
|
39
|
+
"app/controllers/passwords_controller.rb",
|
40
|
+
"app/controllers/registrations_controller.rb",
|
41
|
+
"app/controllers/sessions_controller.rb",
|
42
|
+
"app/controllers/users_controller.rb",
|
43
|
+
"app/helpers/open_porch_helper.rb",
|
44
|
+
"app/mailers/user_mailer.rb",
|
45
|
+
"app/models/address.rb",
|
46
|
+
"app/models/area.rb",
|
47
|
+
"app/models/area_activity.rb",
|
48
|
+
"app/models/email_message.rb",
|
49
|
+
"app/models/issue.rb",
|
50
|
+
"app/models/issue_number.rb",
|
51
|
+
"app/models/membership.rb",
|
52
|
+
"app/models/post.rb",
|
53
|
+
"app/models/session_user.rb",
|
54
|
+
"app/models/user.rb",
|
55
|
+
"app/models/user_activity.rb",
|
56
|
+
"app/models/user_authority_check.rb",
|
57
|
+
"app/views/admin/areas/_form.html.haml",
|
58
|
+
"app/views/admin/areas/_nav.html.haml",
|
59
|
+
"app/views/admin/areas/edit.html.haml",
|
60
|
+
"app/views/admin/areas/edit_borders.html.haml",
|
61
|
+
"app/views/admin/areas/index.html.haml",
|
62
|
+
"app/views/admin/areas/issues/_post.html.haml",
|
63
|
+
"app/views/admin/areas/issues/add_posts.js.rjs",
|
64
|
+
"app/views/admin/areas/issues/edit.html.haml",
|
65
|
+
"app/views/admin/areas/issues/index.html.haml",
|
66
|
+
"app/views/admin/areas/issues/remove_posts.js.rjs",
|
67
|
+
"app/views/admin/areas/issues/show.html.haml",
|
68
|
+
"app/views/admin/areas/memberships/index.html.haml",
|
69
|
+
"app/views/admin/areas/new.html.haml",
|
70
|
+
"app/views/admin/areas/new.js.haml",
|
71
|
+
"app/views/admin/areas/posts/_edit.html.haml",
|
72
|
+
"app/views/admin/areas/posts/_post_status.html.haml",
|
73
|
+
"app/views/admin/areas/posts/destroy.js.rjs",
|
74
|
+
"app/views/admin/areas/posts/edit.js.rjs",
|
75
|
+
"app/views/admin/areas/posts/show.js.rjs",
|
76
|
+
"app/views/admin/areas/posts/toggle_reviewed_by.js.rjs",
|
77
|
+
"app/views/admin/areas/posts/update.js.rjs",
|
78
|
+
"app/views/admin/areas/show.html.haml",
|
79
|
+
"app/views/admin/user_activity/show.html.haml",
|
80
|
+
"app/views/admin/users/_form.html.haml",
|
81
|
+
"app/views/admin/users/edit.html.haml",
|
82
|
+
"app/views/admin/users/index.html.haml",
|
83
|
+
"app/views/admin/users/new.html.haml",
|
84
|
+
"app/views/areas/issues/index.html.haml",
|
85
|
+
"app/views/areas/issues/show.html.haml",
|
86
|
+
"app/views/areas/posts/_post.html.haml",
|
87
|
+
"app/views/areas/posts/_posts_search_form.html.haml",
|
88
|
+
"app/views/areas/posts/index.html.haml",
|
89
|
+
"app/views/areas/posts/new.html.haml",
|
90
|
+
"app/views/areas/show.html.haml",
|
91
|
+
"app/views/layouts/_account_nav.html.haml",
|
92
|
+
"app/views/layouts/_flash_message.html.haml",
|
93
|
+
"app/views/layouts/_footer.html.haml",
|
94
|
+
"app/views/layouts/_head.html.haml",
|
95
|
+
"app/views/layouts/admin.html.haml",
|
96
|
+
"app/views/layouts/admin/_nav.html.haml",
|
97
|
+
"app/views/layouts/application.html.haml",
|
98
|
+
"app/views/layouts/area_editor.html.haml",
|
99
|
+
"app/views/passwords/edit.html.haml",
|
100
|
+
"app/views/passwords/new.html.haml",
|
101
|
+
"app/views/registrations/_address_form.html.haml",
|
102
|
+
"app/views/registrations/create.html.haml",
|
103
|
+
"app/views/registrations/index.html.haml",
|
104
|
+
"app/views/registrations/new.html.haml",
|
105
|
+
"app/views/sessions/new.html.haml",
|
106
|
+
"app/views/stylesheets/common.sass",
|
107
|
+
"app/views/stylesheets/content.sass",
|
108
|
+
"app/views/stylesheets/reset.sass",
|
109
|
+
"app/views/stylesheets/structure.sass",
|
110
|
+
"app/views/stylesheets/typography.sass",
|
111
|
+
"app/views/user_mailer/email_verification.html.erb",
|
112
|
+
"app/views/user_mailer/email_verification.text.erb",
|
113
|
+
"app/views/user_mailer/new_issue.html.erb",
|
114
|
+
"app/views/user_mailer/new_issue.text.erb",
|
115
|
+
"app/views/user_mailer/password_reset.html.erb",
|
116
|
+
"app/views/user_mailer/password_reset.text.erb",
|
117
|
+
"app/views/users/_form.html.haml",
|
118
|
+
"app/views/users/edit.html.haml",
|
119
|
+
"app/views/users/new.html.haml",
|
120
|
+
"app/views/users/show.html.haml",
|
121
|
+
"bin/open_porch_engine",
|
122
|
+
"config.ru",
|
123
|
+
"config/application.rb",
|
124
|
+
"config/boot.rb",
|
125
|
+
"config/database_example.yml",
|
126
|
+
"config/environment.rb",
|
127
|
+
"config/environments/development.rb",
|
128
|
+
"config/environments/production.rb",
|
129
|
+
"config/environments/test.rb",
|
130
|
+
"config/initializers/backtrace_silencers.rb",
|
131
|
+
"config/initializers/email_regex.rb",
|
132
|
+
"config/initializers/geokit_config.rb",
|
133
|
+
"config/initializers/inflections.rb",
|
134
|
+
"config/initializers/meta_search.rb",
|
135
|
+
"config/initializers/mime_types.rb",
|
136
|
+
"config/initializers/open_porch.rb",
|
137
|
+
"config/initializers/sass.rb",
|
138
|
+
"config/initializers/secret_token.rb",
|
139
|
+
"config/initializers/session_store.rb",
|
140
|
+
"config/initializers/states_provinces.rb",
|
141
|
+
"config/initializers/will_paginate.rb",
|
142
|
+
"config/locales/en.yml",
|
143
|
+
"config/open_porch_example.yml",
|
144
|
+
"config/routes.rb",
|
145
|
+
"config/schedule.rb",
|
146
|
+
"db/migrate/01_create_areas.rb",
|
147
|
+
"db/migrate/02_create_users.rb",
|
148
|
+
"db/migrate/03_create_memberships.rb",
|
149
|
+
"db/migrate/04_create_posts.rb",
|
150
|
+
"db/migrate/05_create_issue_numbers.rb",
|
151
|
+
"db/migrate/06_create_issues.rb",
|
152
|
+
"db/migrate/20110204173301_add_published_to_areas.rb",
|
153
|
+
"db/migrate/20110204194840_create_user_activities.rb",
|
154
|
+
"db/migrate/20110208163604_add_zip_to_areas.rb",
|
155
|
+
"db/migrate/20110209175723_add_counters_to_areas.rb",
|
156
|
+
"db/migrate/20110209182244_remove_subject_from_issues.rb",
|
157
|
+
"db/migrate/20110209190146_add_reviewer_info_to_posts.rb",
|
158
|
+
"db/migrate/20110215173144_add_email_validation_key_to_users.rb",
|
159
|
+
"db/migrate/20110215182716_remove_published_from_areas.rb",
|
160
|
+
"db/migrate/20110215211012_create_area_activities.rb",
|
161
|
+
"db/migrate/20110215213802_create_email_messages.rb",
|
162
|
+
"db/migrate/20110217165018_change_send_mode_to_string.rb",
|
163
|
+
"db/migrate/20110223160609_denormalize_user_info_in_posts.rb",
|
164
|
+
"db/seeds.rb",
|
165
|
+
"doc/README_FOR_APP",
|
166
|
+
"lib/generators/open_porch_generator.rb",
|
167
|
+
"lib/open_porch.rb",
|
168
|
+
"lib/open_porch/engine.rb",
|
169
|
+
"lib/tasks/.gitkeep",
|
170
|
+
"lib/tasks/open_porch.rake",
|
171
|
+
"lib/tasks/postageapp_tasks.rake",
|
172
|
+
"open_porch.gemspec",
|
173
|
+
"public/404.html",
|
174
|
+
"public/422.html",
|
175
|
+
"public/500.html",
|
176
|
+
"public/favicon.ico",
|
177
|
+
"public/images/icons/ajax-loader.gif",
|
178
|
+
"public/images/icons/calendar.png",
|
179
|
+
"public/images/icons/post_new.png",
|
180
|
+
"public/images/icons/post_reviewed.png",
|
181
|
+
"public/javascripts/application.js",
|
182
|
+
"public/javascripts/google_maps.js",
|
183
|
+
"public/javascripts/highcharts.js",
|
184
|
+
"public/javascripts/highcharts_init.js",
|
185
|
+
"public/javascripts/issue_edit.js",
|
186
|
+
"public/javascripts/jquery-ui.min.js",
|
187
|
+
"public/javascripts/jquery.js",
|
188
|
+
"public/javascripts/rails.js",
|
189
|
+
"public/javascripts/region_editor.js",
|
190
|
+
"public/javascripts/user_activity.js",
|
191
|
+
"public/robots.txt",
|
192
|
+
"public/stylesheets/images/ui-bg_flat_0_aaaaaa_40x100.png",
|
193
|
+
"public/stylesheets/images/ui-bg_flat_75_ffffff_40x100.png",
|
194
|
+
"public/stylesheets/images/ui-bg_glass_55_fbf9ee_1x400.png",
|
195
|
+
"public/stylesheets/images/ui-bg_glass_65_ffffff_1x400.png",
|
196
|
+
"public/stylesheets/images/ui-bg_glass_75_dadada_1x400.png",
|
197
|
+
"public/stylesheets/images/ui-bg_glass_75_e6e6e6_1x400.png",
|
198
|
+
"public/stylesheets/images/ui-bg_glass_95_fef1ec_1x400.png",
|
199
|
+
"public/stylesheets/images/ui-bg_highlight-soft_75_cccccc_1x100.png",
|
200
|
+
"public/stylesheets/images/ui-icons_222222_256x240.png",
|
201
|
+
"public/stylesheets/images/ui-icons_2e83ff_256x240.png",
|
202
|
+
"public/stylesheets/images/ui-icons_454545_256x240.png",
|
203
|
+
"public/stylesheets/images/ui-icons_888888_256x240.png",
|
204
|
+
"public/stylesheets/images/ui-icons_cd0a0a_256x240.png",
|
205
|
+
"public/stylesheets/jquery-ui.css",
|
206
|
+
"script/rails",
|
207
|
+
"test/dummy/area.rb",
|
208
|
+
"test/dummy/area_activity.rb",
|
209
|
+
"test/dummy/issue.rb",
|
210
|
+
"test/dummy/membership.rb",
|
211
|
+
"test/dummy/post.rb",
|
212
|
+
"test/dummy/user.rb",
|
213
|
+
"test/dummy/user_activity.rb",
|
214
|
+
"test/functional/admin/areas/issues_controller_test.rb",
|
215
|
+
"test/functional/admin/areas/memberships_controller_test.rb",
|
216
|
+
"test/functional/admin/areas/posts_controller_test.rb",
|
217
|
+
"test/functional/admin/areas_controller_test.rb",
|
218
|
+
"test/functional/admin/base_controller_test.rb",
|
219
|
+
"test/functional/admin/user_activity_controller_test.rb",
|
220
|
+
"test/functional/admin/users_controller_test.rb",
|
221
|
+
"test/functional/areas/issues_controller_test.rb",
|
222
|
+
"test/functional/areas/posts_controller_test.rb",
|
223
|
+
"test/functional/areas_controller_test.rb",
|
224
|
+
"test/functional/passwords_controller_test.rb",
|
225
|
+
"test/functional/registrations_controller_test.rb",
|
226
|
+
"test/functional/sessions_controller_test.rb",
|
227
|
+
"test/functional/users_controller_test.rb",
|
228
|
+
"test/performance/browsing_test.rb",
|
229
|
+
"test/test_helper.rb",
|
230
|
+
"test/unit/address_test.rb",
|
231
|
+
"test/unit/area_activity_test.rb",
|
232
|
+
"test/unit/area_test.rb",
|
233
|
+
"test/unit/email_message_test.rb",
|
234
|
+
"test/unit/issue_number_test.rb",
|
235
|
+
"test/unit/issue_test.rb",
|
236
|
+
"test/unit/membership_test.rb",
|
237
|
+
"test/unit/post_test.rb",
|
238
|
+
"test/unit/session_user_test.rb",
|
239
|
+
"test/unit/user_activity_test.rb",
|
240
|
+
"test/unit/user_mailer_test.rb",
|
241
|
+
"test/unit/user_test.rb",
|
242
|
+
"vendor/plugins/.gitkeep"
|
243
|
+
]
|
244
|
+
s.homepage = %q{http://github.com/FrontPorchForum/open_porch}
|
245
|
+
s.licenses = ["MIT"]
|
246
|
+
s.require_paths = ["lib"]
|
247
|
+
s.rubygems_version = %q{1.5.2}
|
248
|
+
s.summary = %q{Open Porch is Rails Engine}
|
249
|
+
s.test_files = [
|
250
|
+
"test/dummy/area.rb",
|
251
|
+
"test/dummy/area_activity.rb",
|
252
|
+
"test/dummy/issue.rb",
|
253
|
+
"test/dummy/membership.rb",
|
254
|
+
"test/dummy/post.rb",
|
255
|
+
"test/dummy/user.rb",
|
256
|
+
"test/dummy/user_activity.rb",
|
257
|
+
"test/functional/admin/areas/issues_controller_test.rb",
|
258
|
+
"test/functional/admin/areas/memberships_controller_test.rb",
|
259
|
+
"test/functional/admin/areas/posts_controller_test.rb",
|
260
|
+
"test/functional/admin/areas_controller_test.rb",
|
261
|
+
"test/functional/admin/base_controller_test.rb",
|
262
|
+
"test/functional/admin/user_activity_controller_test.rb",
|
263
|
+
"test/functional/admin/users_controller_test.rb",
|
264
|
+
"test/functional/areas/issues_controller_test.rb",
|
265
|
+
"test/functional/areas/posts_controller_test.rb",
|
266
|
+
"test/functional/areas_controller_test.rb",
|
267
|
+
"test/functional/passwords_controller_test.rb",
|
268
|
+
"test/functional/registrations_controller_test.rb",
|
269
|
+
"test/functional/sessions_controller_test.rb",
|
270
|
+
"test/functional/users_controller_test.rb",
|
271
|
+
"test/performance/browsing_test.rb",
|
272
|
+
"test/test_helper.rb",
|
273
|
+
"test/unit/address_test.rb",
|
274
|
+
"test/unit/area_activity_test.rb",
|
275
|
+
"test/unit/area_test.rb",
|
276
|
+
"test/unit/email_message_test.rb",
|
277
|
+
"test/unit/issue_number_test.rb",
|
278
|
+
"test/unit/issue_test.rb",
|
279
|
+
"test/unit/membership_test.rb",
|
280
|
+
"test/unit/post_test.rb",
|
281
|
+
"test/unit/session_user_test.rb",
|
282
|
+
"test/unit/user_activity_test.rb",
|
283
|
+
"test/unit/user_mailer_test.rb",
|
284
|
+
"test/unit/user_test.rb"
|
285
|
+
]
|
286
|
+
|
287
|
+
if s.respond_to? :specification_version then
|
288
|
+
s.specification_version = 3
|
289
|
+
|
290
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
291
|
+
s.add_runtime_dependency(%q<rails>, [">= 3.0.4"])
|
292
|
+
s.add_runtime_dependency(%q<pg>, ["= 0.10.1"])
|
293
|
+
s.add_runtime_dependency(%q<haml>, ["= 3.0.25"])
|
294
|
+
s.add_runtime_dependency(%q<spatial_adapter>, ["= 1.2.0"])
|
295
|
+
s.add_runtime_dependency(%q<wristband>, [">= 1.0.4"])
|
296
|
+
s.add_runtime_dependency(%q<formatted_form>, [">= 1.0.1"])
|
297
|
+
s.add_runtime_dependency(%q<geokit>, ["= 1.5.0"])
|
298
|
+
s.add_runtime_dependency(%q<active_link_to>, ["= 0.0.6"])
|
299
|
+
s.add_runtime_dependency(%q<meta_where>, ["= 1.0.1"])
|
300
|
+
s.add_runtime_dependency(%q<meta_search>, ["= 1.0.1"])
|
301
|
+
s.add_runtime_dependency(%q<will_paginate>, ["~> 3.0.pre2"])
|
302
|
+
s.add_runtime_dependency(%q<whenever>, ["= 0.6.2"])
|
303
|
+
s.add_runtime_dependency(%q<postageapp>, [">= 0"])
|
304
|
+
else
|
305
|
+
s.add_dependency(%q<rails>, [">= 3.0.4"])
|
306
|
+
s.add_dependency(%q<pg>, ["= 0.10.1"])
|
307
|
+
s.add_dependency(%q<haml>, ["= 3.0.25"])
|
308
|
+
s.add_dependency(%q<spatial_adapter>, ["= 1.2.0"])
|
309
|
+
s.add_dependency(%q<wristband>, [">= 1.0.4"])
|
310
|
+
s.add_dependency(%q<formatted_form>, [">= 1.0.1"])
|
311
|
+
s.add_dependency(%q<geokit>, ["= 1.5.0"])
|
312
|
+
s.add_dependency(%q<active_link_to>, ["= 0.0.6"])
|
313
|
+
s.add_dependency(%q<meta_where>, ["= 1.0.1"])
|
314
|
+
s.add_dependency(%q<meta_search>, ["= 1.0.1"])
|
315
|
+
s.add_dependency(%q<will_paginate>, ["~> 3.0.pre2"])
|
316
|
+
s.add_dependency(%q<whenever>, ["= 0.6.2"])
|
317
|
+
s.add_dependency(%q<postageapp>, [">= 0"])
|
318
|
+
end
|
319
|
+
else
|
320
|
+
s.add_dependency(%q<rails>, [">= 3.0.4"])
|
321
|
+
s.add_dependency(%q<pg>, ["= 0.10.1"])
|
322
|
+
s.add_dependency(%q<haml>, ["= 3.0.25"])
|
323
|
+
s.add_dependency(%q<spatial_adapter>, ["= 1.2.0"])
|
324
|
+
s.add_dependency(%q<wristband>, [">= 1.0.4"])
|
325
|
+
s.add_dependency(%q<formatted_form>, [">= 1.0.1"])
|
326
|
+
s.add_dependency(%q<geokit>, ["= 1.5.0"])
|
327
|
+
s.add_dependency(%q<active_link_to>, ["= 0.0.6"])
|
328
|
+
s.add_dependency(%q<meta_where>, ["= 1.0.1"])
|
329
|
+
s.add_dependency(%q<meta_search>, ["= 1.0.1"])
|
330
|
+
s.add_dependency(%q<will_paginate>, ["~> 3.0.pre2"])
|
331
|
+
s.add_dependency(%q<whenever>, ["= 0.6.2"])
|
332
|
+
s.add_dependency(%q<postageapp>, [">= 0"])
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
data/public/404.html
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
data/public/422.html
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
data/public/500.html
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
data/public/favicon.ico
ADDED
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,153 @@
|
|
1
|
+
var map = null;
|
2
|
+
var center_marker = null;
|
3
|
+
var geocoder = new google.maps.Geocoder();
|
4
|
+
var regions = new Array()
|
5
|
+
var colors = {
|
6
|
+
red: '#aa4643',
|
7
|
+
blue: '#4572a7'
|
8
|
+
}
|
9
|
+
|
10
|
+
function initialize_gmap(id, center_lat, center_lng, options, bounds) {
|
11
|
+
var defaults = {
|
12
|
+
zoom: 14,
|
13
|
+
center: new google.maps.LatLng(center_lat, center_lng),
|
14
|
+
mapTypeControl: false,
|
15
|
+
streetViewControl: false,
|
16
|
+
scaleControl: false,
|
17
|
+
mapTypeId: google.maps.MapTypeId.ROADMAP
|
18
|
+
}
|
19
|
+
var options = $.extend(defaults, options);
|
20
|
+
|
21
|
+
map = new google.maps.Map(id, options);
|
22
|
+
|
23
|
+
// Adjusting the zoom level if bounds were provided
|
24
|
+
if (bounds != null) {
|
25
|
+
map.fitBounds(new google.maps.LatLngBounds(
|
26
|
+
new google.maps.LatLng(bounds[0][0], bounds[0][1]),
|
27
|
+
new google.maps.LatLng(bounds[1][0], bounds[1][1])
|
28
|
+
));
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
function add_marker(lat, lng, title, options){
|
33
|
+
var defaults = {
|
34
|
+
position: new google.maps.LatLng(lat, lng),
|
35
|
+
map: map,
|
36
|
+
title: title
|
37
|
+
}
|
38
|
+
var options = $.extend(defaults, options);
|
39
|
+
|
40
|
+
return new google.maps.Marker(options);
|
41
|
+
}
|
42
|
+
|
43
|
+
function delete_marker(marker) {
|
44
|
+
if (marker) {
|
45
|
+
marker.setMap(null);
|
46
|
+
marker = null;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
function pan_to(lat, lng) {
|
51
|
+
delete_marker(center_marker);
|
52
|
+
center_marker = add_marker(lat, lng);
|
53
|
+
map.panTo(new google.maps.LatLng(lat, lng));
|
54
|
+
}
|
55
|
+
|
56
|
+
function pan_to_address(address) {
|
57
|
+
geocoder.geocode( { 'address': address }, function(results, status) {
|
58
|
+
if (status == google.maps.GeocoderStatus.OK) {
|
59
|
+
pan_to(results[0].geometry.location.lat(), results[0].geometry.location.lng());
|
60
|
+
} else {
|
61
|
+
alert("Geocode was not successful for the following reason: " + status);
|
62
|
+
}
|
63
|
+
});
|
64
|
+
}
|
65
|
+
|
66
|
+
function add_region(region_id, coordinates, style) {
|
67
|
+
switch(style) {
|
68
|
+
case 'selected':
|
69
|
+
var polygon = new google.maps.Polygon({
|
70
|
+
paths: coordinates,
|
71
|
+
strokeColor: colors.red,
|
72
|
+
strokeOpacity: 0.8,
|
73
|
+
strokeWeight: 2,
|
74
|
+
fillColor: colors.red,
|
75
|
+
fillOpacity: 0.35,
|
76
|
+
region_id: region_id,
|
77
|
+
area_selected: true
|
78
|
+
});
|
79
|
+
break;
|
80
|
+
default:
|
81
|
+
var polygon = new google.maps.Polygon({
|
82
|
+
paths: coordinates,
|
83
|
+
strokeColor: colors.blue,
|
84
|
+
strokeOpacity: 0.8,
|
85
|
+
strokeWeight: 2,
|
86
|
+
fillColor: colors.blue,
|
87
|
+
fillOpacity: 0.1,
|
88
|
+
region_id: region_id,
|
89
|
+
area_selected: false
|
90
|
+
});
|
91
|
+
}
|
92
|
+
regions.push(polygon);
|
93
|
+
polygon.setMap(map);
|
94
|
+
|
95
|
+
// Activate
|
96
|
+
google.maps.event.addListener(polygon, 'mouseover', function() {
|
97
|
+
if(polygon.area_selected == false) {
|
98
|
+
mouseover_region(polygon);
|
99
|
+
}
|
100
|
+
});
|
101
|
+
|
102
|
+
// Deactivate
|
103
|
+
google.maps.event.addListener(polygon, 'mouseout', function() {
|
104
|
+
if(polygon.area_selected == false) {
|
105
|
+
mouseout_region(polygon);
|
106
|
+
}
|
107
|
+
});
|
108
|
+
|
109
|
+
// Select
|
110
|
+
google.maps.event.addListener(polygon, 'click', function() {
|
111
|
+
select_region(polygon.region_id)
|
112
|
+
});
|
113
|
+
}
|
114
|
+
|
115
|
+
function mouseover_region(polygon) {
|
116
|
+
polygon.setOptions({
|
117
|
+
strokeColor: colors.red,
|
118
|
+
strokeOpacity: 0.8,
|
119
|
+
strokeWeight: 2,
|
120
|
+
fillColor: colors.red,
|
121
|
+
fillOpacity: 0.35,
|
122
|
+
});
|
123
|
+
$('#area_' + polygon.region_id).addClass('hover');
|
124
|
+
}
|
125
|
+
|
126
|
+
|
127
|
+
function mouseout_region(polygon) {
|
128
|
+
polygon.setOptions({
|
129
|
+
strokeColor: colors.blue,
|
130
|
+
strokeOpacity: 0.8,
|
131
|
+
strokeWeight: 2,
|
132
|
+
fillColor: colors.blue,
|
133
|
+
fillOpacity: 0.1
|
134
|
+
});
|
135
|
+
$('#area_' + polygon.region_id).removeClass('hover');
|
136
|
+
}
|
137
|
+
|
138
|
+
|
139
|
+
function select_region(region_id) {
|
140
|
+
$.each(regions, function(){
|
141
|
+
if(this.region_id == region_id) {
|
142
|
+
this.setOptions({area_selected: true});
|
143
|
+
mouseover_region(this);
|
144
|
+
} else {
|
145
|
+
this.setOptions({area_selected: false});
|
146
|
+
mouseout_region(this);
|
147
|
+
}
|
148
|
+
});
|
149
|
+
|
150
|
+
$('ul.areas li').removeClass('selected');
|
151
|
+
$('#area_' + region_id).addClass('selected');
|
152
|
+
$('#user_area_id').val(region_id);
|
153
|
+
}
|