radiant-downloads-extension 0.5.2 → 0.5.3
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/downloads_extension.rb +5 -12
- data/lib/radiant-downloads-extension.rb +8 -0
- data/radiant-downloads-extension.gemspec +26 -74
- metadata +31 -43
- data/.gitignore +0 -2
data/downloads_extension.rb
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
require 'paperclip'
|
4
4
|
|
5
5
|
class DownloadsExtension < Radiant::Extension
|
6
|
-
version
|
7
|
-
description
|
8
|
-
url
|
6
|
+
version RadiantDownloadsExtension::VERSION
|
7
|
+
description RadiantDownloadsExtension::DESCRIPTION
|
8
|
+
url RadiantDownloadsExtension::URL
|
9
9
|
|
10
10
|
def activate
|
11
11
|
Group.send :include, DownloadGroup
|
@@ -17,16 +17,9 @@ class DownloadsExtension < Radiant::Extension
|
|
17
17
|
Radiant::AdminUI.load_download_extension_regions
|
18
18
|
end
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
add_item("Downloads", "/admin/readers/downloads", :before => 'Settings')
|
23
|
-
end
|
24
|
-
else
|
25
|
-
admin.tabs.add "Downloads", "/admin/readers/downloads", :visibility => [:all]
|
20
|
+
tab("Readers") do
|
21
|
+
add_item("Downloads", "/admin/readers/downloads", :before => 'Settings')
|
26
22
|
end
|
27
23
|
end
|
28
24
|
|
29
|
-
def deactivate
|
30
|
-
end
|
31
|
-
|
32
25
|
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
module RadiantDownloadsExtension
|
2
|
+
VERSION = '0.5.3'
|
3
|
+
SUMMARY = %q{Secure file distribution for radiant readers}
|
4
|
+
DESCRIPTION = %q{Controlled file access using nginx's local redirects. Requires reader extension.}
|
5
|
+
URL = "http://radiant.spanner.org/downloads"
|
6
|
+
AUTHORS = ["William Ross"]
|
7
|
+
EMAIL = ["radiant@spanner.org"]
|
8
|
+
end
|
@@ -1,82 +1,34 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "radiant-downloads-extension"
|
5
4
|
|
6
5
|
Gem::Specification.new do |s|
|
7
|
-
s.name
|
8
|
-
s.version
|
6
|
+
s.name = "radiant-downloads-extension"
|
7
|
+
s.version = RadiantDownloadsExtension::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = RadiantDownloadsExtension::AUTHORS
|
10
|
+
s.email = RadiantDownloadsExtension::EMAIL
|
11
|
+
s.homepage = RadiantDownloadsExtension::URL
|
12
|
+
s.summary = RadiantDownloadsExtension::SUMMARY
|
13
|
+
s.description = RadiantDownloadsExtension::DESCRIPTION
|
9
14
|
|
10
|
-
s.
|
11
|
-
s.authors = ["spanner"]
|
12
|
-
s.date = %q{2010-10-20}
|
13
|
-
s.description = %q{Controlled, secure file access with group-based access control.}
|
14
|
-
s.email = %q{will@spanner.org}
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"README.markdown"
|
17
|
-
]
|
18
|
-
s.files = [
|
19
|
-
".gitignore",
|
20
|
-
"README.markdown",
|
21
|
-
"Rakefile",
|
22
|
-
"VERSION",
|
23
|
-
"app/controllers/admin/downloads_controller.rb",
|
24
|
-
"app/controllers/downloads_controller.rb",
|
25
|
-
"app/models/download.rb",
|
26
|
-
"app/views/admin/downloads/_form.html.haml",
|
27
|
-
"app/views/admin/downloads/edit.html.haml",
|
28
|
-
"app/views/admin/downloads/index.html.haml",
|
29
|
-
"app/views/admin/downloads/new.html.haml",
|
30
|
-
"config/routes.rb",
|
31
|
-
"db/migrate/001_create_downloads.rb",
|
32
|
-
"downloads_extension.rb",
|
33
|
-
"lib/download_group.rb",
|
34
|
-
"lib/download_tags.rb",
|
35
|
-
"lib/download_ui.rb",
|
36
|
-
"lib/tasks/downloads_extension_tasks.rake",
|
37
|
-
"radiant-downloads-extension.gemspec",
|
38
|
-
"spec/controllers/downloads_controller_spec.rb",
|
39
|
-
"spec/datasets/download_groups_dataset.rb",
|
40
|
-
"spec/datasets/download_readers_dataset.rb",
|
41
|
-
"spec/datasets/download_sites_dataset.rb",
|
42
|
-
"spec/datasets/downloads_dataset.rb",
|
43
|
-
"spec/files/test.pdf",
|
44
|
-
"spec/files/test.txt",
|
45
|
-
"spec/models/download_spec.rb",
|
46
|
-
"spec/models/group_spec.rb",
|
47
|
-
"spec/spec.opts",
|
48
|
-
"spec/spec_helper.rb"
|
49
|
-
]
|
50
|
-
s.homepage = %q{http://github.com/spanner/radiant-downloads-extension}
|
51
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
52
|
-
s.require_paths = ["lib"]
|
53
|
-
s.rubygems_version = %q{1.3.7}
|
54
|
-
s.summary = %q{Controlled, secure file access for Radiant CMS with group-based access control.}
|
55
|
-
s.test_files = [
|
56
|
-
"spec/controllers/downloads_controller_spec.rb",
|
57
|
-
"spec/datasets/download_groups_dataset.rb",
|
58
|
-
"spec/datasets/download_readers_dataset.rb",
|
59
|
-
"spec/datasets/download_sites_dataset.rb",
|
60
|
-
"spec/datasets/downloads_dataset.rb",
|
61
|
-
"spec/models/download_spec.rb",
|
62
|
-
"spec/models/group_spec.rb",
|
63
|
-
"spec/spec_helper.rb"
|
64
|
-
]
|
65
|
-
|
66
|
-
if s.respond_to? :specification_version then
|
67
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
68
|
-
s.specification_version = 3
|
15
|
+
s.add_dependency "paperclip", "~> 2.3.16"
|
69
16
|
|
70
|
-
|
71
|
-
|
72
|
-
s.add_runtime_dependency(%q<radiant-reader_group-extension>, [">= 0"])
|
73
|
-
else
|
74
|
-
s.add_dependency(%q<radiant>, [">= 0.9.0"])
|
75
|
-
s.add_dependency(%q<radiant-reader_group-extension>, [">= 0"])
|
76
|
-
end
|
17
|
+
ignores = if File.exist?('.gitignore')
|
18
|
+
File.read('.gitignore').split("\n").inject([]) {|a,p| a + Dir[p] }
|
77
19
|
else
|
78
|
-
|
79
|
-
s.add_dependency(%q<radiant-reader_group-extension>, [">= 0"])
|
20
|
+
[]
|
80
21
|
end
|
81
|
-
|
22
|
+
s.files = Dir['**/*'] - ignores
|
23
|
+
s.test_files = Dir['test/**/*','spec/**/*','features/**/*'] - ignores
|
24
|
+
# s.executables = Dir['bin/*'] - ignores
|
25
|
+
s.require_paths = ["lib"]
|
26
|
+
|
27
|
+
s.post_install_message = %{
|
28
|
+
Add this to your radiant project with:
|
29
|
+
|
30
|
+
config.gem 'radiant-downloads-extension', :version => '~> #{RadiantDownloadsExtension::VERSION}'
|
31
|
+
|
32
|
+
}
|
82
33
|
|
34
|
+
end
|
metadata
CHANGED
@@ -1,66 +1,48 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-downloads-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 13
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 3
|
10
|
+
version: 0.5.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
|
-
-
|
13
|
+
- William Ross
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
19
|
-
default_executable:
|
18
|
+
date: 2011-10-11 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
name:
|
21
|
+
name: paperclip
|
23
22
|
prerelease: false
|
24
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
24
|
none: false
|
26
25
|
requirements:
|
27
|
-
- -
|
26
|
+
- - ~>
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
28
|
+
hash: 35
|
30
29
|
segments:
|
31
|
-
-
|
32
|
-
-
|
33
|
-
-
|
34
|
-
version:
|
30
|
+
- 2
|
31
|
+
- 3
|
32
|
+
- 16
|
33
|
+
version: 2.3.16
|
35
34
|
type: :runtime
|
36
35
|
version_requirements: *id001
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ">="
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
hash: 3
|
46
|
-
segments:
|
47
|
-
- 0
|
48
|
-
version: "0"
|
49
|
-
type: :runtime
|
50
|
-
version_requirements: *id002
|
51
|
-
description: Controlled, secure file access with group-based access control.
|
52
|
-
email: will@spanner.org
|
36
|
+
description: Controlled file access using nginx's local redirects. Requires reader extension.
|
37
|
+
email:
|
38
|
+
- radiant@spanner.org
|
53
39
|
executables: []
|
54
40
|
|
55
41
|
extensions: []
|
56
42
|
|
57
|
-
extra_rdoc_files:
|
58
|
-
|
43
|
+
extra_rdoc_files: []
|
44
|
+
|
59
45
|
files:
|
60
|
-
- .gitignore
|
61
|
-
- README.markdown
|
62
|
-
- Rakefile
|
63
|
-
- VERSION
|
64
46
|
- app/controllers/admin/downloads_controller.rb
|
65
47
|
- app/controllers/downloads_controller.rb
|
66
48
|
- app/models/download.rb
|
@@ -74,8 +56,11 @@ files:
|
|
74
56
|
- lib/download_group.rb
|
75
57
|
- lib/download_tags.rb
|
76
58
|
- lib/download_ui.rb
|
59
|
+
- lib/radiant-downloads-extension.rb
|
77
60
|
- lib/tasks/downloads_extension_tasks.rake
|
78
61
|
- radiant-downloads-extension.gemspec
|
62
|
+
- Rakefile
|
63
|
+
- README.markdown
|
79
64
|
- spec/controllers/downloads_controller_spec.rb
|
80
65
|
- spec/datasets/download_groups_dataset.rb
|
81
66
|
- spec/datasets/download_readers_dataset.rb
|
@@ -87,13 +72,13 @@ files:
|
|
87
72
|
- spec/models/group_spec.rb
|
88
73
|
- spec/spec.opts
|
89
74
|
- spec/spec_helper.rb
|
90
|
-
|
91
|
-
homepage: http://
|
75
|
+
- VERSION
|
76
|
+
homepage: http://radiant.spanner.org/downloads
|
92
77
|
licenses: []
|
93
78
|
|
94
|
-
post_install_message:
|
95
|
-
rdoc_options:
|
96
|
-
|
79
|
+
post_install_message: "\n Add this to your radiant project with:\n\n config.gem 'radiant-downloads-extension', :version => '~> 0.5.3'\n\n "
|
80
|
+
rdoc_options: []
|
81
|
+
|
97
82
|
require_paths:
|
98
83
|
- lib
|
99
84
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -117,16 +102,19 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
102
|
requirements: []
|
118
103
|
|
119
104
|
rubyforge_project:
|
120
|
-
rubygems_version: 1.
|
105
|
+
rubygems_version: 1.8.10
|
121
106
|
signing_key:
|
122
107
|
specification_version: 3
|
123
|
-
summary:
|
108
|
+
summary: Secure file distribution for radiant readers
|
124
109
|
test_files:
|
125
110
|
- spec/controllers/downloads_controller_spec.rb
|
126
111
|
- spec/datasets/download_groups_dataset.rb
|
127
112
|
- spec/datasets/download_readers_dataset.rb
|
128
113
|
- spec/datasets/download_sites_dataset.rb
|
129
114
|
- spec/datasets/downloads_dataset.rb
|
115
|
+
- spec/files/test.pdf
|
116
|
+
- spec/files/test.txt
|
130
117
|
- spec/models/download_spec.rb
|
131
118
|
- spec/models/group_spec.rb
|
119
|
+
- spec/spec.opts
|
132
120
|
- spec/spec_helper.rb
|
data/.gitignore
DELETED