muck-raker 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. data/Rakefile +14 -13
  2. data/VERSION +1 -1
  3. data/muck-raker.gemspec +137 -213
  4. metadata +9 -151
  5. data/.gitignore +0 -30
  6. data/test/rails_test/app/controllers/application_controller.rb +0 -21
  7. data/test/rails_test/app/controllers/default_controller.rb +0 -7
  8. data/test/rails_test/app/helpers/application_helper.rb +0 -3
  9. data/test/rails_test/app/models/comment.rb +0 -3
  10. data/test/rails_test/app/models/profile.rb +0 -3
  11. data/test/rails_test/app/models/user.rb +0 -9
  12. data/test/rails_test/app/models/user_session.rb +0 -2
  13. data/test/rails_test/config/application.rb +0 -42
  14. data/test/rails_test/config/boot.rb +0 -13
  15. data/test/rails_test/config/environment.rb +0 -5
  16. data/test/rails_test/config/environments/development.rb +0 -26
  17. data/test/rails_test/config/environments/production.rb +0 -49
  18. data/test/rails_test/config/environments/test.rb +0 -35
  19. data/test/rails_test/config/initializers/backtrace_silencers.rb +0 -7
  20. data/test/rails_test/config/initializers/inflections.rb +0 -10
  21. data/test/rails_test/config/initializers/mime_types.rb +0 -5
  22. data/test/rails_test/config/initializers/muck_raker.rb +0 -13
  23. data/test/rails_test/config/initializers/secret_token.rb +0 -7
  24. data/test/rails_test/config/initializers/session_store.rb +0 -8
  25. data/test/rails_test/config/routes.rb +0 -5
  26. data/test/rails_test/db/migrate/20090320174818_create_muck_permissions_and_roles.rb +0 -16
  27. data/test/rails_test/db/migrate/20090402033319_add_muck_activities.rb +0 -36
  28. data/test/rails_test/db/migrate/20090402234137_create_languages.rb +0 -18
  29. data/test/rails_test/db/migrate/20090426041056_create_countries.rb +0 -15
  30. data/test/rails_test/db/migrate/20090426041103_create_states.rb +0 -18
  31. data/test/rails_test/db/migrate/20090602041838_create_users.rb +0 -39
  32. data/test/rails_test/db/migrate/20090602191243_create_muck_raker.rb +0 -307
  33. data/test/rails_test/db/migrate/20090613173314_create_comments.rb +0 -24
  34. data/test/rails_test/db/migrate/20090619211125_create_tag_clouds.rb +0 -19
  35. data/test/rails_test/db/migrate/20090623181458_add_grain_size_to_entries.rb +0 -16
  36. data/test/rails_test/db/migrate/20090623193525_add_grain_size_to_tag_clouds.rb +0 -12
  37. data/test/rails_test/db/migrate/20090703175825_denormalize_entries_subjects.rb +0 -16
  38. data/test/rails_test/db/migrate/20090704220055_create_slugs.rb +0 -18
  39. data/test/rails_test/db/migrate/20090704220120_acts_as_taggable_on_migration.rb +0 -29
  40. data/test/rails_test/db/migrate/20090716035935_change_tag_cloud_grain_sizes.rb +0 -9
  41. data/test/rails_test/db/migrate/20090717173900_add_contributor_to_feeds.rb +0 -9
  42. data/test/rails_test/db/migrate/20090717175825_normalize_entries_subjects.rb +0 -18
  43. data/test/rails_test/db/migrate/20090721043213_change_services_title_to_name.rb +0 -9
  44. data/test/rails_test/db/migrate/20090721054927_remove_services_not_null_from_feeds.rb +0 -9
  45. data/test/rails_test/db/migrate/20090723050510_create_feed_parents.rb +0 -17
  46. data/test/rails_test/db/migrate/20090728165716_add_etag_to_feeds.rb +0 -9
  47. data/test/rails_test/db/migrate/20090730044139_add_comment_cache.rb +0 -9
  48. data/test/rails_test/db/migrate/20090730045848_add_comment_cache_to_entries.rb +0 -9
  49. data/test/rails_test/db/migrate/20090730154102_allow_null_user.rb +0 -9
  50. data/test/rails_test/db/migrate/20090803185323_create_shares.rb +0 -16
  51. data/test/rails_test/db/migrate/20090804184247_add_comment_count_to_shares.rb +0 -9
  52. data/test/rails_test/db/migrate/20090804211240_add_entry_id_to_shares.rb +0 -9
  53. data/test/rails_test/db/migrate/20090804231857_add_shares_uri_index.rb +0 -9
  54. data/test/rails_test/db/migrate/20090818204527_add_activity_indexes.rb +0 -9
  55. data/test/rails_test/db/migrate/20090819030523_add_attachable_to_activities.rb +0 -13
  56. data/test/rails_test/db/migrate/20090826220530_change_services_sequence_to_sort.rb +0 -9
  57. data/test/rails_test/db/migrate/20090826225652_create_identity_feeds.rb +0 -14
  58. data/test/rails_test/db/migrate/20090827005105_add_identity_fields_to_services.rb +0 -13
  59. data/test/rails_test/db/migrate/20090827015308_create_service_categories.rb +0 -12
  60. data/test/rails_test/db/migrate/20090827221502_add_prompt_and_template_to_services.rb +0 -11
  61. data/test/rails_test/db/migrate/20090915041650_aggregations_to_polymorphic.rb +0 -15
  62. data/test/rails_test/db/migrate/20090922174200_update_oai_endpoints.rb +0 -13
  63. data/test/rails_test/db/migrate/20090922231552_add_dates_to_oai_endpoints.rb +0 -11
  64. data/test/rails_test/db/migrate/20090923150807_rename_name_in_aggregation.rb +0 -9
  65. data/test/rails_test/db/migrate/20090924200750_add_uri_data_template_to_services.rb +0 -9
  66. data/test/rails_test/db/migrate/20091006183742_add_feed_count_to_aggregation.rb +0 -9
  67. data/test/rails_test/db/migrate/20091022150615_add_uri_key_to_services.rb +0 -9
  68. data/test/rails_test/features/step_definitions/comment_steps.rb +0 -11
  69. data/test/rails_test/features/step_definitions/common_steps.rb +0 -93
  70. data/test/rails_test/features/step_definitions/web_steps.rb +0 -219
  71. data/test/rails_test/features/step_definitions/webrat_steps.rb +0 -128
  72. data/test/rails_test/features/support/custom_env.rb +0 -19
  73. data/test/rails_test/features/support/env.rb +0 -58
  74. data/test/rails_test/features/support/paths.rb +0 -33
  75. data/test/rails_test/public/dispatch.rb +0 -10
  76. data/test/rails_test/spec/spec_helper.rb +0 -5
data/.gitignore DELETED
@@ -1,30 +0,0 @@
1
- **/*.pid
2
- log/*.log
3
- log/*.pid
4
- tmp
5
- .DS_Store
6
- public/cache/**/*
7
- public/system/**/*
8
- doc/**/*
9
- db/*.sqlite3
10
- .project
11
- .loadpath
12
- nbproject/
13
- .idea
14
- testjour.log
15
- *.so
16
- *.o
17
- Makefile
18
- mkmf.log
19
- *.bundle
20
- conftest
21
- content/
22
- .idea
23
- *.sw?
24
- .DS_Store
25
- coverage
26
- rdoc
27
- pkg
28
- pkg/*
29
- log/*
30
- secrets.yml
@@ -1,21 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
-
3
- helper :all
4
- protect_from_forgery
5
-
6
- protected
7
- # called by Admin::Muck::BaseController to check whether or not the
8
- # user should have access to the admin UI
9
- def admin_access?
10
- admin?
11
- end
12
-
13
- # only require ssl if we are in production
14
- def ssl_required?
15
- return ENV['SSL'] == 'on' ? true : false if defined? ENV['SSL']
16
- return false if local_request?
17
- return false if RAILS_ENV == 'test'
18
- ((self.class.read_inheritable_attribute(:ssl_required_actions) || []).include?(action_name.to_sym)) && (RAILS_ENV == 'production' || RAILS_ENV == 'staging')
19
- end
20
-
21
- end
@@ -1,7 +0,0 @@
1
- class DefaultController < ApplicationController
2
-
3
- def index
4
- @user = User.create
5
- end
6
-
7
- end
@@ -1,3 +0,0 @@
1
- # Methods added to this helper will be available to all templates in the application.
2
- module ApplicationHelper
3
- end
@@ -1,3 +0,0 @@
1
- class Comment < ActiveRecord::Base
2
- include MuckComments::Models::MuckComment
3
- end
@@ -1,3 +0,0 @@
1
- class Profile < ActiveRecord::Base
2
- include MuckProfiles::Models::MuckProfile
3
- end
@@ -1,9 +0,0 @@
1
- class User < ActiveRecord::Base
2
- acts_as_authentic do |c|
3
- c.crypto_provider = Authlogic::CryptoProviders::BCrypt
4
- end
5
- include MuckUsers::Models::MuckUser
6
- include MuckProfiles::Models::MuckUser
7
- has_many :comments
8
- include MuckComments::Models::MuckCommentable
9
- end
@@ -1,2 +0,0 @@
1
- class UserSession < Authlogic::Session::Base
2
- end
@@ -1,42 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- # If you have a Gemfile, require the gems listed there, including any gems
6
- # you've limited to :test, :development, or :production.
7
- Bundler.require(:default, Rails.env) if defined?(Bundler)
8
-
9
- module RailsTest
10
- class Application < Rails::Application
11
- # Settings in config/environments/* take precedence over those specified here.
12
- # Application configuration should go into files in config/initializers
13
- # -- all .rb files in that directory are automatically loaded.
14
-
15
- # Custom directories with classes and modules you want to be autoloadable.
16
- # config.autoload_paths += %W(#{config.root}/extras)
17
-
18
- # Only load the plugins named here, in the order given (default is alphabetical).
19
- # :all can be used as a placeholder for all plugins not explicitly named.
20
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
21
-
22
- # Activate observers that should always be running.
23
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
24
-
25
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
26
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
27
- # config.time_zone = 'Central Time (US & Canada)'
28
-
29
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
30
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
31
- # config.i18n.default_locale = :de
32
-
33
- # JavaScript files you want as :defaults (application.js is always included).
34
- # config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
35
-
36
- # Configure the default encoding used in templates for Ruby 1.9.
37
- config.encoding = "utf-8"
38
-
39
- # Configure sensitive parameters which will be filtered from the log file.
40
- config.filter_parameters += [:password]
41
- end
42
- end
@@ -1,13 +0,0 @@
1
- require 'rubygems'
2
-
3
- # Set up gems listed in the Gemfile.
4
- gemfile = File.expand_path('../../Gemfile', __FILE__)
5
- begin
6
- ENV['BUNDLE_GEMFILE'] = gemfile
7
- require 'bundler'
8
- Bundler.setup
9
- rescue Bundler::GemNotFound => e
10
- STDERR.puts e.message
11
- STDERR.puts "Try running `bundle install`."
12
- exit!
13
- end if File.exist?(gemfile)
@@ -1,5 +0,0 @@
1
- # Load the rails application
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the rails application
5
- RailsTest::Application.initialize!
@@ -1,26 +0,0 @@
1
- RailsTest::Application.configure do
2
- # Settings specified here will take precedence over those in config/environment.rb
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the webserver when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
11
-
12
- # Show full error reports and disable caching
13
- config.consider_all_requests_local = true
14
- config.action_view.debug_rjs = true
15
- config.action_controller.perform_caching = false
16
-
17
- # Don't care if the mailer can't send
18
- config.action_mailer.raise_delivery_errors = false
19
-
20
- # Print deprecation notices to the Rails logger
21
- config.active_support.deprecation = :log
22
-
23
- # Only use best-standards-support built into browsers
24
- config.action_dispatch.best_standards_support = :builtin
25
- end
26
-
@@ -1,49 +0,0 @@
1
- RailsTest::Application.configure do
2
- # Settings specified here will take precedence over those in config/environment.rb
3
-
4
- # The production environment is meant for finished, "live" apps.
5
- # Code is not reloaded between requests
6
- config.cache_classes = true
7
-
8
- # Full error reports are disabled and caching is turned on
9
- config.consider_all_requests_local = false
10
- config.action_controller.perform_caching = true
11
-
12
- # Specifies the header that your server uses for sending files
13
- config.action_dispatch.x_sendfile_header = "X-Sendfile"
14
-
15
- # For nginx:
16
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
17
-
18
- # If you have no front-end server that supports something like X-Sendfile,
19
- # just comment this out and Rails will serve the files
20
-
21
- # See everything in the log (default is :info)
22
- # config.log_level = :debug
23
-
24
- # Use a different logger for distributed setups
25
- # config.logger = SyslogLogger.new
26
-
27
- # Use a different cache store in production
28
- # config.cache_store = :mem_cache_store
29
-
30
- # Disable Rails's static asset server
31
- # In production, Apache or nginx will already do this
32
- config.serve_static_assets = false
33
-
34
- # Enable serving of images, stylesheets, and javascripts from an asset server
35
- # config.action_controller.asset_host = "http://assets.example.com"
36
-
37
- # Disable delivery errors, bad email addresses will be ignored
38
- # config.action_mailer.raise_delivery_errors = false
39
-
40
- # Enable threaded mode
41
- # config.threadsafe!
42
-
43
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
44
- # the I18n.default_locale when a translation can not be found)
45
- config.i18n.fallbacks = true
46
-
47
- # Send deprecation notices to registered listeners
48
- config.active_support.deprecation = :notify
49
- end
@@ -1,35 +0,0 @@
1
- RailsTest::Application.configure do
2
- # Settings specified here will take precedence over those in config/environment.rb
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Log error messages when you accidentally call methods on nil.
11
- config.whiny_nils = true
12
-
13
- # Show full error reports and disable caching
14
- config.consider_all_requests_local = true
15
- config.action_controller.perform_caching = false
16
-
17
- # Raise exceptions instead of rendering exception templates
18
- config.action_dispatch.show_exceptions = true
19
-
20
- # Disable request forgery protection in test environment
21
- config.action_controller.allow_forgery_protection = false
22
-
23
- # Tell Action Mailer not to deliver emails to the real world.
24
- # The :test delivery method accumulates sent emails in the
25
- # ActionMailer::Base.deliveries array.
26
- config.action_mailer.delivery_method = :test
27
-
28
- # Use SQL instead of Active Record's schema dumper when creating the test database.
29
- # This is necessary if your schema can't be completely dumped by the schema dumper,
30
- # like if you have constraints or database-specific column types
31
- # config.active_record.schema_format = :sql
32
-
33
- # Print deprecation notices to the stderr
34
- config.active_support.deprecation = :stderr
35
- end
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,10 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format
4
- # (all these examples are active by default):
5
- # ActiveSupport::Inflector.inflections do |inflect|
6
- # inflect.plural /^(ox)$/i, '\1en'
7
- # inflect.singular /^(ox)en/i, '\1'
8
- # inflect.irregular 'person', 'people'
9
- # inflect.uncountable %w( fish sheep )
10
- # end
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,13 +0,0 @@
1
- ENV['RAILS_ENV'] = ENV['RAILS_ENV'] || MuckRaker.configuration.rails_env
2
- SOLR_CONFIG_PATH = "#{RAILS_ROOT}/config/solr"
3
- SOLR_LOGS_PATH = "#{RAILS_ROOT}/log"
4
- SOLR_PIDS_PATH = "#{RAILS_ROOT}/tmp/pids/solr"
5
-
6
- RAKER_LOGS_PATH = "#{RAILS_ROOT}/log"
7
- RAKER_PIDS_PATH = "#{RAILS_ROOT}/tmp/pids/raker"
8
-
9
- if ENV['RAILS_ENV'] == "production"
10
- SOLR_DATA_PATH = "#{RAILS_ROOT}/../../shared/solr_indexes"
11
- else
12
- SOLR_DATA_PATH = "#{RAILS_ROOT}/solr_indexes"
13
- end
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
- # Make sure the secret is at least 30 characters and all random,
6
- # no regular words or you'll be exposed to dictionary attacks.
7
- RailsTest::Application.config.secret_token = '9dokr4d5e1od335fdfb1caec46711pdodkiec976d0ba95b4c0f575cb046cc358bce7a335ee36eb29253fb680d8u3838d871f6baeff48220fee8e9e42ab88diub'
@@ -1,8 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- RailsTest::Application.config.session_store :cookie_store, :key => '_muck_raker_session'
4
-
5
- # Use the database for sessions instead of the cookie-based default,
6
- # which shouldn't be used to store highly confidential information
7
- # (create the session table with "rake db:sessions:create")
8
- # RailsTest::Application.config.session_store :active_record_store
@@ -1,5 +0,0 @@
1
- RailsTest::Application.routes.draw do
2
- root :to => "default#index"
3
-
4
- match ':controller(/:action(/:id(.:format)))'
5
- end
@@ -1,16 +0,0 @@
1
- class CreateMuckPermissionsAndRoles < ActiveRecord::Migration
2
-
3
- create_table "permissions", :force => true do |t|
4
- t.integer "role_id", :null => false
5
- t.integer "user_id", :null => false
6
- t.datetime "created_at"
7
- t.datetime "updated_at"
8
- end
9
-
10
- create_table "roles", :force => true do |t|
11
- t.string "rolename"
12
- t.datetime "created_at"
13
- t.datetime "updated_at"
14
- end
15
-
16
- end
@@ -1,36 +0,0 @@
1
- class AddMuckActivities < ActiveRecord::Migration
2
-
3
- def self.up
4
-
5
- create_table :activities, :force => true do |t|
6
- t.integer :item_id
7
- t.string :item_type
8
- t.string :template
9
- t.integer :source_id
10
- t.string :source_type
11
- t.text :content
12
- t.string :title
13
- t.boolean :is_status_update, :default => false
14
- t.boolean :is_public, :default => true
15
- t.timestamps
16
- end
17
-
18
- add_index :activities, ["item_id", "item_type"]
19
-
20
- create_table :activity_feeds, :force => true do |t|
21
- t.integer :activity_id
22
- t.integer :ownable_id
23
- t.string :ownable_type
24
- end
25
-
26
- add_index :activity_feeds, ["activity_id"]
27
- add_index :activity_feeds, ["ownable_id", "ownable_type"]
28
-
29
- end
30
-
31
- def self.down
32
- drop_table :activities
33
- drop_table :activity_feeds
34
- end
35
-
36
- end
@@ -1,18 +0,0 @@
1
- class CreateLanguages < ActiveRecord::Migration
2
- def self.up
3
- create_table :languages, :force => true do |t|
4
- t.string :name
5
- t.string :english_name
6
- t.string :locale
7
- t.boolean :supported, :default => true
8
- t.integer :is_default, :default => false
9
- end
10
- add_index :languages, :name
11
- add_index :languages, :locale
12
- end
13
-
14
- def self.down
15
- drop_table :languages
16
- end
17
-
18
- end
@@ -1,15 +0,0 @@
1
- class CreateCountries < ActiveRecord::Migration
2
- def self.up
3
- create_table :countries, :force => true do |t|
4
- t.string "name", :limit => 128, :default => "", :null => false
5
- t.string "abbreviation", :limit => 3, :default => "", :null => false
6
- t.integer "sort", :default => 1000, :null => false
7
- end
8
- add_index :countries, :name
9
- add_index :countries, :abbreviation
10
- end
11
-
12
- def self.down
13
- drop_table :countries
14
- end
15
- end
@@ -1,18 +0,0 @@
1
- class CreateStates < ActiveRecord::Migration
2
- def self.up
3
- create_table :states, :force => true do |t|
4
- t.string "name", :limit => 128, :default => "", :null => false
5
- t.string "abbreviation", :limit => 3, :default => "", :null => false
6
- t.integer "country_id", :limit => 8, :null => false
7
- end
8
-
9
- add_index :states, :country_id
10
- add_index :states, :name
11
- add_index :states, :abbreviation
12
-
13
- end
14
-
15
- def self.down
16
- drop_table :states
17
- end
18
- end