muck-shares 0.1.8 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/README.rdoc +7 -6
- data/Rakefile +5 -13
- data/VERSION +1 -1
- data/app/controllers/muck/shares_controller.rb +0 -1
- data/app/models/country.rb +13 -0
- data/app/models/language.rb +15 -0
- data/app/models/state.rb +13 -0
- data/{locales → config/locales}/ar.yml +2 -2
- data/{locales → config/locales}/bg.yml +2 -2
- data/{locales → config/locales}/ca.yml +2 -2
- data/{locales → config/locales}/cs.yml +2 -2
- data/{locales → config/locales}/da.yml +2 -2
- data/{locales → config/locales}/de.yml +2 -2
- data/{locales → config/locales}/el.yml +2 -2
- data/{locales → config/locales}/en.yml +2 -2
- data/{locales → config/locales}/es.yml +2 -2
- data/{locales → config/locales}/et.yml +2 -2
- data/{locales → config/locales}/fa.yml +2 -2
- data/{locales → config/locales}/fi.yml +2 -2
- data/{locales → config/locales}/fr.yml +2 -2
- data/{locales → config/locales}/gl.yml +2 -2
- data/{locales → config/locales}/hi.yml +2 -2
- data/{locales → config/locales}/hr.yml +2 -2
- data/{locales → config/locales}/hu.yml +2 -2
- data/{locales → config/locales}/id.yml +2 -2
- data/{locales → config/locales}/it.yml +2 -2
- data/{locales → config/locales}/iw.yml +2 -2
- data/{locales → config/locales}/ja.yml +2 -2
- data/{locales → config/locales}/ko.yml +2 -2
- data/{locales → config/locales}/lt.yml +2 -2
- data/{locales → config/locales}/lv.yml +2 -2
- data/{locales → config/locales}/mt.yml +2 -2
- data/{locales → config/locales}/nl.yml +2 -2
- data/{locales → config/locales}/no.yml +2 -2
- data/{locales → config/locales}/pl.yml +2 -2
- data/{locales → config/locales}/pt-PT.yml +2 -2
- data/{locales → config/locales}/ro.yml +2 -2
- data/{locales → config/locales}/ru.yml +2 -2
- data/{locales → config/locales}/sk.yml +2 -2
- data/{locales → config/locales}/sl.yml +2 -2
- data/{locales → config/locales}/sq.yml +2 -2
- data/{locales → config/locales}/sr.yml +2 -2
- data/{locales → config/locales}/sv.yml +2 -2
- data/config/locales/th.yml +22 -0
- data/{locales → config/locales}/tl.yml +2 -2
- data/{locales → config/locales}/tr.yml +2 -2
- data/{locales → config/locales}/uk.yml +2 -2
- data/{locales → config/locales}/vi.yml +2 -2
- data/{locales → config/locales}/zh-CN.yml +2 -2
- data/{locales → config/locales}/zh-TW.yml +3 -3
- data/{locales → config/locales}/zh.yml +2 -2
- data/config/routes.rb +9 -0
- data/lib/muck_shares.rb +3 -4
- data/lib/muck_shares/engine.rb +18 -0
- data/lib/muck_shares/models/share.rb +37 -0
- data/lib/muck_shares/models/sharer.rb +11 -0
- data/lib/tasks/tasks.rb +12 -0
- data/test/rails_test/.gitignore +8 -0
- data/test/rails_test/.rake_tasks +103 -0
- data/test/rails_test/Gemfile +45 -0
- data/test/rails_test/Rakefile +10 -0
- data/test/{rails_root → rails_test}/app/controllers/application_controller.rb +1 -1
- data/test/{rails_root → rails_test}/app/controllers/default_controller.rb +0 -0
- data/test/{rails_root → rails_test}/app/helpers/application_helper.rb +0 -0
- data/test/{rails_root → rails_test}/app/models/.keep +0 -0
- data/test/{rails_root → rails_test}/app/models/activity.rb +0 -0
- data/test/{rails_root → rails_test}/app/models/comment.rb +1 -1
- data/test/rails_test/app/models/profile.rb +3 -0
- data/test/{rails_root → rails_test}/app/models/share.rb +0 -0
- data/test/{rails_root → rails_test}/app/models/user.rb +5 -4
- data/test/{rails_root → rails_test}/app/models/user_session.rb +0 -0
- data/test/{rails_root → rails_test}/app/views/default/index.html.erb +0 -0
- data/test/{rails_root → rails_test}/app/views/layouts/default.html.erb +0 -0
- data/test/rails_test/config.ru +4 -0
- data/test/rails_test/config/application.rb +42 -0
- data/test/rails_test/config/boot.rb +13 -0
- data/test/rails_test/config/database.yml +16 -0
- data/test/rails_test/config/environment.rb +5 -0
- data/test/rails_test/config/environments/development.rb +26 -0
- data/test/rails_test/config/environments/production.rb +49 -0
- data/test/rails_test/config/environments/test.rb +35 -0
- data/test/rails_test/config/initializers/backtrace_silencers.rb +7 -0
- data/test/rails_test/config/initializers/geokit_config.rb +63 -0
- data/test/{rails_root → rails_test}/config/initializers/inflections.rb +2 -2
- data/test/{rails_root → rails_test}/config/initializers/mime_types.rb +0 -0
- data/test/rails_test/config/initializers/muck.rb +60 -0
- data/test/rails_test/config/initializers/secret_token.rb +7 -0
- data/test/rails_test/config/initializers/session_store.rb +8 -0
- data/test/rails_test/config/routes.rb +4 -0
- data/test/{rails_root → rails_test}/features/shares.feature +0 -0
- data/test/{rails_root → rails_test}/features/step_definitions/common_steps.rb +0 -0
- data/test/{rails_root → rails_test}/features/step_definitions/share_steps.rb +0 -0
- data/test/rails_test/features/step_definitions/web_steps.rb +219 -0
- data/test/rails_test/features/support/custom_env.rb +19 -0
- data/test/rails_test/features/support/env.rb +58 -0
- data/test/rails_test/features/support/paths.rb +33 -0
- data/test/rails_test/lib/tasks/cucumber.rake +53 -0
- data/test/rails_test/spec/controllers/shares_controller_spec.rb +113 -0
- data/test/rails_test/spec/models/share_spec.rb +55 -0
- data/test/rails_test/spec/models/user_spec.rb +25 -0
- data/test/rails_test/spec/spec_helper.rb +29 -0
- data/test/rails_test/vendor/plugins/geokit-rails/.gitignore +2 -0
- data/test/rails_test/vendor/plugins/geokit-rails/CHANGELOG.rdoc +46 -0
- data/test/rails_test/vendor/plugins/geokit-rails/MIT-LICENSE +20 -0
- data/test/rails_test/vendor/plugins/geokit-rails/README.markdown +561 -0
- data/test/rails_test/vendor/plugins/geokit-rails/Rakefile +18 -0
- data/test/rails_test/vendor/plugins/geokit-rails/about.yml +9 -0
- data/test/rails_test/vendor/plugins/geokit-rails/assets/api_keys_template +61 -0
- data/test/rails_test/vendor/plugins/geokit-rails/init.rb +1 -0
- data/test/rails_test/vendor/plugins/geokit-rails/install.rb +14 -0
- data/test/rails_test/vendor/plugins/geokit-rails/lib/geokit-rails.rb +26 -0
- data/test/rails_test/vendor/plugins/geokit-rails/lib/geokit-rails/acts_as_mappable.rb +456 -0
- data/test/rails_test/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/abstract.rb +31 -0
- data/test/rails_test/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/mysql.rb +22 -0
- data/test/rails_test/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/postgresql.rb +22 -0
- data/test/rails_test/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/sqlserver.rb +43 -0
- data/test/rails_test/vendor/plugins/geokit-rails/lib/geokit-rails/defaults.rb +22 -0
- data/test/rails_test/vendor/plugins/geokit-rails/lib/geokit-rails/geocoder_control.rb +16 -0
- data/test/rails_test/vendor/plugins/geokit-rails/lib/geokit-rails/ip_geocode_lookup.rb +46 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/acts_as_mappable_test.rb +474 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/boot.rb +25 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/database.yml +20 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/fixtures/companies.yml +7 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/fixtures/custom_locations.yml +54 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/fixtures/locations.yml +54 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/fixtures/mock_addresses.yml +17 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/fixtures/mock_families.yml +2 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/fixtures/mock_houses.yml +9 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/fixtures/mock_organizations.yml +5 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/fixtures/mock_people.yml +5 -0
- data/test/{rails_root/db/.keep → rails_test/vendor/plugins/geokit-rails/test/fixtures/stores.yml} +0 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/ip_geocode_lookup_test.rb +77 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/models/company.rb +3 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/models/custom_location.rb +12 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/models/location.rb +4 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/models/mock_address.rb +4 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/models/mock_family.rb +3 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/models/mock_house.rb +3 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/models/mock_organization.rb +4 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/models/mock_person.rb +4 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/models/store.rb +3 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/schema.rb +60 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/tasks.rake +31 -0
- data/test/rails_test/vendor/plugins/geokit-rails/test/test_helper.rb +23 -0
- metadata +246 -352
- data/config/muck_shares_routes.rb +0 -8
- data/install.rb +0 -1
- data/lib/active_record/acts/muck_share.rb +0 -59
- data/lib/active_record/acts/muck_sharer.rb +0 -28
- data/lib/muck_shares/initialize_routes.rb +0 -8
- data/lib/muck_shares/tasks.rb +0 -28
- data/locales/th.yml +0 -22
- data/muck-shares.gemspec +0 -401
- data/rails/init.rb +0 -4
- data/test/rails_root/Rakefile +0 -17
- data/test/rails_root/app/models/profile.rb +0 -3
- data/test/rails_root/config/amazon_s3.yml +0 -14
- data/test/rails_root/config/boot.rb +0 -109
- data/test/rails_root/config/database.yml +0 -23
- data/test/rails_root/config/environment.rb +0 -33
- data/test/rails_root/config/environments/cucumber.rb +0 -38
- data/test/rails_root/config/environments/development.rb +0 -19
- data/test/rails_root/config/environments/production.rb +0 -1
- data/test/rails_root/config/environments/test.rb +0 -28
- data/test/rails_root/config/initializers/requires.rb +0 -13
- data/test/rails_root/config/initializers/session_store.rb +0 -8
- data/test/rails_root/config/routes.rb +0 -3
- data/test/rails_root/db/migrate/20090320174818_create_muck_permissions_and_roles.rb +0 -16
- data/test/rails_root/db/migrate/20090402033319_add_muck_activities.rb +0 -36
- data/test/rails_root/db/migrate/20090402234137_create_languages.rb +0 -18
- data/test/rails_root/db/migrate/20090426041056_create_countries.rb +0 -15
- data/test/rails_root/db/migrate/20090426041103_create_states.rb +0 -18
- data/test/rails_root/db/migrate/20090512013727_create_profiles.rb +0 -21
- data/test/rails_root/db/migrate/20090602041838_create_users.rb +0 -39
- data/test/rails_root/db/migrate/20090608073052_create_friends.rb +0 -16
- data/test/rails_root/db/migrate/20090613173314_create_comments.rb +0 -24
- data/test/rails_root/db/migrate/20090704220055_create_slugs.rb +0 -18
- data/test/rails_root/db/migrate/20090704220120_acts_as_taggable_on_migration.rb +0 -29
- data/test/rails_root/db/migrate/20090730154102_allow_null_user.rb +0 -9
- data/test/rails_root/db/migrate/20090803185323_create_shares.rb +0 -16
- data/test/rails_root/db/migrate/20090804184247_add_comment_count_to_shares.rb +0 -9
- data/test/rails_root/db/migrate/20090804231857_add_shares_uri_index.rb +0 -9
- data/test/rails_root/features/step_definitions/webrat_steps.rb +0 -128
- data/test/rails_root/features/support/env.rb +0 -49
- data/test/rails_root/features/support/paths.rb +0 -33
- data/test/rails_root/lib/tasks/cucumber.rake +0 -20
- data/test/rails_root/public/.htaccess +0 -40
- data/test/rails_root/public/404.html +0 -30
- data/test/rails_root/public/422.html +0 -30
- data/test/rails_root/public/500.html +0 -30
- data/test/rails_root/public/dispatch.rb +0 -10
- 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/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/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/nothing.png +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/spinner.gif +0 -0
- data/test/rails_root/public/images/sprites.png +0 -0
- data/test/rails_root/public/javascripts/application.js +0 -2
- data/test/rails_root/public/javascripts/builder.js +0 -136
- data/test/rails_root/public/javascripts/controls.js +0 -963
- data/test/rails_root/public/javascripts/dragdrop.js +0 -972
- data/test/rails_root/public/javascripts/effects.js +0 -1120
- data/test/rails_root/public/javascripts/fancyzoom.min.js +0 -1
- data/test/rails_root/public/javascripts/jquery/jquery-ui.js +0 -273
- data/test/rails_root/public/javascripts/jquery/jquery.easing.js +0 -1
- data/test/rails_root/public/javascripts/jquery/jquery.fancybox.js +0 -9
- data/test/rails_root/public/javascripts/jquery/jquery.form.js +0 -637
- data/test/rails_root/public/javascripts/jquery/jquery.jgrowl.js +0 -2
- data/test/rails_root/public/javascripts/jquery/jquery.js +0 -19
- data/test/rails_root/public/javascripts/jquery/jquery.tips.js +0 -69
- data/test/rails_root/public/javascripts/muck.js +0 -80
- data/test/rails_root/public/javascripts/muck_activities.js +0 -108
- data/test/rails_root/public/javascripts/prototype.js +0 -4225
- data/test/rails_root/public/javascripts/scriptaculous.js +0 -58
- data/test/rails_root/public/javascripts/slider.js +0 -277
- data/test/rails_root/public/javascripts/sound.js +0 -60
- data/test/rails_root/public/robots.txt +0 -1
- data/test/rails_root/public/stylesheets/.keep +0 -0
- data/test/rails_root/public/stylesheets/admin.css +0 -12
- data/test/rails_root/public/stylesheets/blueprint/ie.css +0 -26
- data/test/rails_root/public/stylesheets/blueprint/liquid_screen.css +0 -203
- 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 +0 -32
- data/test/rails_root/public/stylesheets/blueprint/plugins/buttons/screen.css +0 -97
- data/test/rails_root/public/stylesheets/blueprint/plugins/fancy-type/readme.txt +0 -14
- data/test/rails_root/public/stylesheets/blueprint/plugins/fancy-type/screen.css +0 -71
- 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 +0 -18
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/screen.css +0 -40
- data/test/rails_root/public/stylesheets/blueprint/plugins/liquid/liquid.css +0 -134
- data/test/rails_root/public/stylesheets/blueprint/plugins/liquid/src/liquid.css +0 -197
- data/test/rails_root/public/stylesheets/blueprint/plugins/rtl/readme.txt +0 -10
- data/test/rails_root/public/stylesheets/blueprint/plugins/rtl/screen.css +0 -109
- data/test/rails_root/public/stylesheets/blueprint/print.css +0 -30
- data/test/rails_root/public/stylesheets/blueprint/screen.css +0 -251
- data/test/rails_root/public/stylesheets/blueprint/sprite.css +0 -1
- data/test/rails_root/public/stylesheets/blueprint/src/forms.css +0 -49
- data/test/rails_root/public/stylesheets/blueprint/src/grid.css +0 -213
- data/test/rails_root/public/stylesheets/blueprint/src/grid.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/src/ie.css +0 -59
- data/test/rails_root/public/stylesheets/blueprint/src/print.css +0 -85
- data/test/rails_root/public/stylesheets/blueprint/src/reset.css +0 -38
- data/test/rails_root/public/stylesheets/blueprint/src/typography.css +0 -105
- 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 +0 -404
- data/test/rails_root/public/stylesheets/jquery/jquery.fancybox.css +0 -44
- 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 +0 -404
- 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 +0 -404
- 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 +0 -404
- data/test/rails_root/public/stylesheets/reset.css +0 -0
- data/test/rails_root/public/stylesheets/styles.css +0 -89
- data/test/rails_root/public/stylesheets/themes/blue/styles.css +0 -1
- data/test/rails_root/public/stylesheets/themes/red/styles.css +0 -1
- data/test/rails_root/script/about +0 -3
- data/test/rails_root/script/breakpointer +0 -3
- data/test/rails_root/script/console +0 -3
- data/test/rails_root/script/create_project.rb +0 -52
- data/test/rails_root/script/cucumber +0 -8
- data/test/rails_root/script/dbconsole +0 -3
- data/test/rails_root/script/destroy +0 -3
- data/test/rails_root/script/generate +0 -3
- data/test/rails_root/script/performance/benchmarker +0 -3
- data/test/rails_root/script/performance/profiler +0 -3
- data/test/rails_root/script/performance/request +0 -3
- data/test/rails_root/script/plugin +0 -3
- data/test/rails_root/script/process/inspector +0 -3
- data/test/rails_root/script/process/reaper +0 -3
- data/test/rails_root/script/process/spawner +0 -3
- data/test/rails_root/script/runner +0 -3
- data/test/rails_root/script/server +0 -3
- data/test/rails_root/test/functional/.keep +0 -0
- data/test/rails_root/test/functional/shares_controller_test.rb +0 -119
- data/test/rails_root/test/test_helper.rb +0 -11
- data/test/rails_root/test/unit/.keep +0 -0
- data/test/rails_root/test/unit/share_test.rb +0 -59
- data/test/rails_root/test/unit/user_test.rb +0 -26
- data/test/rails_root/vendor/plugins/ssl_requirement/README +0 -43
- data/test/rails_root/vendor/plugins/ssl_requirement/lib/ssl_requirement.rb +0 -62
- data/test/rails_root/vendor/plugins/ssl_requirement/test/ssl_requirement_test.rb +0 -132
- data/uninstall.rb +0 -1
@@ -0,0 +1,58 @@
|
|
1
|
+
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
|
2
|
+
# It is recommended to regenerate this file in the future when you upgrade to a
|
3
|
+
# newer version of cucumber-rails. Consider adding your own code to a new file
|
4
|
+
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
|
5
|
+
# files.
|
6
|
+
|
7
|
+
ENV["RAILS_ENV"] ||= "test"
|
8
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../config/environment')
|
9
|
+
|
10
|
+
require 'cucumber/formatter/unicode' # Remove this line if you don't want Cucumber Unicode support
|
11
|
+
require 'cucumber/rails/rspec'
|
12
|
+
require 'cucumber/rails/world'
|
13
|
+
require 'cucumber/rails/active_record'
|
14
|
+
require 'cucumber/web/tableish'
|
15
|
+
|
16
|
+
require 'capybara/rails'
|
17
|
+
require 'capybara/cucumber'
|
18
|
+
require 'capybara/session'
|
19
|
+
require 'cucumber/rails/capybara_javascript_emulation' # Lets you click links with onclick javascript handlers without using @culerity or @javascript
|
20
|
+
# Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In
|
21
|
+
# order to ease the transition to Capybara we set the default here. If you'd
|
22
|
+
# prefer to use XPath just remove this line and adjust any selectors in your
|
23
|
+
# steps to use the XPath syntax.
|
24
|
+
Capybara.default_selector = :css
|
25
|
+
|
26
|
+
# If you set this to false, any error raised from within your app will bubble
|
27
|
+
# up to your step definition and out to cucumber unless you catch it somewhere
|
28
|
+
# on the way. You can make Rails rescue errors and render error pages on a
|
29
|
+
# per-scenario basis by tagging a scenario or feature with the @allow-rescue tag.
|
30
|
+
#
|
31
|
+
# If you set this to true, Rails will rescue all errors and render error
|
32
|
+
# pages, more or less in the same way your application would behave in the
|
33
|
+
# default production environment. It's not recommended to do this for all
|
34
|
+
# of your scenarios, as this makes it hard to discover errors in your application.
|
35
|
+
ActionController::Base.allow_rescue = false
|
36
|
+
|
37
|
+
# If you set this to true, each scenario will run in a database transaction.
|
38
|
+
# You can still turn off transactions on a per-scenario basis, simply tagging
|
39
|
+
# a feature or scenario with the @no-txn tag. If you are using Capybara,
|
40
|
+
# tagging with @culerity or @javascript will also turn transactions off.
|
41
|
+
#
|
42
|
+
# If you set this to false, transactions will be off for all scenarios,
|
43
|
+
# regardless of whether you use @no-txn or not.
|
44
|
+
#
|
45
|
+
# Beware that turning transactions off will leave data in your database
|
46
|
+
# after each scenario, which can lead to hard-to-debug failures in
|
47
|
+
# subsequent scenarios. If you do this, we recommend you create a Before
|
48
|
+
# block that will explicitly put your database in a known state.
|
49
|
+
Cucumber::Rails::World.use_transactional_fixtures = true
|
50
|
+
# How to clean your database when transactions are turned off. See
|
51
|
+
# http://github.com/bmabey/database_cleaner for more info.
|
52
|
+
if defined?(ActiveRecord::Base)
|
53
|
+
begin
|
54
|
+
require 'database_cleaner'
|
55
|
+
DatabaseCleaner.strategy = :truncation
|
56
|
+
rescue LoadError => ignore_if_database_cleaner_not_present
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module NavigationHelpers
|
2
|
+
# Maps a name to a path. Used by the
|
3
|
+
#
|
4
|
+
# When /^I go to (.+)$/ do |page_name|
|
5
|
+
#
|
6
|
+
# step definition in web_steps.rb
|
7
|
+
#
|
8
|
+
def path_to(page_name)
|
9
|
+
case page_name
|
10
|
+
|
11
|
+
when /the home\s?page/
|
12
|
+
'/'
|
13
|
+
|
14
|
+
# Add more mappings here.
|
15
|
+
# Here is an example that pulls values out of the Regexp:
|
16
|
+
#
|
17
|
+
# when /^(.*)'s profile page$/i
|
18
|
+
# user_profile_path(User.find_by_login($1))
|
19
|
+
|
20
|
+
else
|
21
|
+
begin
|
22
|
+
page_name =~ /the (.*) page/
|
23
|
+
path_components = $1.split(/\s+/)
|
24
|
+
self.send(path_components.push('path').join('_').to_sym)
|
25
|
+
rescue Object => e
|
26
|
+
raise "Can't find mapping from \"#{page_name}\" to a path.\n" +
|
27
|
+
"Now, go and add a mapping in #{__FILE__}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
World(NavigationHelpers)
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
|
2
|
+
# It is recommended to regenerate this file in the future when you upgrade to a
|
3
|
+
# newer version of cucumber-rails. Consider adding your own code to a new file
|
4
|
+
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
|
5
|
+
# files.
|
6
|
+
|
7
|
+
|
8
|
+
unless ARGV.any? {|a| a =~ /^gems/} # Don't load anything when running the gems:* tasks
|
9
|
+
|
10
|
+
vendored_cucumber_bin = Dir["#{Rails.root}/vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
|
11
|
+
$LOAD_PATH.unshift(File.dirname(vendored_cucumber_bin) + '/../lib') unless vendored_cucumber_bin.nil?
|
12
|
+
|
13
|
+
begin
|
14
|
+
require 'cucumber/rake/task'
|
15
|
+
|
16
|
+
namespace :cucumber do
|
17
|
+
Cucumber::Rake::Task.new({:ok => 'db:test:prepare'}, 'Run features that should pass') do |t|
|
18
|
+
t.binary = vendored_cucumber_bin # If nil, the gem's binary is used.
|
19
|
+
t.fork = true # You may get faster startup if you set this to false
|
20
|
+
t.profile = 'default'
|
21
|
+
end
|
22
|
+
|
23
|
+
Cucumber::Rake::Task.new({:wip => 'db:test:prepare'}, 'Run features that are being worked on') do |t|
|
24
|
+
t.binary = vendored_cucumber_bin
|
25
|
+
t.fork = true # You may get faster startup if you set this to false
|
26
|
+
t.profile = 'wip'
|
27
|
+
end
|
28
|
+
|
29
|
+
Cucumber::Rake::Task.new({:rerun => 'db:test:prepare'}, 'Record failing features and run only them if any exist') do |t|
|
30
|
+
t.binary = vendored_cucumber_bin
|
31
|
+
t.fork = true # You may get faster startup if you set this to false
|
32
|
+
t.profile = 'rerun'
|
33
|
+
end
|
34
|
+
|
35
|
+
desc 'Run all features'
|
36
|
+
task :all => [:ok, :wip]
|
37
|
+
end
|
38
|
+
desc 'Alias for cucumber:ok'
|
39
|
+
task :cucumber => 'cucumber:ok'
|
40
|
+
|
41
|
+
task :default => :cucumber
|
42
|
+
|
43
|
+
task :features => :cucumber do
|
44
|
+
STDERR.puts "*** The 'features' task is deprecated. See rake -T cucumber ***"
|
45
|
+
end
|
46
|
+
rescue LoadError
|
47
|
+
desc 'cucumber rake task not available (cucumber not installed)'
|
48
|
+
task :cucumber do
|
49
|
+
abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
@@ -0,0 +1,113 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../spec_helper'
|
2
|
+
|
3
|
+
describe Muck::SharesController do
|
4
|
+
|
5
|
+
describe "not logged in" do
|
6
|
+
before do
|
7
|
+
@user = Factory(:user)
|
8
|
+
end
|
9
|
+
describe "GET index user specified" do
|
10
|
+
before do
|
11
|
+
@user.shares.build(Factory.attributes_for(:share))
|
12
|
+
@user.shares.build(Factory.attributes_for(:share))
|
13
|
+
get :index, :user_id => @user.to_param, :format => 'html'
|
14
|
+
end
|
15
|
+
it { should_not set_the_flash }
|
16
|
+
it { should respond_with :success }
|
17
|
+
it { should render_template :index }
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "logged in" do
|
22
|
+
before do
|
23
|
+
activate_authlogic
|
24
|
+
@user = Factory(:user)
|
25
|
+
login_as @user
|
26
|
+
end
|
27
|
+
|
28
|
+
describe "GET new" do
|
29
|
+
before do
|
30
|
+
get :new
|
31
|
+
end
|
32
|
+
it { should_not set_the_flash }
|
33
|
+
it { should respond_with :success }
|
34
|
+
it { should render_template :new }
|
35
|
+
end
|
36
|
+
|
37
|
+
describe "GET new with" do
|
38
|
+
before do
|
39
|
+
@title = 'Example'
|
40
|
+
@uri = 'http://www.example.com'
|
41
|
+
@message = 'a message'
|
42
|
+
end
|
43
|
+
describe "full params" do
|
44
|
+
before do
|
45
|
+
get :new, :uri => @uri, :title => @title, :message => @message
|
46
|
+
end
|
47
|
+
it { should_not set_the_flash }
|
48
|
+
it { should respond_with :success }
|
49
|
+
it { should render_template :new }
|
50
|
+
it "should setup the share" do
|
51
|
+
@uri.should == assigns(:share).uri
|
52
|
+
@title.should == assigns(:share).title
|
53
|
+
@message.should == assigns(:share).message
|
54
|
+
end
|
55
|
+
end
|
56
|
+
describe "min params" do
|
57
|
+
before do
|
58
|
+
get :new, :u => @uri, :t => @title, :m => @message
|
59
|
+
end
|
60
|
+
it { should_not set_the_flash }
|
61
|
+
it { should respond_with :success }
|
62
|
+
it { should render_template :new }
|
63
|
+
it "should setup the share" do
|
64
|
+
@uri.should == assigns(:share).uri
|
65
|
+
@title.should == assigns(:share).title
|
66
|
+
@message.should == assigns(:share).message
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
describe "GET index no user specified" do
|
72
|
+
before do
|
73
|
+
@user.shares.create(Factory.attributes_for(:share))
|
74
|
+
@user.shares.create(Factory.attributes_for(:share))
|
75
|
+
get :index, :format => 'html'
|
76
|
+
end
|
77
|
+
it { should_not set_the_flash }
|
78
|
+
it { should respond_with :success }
|
79
|
+
it { should render_template :index }
|
80
|
+
end
|
81
|
+
|
82
|
+
describe "GET index user specified" do
|
83
|
+
before do
|
84
|
+
@user.shares.create(Factory.attributes_for(:share))
|
85
|
+
@user.shares.create(Factory.attributes_for(:share))
|
86
|
+
get :index, :user_id => @user.to_param, :format => 'html'
|
87
|
+
end
|
88
|
+
it { should_not set_the_flash }
|
89
|
+
it { should respond_with :success }
|
90
|
+
it { should render_template :index }
|
91
|
+
end
|
92
|
+
|
93
|
+
describe "DELETE to destroy" do
|
94
|
+
before do
|
95
|
+
@share = @user.shares.create(Factory.attributes_for(:share))
|
96
|
+
@no_delete_share = Factory(:share)
|
97
|
+
end
|
98
|
+
it "should delete share" do
|
99
|
+
lambda{
|
100
|
+
delete :destroy, { :id => @share.to_param, :format => 'json' }
|
101
|
+
@response.body.should include(I18n.t('muck.shares.share_removed'))
|
102
|
+
}.should change(Share, :count).by(-1)
|
103
|
+
end
|
104
|
+
it "should not delete share" do
|
105
|
+
lambda{
|
106
|
+
delete :destroy, { :id => @no_delete_share.to_param, :format => 'json' }
|
107
|
+
}.should_not change(Share, :count)
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
end
|
112
|
+
|
113
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../spec_helper'
|
2
|
+
|
3
|
+
describe Share do
|
4
|
+
|
5
|
+
before do
|
6
|
+
@user = Factory(:user)
|
7
|
+
@friend = Factory(:user)
|
8
|
+
@share = @user.shares.build(Factory.attributes_for(:share))
|
9
|
+
@share.save!
|
10
|
+
end
|
11
|
+
|
12
|
+
it { should validate_presence_of :uri }
|
13
|
+
|
14
|
+
it { should belong_to :shared_by }
|
15
|
+
it { should have_many :comments }
|
16
|
+
|
17
|
+
it { should scope_by_newest }
|
18
|
+
it { should scope_by_oldest }
|
19
|
+
it { should scope_recent }
|
20
|
+
|
21
|
+
it "should require uri" do
|
22
|
+
lambda{
|
23
|
+
u = Factory.build(:share, :uri => nil)
|
24
|
+
u.should_not be_valid
|
25
|
+
u.errors[:uri].should_not be_empty
|
26
|
+
}.should_not change(Share, :count)
|
27
|
+
end
|
28
|
+
|
29
|
+
it "should add an activity" do
|
30
|
+
lambda{
|
31
|
+
@share.add_share_activity(@user)
|
32
|
+
}.should change(Activity, :count).by(1)
|
33
|
+
end
|
34
|
+
|
35
|
+
it "should add an activity without specifying share_to" do
|
36
|
+
lambda{
|
37
|
+
@share.add_share_activity
|
38
|
+
}.should change(Activity, :count).by(1)
|
39
|
+
end
|
40
|
+
|
41
|
+
it "should add an activity for self and friend" do
|
42
|
+
activity = @share.add_share_activity([@user, @friend])
|
43
|
+
@user.reload
|
44
|
+
@friend.reload
|
45
|
+
@user.activities.should include(activity)
|
46
|
+
@friend.activities.should include(activity)
|
47
|
+
end
|
48
|
+
|
49
|
+
describe "user that created share" do
|
50
|
+
it "should be able to edit the share" do
|
51
|
+
@share.can_edit?(@user).should be_true
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../spec_helper'
|
2
|
+
|
3
|
+
describe User do
|
4
|
+
|
5
|
+
describe "A user that can share" do
|
6
|
+
|
7
|
+
before do
|
8
|
+
@user = Factory(:user)
|
9
|
+
@share = @user.shares.build(Factory.attributes_for(:share))
|
10
|
+
@share.save!
|
11
|
+
end
|
12
|
+
|
13
|
+
it { should have_many :shares }
|
14
|
+
|
15
|
+
it "should add shares to the user" do
|
16
|
+
@user.shares.length.should == 1
|
17
|
+
end
|
18
|
+
# TODO can add the count cache later on if we need it
|
19
|
+
# it "should have share cache" do
|
20
|
+
# @user.reload
|
21
|
+
# @user.share_count.should == 1
|
22
|
+
# end
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
$:.reject! { |e| e.include? 'TextMate' }
|
2
|
+
ENV["RAILS_ENV"] ||= 'test'
|
3
|
+
require File.expand_path("../../config/environment", __FILE__)
|
4
|
+
require 'rspec/rails'
|
5
|
+
require 'muck_test_helper'
|
6
|
+
|
7
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
8
|
+
# in spec/support/ and its subdirectories.
|
9
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
10
|
+
|
11
|
+
RSpec.configure do |config|
|
12
|
+
# == Mock Framework
|
13
|
+
#
|
14
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
15
|
+
#
|
16
|
+
# config.mock_with :mocha
|
17
|
+
# config.mock_with :flexmock
|
18
|
+
# config.mock_with :rr
|
19
|
+
config.mock_with :rspec
|
20
|
+
|
21
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
22
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
23
|
+
|
24
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
25
|
+
# examples within a transaction, remove the following line or assign false
|
26
|
+
# instead of true.
|
27
|
+
config.use_transactional_fixtures = true
|
28
|
+
|
29
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
== 2009-10-02 / Version 1.2.0
|
2
|
+
* Overhaul the test suite to be independent of a Rails project
|
3
|
+
* Added concept of database adapter. Ported mysql/postgresql conditional code to their own adapter.
|
4
|
+
* Added SQL Server support. THANKS http://github.com/brennandunn for all the improvements in this release
|
5
|
+
|
6
|
+
== 2009-09-26 / Version 1.1.3
|
7
|
+
* documentation updates and updated to work with Geokit gem v1.5.0
|
8
|
+
* IMPORTANT: in the Geokit gem, Geokit::Geocoders::timeout became Geokit::Geocoders::request_timeout for jruby compatibility.
|
9
|
+
The plugin sets this in config/initializers/geokit_config.rb. So if you've upgraded the gem to 1.5.0, you need to
|
10
|
+
make the change manually from Geokit::Geocoders::timeout to Geokit::Geocoders::request_timeout in config/initializers/geokit_config.rb
|
11
|
+
|
12
|
+
== 2009-06-08 / Version 1.1.2
|
13
|
+
* Added support for hashes in :through. So you can do: acts_as_mappable :through => { :state => :country } (Thanks José Valim).
|
14
|
+
|
15
|
+
== 2009-05-22 / Version 1.1.1
|
16
|
+
* Support for multiple ip geocoders (Thanks dreamcat4)
|
17
|
+
* Now checks if either :origin OR :bounds is passed, and proceeds with geokit query if this is true (Thanks Glenn Powell)
|
18
|
+
* Raises a helpful error if someone uses through but the association does not exists or was not defined yet (Thanks José Valim)
|
19
|
+
|
20
|
+
== 2009-04-11 / Version 1.1.0
|
21
|
+
* Fixed :through usages so that the through model is only included in the query if there
|
22
|
+
is an :origin passed in (Only if it is a geokit search) (Thanks Glenn Powell)
|
23
|
+
* Move library initialisation into lib/geokit-rails. init.rb uses lib/geokit-rails now (thanks Alban Peignier)
|
24
|
+
* Handle the case where a user passes a hash to the :conditions Finder option (thanks Adam Greene)
|
25
|
+
* Added ability to specify domain-specific API keys (Thanks Glenn Powell)
|
26
|
+
|
27
|
+
== 2009-02-20
|
28
|
+
* More powerful assosciations in the Rails Plugin:You can now specify a model as mappable "through" an associated model.
|
29
|
+
In other words, that associated model is the actual mappable model with "lat" and "lng" attributes, but this "through" model
|
30
|
+
can still utilize all Geokit's "find by distance" finders. Also Rails 2.3 compatibility (thanks github/glennpow)
|
31
|
+
|
32
|
+
== 2008-12-18
|
33
|
+
* Split Rails plugin from geocoder gem
|
34
|
+
* updated for Rails 2.2.2
|
35
|
+
|
36
|
+
== 2008-08-20
|
37
|
+
* Further fix of distance calculation, this time in SQL. Now uses least() function, which is available in MySQL version 3.22.5+ and postgres versions 8.1+
|
38
|
+
|
39
|
+
== 2008-01-16
|
40
|
+
* fixed the "zero-distance" bug (calculating between two points that are the same)
|
41
|
+
|
42
|
+
== 2007-11-12
|
43
|
+
* fixed a small but with queries crossing meridian, and also fixed find(:closest)
|
44
|
+
|
45
|
+
== 2007-10-11
|
46
|
+
* Fixed Rails2/Edge compatability
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2007 Bill Eisenhauer & Andre Lewis
|
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.
|