avatars_for_rails 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/avatar.rb +1 -2
- data/avatars_for_rails.gemspec +1 -1
- metadata +102 -180
data/app/models/avatar.rb
CHANGED
@@ -103,10 +103,9 @@ class Avatar < ActiveRecord::Base
|
|
103
103
|
return if !@name.blank?
|
104
104
|
|
105
105
|
if resize_image(logo.queued_for_write[:original].path,500,500)
|
106
|
-
logo.errors['precrop'] = "You have to make precrop"
|
107
106
|
Avatar.copy_to_temp_file(logo.queued_for_write[:original].path)
|
108
107
|
else
|
109
|
-
|
108
|
+
logo.errors['precrop'] = "You have to make precrop"
|
110
109
|
end
|
111
110
|
end
|
112
111
|
|
data/avatars_for_rails.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# project in your rails apps through git.
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "avatars_for_rails"
|
5
|
-
s.version = "0.2.
|
5
|
+
s.version = "0.2.2"
|
6
6
|
s.authors = ["Jaime Castro Montero", "GING"]
|
7
7
|
s.summary = "Avatar manager for rails apps."
|
8
8
|
s.description = "A Rails engine that allows any model to act as avatarable, permitting it to have a complete avatar manager with a few options. Adapted to rails 3"
|
metadata
CHANGED
@@ -1,207 +1,134 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: avatars_for_rails
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
- 1
|
10
|
-
version: 0.2.1
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Jaime Castro Montero
|
14
9
|
- GING
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
prerelease: false
|
24
|
-
type: :runtime
|
25
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
13
|
+
date: 2011-12-20 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: jquery-rails
|
17
|
+
requirement: &15557080 !ruby/object:Gem::Requirement
|
26
18
|
none: false
|
27
|
-
requirements:
|
28
|
-
- -
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
hash: 5
|
31
|
-
segments:
|
32
|
-
- 1
|
33
|
-
- 0
|
34
|
-
- 9
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
35
22
|
version: 1.0.9
|
36
|
-
name: jquery-rails
|
37
|
-
version_requirements: *id001
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
prerelease: false
|
40
23
|
type: :runtime
|
41
|
-
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *15557080
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: foreigner
|
28
|
+
requirement: &15556140 !ruby/object:Gem::Requirement
|
42
29
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
hash: 57
|
47
|
-
segments:
|
48
|
-
- 0
|
49
|
-
- 9
|
50
|
-
- 1
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
51
33
|
version: 0.9.1
|
52
|
-
name: foreigner
|
53
|
-
version_requirements: *id002
|
54
|
-
- !ruby/object:Gem::Dependency
|
55
|
-
prerelease: false
|
56
34
|
type: :runtime
|
57
|
-
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *15556140
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: paperclip
|
39
|
+
requirement: &15555440 !ruby/object:Gem::Requirement
|
58
40
|
none: false
|
59
|
-
requirements:
|
60
|
-
- -
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
hash: 11
|
63
|
-
segments:
|
64
|
-
- 2
|
65
|
-
- 3
|
66
|
-
- 4
|
41
|
+
requirements:
|
42
|
+
- - ! '>='
|
43
|
+
- !ruby/object:Gem::Version
|
67
44
|
version: 2.3.4
|
68
|
-
name: paperclip
|
69
|
-
version_requirements: *id003
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
prerelease: false
|
72
45
|
type: :runtime
|
73
|
-
|
46
|
+
prerelease: false
|
47
|
+
version_requirements: *15555440
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: rmagick
|
50
|
+
requirement: &15554660 !ruby/object:Gem::Requirement
|
74
51
|
none: false
|
75
|
-
requirements:
|
76
|
-
- -
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
hash: 57
|
79
|
-
segments:
|
80
|
-
- 2
|
81
|
-
- 13
|
82
|
-
- 1
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
83
55
|
version: 2.13.1
|
84
|
-
|
85
|
-
version_requirements: *id004
|
86
|
-
- !ruby/object:Gem::Dependency
|
56
|
+
type: :runtime
|
87
57
|
prerelease: false
|
88
|
-
|
89
|
-
|
58
|
+
version_requirements: *15554660
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: rails
|
61
|
+
requirement: &15553840 !ruby/object:Gem::Requirement
|
90
62
|
none: false
|
91
|
-
requirements:
|
92
|
-
- -
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
hash: 3
|
95
|
-
segments:
|
96
|
-
- 3
|
97
|
-
- 1
|
98
|
-
- 0
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
99
66
|
version: 3.1.0
|
100
|
-
name: rails
|
101
|
-
version_requirements: *id005
|
102
|
-
- !ruby/object:Gem::Dependency
|
103
|
-
prerelease: false
|
104
67
|
type: :development
|
105
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
hash: 3
|
111
|
-
segments:
|
112
|
-
- 0
|
113
|
-
version: "0"
|
114
|
-
name: sqlite3-ruby
|
115
|
-
version_requirements: *id006
|
116
|
-
- !ruby/object:Gem::Dependency
|
117
68
|
prerelease: false
|
118
|
-
|
119
|
-
|
69
|
+
version_requirements: *15553840
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: sqlite3-ruby
|
72
|
+
requirement: &15552880 !ruby/object:Gem::Requirement
|
120
73
|
none: false
|
121
|
-
requirements:
|
122
|
-
- -
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
|
125
|
-
segments:
|
126
|
-
- 0
|
127
|
-
- 10
|
128
|
-
- 3
|
129
|
-
version: 0.10.3
|
130
|
-
name: ruby-debug
|
131
|
-
version_requirements: *id007
|
132
|
-
- !ruby/object:Gem::Dependency
|
133
|
-
prerelease: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
134
78
|
type: :development
|
135
|
-
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: *15552880
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: rspec-rails
|
83
|
+
requirement: &15551940 !ruby/object:Gem::Requirement
|
136
84
|
none: false
|
137
|
-
requirements:
|
85
|
+
requirements:
|
138
86
|
- - ~>
|
139
|
-
- !ruby/object:Gem::Version
|
140
|
-
hash: 27
|
141
|
-
segments:
|
142
|
-
- 2
|
143
|
-
- 5
|
144
|
-
- 0
|
87
|
+
- !ruby/object:Gem::Version
|
145
88
|
version: 2.5.0
|
146
|
-
name: rspec-rails
|
147
|
-
version_requirements: *id008
|
148
|
-
- !ruby/object:Gem::Dependency
|
149
|
-
prerelease: false
|
150
89
|
type: :development
|
151
|
-
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: *15551940
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
name: factory_girl
|
94
|
+
requirement: &15551160 !ruby/object:Gem::Requirement
|
152
95
|
none: false
|
153
|
-
requirements:
|
96
|
+
requirements:
|
154
97
|
- - ~>
|
155
|
-
- !ruby/object:Gem::Version
|
156
|
-
hash: 31
|
157
|
-
segments:
|
158
|
-
- 1
|
159
|
-
- 3
|
160
|
-
- 2
|
98
|
+
- !ruby/object:Gem::Version
|
161
99
|
version: 1.3.2
|
162
|
-
name: factory_girl
|
163
|
-
version_requirements: *id009
|
164
|
-
- !ruby/object:Gem::Dependency
|
165
|
-
prerelease: false
|
166
100
|
type: :development
|
167
|
-
|
101
|
+
prerelease: false
|
102
|
+
version_requirements: *15551160
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: forgery
|
105
|
+
requirement: &15550340 !ruby/object:Gem::Requirement
|
168
106
|
none: false
|
169
|
-
requirements:
|
107
|
+
requirements:
|
170
108
|
- - ~>
|
171
|
-
- !ruby/object:Gem::Version
|
172
|
-
hash: 31
|
173
|
-
segments:
|
174
|
-
- 0
|
175
|
-
- 3
|
176
|
-
- 6
|
109
|
+
- !ruby/object:Gem::Version
|
177
110
|
version: 0.3.6
|
178
|
-
name: forgery
|
179
|
-
version_requirements: *id010
|
180
|
-
- !ruby/object:Gem::Dependency
|
181
|
-
prerelease: false
|
182
111
|
type: :development
|
183
|
-
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: *15550340
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
name: capybara
|
116
|
+
requirement: &15565700 !ruby/object:Gem::Requirement
|
184
117
|
none: false
|
185
|
-
requirements:
|
118
|
+
requirements:
|
186
119
|
- - ~>
|
187
|
-
- !ruby/object:Gem::Version
|
188
|
-
hash: 1
|
189
|
-
segments:
|
190
|
-
- 0
|
191
|
-
- 3
|
192
|
-
- 9
|
120
|
+
- !ruby/object:Gem::Version
|
193
121
|
version: 0.3.9
|
194
|
-
|
195
|
-
|
196
|
-
|
122
|
+
type: :development
|
123
|
+
prerelease: false
|
124
|
+
version_requirements: *15565700
|
125
|
+
description: A Rails engine that allows any model to act as avatarable, permitting
|
126
|
+
it to have a complete avatar manager with a few options. Adapted to rails 3
|
197
127
|
email: social-stream@dit.upm.es
|
198
128
|
executables: []
|
199
|
-
|
200
129
|
extensions: []
|
201
|
-
|
202
130
|
extra_rdoc_files: []
|
203
|
-
|
204
|
-
files:
|
131
|
+
files:
|
205
132
|
- .gitignore
|
206
133
|
- Gemfile
|
207
134
|
- MIT-LICENSE
|
@@ -322,39 +249,34 @@ files:
|
|
322
249
|
- vendor/assets/javascripts/jquery.form.js
|
323
250
|
- vendor/assets/stylesheets/jquery.Jcrop.css
|
324
251
|
- vendor/assets/stylesheets/jquery.fileupload-ui.css
|
325
|
-
has_rdoc: true
|
326
252
|
homepage: http://github.com/ging/avatars_for_rails
|
327
253
|
licenses: []
|
328
|
-
|
329
254
|
post_install_message:
|
330
255
|
rdoc_options: []
|
331
|
-
|
332
|
-
require_paths:
|
256
|
+
require_paths:
|
333
257
|
- lib
|
334
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
258
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
335
259
|
none: false
|
336
|
-
requirements:
|
337
|
-
- -
|
338
|
-
- !ruby/object:Gem::Version
|
339
|
-
|
340
|
-
segments:
|
260
|
+
requirements:
|
261
|
+
- - ! '>='
|
262
|
+
- !ruby/object:Gem::Version
|
263
|
+
version: '0'
|
264
|
+
segments:
|
341
265
|
- 0
|
342
|
-
|
343
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
266
|
+
hash: 4287334492904614421
|
267
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
344
268
|
none: false
|
345
|
-
requirements:
|
346
|
-
- -
|
347
|
-
- !ruby/object:Gem::Version
|
348
|
-
|
349
|
-
segments:
|
269
|
+
requirements:
|
270
|
+
- - ! '>='
|
271
|
+
- !ruby/object:Gem::Version
|
272
|
+
version: '0'
|
273
|
+
segments:
|
350
274
|
- 0
|
351
|
-
|
275
|
+
hash: 4287334492904614421
|
352
276
|
requirements: []
|
353
|
-
|
354
277
|
rubyforge_project:
|
355
|
-
rubygems_version: 1.
|
278
|
+
rubygems_version: 1.8.11
|
356
279
|
signing_key:
|
357
280
|
specification_version: 3
|
358
281
|
summary: Avatar manager for rails apps.
|
359
282
|
test_files: []
|
360
|
-
|