refinerycms-resources 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/app/views/refinery/admin/resources/_resource.html.erb +3 -1
- data/lib/refinery/resources/configuration.rb +2 -2
- data/spec/lib/generators/refinery/resources/resources_generator_spec.rb +1 -1
- data/spec/models/refinery/resource_spec.rb +3 -3
- data/spec/requests/refinery/admin/resources_spec.rb +1 -1
- metadata +5 -5
@@ -14,7 +14,9 @@
|
|
14
14
|
refinery.admin_resource_path(resource),
|
15
15
|
:class => "cancel confirm-delete",
|
16
16
|
:title => t('delete', :scope => 'refinery.admin.resources'),
|
17
|
-
:
|
17
|
+
:data => {
|
18
|
+
:confirm => t('message', :scope => 'refinery.admin.delete', :title => resource.title)
|
19
|
+
},
|
18
20
|
:method => :delete %>
|
19
21
|
</span>
|
20
22
|
</li>
|
@@ -38,11 +38,11 @@ module Refinery
|
|
38
38
|
def s3_secret_access_key
|
39
39
|
config.s3_secret_access_key.nil? ? Refinery::Core.s3_secret_access_key : config.s3_secret_access_key
|
40
40
|
end
|
41
|
-
|
41
|
+
|
42
42
|
def s3_region
|
43
43
|
config.s3_region.nil? ? Refinery::Core.s3_region : config.s3_region
|
44
44
|
end
|
45
|
-
|
45
|
+
|
46
46
|
end
|
47
47
|
end
|
48
48
|
end
|
@@ -74,7 +74,7 @@ module Refinery
|
|
74
74
|
|
75
75
|
describe "validations" do
|
76
76
|
describe "valid #file" do
|
77
|
-
before
|
77
|
+
before do
|
78
78
|
@file = Refinery.roots(:'refinery/resources').join("spec/fixtures/refinery_is_awesome.txt")
|
79
79
|
Resources.max_file_size = (File.read(@file).size + 10)
|
80
80
|
end
|
@@ -85,7 +85,7 @@ module Refinery
|
|
85
85
|
end
|
86
86
|
|
87
87
|
describe "too large #file" do
|
88
|
-
before
|
88
|
+
before do
|
89
89
|
@file = Refinery.roots(:'refinery/resources').join("spec/fixtures/refinery_is_awesome.txt")
|
90
90
|
Resources.max_file_size = (File.read(@file).size - 10)
|
91
91
|
@resource = Resource.new(:file => @file)
|
@@ -103,7 +103,7 @@ module Refinery
|
|
103
103
|
end
|
104
104
|
|
105
105
|
describe "invalid argument for #file" do
|
106
|
-
before
|
106
|
+
before do
|
107
107
|
@resource = Resource.new
|
108
108
|
end
|
109
109
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
requirements:
|
55
55
|
- - '='
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version: 2.0.
|
57
|
+
version: 2.0.6
|
58
58
|
type: :runtime
|
59
59
|
prerelease: false
|
60
60
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -62,7 +62,7 @@ dependencies:
|
|
62
62
|
requirements:
|
63
63
|
- - '='
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: 2.0.
|
65
|
+
version: 2.0.6
|
66
66
|
description: Handles all file upload and processing functionality in Refinery CMS.
|
67
67
|
email: info@refinerycms.com
|
68
68
|
executables: []
|
@@ -142,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
142
142
|
version: '0'
|
143
143
|
segments:
|
144
144
|
- 0
|
145
|
-
hash:
|
145
|
+
hash: 4050493561373350727
|
146
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
147
|
none: false
|
148
148
|
requirements:
|
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
151
|
version: '0'
|
152
152
|
segments:
|
153
153
|
- 0
|
154
|
-
hash:
|
154
|
+
hash: 4050493561373350727
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project: refinerycms
|
157
157
|
rubygems_version: 1.8.22
|