muck-services 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.
- data/Rakefile +6 -9
- data/VERSION +1 -1
- data/muck-services.gemspec +241 -362
- metadata +9 -241
- data/.gitignore +0 -30
- data/test/rails_test/app/controllers/application_controller.rb +0 -24
- data/test/rails_test/app/controllers/default_controller.rb +0 -7
- data/test/rails_test/app/helpers/application_helper.rb +0 -3
- data/test/rails_test/app/models/activity.rb +0 -24
- data/test/rails_test/app/models/comment.rb +0 -23
- data/test/rails_test/app/models/country.rb +0 -13
- data/test/rails_test/app/models/language.rb +0 -15
- data/test/rails_test/app/models/share.rb +0 -20
- data/test/rails_test/app/models/state.rb +0 -13
- data/test/rails_test/app/models/user.rb +0 -45
- data/test/rails_test/app/models/user_session.rb +0 -2
- data/test/rails_test/config/application.rb +0 -42
- data/test/rails_test/config/boot.rb +0 -13
- data/test/rails_test/config/environment.rb +0 -5
- data/test/rails_test/config/environments/development.rb +0 -26
- data/test/rails_test/config/environments/production.rb +0 -49
- data/test/rails_test/config/environments/test.rb +0 -35
- data/test/rails_test/config/initializers/backtrace_silencers.rb +0 -7
- data/test/rails_test/config/initializers/inflections.rb +0 -10
- data/test/rails_test/config/initializers/mce_options.rb +0 -83
- data/test/rails_test/config/initializers/mime_types.rb +0 -5
- data/test/rails_test/config/initializers/muck.rb +0 -66
- data/test/rails_test/config/initializers/secret_token.rb +0 -7
- data/test/rails_test/config/initializers/session_store.rb +0 -8
- data/test/rails_test/config/routes.rb +0 -12
- data/test/rails_test/db/migrate/20090320174818_create_muck_permissions_and_roles.rb +0 -16
- data/test/rails_test/db/migrate/20090327231918_create_users.rb +0 -40
- data/test/rails_test/db/migrate/20090402033319_add_muck_activities.rb +0 -36
- data/test/rails_test/db/migrate/20090402234137_create_languages.rb +0 -18
- data/test/rails_test/db/migrate/20090426041056_create_countries.rb +0 -15
- data/test/rails_test/db/migrate/20090426041103_create_states.rb +0 -18
- data/test/rails_test/db/migrate/20090512013727_create_profiles.rb +0 -21
- data/test/rails_test/db/migrate/20090517040220_create_uploads.rb +0 -38
- data/test/rails_test/db/migrate/20090602191243_create_muck_raker.rb +0 -322
- data/test/rails_test/db/migrate/20090613173314_create_comments.rb +0 -24
- data/test/rails_test/db/migrate/20090619211125_create_tag_clouds.rb +0 -19
- data/test/rails_test/db/migrate/20090623181458_add_grain_size_to_entries.rb +0 -16
- data/test/rails_test/db/migrate/20090623193525_add_grain_size_to_tag_clouds.rb +0 -12
- data/test/rails_test/db/migrate/20090703055724_add_contents.rb +0 -49
- data/test/rails_test/db/migrate/20090703175825_denormalize_entries_subjects.rb +0 -42
- data/test/rails_test/db/migrate/20090704220055_create_slugs.rb +0 -18
- data/test/rails_test/db/migrate/20090716035935_change_tag_cloud_grain_sizes.rb +0 -9
- data/test/rails_test/db/migrate/20090717173900_add_contributor_to_feeds.rb +0 -9
- data/test/rails_test/db/migrate/20090717175825_normalize_entries_subjects.rb +0 -47
- data/test/rails_test/db/migrate/20090721043213_change_services_title_to_name.rb +0 -9
- data/test/rails_test/db/migrate/20090721054927_remove_services_not_null_from_feeds.rb +0 -9
- data/test/rails_test/db/migrate/20090723050510_create_feed_parents.rb +0 -17
- data/test/rails_test/db/migrate/20090728165716_add_etag_to_feeds.rb +0 -9
- data/test/rails_test/db/migrate/20090730044139_add_comment_cache.rb +0 -9
- data/test/rails_test/db/migrate/20090730045848_add_comment_cache_to_entries.rb +0 -9
- data/test/rails_test/db/migrate/20090730154102_allow_null_user.rb +0 -9
- data/test/rails_test/db/migrate/20090803185323_create_shares.rb +0 -16
- data/test/rails_test/db/migrate/20090804184247_add_comment_count_to_shares.rb +0 -9
- data/test/rails_test/db/migrate/20090804211240_add_entry_id_to_shares.rb +0 -9
- data/test/rails_test/db/migrate/20090804231857_add_shares_uri_index.rb +0 -9
- data/test/rails_test/db/migrate/20090806230610_add_layout_to_contents.rb +0 -9
- data/test/rails_test/db/migrate/20090808175401_add_contents_comment_counter_cache.rb +0 -9
- data/test/rails_test/db/migrate/20090818204527_add_activity_indexes.rb +0 -9
- data/test/rails_test/db/migrate/20090819030523_add_attachable_to_activities.rb +0 -13
- data/test/rails_test/db/migrate/20090826220530_change_services_sequence_to_sort.rb +0 -9
- data/test/rails_test/db/migrate/20090826225652_create_identity_feeds.rb +0 -14
- data/test/rails_test/db/migrate/20090827005105_add_identity_fields_to_services.rb +0 -13
- data/test/rails_test/db/migrate/20090827015308_create_service_categories.rb +0 -12
- data/test/rails_test/db/migrate/20090827221502_add_prompt_and_template_to_services.rb +0 -11
- data/test/rails_test/db/migrate/20090915041650_aggregations_to_polymorphic.rb +0 -15
- data/test/rails_test/db/migrate/20090922174200_update_oai_endpoints.rb +0 -13
- data/test/rails_test/db/migrate/20090922231552_add_dates_to_oai_endpoints.rb +0 -11
- data/test/rails_test/db/migrate/20090923150807_rename_name_in_aggregation.rb +0 -9
- data/test/rails_test/db/migrate/20090924200750_add_uri_data_template_to_services.rb +0 -9
- data/test/rails_test/db/migrate/20091006183742_add_feed_count_to_aggregation.rb +0 -9
- data/test/rails_test/db/migrate/20091022150615_add_uri_key_to_services.rb +0 -9
- data/test/rails_test/db/migrate/20091115011828_add_aggregations_for_personal_recs.rb +0 -9
- data/test/rails_test/db/migrate/20091116094447_rename_action_table.rb +0 -38
- data/test/rails_test/db/migrate/20091118203605_add_default_feed_type_to_aggregation_feed.rb +0 -10
- data/test/rails_test/db/migrate/20091124203137_add_location_to_profiles.rb +0 -15
- data/test/rails_test/db/migrate/20091124205819_add_fields_to_profiles.rb +0 -21
- data/test/rails_test/db/migrate/20100123035450_create_access_codes.rb +0 -19
- data/test/rails_test/db/migrate/20100123233654_create_access_code_requests.rb +0 -14
- data/test/rails_test/db/migrate/20100206000906_remove_name_fields.rb +0 -15
- data/test/rails_test/db/migrate/20100903205928_add_dead_entry_fields.rb +0 -13
- data/test/rails_test/features/step_definitions/common_steps.rb +0 -93
- data/test/rails_test/features/step_definitions/visit_steps.rb +0 -6
- data/test/rails_test/features/step_definitions/web_steps.rb +0 -219
- data/test/rails_test/features/step_definitions/webrat_steps.rb +0 -128
- data/test/rails_test/features/support/custom_env.rb +0 -19
- data/test/rails_test/features/support/env.rb +0 -58
- data/test/rails_test/features/support/paths.rb +0 -33
- data/test/rails_test/lib/daemons/amazonaws.rb +0 -36
- data/test/rails_test/public/dispatch.rb +0 -10
- data/test/rails_test/spec/controllers/admin/feeds_controller_spec.rb +0 -38
- data/test/rails_test/spec/controllers/admin/oai_endpoints_controller_spec.rb +0 -30
- data/test/rails_test/spec/controllers/aggregation_feeds_controller_spec.rb +0 -67
- data/test/rails_test/spec/controllers/aggregations_controller_spec.rb +0 -89
- data/test/rails_test/spec/controllers/feed_previews_controller_spec.rb +0 -32
- data/test/rails_test/spec/controllers/feeds_controller_spec.rb +0 -78
- data/test/rails_test/spec/controllers/identity_feeds_controller_spec.rb +0 -110
- data/test/rails_test/spec/controllers/oai_endpoints_controller_spec.rb +0 -42
- data/test/rails_test/spec/controllers/topics_controller_spec.rb +0 -50
- data/test/rails_test/spec/controllers/visits_controller_spec.rb +0 -21
- data/test/rails_test/spec/factories.rb +0 -16
- data/test/rails_test/spec/mailers/services_mailer_spec.rb +0 -31
- data/test/rails_test/spec/models/aggregation_feed_spec.rb +0 -23
- data/test/rails_test/spec/models/aggregation_spec.rb +0 -87
- data/test/rails_test/spec/models/entry_spec.rb +0 -195
- data/test/rails_test/spec/models/feed_parent_spec.rb +0 -22
- data/test/rails_test/spec/models/feed_spec.rb +0 -204
- data/test/rails_test/spec/models/identity_feed_spec.rb +0 -18
- data/test/rails_test/spec/models/oai_endpoint_spec.rb +0 -78
- data/test/rails_test/spec/models/personal_recommendation_spec.rb +0 -60
- data/test/rails_test/spec/models/recommendation_spec.rb +0 -27
- data/test/rails_test/spec/models/service_category_spec.rb +0 -19
- data/test/rails_test/spec/models/service_spec.rb +0 -383
- data/test/rails_test/spec/models/share_spec.rb +0 -30
- data/test/rails_test/spec/models/tag_cloud_spec.rb +0 -23
- data/test/rails_test/spec/models/user_spec.rb +0 -45
- data/test/rails_test/spec/spec_helper.rb +0 -36
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# == Schema Information
|
|
2
|
-
#
|
|
3
|
-
# Table name: shares
|
|
4
|
-
#
|
|
5
|
-
# id :integer(4) not null, primary key
|
|
6
|
-
# uri :string(2083) default(""), not null
|
|
7
|
-
# title :string(255)
|
|
8
|
-
# message :text
|
|
9
|
-
# shared_by_id :integer(4) not null
|
|
10
|
-
# created_at :datetime
|
|
11
|
-
# updated_at :datetime
|
|
12
|
-
# comment_count :integer(4) default(0)
|
|
13
|
-
# entry_id :integer(4)
|
|
14
|
-
#
|
|
15
|
-
|
|
16
|
-
require File.dirname(__FILE__) + '/../spec_helper'
|
|
17
|
-
|
|
18
|
-
describe Share do
|
|
19
|
-
|
|
20
|
-
describe "share instance" do
|
|
21
|
-
before do
|
|
22
|
-
@share = Factory(:service_share)
|
|
23
|
-
end
|
|
24
|
-
it { should belong_to :entry }
|
|
25
|
-
it "should return entry for discover_attach_to" do
|
|
26
|
-
@share.discover_attach_to.should == @share.entry
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
end
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# == Schema Information
|
|
2
|
-
#
|
|
3
|
-
# Table name: tag_clouds
|
|
4
|
-
#
|
|
5
|
-
# id :integer(4) not null, primary key
|
|
6
|
-
# language_id :integer(4)
|
|
7
|
-
# filter :string(255)
|
|
8
|
-
# tag_list :string(5000)
|
|
9
|
-
# grain_size :string(255) default("all")
|
|
10
|
-
#
|
|
11
|
-
|
|
12
|
-
require File.dirname(__FILE__) + '/../spec_helper'
|
|
13
|
-
|
|
14
|
-
# Used to test muck_content_translation
|
|
15
|
-
describe TagCloud do
|
|
16
|
-
|
|
17
|
-
describe "A tag cloud instance" do
|
|
18
|
-
it "should get cached tag cloud" do
|
|
19
|
-
#self.language_tags language_id = 38, grain_size = 'all', filter = ''
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
end
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# == Schema Information
|
|
2
|
-
#
|
|
3
|
-
# Table name: users
|
|
4
|
-
#
|
|
5
|
-
# id :integer(4) not null, primary key
|
|
6
|
-
# login :string(255)
|
|
7
|
-
# email :string(255)
|
|
8
|
-
# first_name :string(255)
|
|
9
|
-
# last_name :string(255)
|
|
10
|
-
# crypted_password :string(255)
|
|
11
|
-
# password_salt :string(255)
|
|
12
|
-
# persistence_token :string(255)
|
|
13
|
-
# single_access_token :string(255)
|
|
14
|
-
# perishable_token :string(255)
|
|
15
|
-
# login_count :integer(4) default(0), not null
|
|
16
|
-
# failed_login_count :integer(4) default(0), not null
|
|
17
|
-
# last_request_at :datetime
|
|
18
|
-
# last_login_at :datetime
|
|
19
|
-
# current_login_at :datetime
|
|
20
|
-
# current_login_ip :string(255)
|
|
21
|
-
# last_login_ip :string(255)
|
|
22
|
-
# terms_of_service :boolean(1) not null
|
|
23
|
-
# time_zone :string(255) default("UTC")
|
|
24
|
-
# disabled_at :datetime
|
|
25
|
-
# activated_at :datetime
|
|
26
|
-
# created_at :datetime
|
|
27
|
-
# updated_at :datetime
|
|
28
|
-
#
|
|
29
|
-
|
|
30
|
-
require File.dirname(__FILE__) + '/../spec_helper'
|
|
31
|
-
|
|
32
|
-
describe User do
|
|
33
|
-
describe "users" do
|
|
34
|
-
before do
|
|
35
|
-
@user = Factory(:user)
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
it { should have_many :feed_parents }
|
|
39
|
-
it { should have_many :aggregations }
|
|
40
|
-
it { should have_many :feeds }
|
|
41
|
-
it { should have_many :own_feeds }
|
|
42
|
-
it { should have_many :identity_feeds }
|
|
43
|
-
|
|
44
|
-
end
|
|
45
|
-
end
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
$:.reject! { |e| e.include? 'TextMate' }
|
|
2
|
-
ENV["RAILS_ENV"] ||= 'test'
|
|
3
|
-
require File.expand_path("../../config/environment", __FILE__)
|
|
4
|
-
|
|
5
|
-
require 'muck_test_helper'
|
|
6
|
-
require File.expand_path(File.dirname(__FILE__) + '/factories')
|
|
7
|
-
|
|
8
|
-
TEST_URI = 'http://www.engadget.com'
|
|
9
|
-
TEST_RSS_URI = 'http://www.engadget.com/rss.xml'
|
|
10
|
-
TEST_USERNAME_TEMPLATE = 'http://feeds.delicious.com/v2/rss/{username}?count=100'
|
|
11
|
-
TEST_XML_URI = 'http://ocw.mit.edu/OcwWeb/rss/all/mit-allcourses.xml'
|
|
12
|
-
|
|
13
|
-
# Used to add in a music service since services.yml doesn't currently have any.
|
|
14
|
-
def build_music_service
|
|
15
|
-
# We don't have any music services in the default services.yml so we build one here
|
|
16
|
-
template = "http://example.com/{tag}.rss"
|
|
17
|
-
uri_template = "http://example.com/{tag}"
|
|
18
|
-
service_category = Factory(:service_category, :name => 'Music')
|
|
19
|
-
Factory(:service, :uri_data_template => template, :uri_template => uri_template, :use_for => 'tags', :service_category_id => service_category.id)
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
# load in the default data required to run the app
|
|
23
|
-
def bootstrap_services
|
|
24
|
-
ActiveRecord::Base.establish_connection(::Rails.env)
|
|
25
|
-
|
|
26
|
-
ServiceCategory.delete_all
|
|
27
|
-
yml = File.join(File.dirname(__FILE__), '..', '..', '..', 'db', 'bootstrap',"service_categories")
|
|
28
|
-
Fixtures.new(Service.connection,"service_categories",ServiceCategory,yml).insert_fixtures
|
|
29
|
-
|
|
30
|
-
Service.delete_all
|
|
31
|
-
yml = File.join(File.dirname(__FILE__), '..', '..', '..', 'db', 'bootstrap',"services")
|
|
32
|
-
Fixtures.new(Service.connection,"services",Service,yml).insert_fixtures
|
|
33
|
-
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
bootstrap_services
|