spud_media 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -62,6 +62,7 @@ img.size-50-thumb {
62
62
  color-stop(0.33, rgb(204,204,204)),
63
63
  color-stop(0.66, rgb(230,230,230))
64
64
  );
65
+ clear: both;
65
66
  }
66
67
  #spud_media_cropper_toolbar form{
67
68
  margin: 0;
@@ -126,10 +126,14 @@ private
126
126
  def validate_permissions_s3
127
127
  if is_protected
128
128
  attachment.s3_object(:original).acl = :private
129
- attachment.s3_object(:cropped).acl = :private unless !has_custom_crop?
129
+ if attachment.s3_object(:cropped).exists?
130
+ attachment.s3_object(:cropped).acl = :private
131
+ end
130
132
  else
131
133
  attachment.s3_object(:original).acl = :public_read
132
- attachment.s3_object(:cropped).acl = :public_read unless !has_custom_crop?
134
+ if attachment.s3_object(:cropped).exists?
135
+ attachment.s3_object(:cropped).acl = :public_read
136
+ end
133
137
  end
134
138
  end
135
139
 
@@ -1,5 +1,5 @@
1
1
  module Spud
2
2
  module Media
3
- VERSION = "0.9.1"
3
+ VERSION = "0.9.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spud_media
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-08 00:00:00.000000000 Z
12
+ date: 2012-05-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70312311481820 !ruby/object:Gem::Requirement
16
+ requirement: &70109066810940 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.2.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70312311481820
24
+ version_requirements: *70109066810940
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: spud_core
27
- requirement: &70312311252840 !ruby/object:Gem::Requirement
27
+ requirement: &70109066810420 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -35,10 +35,10 @@ dependencies:
35
35
  version: 0.9.0
36
36
  type: :runtime
37
37
  prerelease: false
38
- version_requirements: *70312311252840
38
+ version_requirements: *70109066810420
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: paperclip
41
- requirement: &70312311252020 !ruby/object:Gem::Requirement
41
+ requirement: &70109066809620 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
44
  - - ! '>='
@@ -46,10 +46,10 @@ dependencies:
46
46
  version: '0'
47
47
  type: :runtime
48
48
  prerelease: false
49
- version_requirements: *70312311252020
49
+ version_requirements: *70109066809620
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: mysql2
52
- requirement: &70312311251640 !ruby/object:Gem::Requirement
52
+ requirement: &70109067523140 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
55
55
  - - ! '>='
@@ -57,10 +57,10 @@ dependencies:
57
57
  version: '0'
58
58
  type: :development
59
59
  prerelease: false
60
- version_requirements: *70312311251640
60
+ version_requirements: *70109067523140
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rspec
63
- requirement: &70312311251180 !ruby/object:Gem::Requirement
63
+ requirement: &70109067522680 !ruby/object:Gem::Requirement
64
64
  none: false
65
65
  requirements:
66
66
  - - ! '>='
@@ -68,10 +68,10 @@ dependencies:
68
68
  version: '0'
69
69
  type: :development
70
70
  prerelease: false
71
- version_requirements: *70312311251180
71
+ version_requirements: *70109067522680
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: rspec-rails
74
- requirement: &70312311250760 !ruby/object:Gem::Requirement
74
+ requirement: &70109067522160 !ruby/object:Gem::Requirement
75
75
  none: false
76
76
  requirements:
77
77
  - - ! '>='
@@ -79,10 +79,10 @@ dependencies:
79
79
  version: '0'
80
80
  type: :development
81
81
  prerelease: false
82
- version_requirements: *70312311250760
82
+ version_requirements: *70109067522160
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: factory_girl
85
- requirement: &70312311250160 !ruby/object:Gem::Requirement
85
+ requirement: &70109067521660 !ruby/object:Gem::Requirement
86
86
  none: false
87
87
  requirements:
88
88
  - - =
@@ -90,10 +90,10 @@ dependencies:
90
90
  version: 2.5.0
91
91
  type: :development
92
92
  prerelease: false
93
- version_requirements: *70312311250160
93
+ version_requirements: *70109067521660
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: mocha
96
- requirement: &70312311249660 !ruby/object:Gem::Requirement
96
+ requirement: &70109067521160 !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
99
99
  - - =
@@ -101,10 +101,10 @@ dependencies:
101
101
  version: 0.10.3
102
102
  type: :development
103
103
  prerelease: false
104
- version_requirements: *70312311249660
104
+ version_requirements: *70109067521160
105
105
  - !ruby/object:Gem::Dependency
106
106
  name: database_cleaner
107
- requirement: &70312311249200 !ruby/object:Gem::Requirement
107
+ requirement: &70109067520700 !ruby/object:Gem::Requirement
108
108
  none: false
109
109
  requirements:
110
110
  - - =
@@ -112,7 +112,7 @@ dependencies:
112
112
  version: 0.7.1
113
113
  type: :development
114
114
  prerelease: false
115
- version_requirements: *70312311249200
115
+ version_requirements: *70109067520700
116
116
  description: Spud Media allows you to upload files to your site and manage them in
117
117
  the spud administrative panel. It also uses paperclip and supports s3 storage
118
118
  email:
@@ -214,7 +214,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  segments:
216
216
  - 0
217
- hash: 1269224106861082199
217
+ hash: 3881786569555073175
218
218
  required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  none: false
220
220
  requirements:
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  version: '0'
224
224
  segments:
225
225
  - 0
226
- hash: 1269224106861082199
226
+ hash: 3881786569555073175
227
227
  requirements: []
228
228
  rubyforge_project:
229
229
  rubygems_version: 1.8.10