dms-tog_depot 0.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/CHANGELOG.md +0 -0
- data/MIT-LICENSE +19 -0
- data/README.markdown +78 -0
- data/Rakefile +22 -0
- data/app/controllers/depot/filefolders_controller.rb +10 -0
- data/app/controllers/depot/files_controller.rb +35 -0
- data/app/controllers/member/depot/filefolders_controller.rb +84 -0
- data/app/controllers/member/depot/files_controller.rb +102 -0
- data/app/helpers/depot/files_helper.rb +18 -0
- data/app/models/depot/file.rb +41 -0
- data/app/models/depot/filefolder.rb +21 -0
- data/app/models/tog/depot/version.rb +17 -0
- data/app/models/user.rb +4 -0
- data/app/views/depot/filefolders/show.html.erb +97 -0
- data/app/views/depot/files/_tag_cloud_file.html.erb +6 -0
- data/app/views/depot/files/by_tag.html.erb +113 -0
- data/app/views/depot/files/index.html.erb +111 -0
- data/app/views/depot/files/show.html.erb +69 -0
- data/app/views/member/depot/filefolders/edit.html.erb +22 -0
- data/app/views/member/depot/filefolders/new.html.erb +19 -0
- data/app/views/member/depot/filefolders/show.html.erb +121 -0
- data/app/views/member/depot/files/by_tag.html.erb +130 -0
- data/app/views/member/depot/files/edit.html.erb +27 -0
- data/app/views/member/depot/files/index.html.erb +132 -0
- data/app/views/member/depot/files/new.html.erb +24 -0
- data/app/views/member/depot/files/show.html.erb +79 -0
- data/config/routes.rb +32 -0
- data/db/migrate/001_create_files.rb +21 -0
- data/db/migrate/002_create_files_folder.rb +16 -0
- data/init.rb +14 -0
- data/public/images/1px.gif +0 -0
- data/public/images/privacity/admin.gif +0 -0
- data/public/images/privacity/community.gif +0 -0
- data/public/images/privacity/member.gif +0 -0
- data/public/images/privacity/public_domain.gif +0 -0
- data/public/images/tog-depot_arrow_dn.gif +0 -0
- data/public/images/tog-depot_arrow_dn_deact.gif +0 -0
- data/public/images/tog-depot_arrow_up.gif +0 -0
- data/public/images/tog-depot_arrow_up_deact.gif +0 -0
- data/public/images/tog-depot_file_dl.gif +0 -0
- data/public/images/tog-depot_iconfile_16px.gif +0 -0
- data/public/images/tog-depot_iconfile_32px.gif +0 -0
- data/public/images/tog-depot_iconfile_48px.gif +0 -0
- data/public/images/tog-depot_iconfolder_16px.gif +0 -0
- data/public/images/tog-depot_iconfolder_32px.gif +0 -0
- data/public/images/tog-depot_iconfolder_48px.gif +0 -0
- data/public/stylesheets/depot.css +52 -0
- data/test/factories.rb +17 -0
- data/test/functional/depot/filefolders_controller_test.rb +30 -0
- data/test/functional/depot/files_controller_test.rb +43 -0
- data/test/functional/member/depot/filefolders_controller_test.rb +15 -0
- data/test/functional/member/depot/files_controller_test.rb +107 -0
- data/test/test_helper.rb +26 -0
- data/test/unit/file_test.rb +8 -0
- data/test/unit/filefolder_test.rb +8 -0
- data/tog_depot.gemspec +81 -0
- metadata +155 -0
data/test/test_helper.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
ENV["RAILS_ENV"] = "test"
|
2
|
+
require File.expand_path(File.dirname(__FILE__) + "/../../../../config/environment")
|
3
|
+
require 'test_help'
|
4
|
+
require 'test/unit'
|
5
|
+
|
6
|
+
require 'shoulda'
|
7
|
+
require 'factory_girl'
|
8
|
+
require File.expand_path(File.dirname(__FILE__) + '/factories')
|
9
|
+
|
10
|
+
class Test::Unit::TestCase
|
11
|
+
self.use_transactional_fixtures = true
|
12
|
+
self.use_instantiated_fixtures = false
|
13
|
+
fixtures :all
|
14
|
+
|
15
|
+
def assert_difference(object, method = nil, difference = 1)
|
16
|
+
initial_value = object.send(method)
|
17
|
+
yield
|
18
|
+
assert_equal initial_value + difference, object.send(method), "#{object}##{method} should have a difference of #{difference}"
|
19
|
+
end
|
20
|
+
|
21
|
+
def assert_no_difference(object, method, &block)
|
22
|
+
assert_difference object, method, 0, &block
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
|
data/tog_depot.gemspec
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = "tog_depot"
|
3
|
+
s.version = "0.1.0"
|
4
|
+
s.date = "2008-12-10"
|
5
|
+
s.summary = "Tog Plugin"
|
6
|
+
s.email = "jorge.fernandez@dmsti.es"
|
7
|
+
s.homepage = "http://github.com/dms/tog_depot/tree/master"
|
8
|
+
s.description = "Depot is a file management system for Tog:Community Framework"
|
9
|
+
s.has_rdoc = true
|
10
|
+
s.authors = ["Ignacio Vega", "Jorge Fernandez"]
|
11
|
+
s.files = ["CHANGELOG.md",
|
12
|
+
"MIT-LICENSE",
|
13
|
+
"init.rb",
|
14
|
+
"README.markdown",
|
15
|
+
"Rakefile",
|
16
|
+
"tog_depot.gemspec",
|
17
|
+
"app/views/depot/filefolders/show.html.erb",
|
18
|
+
"app/views/depot/files/show.html.erb",
|
19
|
+
"app/views/depot/files/_tag_cloud_file.html.erb",
|
20
|
+
"app/views/depot/files/by_tag.html.erb",
|
21
|
+
"app/views/depot/files/index.html.erb",
|
22
|
+
"app/views/member/depot/filefolders/show.html.erb",
|
23
|
+
"app/views/member/depot/filefolders/new.html.erb",
|
24
|
+
"app/views/member/depot/filefolders/edit.html.erb",
|
25
|
+
"app/views/member/depot/files/show.html.erb",
|
26
|
+
"app/views/member/depot/files/new.html.erb",
|
27
|
+
"app/views/member/depot/files/edit.html.erb",
|
28
|
+
"app/views/member/depot/files/by_tag.html.erb",
|
29
|
+
"app/views/member/depot/files/index.html.erb",
|
30
|
+
"app/models/user.rb",
|
31
|
+
"app/models/depot/filefolder.rb",
|
32
|
+
"app/models/depot/file.rb",
|
33
|
+
"app/models/tog/depot/version.rb",
|
34
|
+
"app/helpers/depot/files_helper.rb",
|
35
|
+
"app/controllers/depot/files_controller.rb",
|
36
|
+
"app/controllers/depot/filefolders_controller.rb",
|
37
|
+
"app/controllers/member/depot/files_controller.rb",
|
38
|
+
"app/controllers/member/depot/filefolders_controller.rb",
|
39
|
+
"public/images/tog-depot_iconfolder_48px.gif",
|
40
|
+
"public/images/1px.gif",
|
41
|
+
"public/images/tog-depot_iconfile_16px.gif",
|
42
|
+
"public/images/tog-depot_arrow_dn_deact.gif",
|
43
|
+
"public/images/tog-depot_iconfile_48px.gif",
|
44
|
+
"public/images/tog-depot_iconfile_32px.gif",
|
45
|
+
"public/images/tog-depot_arrow_up.gif",
|
46
|
+
"public/images/tog-depot_arrow_up_deact.gif",
|
47
|
+
"public/images/tog-depot_file_dl.gif",
|
48
|
+
"public/images/tog-depot_arrow_dn.gif",
|
49
|
+
"public/images/tog-depot_iconfolder_32px.gif",
|
50
|
+
"public/images/tog-depot_iconfolder_16px.gif",
|
51
|
+
"public/images/privacity/public_domain.gif",
|
52
|
+
"public/images/privacity/community.gif",
|
53
|
+
"public/images/privacity/member.gif",
|
54
|
+
"public/images/privacity/admin.gif",
|
55
|
+
"public/stylesheets/depot.css",
|
56
|
+
"config/routes.rb",
|
57
|
+
"db/migrate/001_create_files.rb",
|
58
|
+
"db/migrate/002_create_files_folder.rb"]
|
59
|
+
s.test_files = ["test/test_helper.rb",
|
60
|
+
"test/factories.rb",
|
61
|
+
"test/unit/file_test.rb",
|
62
|
+
"test/unit/filefolder_test.rb",
|
63
|
+
"test/functional/depot/filefolders_controller_test.rb",
|
64
|
+
"test/functional/depot/files_controller_test.rb",
|
65
|
+
"test/functional/member/depot/filefolders_controller_test.rb",
|
66
|
+
"test/functional/member/depot/files_controller_test.rb"]
|
67
|
+
|
68
|
+
|
69
|
+
s.rdoc_options = ["--main", "README.markdown"]
|
70
|
+
s.extra_rdoc_files = ["MIT-LICENSE", "CHANGELOG.md", "README.markdown"]
|
71
|
+
s.add_dependency("tog_core", ["> 0.0.0"])
|
72
|
+
s.add_dependency("seo_urls", ["> 0.0.0"])
|
73
|
+
s.add_dependency("attachment_fu", ["> 0.0.0"])
|
74
|
+
s.add_dependency("acts_as_rateable", ["> 0.0.0"])
|
75
|
+
s.add_dependency("acts_as_taggable_on_steroids", ["> 0.0.0"])
|
76
|
+
end
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
metadata
ADDED
@@ -0,0 +1,155 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dms-tog_depot
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ignacio Vega
|
8
|
+
- Jorge Fernandez
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2008-12-10 00:00:00 -08:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: tog_core
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: seo_urls
|
27
|
+
version_requirement:
|
28
|
+
version_requirements: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.0.0
|
33
|
+
version:
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: attachment_fu
|
36
|
+
version_requirement:
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 0.0.0
|
42
|
+
version:
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: acts_as_rateable
|
45
|
+
version_requirement:
|
46
|
+
version_requirements: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - ">"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 0.0.0
|
51
|
+
version:
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
name: acts_as_taggable_on_steroids
|
54
|
+
version_requirement:
|
55
|
+
version_requirements: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 0.0.0
|
60
|
+
version:
|
61
|
+
description: Depot is a file management system for Tog:Community Framework
|
62
|
+
email: jorge.fernandez@dmsti.es
|
63
|
+
executables: []
|
64
|
+
|
65
|
+
extensions: []
|
66
|
+
|
67
|
+
extra_rdoc_files:
|
68
|
+
- MIT-LICENSE
|
69
|
+
- CHANGELOG.md
|
70
|
+
- README.markdown
|
71
|
+
files:
|
72
|
+
- CHANGELOG.md
|
73
|
+
- MIT-LICENSE
|
74
|
+
- init.rb
|
75
|
+
- README.markdown
|
76
|
+
- Rakefile
|
77
|
+
- tog_depot.gemspec
|
78
|
+
- app/views/depot/filefolders/show.html.erb
|
79
|
+
- app/views/depot/files/show.html.erb
|
80
|
+
- app/views/depot/files/_tag_cloud_file.html.erb
|
81
|
+
- app/views/depot/files/by_tag.html.erb
|
82
|
+
- app/views/depot/files/index.html.erb
|
83
|
+
- app/views/member/depot/filefolders/show.html.erb
|
84
|
+
- app/views/member/depot/filefolders/new.html.erb
|
85
|
+
- app/views/member/depot/filefolders/edit.html.erb
|
86
|
+
- app/views/member/depot/files/show.html.erb
|
87
|
+
- app/views/member/depot/files/new.html.erb
|
88
|
+
- app/views/member/depot/files/edit.html.erb
|
89
|
+
- app/views/member/depot/files/by_tag.html.erb
|
90
|
+
- app/views/member/depot/files/index.html.erb
|
91
|
+
- app/models/user.rb
|
92
|
+
- app/models/depot/filefolder.rb
|
93
|
+
- app/models/depot/file.rb
|
94
|
+
- app/models/tog/depot/version.rb
|
95
|
+
- app/helpers/depot/files_helper.rb
|
96
|
+
- app/controllers/depot/files_controller.rb
|
97
|
+
- app/controllers/depot/filefolders_controller.rb
|
98
|
+
- app/controllers/member/depot/files_controller.rb
|
99
|
+
- app/controllers/member/depot/filefolders_controller.rb
|
100
|
+
- public/images/tog-depot_iconfolder_48px.gif
|
101
|
+
- public/images/1px.gif
|
102
|
+
- public/images/tog-depot_iconfile_16px.gif
|
103
|
+
- public/images/tog-depot_arrow_dn_deact.gif
|
104
|
+
- public/images/tog-depot_iconfile_48px.gif
|
105
|
+
- public/images/tog-depot_iconfile_32px.gif
|
106
|
+
- public/images/tog-depot_arrow_up.gif
|
107
|
+
- public/images/tog-depot_arrow_up_deact.gif
|
108
|
+
- public/images/tog-depot_file_dl.gif
|
109
|
+
- public/images/tog-depot_arrow_dn.gif
|
110
|
+
- public/images/tog-depot_iconfolder_32px.gif
|
111
|
+
- public/images/tog-depot_iconfolder_16px.gif
|
112
|
+
- public/images/privacity/public_domain.gif
|
113
|
+
- public/images/privacity/community.gif
|
114
|
+
- public/images/privacity/member.gif
|
115
|
+
- public/images/privacity/admin.gif
|
116
|
+
- public/stylesheets/depot.css
|
117
|
+
- config/routes.rb
|
118
|
+
- db/migrate/001_create_files.rb
|
119
|
+
- db/migrate/002_create_files_folder.rb
|
120
|
+
has_rdoc: true
|
121
|
+
homepage: http://github.com/dms/tog_depot/tree/master
|
122
|
+
post_install_message:
|
123
|
+
rdoc_options:
|
124
|
+
- --main
|
125
|
+
- README.markdown
|
126
|
+
require_paths:
|
127
|
+
- lib
|
128
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: "0"
|
133
|
+
version:
|
134
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: "0"
|
139
|
+
version:
|
140
|
+
requirements: []
|
141
|
+
|
142
|
+
rubyforge_project:
|
143
|
+
rubygems_version: 1.2.0
|
144
|
+
signing_key:
|
145
|
+
specification_version: 2
|
146
|
+
summary: Tog Plugin
|
147
|
+
test_files:
|
148
|
+
- test/test_helper.rb
|
149
|
+
- test/factories.rb
|
150
|
+
- test/unit/file_test.rb
|
151
|
+
- test/unit/filefolder_test.rb
|
152
|
+
- test/functional/depot/filefolders_controller_test.rb
|
153
|
+
- test/functional/depot/files_controller_test.rb
|
154
|
+
- test/functional/member/depot/filefolders_controller_test.rb
|
155
|
+
- test/functional/member/depot/files_controller_test.rb
|