muck-profiles 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +41 -0
- data/Rakefile +78 -0
- data/VERSION +1 -0
- data/app/controllers/admin/muck/profiles_controller.rb +10 -0
- data/app/controllers/muck/profiles_controller.rb +55 -0
- data/app/helpers/muck_profiles_helper.rb +3 -0
- data/app/views/admin/profiles/edit.html.erb +0 -0
- data/app/views/profiles/edit.html.erb +16 -0
- data/app/views/profiles/index.html.erb +0 -0
- data/app/views/profiles/show.html.erb +0 -0
- data/config/muck_profiles_routes.rb +11 -0
- data/db/migrate/20090512013727_create_profiles.rb +21 -0
- data/install.rb +1 -0
- data/lib/active_record/acts/muck_profile.rb +50 -0
- data/lib/active_record/has/muck_profile.rb +37 -0
- data/lib/muck_profiles.rb +5 -0
- data/lib/muck_profiles/initialize_routes.rb +8 -0
- data/lib/muck_profiles/tasks.rb +27 -0
- data/locales/en.yml +5 -0
- data/muck-profiles.gemspec +320 -0
- data/pkg/muck-profiles-0.1.0.gem +0 -0
- data/rails/init.rb +4 -0
- data/tasks/rails.rake +1 -0
- data/test/rails_root/.gitignore +8 -0
- data/test/rails_root/.rake_tasks +103 -0
- data/test/rails_root/Capfile +3 -0
- data/test/rails_root/Rakefile +15 -0
- data/test/rails_root/app/controllers/application_controller.rb +12 -0
- data/test/rails_root/app/controllers/default_controller.rb +7 -0
- data/test/rails_root/app/helpers/application_helper.rb +3 -0
- data/test/rails_root/app/models/.keep +0 -0
- data/test/rails_root/app/models/profile.rb +3 -0
- data/test/rails_root/app/models/user.rb +15 -0
- data/test/rails_root/app/models/user_session.rb +2 -0
- data/test/rails_root/app/views/default/index.html.erb +0 -0
- data/test/rails_root/app/views/layouts/default.html.erb +26 -0
- data/test/rails_root/config/boot.rb +109 -0
- data/test/rails_root/config/database.yml +14 -0
- data/test/rails_root/config/environment.rb +25 -0
- data/test/rails_root/config/environments/development.rb +19 -0
- data/test/rails_root/config/environments/production.rb +1 -0
- data/test/rails_root/config/environments/test.rb +33 -0
- data/test/rails_root/config/global_config.yml +18 -0
- data/test/rails_root/config/initializers/inflections.rb +10 -0
- data/test/rails_root/config/initializers/mime_types.rb +5 -0
- data/test/rails_root/config/initializers/requires.rb +13 -0
- data/test/rails_root/config/initializers/session_store.rb +8 -0
- data/test/rails_root/config/routes.rb +9 -0
- data/test/rails_root/db/.keep +0 -0
- data/test/rails_root/db/migrate/20090320174818_create_muck_permissions_and_roles.rb +16 -0
- data/test/rails_root/db/migrate/20090512013727_create_profiles.rb +21 -0
- data/test/rails_root/db/migrate/20090602041838_create_users.rb +39 -0
- data/test/rails_root/db/schema.rb +142 -0
- data/test/rails_root/features/step_definitions/webrat_steps.rb +99 -0
- data/test/rails_root/features/support/env.rb +14 -0
- data/test/rails_root/public/.htaccess +40 -0
- data/test/rails_root/public/404.html +30 -0
- data/test/rails_root/public/422.html +30 -0
- data/test/rails_root/public/500.html +30 -0
- data/test/rails_root/public/dispatch.rb +10 -0
- data/test/rails_root/public/favicon.ico +0 -0
- data/test/rails_root/public/images/arrow_left.gif +0 -0
- data/test/rails_root/public/images/arrow_right.gif +0 -0
- data/test/rails_root/public/images/blue/preview.gif +0 -0
- data/test/rails_root/public/images/icons/accept.png +0 -0
- data/test/rails_root/public/images/icons/add.png +0 -0
- data/test/rails_root/public/images/icons/delete.png +0 -0
- data/test/rails_root/public/images/icons/vote.png +0 -0
- data/test/rails_root/public/images/loading.gif +0 -0
- data/test/rails_root/public/images/profile_default.jpg +0 -0
- data/test/rails_root/public/images/rails.png +0 -0
- data/test/rails_root/public/images/red/preview.gif +0 -0
- data/test/rails_root/public/images/spinner.gif +0 -0
- data/test/rails_root/public/images/sprites.png +0 -0
- data/test/rails_root/public/javascripts/application.js +2 -0
- data/test/rails_root/public/javascripts/builder.js +136 -0
- data/test/rails_root/public/javascripts/controls.js +963 -0
- data/test/rails_root/public/javascripts/dragdrop.js +972 -0
- data/test/rails_root/public/javascripts/effects.js +1120 -0
- data/test/rails_root/public/javascripts/fancyzoom.min.js +1 -0
- data/test/rails_root/public/javascripts/jquery/jquery-ui.js +273 -0
- data/test/rails_root/public/javascripts/jquery/jquery.form.js +637 -0
- data/test/rails_root/public/javascripts/jquery/jquery.jgrowl.js +2 -0
- data/test/rails_root/public/javascripts/jquery/jquery.js +19 -0
- data/test/rails_root/public/javascripts/jquery/jquery.tips.js +69 -0
- data/test/rails_root/public/javascripts/muck.js +76 -0
- data/test/rails_root/public/javascripts/muck_activities.js +100 -0
- data/test/rails_root/public/javascripts/prototype.js +4225 -0
- data/test/rails_root/public/javascripts/scriptaculous.js +58 -0
- data/test/rails_root/public/javascripts/slider.js +277 -0
- data/test/rails_root/public/javascripts/sound.js +60 -0
- data/test/rails_root/public/robots.txt +1 -0
- data/test/rails_root/public/stylesheets/.keep +0 -0
- data/test/rails_root/public/stylesheets/admin.css +12 -0
- data/test/rails_root/public/stylesheets/blueprint/ie.css +26 -0
- data/test/rails_root/public/stylesheets/blueprint/liquid_screen.css +203 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/buttons/icons/cross.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/buttons/icons/key.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/buttons/icons/tick.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/buttons/readme.txt +32 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/buttons/screen.css +97 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/fancy-type/readme.txt +14 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/fancy-type/screen.css +71 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/doc.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/email.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/external.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/feed.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/im.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/pdf.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/visited.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/xls.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/readme.txt +18 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/screen.css +40 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/liquid/liquid.css +134 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/liquid/src/liquid.css +197 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/rtl/readme.txt +10 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/rtl/screen.css +109 -0
- data/test/rails_root/public/stylesheets/blueprint/print.css +30 -0
- data/test/rails_root/public/stylesheets/blueprint/screen.css +251 -0
- data/test/rails_root/public/stylesheets/blueprint/sprite.css +1 -0
- data/test/rails_root/public/stylesheets/blueprint/src/forms.css +49 -0
- data/test/rails_root/public/stylesheets/blueprint/src/grid.css +213 -0
- data/test/rails_root/public/stylesheets/blueprint/src/grid.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/src/ie.css +59 -0
- data/test/rails_root/public/stylesheets/blueprint/src/print.css +85 -0
- data/test/rails_root/public/stylesheets/blueprint/src/reset.css +38 -0
- data/test/rails_root/public/stylesheets/blueprint/src/typography.css +105 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_diagonals-small_0_aaaaaa_40x40.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_diagonals-thick_15_444444_40x40.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_100_f0f0f0_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_50_99c2ff_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_55_fbf5d0_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_80_e6e6e6_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_highlight-soft_100_e7eef3_1x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_222222_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_2694e8_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_2e83ff_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_72a7cf_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_888888_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_ffffff_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/jquery-ui-1.7.1.custom.css +404 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_217bc0_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_2e83ff_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_469bdd_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_6da8d5_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_d8e7f3_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_f9bd01_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/jquery-ui-1.7.1.custom.css +404 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/jquery-ui-1.7.1.custom.css +404 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/jquery-ui-1.7.1.custom.css +404 -0
- data/test/rails_root/public/stylesheets/reset.css +0 -0
- data/test/rails_root/public/stylesheets/styles.css +79 -0
- data/test/rails_root/public/stylesheets/themes/blue/styles.css +1 -0
- data/test/rails_root/public/stylesheets/themes/red/styles.css +1 -0
- data/test/rails_root/script/about +3 -0
- data/test/rails_root/script/breakpointer +3 -0
- data/test/rails_root/script/console +3 -0
- data/test/rails_root/script/create_project.rb +52 -0
- data/test/rails_root/script/cucumber +7 -0
- data/test/rails_root/script/dbconsole +3 -0
- data/test/rails_root/script/destroy +3 -0
- data/test/rails_root/script/generate +3 -0
- data/test/rails_root/script/performance/benchmarker +3 -0
- data/test/rails_root/script/performance/profiler +3 -0
- data/test/rails_root/script/performance/request +3 -0
- data/test/rails_root/script/plugin +3 -0
- data/test/rails_root/script/process/inspector +3 -0
- data/test/rails_root/script/process/reaper +3 -0
- data/test/rails_root/script/process/spawner +3 -0
- data/test/rails_root/script/runner +3 -0
- data/test/rails_root/script/server +3 -0
- data/test/rails_root/test/factories.rb +56 -0
- data/test/rails_root/test/functional/.keep +0 -0
- data/test/rails_root/test/functional/admin/profiles_controller_test.rb +30 -0
- data/test/rails_root/test/functional/profiles_controller_test.rb +16 -0
- data/test/rails_root/test/integration/.keep +0 -0
- data/test/rails_root/test/mocks/development/.keep +0 -0
- data/test/rails_root/test/mocks/test/.keep +0 -0
- data/test/rails_root/test/shoulda_macros/controller.rb +45 -0
- data/test/rails_root/test/shoulda_macros/models.rb +50 -0
- data/test/rails_root/test/test_helper.rb +38 -0
- data/test/rails_root/test/unit/.keep +0 -0
- data/test/rails_root/test/unit/profile_test.rb +0 -0
- data/test/rails_root/test/unit/user_test.rb +21 -0
- data/test/rails_root/vendor/plugins/ssl_requirement/README +43 -0
- data/test/rails_root/vendor/plugins/ssl_requirement/lib/ssl_requirement.rb +62 -0
- data/test/rails_root/vendor/plugins/ssl_requirement/test/ssl_requirement_test.rb +132 -0
- data/uninstall.rb +1 -0
- metadata +331 -0
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 [name of plugin creator]
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
= MuckProfiles
|
2
|
+
|
3
|
+
Add profiles to muck users. This implements a photo for users as well as a property bag that enables total customization of the user's profile information including privacy settings.
|
4
|
+
|
5
|
+
== Installation
|
6
|
+
Muck profile relies upon the muck-engine and muck-users gems as well as paperclip. Add the following lines to your environment.rb file:
|
7
|
+
|
8
|
+
config.gem "authlogic"
|
9
|
+
config.gem "binarylogic-searchlogic", :lib => 'searchlogic', :source => 'http://gems.github.com', :version => '~> 2.0.0'
|
10
|
+
config.gem "bcrypt-ruby", :lib => "bcrypt"
|
11
|
+
config.gem 'thoughtbot-paperclip', :lib => 'paperclip', :source => "http://gems.github.com"
|
12
|
+
config.gem 'muck-engine', :lib => 'muck_engine'
|
13
|
+
config.gem 'muck-users', :lib => 'muck_users'
|
14
|
+
config.gem 'muck-profiles', :lib => 'muck_profiles'
|
15
|
+
|
16
|
+
Next run rake gems:install
|
17
|
+
|
18
|
+
|
19
|
+
== Usage
|
20
|
+
Create a model called profile.rb and add 'acts_as_muck_profile'. This mixes in the muck profile functionality but also permits further customization of the profile in your application.
|
21
|
+
|
22
|
+
class Profile < ActiveRecord::Base
|
23
|
+
acts_as_muck_profile
|
24
|
+
end
|
25
|
+
|
26
|
+
Modify your user model so that it has a profile:
|
27
|
+
|
28
|
+
class User < ActiveRecord::Base
|
29
|
+
acts_as_authentic do |c|
|
30
|
+
c.crypto_provider = Authlogic::CryptoProviders::BCrypt
|
31
|
+
end
|
32
|
+
acts_as_muck_user
|
33
|
+
has_muck_profile
|
34
|
+
end
|
35
|
+
|
36
|
+
|
37
|
+
Your user model will now appear to have a 'photo' which is delegated to the profile model:
|
38
|
+
|
39
|
+
@user.photo # returns a photo object from paperclip
|
40
|
+
|
41
|
+
Copyright (c) 2009 Justin Ball, released under the MIT license
|
data/Rakefile
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require 'rake/testtask'
|
3
|
+
require 'rake/rdoctask'
|
4
|
+
|
5
|
+
desc 'Default: run unit tests.'
|
6
|
+
task :default => :test
|
7
|
+
|
8
|
+
desc 'Test the muck_profiles plugin.'
|
9
|
+
Rake::TestTask.new(:test) do |t|
|
10
|
+
t.libs << 'lib'
|
11
|
+
t.libs << 'test/rails_root/test'
|
12
|
+
t.pattern = 'test/rails_root/test/**/*_test.rb'
|
13
|
+
t.verbose = true
|
14
|
+
end
|
15
|
+
|
16
|
+
desc 'Generate documentation for the muck_profiles plugin.'
|
17
|
+
Rake::RDocTask.new(:rdoc) do |rdoc|
|
18
|
+
rdoc.rdoc_dir = 'rdoc'
|
19
|
+
rdoc.title = 'MuckProfiles'
|
20
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
21
|
+
rdoc.rdoc_files.include('README*')
|
22
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
23
|
+
end
|
24
|
+
|
25
|
+
|
26
|
+
begin
|
27
|
+
require 'jeweler'
|
28
|
+
Jeweler::Tasks.new do |gemspec|
|
29
|
+
gemspec.name = "muck-profiles"
|
30
|
+
gemspec.summary = "Profile engine for the muck system"
|
31
|
+
gemspec.email = "justinball@gmail.com"
|
32
|
+
gemspec.homepage = "http://github.com/jbasdf/muck_profiles"
|
33
|
+
gemspec.description = "Profile engine for the muck system."
|
34
|
+
gemspec.authors = ["Justin Ball"]
|
35
|
+
gemspec.rubyforge_project = 'muck-profiles'
|
36
|
+
gemspec.add_dependency "muck-engine"
|
37
|
+
gemspec.add_dependency "muck-users"
|
38
|
+
gemspec.files.include %w(
|
39
|
+
tasks/*
|
40
|
+
db/migrate/*.rb
|
41
|
+
app/**/**/**/*
|
42
|
+
config/*
|
43
|
+
locales/*
|
44
|
+
rails/*
|
45
|
+
test/*
|
46
|
+
lib/**/*
|
47
|
+
public/**/* )
|
48
|
+
end
|
49
|
+
rescue LoadError
|
50
|
+
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
51
|
+
end
|
52
|
+
|
53
|
+
# rubyforge tasks
|
54
|
+
begin
|
55
|
+
require 'rake/contrib/sshpublisher'
|
56
|
+
namespace :rubyforge do
|
57
|
+
|
58
|
+
desc "Release gem and RDoc documentation to RubyForge"
|
59
|
+
task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
|
60
|
+
|
61
|
+
namespace :release do
|
62
|
+
desc "Publish RDoc to RubyForge."
|
63
|
+
task :docs => [:rdoc] do
|
64
|
+
config = YAML.load(
|
65
|
+
File.read(File.expand_path('~/.rubyforge/user-config.yml'))
|
66
|
+
)
|
67
|
+
|
68
|
+
host = "#{config['username']}@rubyforge.org"
|
69
|
+
remote_dir = "/var/www/gforge-projects/muck-profiles/"
|
70
|
+
local_dir = 'rdoc'
|
71
|
+
|
72
|
+
Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
rescue LoadError
|
77
|
+
puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
|
78
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.0
|
@@ -0,0 +1,55 @@
|
|
1
|
+
class Muck::ProfilesController < ApplicationController
|
2
|
+
unloadable
|
3
|
+
|
4
|
+
before_filter :search_results, :only => [:index, :search]
|
5
|
+
|
6
|
+
def index
|
7
|
+
respond_to do |format|
|
8
|
+
format.html { render :template => 'profiles/index' }
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def search
|
13
|
+
respond_to do |format|
|
14
|
+
format.html { render :template => 'profiles/index' }
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
# show a given user's public profile information
|
19
|
+
def show
|
20
|
+
@user = User.find(params[:id])
|
21
|
+
respond_to do |format|
|
22
|
+
format.html { render :template => 'profiles/show' }
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def edit
|
27
|
+
end
|
28
|
+
|
29
|
+
private
|
30
|
+
|
31
|
+
def search_results
|
32
|
+
@query = params[:q]
|
33
|
+
@per_page = 20
|
34
|
+
@browse = @query ? 'search' : params[:browse] || 'date'
|
35
|
+
|
36
|
+
# field_list = logged_in? ? 'protected_profile AS profile' : 'public_profile AS profile'
|
37
|
+
# field_list = 'public_profile AS profile'
|
38
|
+
field_list = '*'
|
39
|
+
|
40
|
+
@query = nil if (@query == '*')
|
41
|
+
|
42
|
+
if !@query.nil?
|
43
|
+
@results = User.find_by_solr("#{search_field}:(#{@query})", :offset => (@page-1)*@per_page, :limit => @per_page).results
|
44
|
+
|
45
|
+
elsif @browse == 'alpha'
|
46
|
+
@alpha_index = params[:alpha_index] || 'A'
|
47
|
+
@results = User.find(:all, :select => field_list, :conditions => ["last_name LIKE ?", @alpha_index + '%'], :order => 'last_name, first_name').paginate(:page => @page, :per_page => @per_page)
|
48
|
+
|
49
|
+
else
|
50
|
+
@results = User.find(:all, :select => field_list, :order => 'created_at DESC').paginate(:page => @page, :per_page => @per_page)
|
51
|
+
end
|
52
|
+
flash[:notice] = @results.empty? ? _('No profiles were found that matched your search.') : nil
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
File without changes
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<div id="edit-user" class="common-form">
|
2
|
+
<h1><%= t('muck.users.update_user') %></h1>
|
3
|
+
|
4
|
+
<% custom_form_for @profile, :url => profile_path(@profile), :html => {:id => "edit-profile-form", :name => 'edit-profile-form', :method => :put, :multipart => true } do |f| -%>
|
5
|
+
|
6
|
+
<%= output_errors(t('muck.profiles.problem_editing_account'), {:class => 'help-box'}, @profile) %>
|
7
|
+
|
8
|
+
<%= image_tag @profile.photo.url(:thumb) %>
|
9
|
+
<%= f.file_field :photo, { :label => t('muck.profiles.upload_photo') } %>
|
10
|
+
<div class="button form-row">
|
11
|
+
<%= f.submit t('muck.general.save') %>
|
12
|
+
</div>
|
13
|
+
<%= hidden_field_tag :redirect_to, edit_profile_path(@profiles) %>
|
14
|
+
<% end %>
|
15
|
+
|
16
|
+
</div>
|
File without changes
|
File without changes
|
@@ -0,0 +1,21 @@
|
|
1
|
+
class CreateProfiles < ActiveRecord::Migration
|
2
|
+
|
3
|
+
def self.up
|
4
|
+
|
5
|
+
create_table :profiles, :force => true do |t|
|
6
|
+
t.integer :user_id
|
7
|
+
t.string :photo_file_name
|
8
|
+
t.string :photo_content_type
|
9
|
+
t.integer :photo_file_size
|
10
|
+
t.timestamps
|
11
|
+
end
|
12
|
+
|
13
|
+
add_index :profiles, ['user_id']
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.down
|
18
|
+
drop_table :profiles
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
data/install.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# Install hook code here
|
@@ -0,0 +1,50 @@
|
|
1
|
+
module ActiveRecord
|
2
|
+
module Acts #:nodoc:
|
3
|
+
module MuckProfile #:nodoc:
|
4
|
+
def self.included(base)
|
5
|
+
base.extend(ClassMethods)
|
6
|
+
end
|
7
|
+
|
8
|
+
module ClassMethods
|
9
|
+
|
10
|
+
def acts_as_muck_profile(options = {})
|
11
|
+
|
12
|
+
belongs_to :user
|
13
|
+
|
14
|
+
has_attached_file :photo,
|
15
|
+
:styles => { :medium => "300x300>",
|
16
|
+
:thumb => "100x100>",
|
17
|
+
:icon => "50x50>" },
|
18
|
+
:default_url => "/images/profile_default.jpg"
|
19
|
+
|
20
|
+
|
21
|
+
class_eval <<-EOV
|
22
|
+
attr_protected :created_at, :updated_at, :photo_file_name, :photo_content_type, :photo_file_size
|
23
|
+
EOV
|
24
|
+
|
25
|
+
include ActiveRecord::Acts::MuckProfile::InstanceMethods
|
26
|
+
extend ActiveRecord::Acts::MuckProfile::SingletonMethods
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# class methods
|
32
|
+
module SingletonMethods
|
33
|
+
|
34
|
+
end
|
35
|
+
|
36
|
+
# All the methods available to a record that has had <tt>acts_as_muck_profile</tt> specified.
|
37
|
+
module InstanceMethods
|
38
|
+
|
39
|
+
# def query_services
|
40
|
+
# uri = read_attribute(:blog)
|
41
|
+
# rss_link = RssMethods::auto_detect_rss_url(uri)
|
42
|
+
# write_attribute(:blog_rss, rss_link) if rss_link
|
43
|
+
# end
|
44
|
+
|
45
|
+
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module ActiveRecord
|
2
|
+
module Has #:nodoc:
|
3
|
+
module MuckProfile #:nodoc:
|
4
|
+
def self.included(base)
|
5
|
+
base.extend(ClassMethods)
|
6
|
+
end
|
7
|
+
|
8
|
+
module ClassMethods
|
9
|
+
|
10
|
+
def has_muck_profile
|
11
|
+
|
12
|
+
has_one :profile, :dependent => :destroy
|
13
|
+
accepts_nested_attributes_for :profile, :allow_destroy => true
|
14
|
+
after_create {|user| user.create_profile() unless user.profile}
|
15
|
+
delegate :photo, :to => :profile
|
16
|
+
|
17
|
+
include ActiveRecord::Has::MuckProfile::InstanceMethods
|
18
|
+
extend ActiveRecord::Has::MuckProfile::SingletonMethods
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
# class methods
|
24
|
+
module SingletonMethods
|
25
|
+
|
26
|
+
end
|
27
|
+
|
28
|
+
# All the methods available to a record that has had <tt>acts_as_muck_profile</tt> specified.
|
29
|
+
module InstanceMethods
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,5 @@
|
|
1
|
+
ActiveRecord::Base.class_eval { include ActiveRecord::Has::MuckProfile }
|
2
|
+
ActiveRecord::Base.class_eval { include ActiveRecord::Acts::MuckProfile }
|
3
|
+
ActionController::Base.send :helper, MuckProfilesHelper
|
4
|
+
|
5
|
+
I18n.load_path += Dir[ File.join(File.dirname(__FILE__), '..', 'locales', '*.{rb,yml}') ]
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class ActionController::Routing::RouteSet
|
2
|
+
def load_routes_with_muck_profiles!
|
3
|
+
muck_profiles_routes = File.join(File.dirname(__FILE__), *%w[.. .. config muck_profiles_routes.rb])
|
4
|
+
add_configuration_file(muck_profiles_routes) unless configuration_files.include? muck_profiles_routes
|
5
|
+
load_routes_without_muck_profiles!
|
6
|
+
end
|
7
|
+
alias_method_chain :load_routes!, :muck_profiles
|
8
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require 'rake/tasklib'
|
3
|
+
require 'fileutils'
|
4
|
+
|
5
|
+
module MuckProfiles
|
6
|
+
class Tasks < ::Rake::TaskLib
|
7
|
+
def initialize
|
8
|
+
define
|
9
|
+
end
|
10
|
+
|
11
|
+
private
|
12
|
+
def define
|
13
|
+
|
14
|
+
namespace :muck do
|
15
|
+
namespace :profiles do
|
16
|
+
desc "Sync required files from profiles."
|
17
|
+
task :sync do
|
18
|
+
path = File.join(File.dirname(__FILE__), *%w[.. ..])
|
19
|
+
system "rsync -ruv #{path}/db ."
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
MuckProfiles::Tasks.new
|
data/locales/en.yml
ADDED
@@ -0,0 +1,320 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{muck-profiles}
|
5
|
+
s.version = "0.1.0"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Justin Ball"]
|
9
|
+
s.date = %q{2009-06-18}
|
10
|
+
s.description = %q{Profile engine for the muck system.}
|
11
|
+
s.email = %q{justinball@gmail.com}
|
12
|
+
s.extra_rdoc_files = [
|
13
|
+
"README.rdoc"
|
14
|
+
]
|
15
|
+
s.files = [
|
16
|
+
"MIT-LICENSE",
|
17
|
+
"README.rdoc",
|
18
|
+
"Rakefile",
|
19
|
+
"VERSION",
|
20
|
+
"app/controllers/admin/muck/profiles_controller.rb",
|
21
|
+
"app/controllers/admin/muck/profiles_controller.rb",
|
22
|
+
"app/controllers/muck/profiles_controller.rb",
|
23
|
+
"app/controllers/muck/profiles_controller.rb",
|
24
|
+
"app/helpers/muck_profiles_helper.rb",
|
25
|
+
"app/helpers/muck_profiles_helper.rb",
|
26
|
+
"app/views/admin/profiles/edit.html.erb",
|
27
|
+
"app/views/admin/profiles/edit.html.erb",
|
28
|
+
"app/views/profiles/edit.html.erb",
|
29
|
+
"app/views/profiles/edit.html.erb",
|
30
|
+
"app/views/profiles/index.html.erb",
|
31
|
+
"app/views/profiles/index.html.erb",
|
32
|
+
"app/views/profiles/show.html.erb",
|
33
|
+
"app/views/profiles/show.html.erb",
|
34
|
+
"config/muck_profiles_routes.rb",
|
35
|
+
"config/muck_profiles_routes.rb",
|
36
|
+
"db/migrate/20090512013727_create_profiles.rb",
|
37
|
+
"db/migrate/20090512013727_create_profiles.rb",
|
38
|
+
"install.rb",
|
39
|
+
"lib/active_record/acts/muck_profile.rb",
|
40
|
+
"lib/active_record/acts/muck_profile.rb",
|
41
|
+
"lib/active_record/has/muck_profile.rb",
|
42
|
+
"lib/active_record/has/muck_profile.rb",
|
43
|
+
"lib/muck_profiles.rb",
|
44
|
+
"lib/muck_profiles.rb",
|
45
|
+
"lib/muck_profiles/initialize_routes.rb",
|
46
|
+
"lib/muck_profiles/initialize_routes.rb",
|
47
|
+
"lib/muck_profiles/tasks.rb",
|
48
|
+
"lib/muck_profiles/tasks.rb",
|
49
|
+
"locales/en.yml",
|
50
|
+
"locales/en.yml",
|
51
|
+
"muck-profiles.gemspec",
|
52
|
+
"pkg/muck-profiles-0.1.0.gem",
|
53
|
+
"rails/init.rb",
|
54
|
+
"rails/init.rb",
|
55
|
+
"tasks/rails.rake",
|
56
|
+
"tasks/rails.rake",
|
57
|
+
"test/rails_root/.gitignore",
|
58
|
+
"test/rails_root/.rake_tasks",
|
59
|
+
"test/rails_root/Capfile",
|
60
|
+
"test/rails_root/Rakefile",
|
61
|
+
"test/rails_root/app/controllers/application_controller.rb",
|
62
|
+
"test/rails_root/app/controllers/default_controller.rb",
|
63
|
+
"test/rails_root/app/helpers/application_helper.rb",
|
64
|
+
"test/rails_root/app/models/.keep",
|
65
|
+
"test/rails_root/app/models/profile.rb",
|
66
|
+
"test/rails_root/app/models/user.rb",
|
67
|
+
"test/rails_root/app/models/user_session.rb",
|
68
|
+
"test/rails_root/app/views/default/index.html.erb",
|
69
|
+
"test/rails_root/app/views/layouts/default.html.erb",
|
70
|
+
"test/rails_root/config/boot.rb",
|
71
|
+
"test/rails_root/config/database.yml",
|
72
|
+
"test/rails_root/config/environment.rb",
|
73
|
+
"test/rails_root/config/environments/development.rb",
|
74
|
+
"test/rails_root/config/environments/production.rb",
|
75
|
+
"test/rails_root/config/environments/test.rb",
|
76
|
+
"test/rails_root/config/global_config.yml",
|
77
|
+
"test/rails_root/config/initializers/inflections.rb",
|
78
|
+
"test/rails_root/config/initializers/mime_types.rb",
|
79
|
+
"test/rails_root/config/initializers/requires.rb",
|
80
|
+
"test/rails_root/config/initializers/session_store.rb",
|
81
|
+
"test/rails_root/config/routes.rb",
|
82
|
+
"test/rails_root/db/.keep",
|
83
|
+
"test/rails_root/db/migrate/20090320174818_create_muck_permissions_and_roles.rb",
|
84
|
+
"test/rails_root/db/migrate/20090512013727_create_profiles.rb",
|
85
|
+
"test/rails_root/db/migrate/20090602041838_create_users.rb",
|
86
|
+
"test/rails_root/features/step_definitions/webrat_steps.rb",
|
87
|
+
"test/rails_root/features/support/env.rb",
|
88
|
+
"test/rails_root/public/.htaccess",
|
89
|
+
"test/rails_root/public/404.html",
|
90
|
+
"test/rails_root/public/422.html",
|
91
|
+
"test/rails_root/public/500.html",
|
92
|
+
"test/rails_root/public/dispatch.rb",
|
93
|
+
"test/rails_root/public/favicon.ico",
|
94
|
+
"test/rails_root/public/images/arrow_left.gif",
|
95
|
+
"test/rails_root/public/images/arrow_right.gif",
|
96
|
+
"test/rails_root/public/images/blue/preview.gif",
|
97
|
+
"test/rails_root/public/images/icons/accept.png",
|
98
|
+
"test/rails_root/public/images/icons/add.png",
|
99
|
+
"test/rails_root/public/images/icons/delete.png",
|
100
|
+
"test/rails_root/public/images/icons/vote.png",
|
101
|
+
"test/rails_root/public/images/loading.gif",
|
102
|
+
"test/rails_root/public/images/profile_default.jpg",
|
103
|
+
"test/rails_root/public/images/rails.png",
|
104
|
+
"test/rails_root/public/images/red/preview.gif",
|
105
|
+
"test/rails_root/public/images/spinner.gif",
|
106
|
+
"test/rails_root/public/images/sprites.png",
|
107
|
+
"test/rails_root/public/javascripts/application.js",
|
108
|
+
"test/rails_root/public/javascripts/builder.js",
|
109
|
+
"test/rails_root/public/javascripts/controls.js",
|
110
|
+
"test/rails_root/public/javascripts/dragdrop.js",
|
111
|
+
"test/rails_root/public/javascripts/effects.js",
|
112
|
+
"test/rails_root/public/javascripts/fancyzoom.min.js",
|
113
|
+
"test/rails_root/public/javascripts/jquery/jquery-ui.js",
|
114
|
+
"test/rails_root/public/javascripts/jquery/jquery.form.js",
|
115
|
+
"test/rails_root/public/javascripts/jquery/jquery.jgrowl.js",
|
116
|
+
"test/rails_root/public/javascripts/jquery/jquery.js",
|
117
|
+
"test/rails_root/public/javascripts/jquery/jquery.tips.js",
|
118
|
+
"test/rails_root/public/javascripts/muck.js",
|
119
|
+
"test/rails_root/public/javascripts/muck_activities.js",
|
120
|
+
"test/rails_root/public/javascripts/prototype.js",
|
121
|
+
"test/rails_root/public/javascripts/scriptaculous.js",
|
122
|
+
"test/rails_root/public/javascripts/slider.js",
|
123
|
+
"test/rails_root/public/javascripts/sound.js",
|
124
|
+
"test/rails_root/public/robots.txt",
|
125
|
+
"test/rails_root/public/stylesheets/.keep",
|
126
|
+
"test/rails_root/public/stylesheets/admin.css",
|
127
|
+
"test/rails_root/public/stylesheets/blueprint/ie.css",
|
128
|
+
"test/rails_root/public/stylesheets/blueprint/liquid_screen.css",
|
129
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/buttons/icons/cross.png",
|
130
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/buttons/icons/key.png",
|
131
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/buttons/icons/tick.png",
|
132
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/buttons/readme.txt",
|
133
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/buttons/screen.css",
|
134
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/fancy-type/readme.txt",
|
135
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/fancy-type/screen.css",
|
136
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/doc.png",
|
137
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/email.png",
|
138
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/external.png",
|
139
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/feed.png",
|
140
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/im.png",
|
141
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/pdf.png",
|
142
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/visited.png",
|
143
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/xls.png",
|
144
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/link-icons/readme.txt",
|
145
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/link-icons/screen.css",
|
146
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/liquid/liquid.css",
|
147
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/liquid/src/liquid.css",
|
148
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/rtl/readme.txt",
|
149
|
+
"test/rails_root/public/stylesheets/blueprint/plugins/rtl/screen.css",
|
150
|
+
"test/rails_root/public/stylesheets/blueprint/print.css",
|
151
|
+
"test/rails_root/public/stylesheets/blueprint/screen.css",
|
152
|
+
"test/rails_root/public/stylesheets/blueprint/sprite.css",
|
153
|
+
"test/rails_root/public/stylesheets/blueprint/src/forms.css",
|
154
|
+
"test/rails_root/public/stylesheets/blueprint/src/grid.css",
|
155
|
+
"test/rails_root/public/stylesheets/blueprint/src/grid.png",
|
156
|
+
"test/rails_root/public/stylesheets/blueprint/src/ie.css",
|
157
|
+
"test/rails_root/public/stylesheets/blueprint/src/print.css",
|
158
|
+
"test/rails_root/public/stylesheets/blueprint/src/reset.css",
|
159
|
+
"test/rails_root/public/stylesheets/blueprint/src/typography.css",
|
160
|
+
"test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_diagonals-small_0_aaaaaa_40x40.png",
|
161
|
+
"test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_diagonals-thick_15_444444_40x40.png",
|
162
|
+
"test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_100_f0f0f0_1x400.png",
|
163
|
+
"test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_50_99c2ff_1x400.png",
|
164
|
+
"test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_55_fbf5d0_1x400.png",
|
165
|
+
"test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_80_e6e6e6_1x400.png",
|
166
|
+
"test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_95_fef1ec_1x400.png",
|
167
|
+
"test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png",
|
168
|
+
"test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_highlight-soft_100_e7eef3_1x100.png",
|
169
|
+
"test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_222222_256x240.png",
|
170
|
+
"test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_2694e8_256x240.png",
|
171
|
+
"test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_2e83ff_256x240.png",
|
172
|
+
"test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_72a7cf_256x240.png",
|
173
|
+
"test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_888888_256x240.png",
|
174
|
+
"test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_cd0a0a_256x240.png",
|
175
|
+
"test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_ffffff_256x240.png",
|
176
|
+
"test/rails_root/public/stylesheets/jquery/cupertino/jquery-ui-1.7.1.custom.css",
|
177
|
+
"test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png",
|
178
|
+
"test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_flat_55_fbec88_40x100.png",
|
179
|
+
"test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png",
|
180
|
+
"test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_glass_85_dfeffc_1x400.png",
|
181
|
+
"test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_glass_95_fef1ec_1x400.png",
|
182
|
+
"test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png",
|
183
|
+
"test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png",
|
184
|
+
"test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png",
|
185
|
+
"test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_217bc0_256x240.png",
|
186
|
+
"test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_2e83ff_256x240.png",
|
187
|
+
"test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_469bdd_256x240.png",
|
188
|
+
"test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_6da8d5_256x240.png",
|
189
|
+
"test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_cd0a0a_256x240.png",
|
190
|
+
"test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_d8e7f3_256x240.png",
|
191
|
+
"test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_f9bd01_256x240.png",
|
192
|
+
"test/rails_root/public/stylesheets/jquery/redmond/jquery-ui-1.7.1.custom.css",
|
193
|
+
"test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png",
|
194
|
+
"test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_flat_75_ffffff_40x100.png",
|
195
|
+
"test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png",
|
196
|
+
"test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_65_ffffff_1x400.png",
|
197
|
+
"test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_75_dadada_1x400.png",
|
198
|
+
"test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png",
|
199
|
+
"test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png",
|
200
|
+
"test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png",
|
201
|
+
"test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_222222_256x240.png",
|
202
|
+
"test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_2e83ff_256x240.png",
|
203
|
+
"test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_454545_256x240.png",
|
204
|
+
"test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_888888_256x240.png",
|
205
|
+
"test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_cd0a0a_256x240.png",
|
206
|
+
"test/rails_root/public/stylesheets/jquery/smoothness/jquery-ui-1.7.1.custom.css",
|
207
|
+
"test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png",
|
208
|
+
"test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png",
|
209
|
+
"test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_flat_10_000000_40x100.png",
|
210
|
+
"test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png",
|
211
|
+
"test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png",
|
212
|
+
"test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png",
|
213
|
+
"test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png",
|
214
|
+
"test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png",
|
215
|
+
"test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png",
|
216
|
+
"test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_222222_256x240.png",
|
217
|
+
"test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_228ef1_256x240.png",
|
218
|
+
"test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ef8c08_256x240.png",
|
219
|
+
"test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffd27a_256x240.png",
|
220
|
+
"test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffffff_256x240.png",
|
221
|
+
"test/rails_root/public/stylesheets/jquery/ui-lightness/jquery-ui-1.7.1.custom.css",
|
222
|
+
"test/rails_root/public/stylesheets/reset.css",
|
223
|
+
"test/rails_root/public/stylesheets/styles.css",
|
224
|
+
"test/rails_root/public/stylesheets/themes/blue/styles.css",
|
225
|
+
"test/rails_root/public/stylesheets/themes/red/styles.css",
|
226
|
+
"test/rails_root/script/about",
|
227
|
+
"test/rails_root/script/breakpointer",
|
228
|
+
"test/rails_root/script/console",
|
229
|
+
"test/rails_root/script/create_project.rb",
|
230
|
+
"test/rails_root/script/cucumber",
|
231
|
+
"test/rails_root/script/dbconsole",
|
232
|
+
"test/rails_root/script/destroy",
|
233
|
+
"test/rails_root/script/generate",
|
234
|
+
"test/rails_root/script/performance/benchmarker",
|
235
|
+
"test/rails_root/script/performance/profiler",
|
236
|
+
"test/rails_root/script/performance/request",
|
237
|
+
"test/rails_root/script/plugin",
|
238
|
+
"test/rails_root/script/process/inspector",
|
239
|
+
"test/rails_root/script/process/reaper",
|
240
|
+
"test/rails_root/script/process/spawner",
|
241
|
+
"test/rails_root/script/runner",
|
242
|
+
"test/rails_root/script/server",
|
243
|
+
"test/rails_root/test/factories.rb",
|
244
|
+
"test/rails_root/test/functional/.keep",
|
245
|
+
"test/rails_root/test/functional/admin/profiles_controller_test.rb",
|
246
|
+
"test/rails_root/test/functional/profiles_controller_test.rb",
|
247
|
+
"test/rails_root/test/integration/.keep",
|
248
|
+
"test/rails_root/test/mocks/development/.keep",
|
249
|
+
"test/rails_root/test/mocks/test/.keep",
|
250
|
+
"test/rails_root/test/shoulda_macros/controller.rb",
|
251
|
+
"test/rails_root/test/shoulda_macros/models.rb",
|
252
|
+
"test/rails_root/test/test_helper.rb",
|
253
|
+
"test/rails_root/test/unit/.keep",
|
254
|
+
"test/rails_root/test/unit/profile_test.rb",
|
255
|
+
"test/rails_root/test/unit/user_test.rb",
|
256
|
+
"test/rails_root/vendor/plugins/ssl_requirement/README",
|
257
|
+
"test/rails_root/vendor/plugins/ssl_requirement/lib/ssl_requirement.rb",
|
258
|
+
"test/rails_root/vendor/plugins/ssl_requirement/test/ssl_requirement_test.rb",
|
259
|
+
"uninstall.rb"
|
260
|
+
]
|
261
|
+
s.has_rdoc = true
|
262
|
+
s.homepage = %q{http://github.com/jbasdf/muck_profiles}
|
263
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
264
|
+
s.require_paths = ["lib"]
|
265
|
+
s.rubyforge_project = %q{muck-profiles}
|
266
|
+
s.rubygems_version = %q{1.3.1}
|
267
|
+
s.summary = %q{Profile engine for the muck system}
|
268
|
+
s.test_files = [
|
269
|
+
"test/rails_root/app/controllers/application_controller.rb",
|
270
|
+
"test/rails_root/app/controllers/default_controller.rb",
|
271
|
+
"test/rails_root/app/helpers/application_helper.rb",
|
272
|
+
"test/rails_root/app/models/profile.rb",
|
273
|
+
"test/rails_root/app/models/user.rb",
|
274
|
+
"test/rails_root/app/models/user_session.rb",
|
275
|
+
"test/rails_root/config/boot.rb",
|
276
|
+
"test/rails_root/config/environment.rb",
|
277
|
+
"test/rails_root/config/environments/development.rb",
|
278
|
+
"test/rails_root/config/environments/production.rb",
|
279
|
+
"test/rails_root/config/environments/test.rb",
|
280
|
+
"test/rails_root/config/initializers/inflections.rb",
|
281
|
+
"test/rails_root/config/initializers/mime_types.rb",
|
282
|
+
"test/rails_root/config/initializers/requires.rb",
|
283
|
+
"test/rails_root/config/initializers/session_store.rb",
|
284
|
+
"test/rails_root/config/routes.rb",
|
285
|
+
"test/rails_root/db/migrate/20090320174818_create_muck_permissions_and_roles.rb",
|
286
|
+
"test/rails_root/db/migrate/20090512013727_create_profiles.rb",
|
287
|
+
"test/rails_root/db/migrate/20090602041838_create_users.rb",
|
288
|
+
"test/rails_root/db/schema.rb",
|
289
|
+
"test/rails_root/features/step_definitions/webrat_steps.rb",
|
290
|
+
"test/rails_root/features/support/env.rb",
|
291
|
+
"test/rails_root/public/dispatch.rb",
|
292
|
+
"test/rails_root/script/create_project.rb",
|
293
|
+
"test/rails_root/test/factories.rb",
|
294
|
+
"test/rails_root/test/functional/admin/profiles_controller_test.rb",
|
295
|
+
"test/rails_root/test/functional/profiles_controller_test.rb",
|
296
|
+
"test/rails_root/test/shoulda_macros/controller.rb",
|
297
|
+
"test/rails_root/test/shoulda_macros/models.rb",
|
298
|
+
"test/rails_root/test/test_helper.rb",
|
299
|
+
"test/rails_root/test/unit/profile_test.rb",
|
300
|
+
"test/rails_root/test/unit/user_test.rb",
|
301
|
+
"test/rails_root/vendor/plugins/ssl_requirement/lib/ssl_requirement.rb",
|
302
|
+
"test/rails_root/vendor/plugins/ssl_requirement/test/ssl_requirement_test.rb"
|
303
|
+
]
|
304
|
+
|
305
|
+
if s.respond_to? :specification_version then
|
306
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
307
|
+
s.specification_version = 2
|
308
|
+
|
309
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
310
|
+
s.add_runtime_dependency(%q<muck-engine>, [">= 0"])
|
311
|
+
s.add_runtime_dependency(%q<muck-users>, [">= 0"])
|
312
|
+
else
|
313
|
+
s.add_dependency(%q<muck-engine>, [">= 0"])
|
314
|
+
s.add_dependency(%q<muck-users>, [">= 0"])
|
315
|
+
end
|
316
|
+
else
|
317
|
+
s.add_dependency(%q<muck-engine>, [">= 0"])
|
318
|
+
s.add_dependency(%q<muck-users>, [">= 0"])
|
319
|
+
end
|
320
|
+
end
|