fassets_core 0.2.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/MIT-LICENSE +21 -0
- data/README.md +22 -0
- data/Rakefile +39 -0
- data/app/assets/images/fassets_core/add.png +0 -0
- data/app/assets/images/fassets_core/archive.png +0 -0
- data/app/assets/images/fassets_core/classify.png +0 -0
- data/app/assets/images/fassets_core/clipboard.png +0 -0
- data/app/assets/images/fassets_core/collapse.png +0 -0
- data/app/assets/images/fassets_core/collapsed.png +0 -0
- data/app/assets/images/fassets_core/delete.png +0 -0
- data/app/assets/images/fassets_core/drag.png +0 -0
- data/app/assets/images/fassets_core/edit.png +0 -0
- data/app/assets/images/fassets_core/link.png +0 -0
- data/app/assets/images/fassets_core/markup_preview.png +0 -0
- data/app/assets/images/fassets_core/remove.png +0 -0
- data/app/assets/images/fassets_core/sort.png +0 -0
- data/app/assets/images/fassets_core/warning.png +0 -0
- data/app/assets/javascripts/fassets_core/add_asset_box.js +102 -0
- data/app/assets/javascripts/fassets_core/application.js.erb +14 -0
- data/app/assets/javascripts/fassets_core/assets.js +31 -0
- data/app/assets/javascripts/fassets_core/catalog_box.js +73 -0
- data/app/assets/javascripts/fassets_core/catalogs.js +46 -0
- data/app/assets/javascripts/fassets_core/classification.js +37 -0
- data/app/assets/javascripts/fassets_core/edit_box.js +63 -0
- data/app/assets/javascripts/fassets_core/facets.js.erb +32 -0
- data/app/assets/javascripts/fassets_core/tray.js +30 -0
- data/app/assets/stylesheets/fassets_core/add_asset_box.css.scss +77 -0
- data/app/assets/stylesheets/fassets_core/application.css +16 -0
- data/app/assets/stylesheets/fassets_core/assets.css.scss +74 -0
- data/app/assets/stylesheets/fassets_core/catalog_box.css.scss +45 -0
- data/app/assets/stylesheets/fassets_core/collapsible.css.scss +54 -0
- data/app/assets/stylesheets/fassets_core/edit_box.css.scss +58 -0
- data/app/assets/stylesheets/fassets_core/facet.css.scss +56 -0
- data/app/assets/stylesheets/fassets_core/filter.css.scss +20 -0
- data/app/assets/stylesheets/fassets_core/forms.css.scss +12 -0
- data/app/assets/stylesheets/fassets_core/labels.css.scss +13 -0
- data/app/assets/stylesheets/fassets_core/master.css.scss +127 -0
- data/app/assets/stylesheets/fassets_core/sidebar.css.scss +84 -0
- data/app/assets/stylesheets/fassets_core/tray.css.scss +106 -0
- data/app/controllers/assets_controller.rb +115 -0
- data/app/controllers/catalogs_controller.rb +99 -0
- data/app/controllers/classifications_controller.rb +56 -0
- data/app/controllers/facets_controller.rb +57 -0
- data/app/controllers/fassets_core/application_controller.rb +5 -0
- data/app/controllers/labels_controller.rb +54 -0
- data/app/controllers/tray_positions_controller.rb +81 -0
- data/app/helpers/assets_helper.rb +20 -0
- data/app/helpers/catalogs_helper.rb +3 -0
- data/app/helpers/classifications_helper.rb +8 -0
- data/app/helpers/fassets_core/application_helper.rb +48 -0
- data/app/helpers/labels_helper.rb +3 -0
- data/app/helpers/tray_positions_helper.rb +3 -0
- data/app/models/asset.rb +52 -0
- data/app/models/catalog.rb +16 -0
- data/app/models/classification.rb +8 -0
- data/app/models/facet.rb +19 -0
- data/app/models/label.rb +11 -0
- data/app/models/label_filter.rb +16 -0
- data/app/models/labeling.rb +5 -0
- data/app/models/tray_position.rb +9 -0
- data/app/views/assets/_add_asset_sidebar.html.haml +8 -0
- data/app/views/assets/_classification.html.haml +33 -0
- data/app/views/assets/_form.html.haml +30 -0
- data/app/views/assets/_put_on_tray.html.haml +7 -0
- data/app/views/assets/edit.html.haml +15 -0
- data/app/views/assets/new.html.haml +25 -0
- data/app/views/assets/show.html.haml +13 -0
- data/app/views/catalogs/_box_catalog_list.html.haml +6 -0
- data/app/views/catalogs/_box_content.html.haml +13 -0
- data/app/views/catalogs/_catalog.html.haml +2 -0
- data/app/views/catalogs/_facet.html.haml +13 -0
- data/app/views/catalogs/_filter_item.html.haml +3 -0
- data/app/views/catalogs/_form.html.haml +6 -0
- data/app/views/catalogs/box.html.haml +6 -0
- data/app/views/catalogs/edit.html.haml +8 -0
- data/app/views/catalogs/index.html.haml +17 -0
- data/app/views/catalogs/new.html.haml +8 -0
- data/app/views/catalogs/show.html.haml +30 -0
- data/app/views/classifications/update.js.erb +4 -0
- data/app/views/facets/_form.html.haml +9 -0
- data/app/views/facets/edit.html.haml +15 -0
- data/app/views/labels/_form.haml +3 -0
- data/app/views/labels/_sidebar.html.haml +22 -0
- data/app/views/labels/destroy.js.erb +13 -0
- data/app/views/layouts/fassets_core/application.html.haml +16 -0
- data/app/views/shared/_asset.html.haml +22 -0
- data/app/views/shared/_asset_form.html.haml +7 -0
- data/app/views/shared/_classification.html.haml +23 -0
- data/app/views/shared/_clipboard.html.haml +10 -0
- data/app/views/shared/_error.html.haml +6 -0
- data/app/views/shared/_tray.html.haml +13 -0
- data/app/views/shared/_tray_position.html.haml +8 -0
- data/app/views/tray_positions/create.js.rjs +10 -0
- data/app/views/tray_positions/destroy.js.rjs +1 -0
- data/app/views/tray_positions/sort.js.rjs +15 -0
- data/config/initializers/mime_types.rb +2 -0
- data/config/initializers/uploader.rb +2 -0
- data/config/initializers/users.rb +7 -0
- data/config/routes.rb +34 -0
- data/db/migrate/001_create_catalogs.rb +13 -0
- data/db/migrate/002_create_facets.rb +14 -0
- data/db/migrate/003_create_labels.rb +12 -0
- data/db/migrate/005_create_classifications.rb +12 -0
- data/db/migrate/006_create_labelings.rb +12 -0
- data/db/migrate/007_create_tray_positions.rb +13 -0
- data/db/migrate/008_create_assets.rb +16 -0
- data/db/migrate/010_add_label_ordering.rb +10 -0
- data/db/migrate/017_add_clipboard.rb +11 -0
- data/db/migrate/20120803150826_add_position_to_facet.rb +5 -0
- data/db/schema.rb +141 -0
- data/db/seeds.rb +7 -0
- data/lib/acts_as_asset.rb +36 -0
- data/lib/authenticated_system.rb +187 -0
- data/lib/authenticated_test_helper.rb +20 -0
- data/lib/fassets_core.rb +6 -0
- data/lib/fassets_core/engine.rb +7 -0
- data/lib/fassets_core/plugins.rb +13 -0
- data/lib/fassets_core/test_helper.rb +3 -0
- data/lib/fassets_core/test_helper/every_assets_controller.rb +161 -0
- data/lib/fassets_core/test_helper/every_authenticated_controller.rb +10 -0
- data/lib/fassets_core/version.rb +3 -0
- data/lib/tasks/cucumber.rake +57 -0
- data/lib/tasks/fassets-core_tasks.rake +4 -0
- data/lib/template_manager.rb +27 -0
- data/test/fassets-core_test.rb +7 -0
- data/test/fixtures/asset_contents.yml +7 -0
- data/test/fixtures/assets.yml +7 -0
- data/test/fixtures/catalogs.yml +9 -0
- data/test/fixtures/classifications.yml +7 -0
- data/test/fixtures/facets.yml +9 -0
- data/test/fixtures/frames.yml +11 -0
- data/test/fixtures/image_assets.yml +7 -0
- data/test/fixtures/labellings.yml +7 -0
- data/test/fixtures/labels.yml +9 -0
- data/test/fixtures/presentations.yml +7 -0
- data/test/fixtures/slides.yml +11 -0
- data/test/fixtures/slots.yml +0 -0
- data/test/fixtures/topics.yml +11 -0
- data/test/fixtures/tray_positions.yml +7 -0
- data/test/fixtures/users.yml +31 -0
- data/test/functional/assets_controller_test.rb +8 -0
- data/test/functional/catalogs_controller_test.rb +8 -0
- data/test/functional/classifications_controller_test.rb +8 -0
- data/test/functional/content_controller_test.rb +8 -0
- data/test/functional/facets_controller_test.rb +8 -0
- data/test/functional/file_assets_controller_test.rb +8 -0
- data/test/functional/files_controller_test.rb +8 -0
- data/test/functional/labellings_controller_test.rb +8 -0
- data/test/functional/labels_controller_test.rb +8 -0
- data/test/functional/presentations_controller_test.rb +8 -0
- data/test/functional/sessions_controller_test.rb +82 -0
- data/test/functional/slides_controller_test.rb +8 -0
- data/test/functional/slots_controller_test.rb +8 -0
- data/test/functional/tray_positions_controller_test.rb +8 -0
- data/test/functional/urls_controller_test.rb +8 -0
- data/test/functional/users_controller_test.rb +58 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/performance/browsing_test.rb +9 -0
- data/test/test_helper.rb +10 -0
- data/test/unit/asset_content_test.rb +8 -0
- data/test/unit/asset_test.rb +8 -0
- data/test/unit/catalog_test.rb +8 -0
- data/test/unit/classification_test.rb +8 -0
- data/test/unit/facet_test.rb +8 -0
- data/test/unit/frame_test.rb +8 -0
- data/test/unit/image_asset_test.rb +8 -0
- data/test/unit/label_test.rb +8 -0
- data/test/unit/labelling_test.rb +8 -0
- data/test/unit/presentation_test.rb +8 -0
- data/test/unit/slide_test.rb +8 -0
- data/test/unit/slot_test.rb +8 -0
- data/test/unit/topic_test.rb +8 -0
- data/test/unit/tray_position_test.rb +8 -0
- data/test/unit/user_test.rb +103 -0
- metadata +453 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
|
2
|
+
require 'users_controller'
|
|
3
|
+
|
|
4
|
+
# Re-raise errors caught by the controller.
|
|
5
|
+
class UsersController; def rescue_action(e) raise e end; end
|
|
6
|
+
|
|
7
|
+
class UsersControllerTest < ActionController::TestCase
|
|
8
|
+
# Be sure to include AuthenticatedTestHelper in test/test_helper.rb instead
|
|
9
|
+
# Then, you can remove it from this and the units test.
|
|
10
|
+
include AuthenticatedTestHelper
|
|
11
|
+
|
|
12
|
+
fixtures :users
|
|
13
|
+
|
|
14
|
+
def test_should_allow_signup
|
|
15
|
+
assert_difference 'User.count' do
|
|
16
|
+
create_user
|
|
17
|
+
assert_response :redirect
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def test_should_require_login_on_signup
|
|
22
|
+
assert_no_difference 'User.count' do
|
|
23
|
+
create_user(:login => nil)
|
|
24
|
+
assert assigns(:user).errors.on(:login)
|
|
25
|
+
assert_response :success
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def test_should_require_password_on_signup
|
|
30
|
+
assert_no_difference 'User.count' do
|
|
31
|
+
create_user(:password => nil)
|
|
32
|
+
assert assigns(:user).errors.on(:password)
|
|
33
|
+
assert_response :success
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def test_should_require_password_confirmation_on_signup
|
|
38
|
+
assert_no_difference 'User.count' do
|
|
39
|
+
create_user(:password_confirmation => nil)
|
|
40
|
+
assert assigns(:user).errors.on(:password_confirmation)
|
|
41
|
+
assert_response :success
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def test_should_require_email_on_signup
|
|
46
|
+
assert_no_difference 'User.count' do
|
|
47
|
+
create_user(:email => nil)
|
|
48
|
+
assert assigns(:user).errors.on(:email)
|
|
49
|
+
assert_response :success
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
protected
|
|
54
|
+
def create_user(options = {})
|
|
55
|
+
post :create, :user => { :login => 'quire', :email => 'quire@example.com',
|
|
56
|
+
:password => 'quire69', :password_confirmation => 'quire69' }.merge(options)
|
|
57
|
+
end
|
|
58
|
+
end
|
data/test/test_helper.rb
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Configure Rails Environment
|
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
|
3
|
+
|
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
|
5
|
+
require "rails/test_help"
|
|
6
|
+
|
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
|
8
|
+
|
|
9
|
+
# Load support files
|
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
|
2
|
+
|
|
3
|
+
class UserTest < ActiveSupport::TestCase
|
|
4
|
+
# Be sure to include AuthenticatedTestHelper in test/test_helper.rb instead.
|
|
5
|
+
# Then, you can remove it from this and the functional test.
|
|
6
|
+
include AuthenticatedTestHelper
|
|
7
|
+
fixtures :users
|
|
8
|
+
|
|
9
|
+
def test_should_create_user
|
|
10
|
+
assert_difference 'User.count' do
|
|
11
|
+
user = create_user
|
|
12
|
+
assert !user.new_record?, "#{user.errors.full_messages.to_sentence}"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def test_should_require_login
|
|
17
|
+
assert_no_difference 'User.count' do
|
|
18
|
+
u = create_user(:login => nil)
|
|
19
|
+
assert u.errors.on(:login)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def test_should_require_password
|
|
24
|
+
assert_no_difference 'User.count' do
|
|
25
|
+
u = create_user(:password => nil)
|
|
26
|
+
assert u.errors.on(:password)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def test_should_require_password_confirmation
|
|
31
|
+
assert_no_difference 'User.count' do
|
|
32
|
+
u = create_user(:password_confirmation => nil)
|
|
33
|
+
assert u.errors.on(:password_confirmation)
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def test_should_require_email
|
|
38
|
+
assert_no_difference 'User.count' do
|
|
39
|
+
u = create_user(:email => nil)
|
|
40
|
+
assert u.errors.on(:email)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def test_should_reset_password
|
|
45
|
+
users(:quentin).update_attributes(:password => 'new password', :password_confirmation => 'new password')
|
|
46
|
+
assert_equal users(:quentin), User.authenticate('quentin', 'new password')
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
def test_should_not_rehash_password
|
|
50
|
+
users(:quentin).update_attributes(:login => 'quentin2')
|
|
51
|
+
assert_equal users(:quentin), User.authenticate('quentin2', 'monkey')
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def test_should_authenticate_user
|
|
55
|
+
assert_equal users(:quentin), User.authenticate('quentin', 'monkey')
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
def test_should_set_remember_token
|
|
59
|
+
users(:quentin).remember_me
|
|
60
|
+
assert_not_nil users(:quentin).remember_token
|
|
61
|
+
assert_not_nil users(:quentin).remember_token_expires_at
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
def test_should_unset_remember_token
|
|
65
|
+
users(:quentin).remember_me
|
|
66
|
+
assert_not_nil users(:quentin).remember_token
|
|
67
|
+
users(:quentin).forget_me
|
|
68
|
+
assert_nil users(:quentin).remember_token
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
def test_should_remember_me_for_one_week
|
|
72
|
+
before = 1.week.from_now.utc
|
|
73
|
+
users(:quentin).remember_me_for 1.week
|
|
74
|
+
after = 1.week.from_now.utc
|
|
75
|
+
assert_not_nil users(:quentin).remember_token
|
|
76
|
+
assert_not_nil users(:quentin).remember_token_expires_at
|
|
77
|
+
assert users(:quentin).remember_token_expires_at.between?(before, after)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def test_should_remember_me_until_one_week
|
|
81
|
+
time = 1.week.from_now.utc
|
|
82
|
+
users(:quentin).remember_me_until time
|
|
83
|
+
assert_not_nil users(:quentin).remember_token
|
|
84
|
+
assert_not_nil users(:quentin).remember_token_expires_at
|
|
85
|
+
assert_equal users(:quentin).remember_token_expires_at, time
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
def test_should_remember_me_default_two_weeks
|
|
89
|
+
before = 2.weeks.from_now.utc
|
|
90
|
+
users(:quentin).remember_me
|
|
91
|
+
after = 2.weeks.from_now.utc
|
|
92
|
+
assert_not_nil users(:quentin).remember_token
|
|
93
|
+
assert_not_nil users(:quentin).remember_token_expires_at
|
|
94
|
+
assert users(:quentin).remember_token_expires_at.between?(before, after)
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
protected
|
|
98
|
+
def create_user(options = {})
|
|
99
|
+
record = User.new({ :login => 'quire', :email => 'quire@example.com', :password => 'quire69', :password_confirmation => 'quire69' }.merge(options))
|
|
100
|
+
record.save
|
|
101
|
+
record
|
|
102
|
+
end
|
|
103
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: fassets_core
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.2.0
|
|
5
|
+
prerelease:
|
|
6
|
+
platform: ruby
|
|
7
|
+
authors:
|
|
8
|
+
- Julian Bäume
|
|
9
|
+
- Christopher Sharp
|
|
10
|
+
autorequire:
|
|
11
|
+
bindir: bin
|
|
12
|
+
cert_chain: []
|
|
13
|
+
date: 2012-09-23 00:00:00.000000000 Z
|
|
14
|
+
dependencies:
|
|
15
|
+
- !ruby/object:Gem::Dependency
|
|
16
|
+
name: rails
|
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
|
18
|
+
none: false
|
|
19
|
+
requirements:
|
|
20
|
+
- - ~>
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: 3.1.1
|
|
23
|
+
type: :runtime
|
|
24
|
+
prerelease: false
|
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
26
|
+
none: false
|
|
27
|
+
requirements:
|
|
28
|
+
- - ~>
|
|
29
|
+
- !ruby/object:Gem::Version
|
|
30
|
+
version: 3.1.1
|
|
31
|
+
- !ruby/object:Gem::Dependency
|
|
32
|
+
name: jquery-rails
|
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
|
34
|
+
none: false
|
|
35
|
+
requirements:
|
|
36
|
+
- - ! '>='
|
|
37
|
+
- !ruby/object:Gem::Version
|
|
38
|
+
version: '0'
|
|
39
|
+
type: :runtime
|
|
40
|
+
prerelease: false
|
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
42
|
+
none: false
|
|
43
|
+
requirements:
|
|
44
|
+
- - ! '>='
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '0'
|
|
47
|
+
- !ruby/object:Gem::Dependency
|
|
48
|
+
name: haml
|
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
|
50
|
+
none: false
|
|
51
|
+
requirements:
|
|
52
|
+
- - ! '>='
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
type: :runtime
|
|
56
|
+
prerelease: false
|
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
58
|
+
none: false
|
|
59
|
+
requirements:
|
|
60
|
+
- - ! '>='
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
version: '0'
|
|
63
|
+
- !ruby/object:Gem::Dependency
|
|
64
|
+
name: sqlite3
|
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
|
66
|
+
none: false
|
|
67
|
+
requirements:
|
|
68
|
+
- - ! '>='
|
|
69
|
+
- !ruby/object:Gem::Version
|
|
70
|
+
version: '0'
|
|
71
|
+
type: :runtime
|
|
72
|
+
prerelease: false
|
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
74
|
+
none: false
|
|
75
|
+
requirements:
|
|
76
|
+
- - ! '>='
|
|
77
|
+
- !ruby/object:Gem::Version
|
|
78
|
+
version: '0'
|
|
79
|
+
- !ruby/object:Gem::Dependency
|
|
80
|
+
name: mime-types
|
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
|
82
|
+
none: false
|
|
83
|
+
requirements:
|
|
84
|
+
- - ! '>='
|
|
85
|
+
- !ruby/object:Gem::Version
|
|
86
|
+
version: '0'
|
|
87
|
+
type: :runtime
|
|
88
|
+
prerelease: false
|
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
90
|
+
none: false
|
|
91
|
+
requirements:
|
|
92
|
+
- - ! '>='
|
|
93
|
+
- !ruby/object:Gem::Version
|
|
94
|
+
version: '0'
|
|
95
|
+
- !ruby/object:Gem::Dependency
|
|
96
|
+
name: fancybox-rails
|
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
|
98
|
+
none: false
|
|
99
|
+
requirements:
|
|
100
|
+
- - ! '>='
|
|
101
|
+
- !ruby/object:Gem::Version
|
|
102
|
+
version: '0'
|
|
103
|
+
type: :runtime
|
|
104
|
+
prerelease: false
|
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
106
|
+
none: false
|
|
107
|
+
requirements:
|
|
108
|
+
- - ! '>='
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: devise
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
none: false
|
|
115
|
+
requirements:
|
|
116
|
+
- - ! '>='
|
|
117
|
+
- !ruby/object:Gem::Version
|
|
118
|
+
version: '0'
|
|
119
|
+
type: :development
|
|
120
|
+
prerelease: false
|
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
122
|
+
none: false
|
|
123
|
+
requirements:
|
|
124
|
+
- - ! '>='
|
|
125
|
+
- !ruby/object:Gem::Version
|
|
126
|
+
version: '0'
|
|
127
|
+
- !ruby/object:Gem::Dependency
|
|
128
|
+
name: guard-rspec
|
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
|
130
|
+
none: false
|
|
131
|
+
requirements:
|
|
132
|
+
- - ! '>='
|
|
133
|
+
- !ruby/object:Gem::Version
|
|
134
|
+
version: '0'
|
|
135
|
+
type: :development
|
|
136
|
+
prerelease: false
|
|
137
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
138
|
+
none: false
|
|
139
|
+
requirements:
|
|
140
|
+
- - ! '>='
|
|
141
|
+
- !ruby/object:Gem::Version
|
|
142
|
+
version: '0'
|
|
143
|
+
- !ruby/object:Gem::Dependency
|
|
144
|
+
name: guard-spork
|
|
145
|
+
requirement: !ruby/object:Gem::Requirement
|
|
146
|
+
none: false
|
|
147
|
+
requirements:
|
|
148
|
+
- - ! '>='
|
|
149
|
+
- !ruby/object:Gem::Version
|
|
150
|
+
version: '0'
|
|
151
|
+
type: :development
|
|
152
|
+
prerelease: false
|
|
153
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
154
|
+
none: false
|
|
155
|
+
requirements:
|
|
156
|
+
- - ! '>='
|
|
157
|
+
- !ruby/object:Gem::Version
|
|
158
|
+
version: '0'
|
|
159
|
+
- !ruby/object:Gem::Dependency
|
|
160
|
+
name: rspec-rails
|
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
|
162
|
+
none: false
|
|
163
|
+
requirements:
|
|
164
|
+
- - ! '>='
|
|
165
|
+
- !ruby/object:Gem::Version
|
|
166
|
+
version: '0'
|
|
167
|
+
type: :development
|
|
168
|
+
prerelease: false
|
|
169
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
170
|
+
none: false
|
|
171
|
+
requirements:
|
|
172
|
+
- - ! '>='
|
|
173
|
+
- !ruby/object:Gem::Version
|
|
174
|
+
version: '0'
|
|
175
|
+
- !ruby/object:Gem::Dependency
|
|
176
|
+
name: capybara
|
|
177
|
+
requirement: !ruby/object:Gem::Requirement
|
|
178
|
+
none: false
|
|
179
|
+
requirements:
|
|
180
|
+
- - ! '>='
|
|
181
|
+
- !ruby/object:Gem::Version
|
|
182
|
+
version: '0'
|
|
183
|
+
type: :development
|
|
184
|
+
prerelease: false
|
|
185
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
186
|
+
none: false
|
|
187
|
+
requirements:
|
|
188
|
+
- - ! '>='
|
|
189
|
+
- !ruby/object:Gem::Version
|
|
190
|
+
version: '0'
|
|
191
|
+
description: A facetted classification framework for digital assets.
|
|
192
|
+
email:
|
|
193
|
+
- julian@svg4all.de
|
|
194
|
+
- cdsharp@gmail.com
|
|
195
|
+
executables: []
|
|
196
|
+
extensions: []
|
|
197
|
+
extra_rdoc_files: []
|
|
198
|
+
files:
|
|
199
|
+
- app/helpers/fassets_core/application_helper.rb
|
|
200
|
+
- app/helpers/catalogs_helper.rb
|
|
201
|
+
- app/helpers/classifications_helper.rb
|
|
202
|
+
- app/helpers/tray_positions_helper.rb
|
|
203
|
+
- app/helpers/assets_helper.rb
|
|
204
|
+
- app/helpers/labels_helper.rb
|
|
205
|
+
- app/views/labels/_form.haml
|
|
206
|
+
- app/views/labels/destroy.js.erb
|
|
207
|
+
- app/views/labels/_sidebar.html.haml
|
|
208
|
+
- app/views/tray_positions/destroy.js.rjs
|
|
209
|
+
- app/views/tray_positions/create.js.rjs
|
|
210
|
+
- app/views/tray_positions/sort.js.rjs
|
|
211
|
+
- app/views/layouts/fassets_core/application.html.haml
|
|
212
|
+
- app/views/catalogs/show.html.haml
|
|
213
|
+
- app/views/catalogs/index.html.haml
|
|
214
|
+
- app/views/catalogs/new.html.haml
|
|
215
|
+
- app/views/catalogs/_facet.html.haml
|
|
216
|
+
- app/views/catalogs/edit.html.haml
|
|
217
|
+
- app/views/catalogs/_box_content.html.haml
|
|
218
|
+
- app/views/catalogs/_box_catalog_list.html.haml
|
|
219
|
+
- app/views/catalogs/_form.html.haml
|
|
220
|
+
- app/views/catalogs/box.html.haml
|
|
221
|
+
- app/views/catalogs/_filter_item.html.haml
|
|
222
|
+
- app/views/catalogs/_catalog.html.haml
|
|
223
|
+
- app/views/classifications/update.js.erb
|
|
224
|
+
- app/views/assets/show.html.haml
|
|
225
|
+
- app/views/assets/_add_asset_sidebar.html.haml
|
|
226
|
+
- app/views/assets/_classification.html.haml
|
|
227
|
+
- app/views/assets/new.html.haml
|
|
228
|
+
- app/views/assets/edit.html.haml
|
|
229
|
+
- app/views/assets/_form.html.haml
|
|
230
|
+
- app/views/assets/_put_on_tray.html.haml
|
|
231
|
+
- app/views/facets/edit.html.haml
|
|
232
|
+
- app/views/facets/_form.html.haml
|
|
233
|
+
- app/views/shared/_asset_form.html.haml
|
|
234
|
+
- app/views/shared/_clipboard.html.haml
|
|
235
|
+
- app/views/shared/_classification.html.haml
|
|
236
|
+
- app/views/shared/_error.html.haml
|
|
237
|
+
- app/views/shared/_asset.html.haml
|
|
238
|
+
- app/views/shared/_tray_position.html.haml
|
|
239
|
+
- app/views/shared/_tray.html.haml
|
|
240
|
+
- app/controllers/fassets_core/application_controller.rb
|
|
241
|
+
- app/controllers/assets_controller.rb
|
|
242
|
+
- app/controllers/classifications_controller.rb
|
|
243
|
+
- app/controllers/labels_controller.rb
|
|
244
|
+
- app/controllers/tray_positions_controller.rb
|
|
245
|
+
- app/controllers/facets_controller.rb
|
|
246
|
+
- app/controllers/catalogs_controller.rb
|
|
247
|
+
- app/assets/images/fassets_core/delete.png
|
|
248
|
+
- app/assets/images/fassets_core/markup_preview.png
|
|
249
|
+
- app/assets/images/fassets_core/drag.png
|
|
250
|
+
- app/assets/images/fassets_core/archive.png
|
|
251
|
+
- app/assets/images/fassets_core/clipboard.png
|
|
252
|
+
- app/assets/images/fassets_core/add.png
|
|
253
|
+
- app/assets/images/fassets_core/link.png
|
|
254
|
+
- app/assets/images/fassets_core/sort.png
|
|
255
|
+
- app/assets/images/fassets_core/remove.png
|
|
256
|
+
- app/assets/images/fassets_core/warning.png
|
|
257
|
+
- app/assets/images/fassets_core/collapsed.png
|
|
258
|
+
- app/assets/images/fassets_core/collapse.png
|
|
259
|
+
- app/assets/images/fassets_core/edit.png
|
|
260
|
+
- app/assets/images/fassets_core/classify.png
|
|
261
|
+
- app/assets/stylesheets/fassets_core/facet.css.scss
|
|
262
|
+
- app/assets/stylesheets/fassets_core/forms.css.scss
|
|
263
|
+
- app/assets/stylesheets/fassets_core/application.css
|
|
264
|
+
- app/assets/stylesheets/fassets_core/add_asset_box.css.scss
|
|
265
|
+
- app/assets/stylesheets/fassets_core/tray.css.scss
|
|
266
|
+
- app/assets/stylesheets/fassets_core/edit_box.css.scss
|
|
267
|
+
- app/assets/stylesheets/fassets_core/assets.css.scss
|
|
268
|
+
- app/assets/stylesheets/fassets_core/collapsible.css.scss
|
|
269
|
+
- app/assets/stylesheets/fassets_core/filter.css.scss
|
|
270
|
+
- app/assets/stylesheets/fassets_core/master.css.scss
|
|
271
|
+
- app/assets/stylesheets/fassets_core/catalog_box.css.scss
|
|
272
|
+
- app/assets/stylesheets/fassets_core/labels.css.scss
|
|
273
|
+
- app/assets/stylesheets/fassets_core/sidebar.css.scss
|
|
274
|
+
- app/assets/javascripts/fassets_core/assets.js
|
|
275
|
+
- app/assets/javascripts/fassets_core/tray.js
|
|
276
|
+
- app/assets/javascripts/fassets_core/catalog_box.js
|
|
277
|
+
- app/assets/javascripts/fassets_core/add_asset_box.js
|
|
278
|
+
- app/assets/javascripts/fassets_core/application.js.erb
|
|
279
|
+
- app/assets/javascripts/fassets_core/facets.js.erb
|
|
280
|
+
- app/assets/javascripts/fassets_core/classification.js
|
|
281
|
+
- app/assets/javascripts/fassets_core/edit_box.js
|
|
282
|
+
- app/assets/javascripts/fassets_core/catalogs.js
|
|
283
|
+
- app/models/asset.rb
|
|
284
|
+
- app/models/labeling.rb
|
|
285
|
+
- app/models/tray_position.rb
|
|
286
|
+
- app/models/facet.rb
|
|
287
|
+
- app/models/label_filter.rb
|
|
288
|
+
- app/models/catalog.rb
|
|
289
|
+
- app/models/classification.rb
|
|
290
|
+
- app/models/label.rb
|
|
291
|
+
- config/routes.rb
|
|
292
|
+
- config/initializers/uploader.rb
|
|
293
|
+
- config/initializers/users.rb
|
|
294
|
+
- config/initializers/mime_types.rb
|
|
295
|
+
- db/migrate/002_create_facets.rb
|
|
296
|
+
- db/migrate/006_create_labelings.rb
|
|
297
|
+
- db/migrate/003_create_labels.rb
|
|
298
|
+
- db/migrate/005_create_classifications.rb
|
|
299
|
+
- db/migrate/010_add_label_ordering.rb
|
|
300
|
+
- db/migrate/20120803150826_add_position_to_facet.rb
|
|
301
|
+
- db/migrate/007_create_tray_positions.rb
|
|
302
|
+
- db/migrate/008_create_assets.rb
|
|
303
|
+
- db/migrate/001_create_catalogs.rb
|
|
304
|
+
- db/migrate/017_add_clipboard.rb
|
|
305
|
+
- db/schema.rb
|
|
306
|
+
- db/seeds.rb
|
|
307
|
+
- lib/acts_as_asset.rb
|
|
308
|
+
- lib/fassets_core/version.rb
|
|
309
|
+
- lib/fassets_core/engine.rb
|
|
310
|
+
- lib/fassets_core/plugins.rb
|
|
311
|
+
- lib/fassets_core/test_helper/every_assets_controller.rb
|
|
312
|
+
- lib/fassets_core/test_helper/every_authenticated_controller.rb
|
|
313
|
+
- lib/fassets_core/test_helper.rb
|
|
314
|
+
- lib/authenticated_system.rb
|
|
315
|
+
- lib/fassets_core.rb
|
|
316
|
+
- lib/authenticated_test_helper.rb
|
|
317
|
+
- lib/template_manager.rb
|
|
318
|
+
- lib/tasks/cucumber.rake
|
|
319
|
+
- lib/tasks/fassets-core_tasks.rake
|
|
320
|
+
- MIT-LICENSE
|
|
321
|
+
- Rakefile
|
|
322
|
+
- README.md
|
|
323
|
+
- test/fassets-core_test.rb
|
|
324
|
+
- test/functional/slots_controller_test.rb
|
|
325
|
+
- test/functional/files_controller_test.rb
|
|
326
|
+
- test/functional/catalogs_controller_test.rb
|
|
327
|
+
- test/functional/labellings_controller_test.rb
|
|
328
|
+
- test/functional/tray_positions_controller_test.rb
|
|
329
|
+
- test/functional/assets_controller_test.rb
|
|
330
|
+
- test/functional/presentations_controller_test.rb
|
|
331
|
+
- test/functional/classifications_controller_test.rb
|
|
332
|
+
- test/functional/users_controller_test.rb
|
|
333
|
+
- test/functional/sessions_controller_test.rb
|
|
334
|
+
- test/functional/labels_controller_test.rb
|
|
335
|
+
- test/functional/file_assets_controller_test.rb
|
|
336
|
+
- test/functional/urls_controller_test.rb
|
|
337
|
+
- test/functional/facets_controller_test.rb
|
|
338
|
+
- test/functional/slides_controller_test.rb
|
|
339
|
+
- test/functional/content_controller_test.rb
|
|
340
|
+
- test/fixtures/catalogs.yml
|
|
341
|
+
- test/fixtures/slides.yml
|
|
342
|
+
- test/fixtures/topics.yml
|
|
343
|
+
- test/fixtures/classifications.yml
|
|
344
|
+
- test/fixtures/labellings.yml
|
|
345
|
+
- test/fixtures/presentations.yml
|
|
346
|
+
- test/fixtures/facets.yml
|
|
347
|
+
- test/fixtures/slots.yml
|
|
348
|
+
- test/fixtures/frames.yml
|
|
349
|
+
- test/fixtures/users.yml
|
|
350
|
+
- test/fixtures/asset_contents.yml
|
|
351
|
+
- test/fixtures/labels.yml
|
|
352
|
+
- test/fixtures/assets.yml
|
|
353
|
+
- test/fixtures/image_assets.yml
|
|
354
|
+
- test/fixtures/tray_positions.yml
|
|
355
|
+
- test/test_helper.rb
|
|
356
|
+
- test/unit/tray_position_test.rb
|
|
357
|
+
- test/unit/catalog_test.rb
|
|
358
|
+
- test/unit/frame_test.rb
|
|
359
|
+
- test/unit/asset_test.rb
|
|
360
|
+
- test/unit/presentation_test.rb
|
|
361
|
+
- test/unit/topic_test.rb
|
|
362
|
+
- test/unit/user_test.rb
|
|
363
|
+
- test/unit/labelling_test.rb
|
|
364
|
+
- test/unit/slot_test.rb
|
|
365
|
+
- test/unit/facet_test.rb
|
|
366
|
+
- test/unit/slide_test.rb
|
|
367
|
+
- test/unit/image_asset_test.rb
|
|
368
|
+
- test/unit/classification_test.rb
|
|
369
|
+
- test/unit/label_test.rb
|
|
370
|
+
- test/unit/asset_content_test.rb
|
|
371
|
+
- test/integration/navigation_test.rb
|
|
372
|
+
- test/performance/browsing_test.rb
|
|
373
|
+
homepage: https://github.com/fassets/
|
|
374
|
+
licenses: []
|
|
375
|
+
post_install_message:
|
|
376
|
+
rdoc_options: []
|
|
377
|
+
require_paths:
|
|
378
|
+
- lib
|
|
379
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
380
|
+
none: false
|
|
381
|
+
requirements:
|
|
382
|
+
- - ! '>='
|
|
383
|
+
- !ruby/object:Gem::Version
|
|
384
|
+
version: '0'
|
|
385
|
+
segments:
|
|
386
|
+
- 0
|
|
387
|
+
hash: -4486109871585801178
|
|
388
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
389
|
+
none: false
|
|
390
|
+
requirements:
|
|
391
|
+
- - ! '>='
|
|
392
|
+
- !ruby/object:Gem::Version
|
|
393
|
+
version: '0'
|
|
394
|
+
segments:
|
|
395
|
+
- 0
|
|
396
|
+
hash: -4486109871585801178
|
|
397
|
+
requirements: []
|
|
398
|
+
rubyforge_project:
|
|
399
|
+
rubygems_version: 1.8.24
|
|
400
|
+
signing_key:
|
|
401
|
+
specification_version: 3
|
|
402
|
+
summary: A facetted classification framework for digital assets.
|
|
403
|
+
test_files:
|
|
404
|
+
- test/fassets-core_test.rb
|
|
405
|
+
- test/functional/slots_controller_test.rb
|
|
406
|
+
- test/functional/files_controller_test.rb
|
|
407
|
+
- test/functional/catalogs_controller_test.rb
|
|
408
|
+
- test/functional/labellings_controller_test.rb
|
|
409
|
+
- test/functional/tray_positions_controller_test.rb
|
|
410
|
+
- test/functional/assets_controller_test.rb
|
|
411
|
+
- test/functional/presentations_controller_test.rb
|
|
412
|
+
- test/functional/classifications_controller_test.rb
|
|
413
|
+
- test/functional/users_controller_test.rb
|
|
414
|
+
- test/functional/sessions_controller_test.rb
|
|
415
|
+
- test/functional/labels_controller_test.rb
|
|
416
|
+
- test/functional/file_assets_controller_test.rb
|
|
417
|
+
- test/functional/urls_controller_test.rb
|
|
418
|
+
- test/functional/facets_controller_test.rb
|
|
419
|
+
- test/functional/slides_controller_test.rb
|
|
420
|
+
- test/functional/content_controller_test.rb
|
|
421
|
+
- test/fixtures/catalogs.yml
|
|
422
|
+
- test/fixtures/slides.yml
|
|
423
|
+
- test/fixtures/topics.yml
|
|
424
|
+
- test/fixtures/classifications.yml
|
|
425
|
+
- test/fixtures/labellings.yml
|
|
426
|
+
- test/fixtures/presentations.yml
|
|
427
|
+
- test/fixtures/facets.yml
|
|
428
|
+
- test/fixtures/slots.yml
|
|
429
|
+
- test/fixtures/frames.yml
|
|
430
|
+
- test/fixtures/users.yml
|
|
431
|
+
- test/fixtures/asset_contents.yml
|
|
432
|
+
- test/fixtures/labels.yml
|
|
433
|
+
- test/fixtures/assets.yml
|
|
434
|
+
- test/fixtures/image_assets.yml
|
|
435
|
+
- test/fixtures/tray_positions.yml
|
|
436
|
+
- test/test_helper.rb
|
|
437
|
+
- test/unit/tray_position_test.rb
|
|
438
|
+
- test/unit/catalog_test.rb
|
|
439
|
+
- test/unit/frame_test.rb
|
|
440
|
+
- test/unit/asset_test.rb
|
|
441
|
+
- test/unit/presentation_test.rb
|
|
442
|
+
- test/unit/topic_test.rb
|
|
443
|
+
- test/unit/user_test.rb
|
|
444
|
+
- test/unit/labelling_test.rb
|
|
445
|
+
- test/unit/slot_test.rb
|
|
446
|
+
- test/unit/facet_test.rb
|
|
447
|
+
- test/unit/slide_test.rb
|
|
448
|
+
- test/unit/image_asset_test.rb
|
|
449
|
+
- test/unit/classification_test.rb
|
|
450
|
+
- test/unit/label_test.rb
|
|
451
|
+
- test/unit/asset_content_test.rb
|
|
452
|
+
- test/integration/navigation_test.rb
|
|
453
|
+
- test/performance/browsing_test.rb
|