avatars_for_rails 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +3 -11
- data/app/models/avatar.rb +3 -1
- data/avatars_for_rails.gemspec +2 -2
- metadata +24 -80
data/Rakefile
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
# encoding: UTF-8
|
2
|
-
require '
|
2
|
+
require 'bundler/gem_tasks'
|
3
3
|
|
4
|
-
|
5
|
-
require 'bundler/setup'
|
6
|
-
require 'bundler'
|
7
|
-
rescue LoadError
|
8
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
9
|
-
end
|
10
|
-
|
11
|
-
require 'rake'
|
12
|
-
require 'rake/rdoctask'
|
4
|
+
require 'rdoc/task'
|
13
5
|
|
14
6
|
require 'rspec/core'
|
15
7
|
require 'rspec/core/rake_task'
|
@@ -26,4 +18,4 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
|
|
26
18
|
rdoc.rdoc_files.include('lib/**/*.rb', 'app/**/*.rb')
|
27
19
|
end
|
28
20
|
|
29
|
-
Bundler::GemHelper.install_tasks
|
21
|
+
Bundler::GemHelper.install_tasks
|
data/app/models/avatar.rb
CHANGED
@@ -50,7 +50,9 @@ class Avatar < ActiveRecord::Base
|
|
50
50
|
make_precrop(precrop_path,@crop_x.to_i,@crop_y.to_i,@crop_w.to_i,@crop_h.to_i)
|
51
51
|
|
52
52
|
self.name = @name
|
53
|
-
|
53
|
+
precropped = File.open(precrop_path)
|
54
|
+
self.logo = precropped
|
55
|
+
precropped.close
|
54
56
|
|
55
57
|
FileUtils.remove_file(precrop_path)
|
56
58
|
end
|
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.9"
|
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"
|
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
|
|
33
33
|
s.add_development_dependency('ruby-debug', '~> 0.10.3')
|
34
34
|
end
|
35
35
|
# Specs
|
36
|
-
s.add_development_dependency('rspec-rails', '
|
36
|
+
s.add_development_dependency('rspec-rails', '>= 2.5.0')
|
37
37
|
# Fixtures
|
38
38
|
s.add_development_dependency('factory_girl', '~> 1.3.2')
|
39
39
|
# Population
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avatars_for_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-11-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: jquery-rails
|
17
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirement: &81759930 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,15 +22,10 @@ dependencies:
|
|
22
22
|
version: 1.0.9
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements:
|
26
|
-
none: false
|
27
|
-
requirements:
|
28
|
-
- - ! '>='
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
version: 1.0.9
|
25
|
+
version_requirements: *81759930
|
31
26
|
- !ruby/object:Gem::Dependency
|
32
27
|
name: foreigner
|
33
|
-
requirement: !ruby/object:Gem::Requirement
|
28
|
+
requirement: &81759560 !ruby/object:Gem::Requirement
|
34
29
|
none: false
|
35
30
|
requirements:
|
36
31
|
- - ! '>='
|
@@ -38,15 +33,10 @@ dependencies:
|
|
38
33
|
version: 0.9.1
|
39
34
|
type: :runtime
|
40
35
|
prerelease: false
|
41
|
-
version_requirements:
|
42
|
-
none: false
|
43
|
-
requirements:
|
44
|
-
- - ! '>='
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: 0.9.1
|
36
|
+
version_requirements: *81759560
|
47
37
|
- !ruby/object:Gem::Dependency
|
48
38
|
name: paperclip
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
39
|
+
requirement: &81758950 !ruby/object:Gem::Requirement
|
50
40
|
none: false
|
51
41
|
requirements:
|
52
42
|
- - ! '>='
|
@@ -54,15 +44,10 @@ dependencies:
|
|
54
44
|
version: 2.3.4
|
55
45
|
type: :runtime
|
56
46
|
prerelease: false
|
57
|
-
version_requirements:
|
58
|
-
none: false
|
59
|
-
requirements:
|
60
|
-
- - ! '>='
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: 2.3.4
|
47
|
+
version_requirements: *81758950
|
63
48
|
- !ruby/object:Gem::Dependency
|
64
49
|
name: rmagick
|
65
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirement: &81756970 !ruby/object:Gem::Requirement
|
66
51
|
none: false
|
67
52
|
requirements:
|
68
53
|
- - ! '>='
|
@@ -70,15 +55,10 @@ dependencies:
|
|
70
55
|
version: 2.13.1
|
71
56
|
type: :runtime
|
72
57
|
prerelease: false
|
73
|
-
version_requirements:
|
74
|
-
none: false
|
75
|
-
requirements:
|
76
|
-
- - ! '>='
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version: 2.13.1
|
58
|
+
version_requirements: *81756970
|
79
59
|
- !ruby/object:Gem::Dependency
|
80
60
|
name: rails
|
81
|
-
requirement: !ruby/object:Gem::Requirement
|
61
|
+
requirement: &81755970 !ruby/object:Gem::Requirement
|
82
62
|
none: false
|
83
63
|
requirements:
|
84
64
|
- - ! '>='
|
@@ -86,15 +66,10 @@ dependencies:
|
|
86
66
|
version: 3.1.0
|
87
67
|
type: :development
|
88
68
|
prerelease: false
|
89
|
-
version_requirements:
|
90
|
-
none: false
|
91
|
-
requirements:
|
92
|
-
- - ! '>='
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
version: 3.1.0
|
69
|
+
version_requirements: *81755970
|
95
70
|
- !ruby/object:Gem::Dependency
|
96
71
|
name: sqlite3-ruby
|
97
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirement: &80621560 !ruby/object:Gem::Requirement
|
98
73
|
none: false
|
99
74
|
requirements:
|
100
75
|
- - ! '>='
|
@@ -102,31 +77,21 @@ dependencies:
|
|
102
77
|
version: '0'
|
103
78
|
type: :development
|
104
79
|
prerelease: false
|
105
|
-
version_requirements:
|
106
|
-
none: false
|
107
|
-
requirements:
|
108
|
-
- - ! '>='
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
80
|
+
version_requirements: *80621560
|
111
81
|
- !ruby/object:Gem::Dependency
|
112
82
|
name: rspec-rails
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
83
|
+
requirement: &80621280 !ruby/object:Gem::Requirement
|
114
84
|
none: false
|
115
85
|
requirements:
|
116
|
-
- -
|
86
|
+
- - ! '>='
|
117
87
|
- !ruby/object:Gem::Version
|
118
88
|
version: 2.5.0
|
119
89
|
type: :development
|
120
90
|
prerelease: false
|
121
|
-
version_requirements:
|
122
|
-
none: false
|
123
|
-
requirements:
|
124
|
-
- - ~>
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
version: 2.5.0
|
91
|
+
version_requirements: *80621280
|
127
92
|
- !ruby/object:Gem::Dependency
|
128
93
|
name: factory_girl
|
129
|
-
requirement: !ruby/object:Gem::Requirement
|
94
|
+
requirement: &80621030 !ruby/object:Gem::Requirement
|
130
95
|
none: false
|
131
96
|
requirements:
|
132
97
|
- - ~>
|
@@ -134,15 +99,10 @@ dependencies:
|
|
134
99
|
version: 1.3.2
|
135
100
|
type: :development
|
136
101
|
prerelease: false
|
137
|
-
version_requirements:
|
138
|
-
none: false
|
139
|
-
requirements:
|
140
|
-
- - ~>
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
version: 1.3.2
|
102
|
+
version_requirements: *80621030
|
143
103
|
- !ruby/object:Gem::Dependency
|
144
104
|
name: forgery
|
145
|
-
requirement: !ruby/object:Gem::Requirement
|
105
|
+
requirement: &80620800 !ruby/object:Gem::Requirement
|
146
106
|
none: false
|
147
107
|
requirements:
|
148
108
|
- - ~>
|
@@ -150,15 +110,10 @@ dependencies:
|
|
150
110
|
version: 0.3.6
|
151
111
|
type: :development
|
152
112
|
prerelease: false
|
153
|
-
version_requirements:
|
154
|
-
none: false
|
155
|
-
requirements:
|
156
|
-
- - ~>
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
version: 0.3.6
|
113
|
+
version_requirements: *80620800
|
159
114
|
- !ruby/object:Gem::Dependency
|
160
115
|
name: capybara
|
161
|
-
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirement: &80620570 !ruby/object:Gem::Requirement
|
162
117
|
none: false
|
163
118
|
requirements:
|
164
119
|
- - ~>
|
@@ -166,12 +121,7 @@ dependencies:
|
|
166
121
|
version: 0.3.9
|
167
122
|
type: :development
|
168
123
|
prerelease: false
|
169
|
-
version_requirements:
|
170
|
-
none: false
|
171
|
-
requirements:
|
172
|
-
- - ~>
|
173
|
-
- !ruby/object:Gem::Version
|
174
|
-
version: 0.3.9
|
124
|
+
version_requirements: *80620570
|
175
125
|
description: A Rails engine that allows any model to act as avatarable, permitting
|
176
126
|
it to have a complete avatar manager with a few options. Adapted to rails 3
|
177
127
|
email: social-stream@dit.upm.es
|
@@ -292,21 +242,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
292
242
|
- - ! '>='
|
293
243
|
- !ruby/object:Gem::Version
|
294
244
|
version: '0'
|
295
|
-
segments:
|
296
|
-
- 0
|
297
|
-
hash: 108146099
|
298
245
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
299
246
|
none: false
|
300
247
|
requirements:
|
301
248
|
- - ! '>='
|
302
249
|
- !ruby/object:Gem::Version
|
303
250
|
version: '0'
|
304
|
-
segments:
|
305
|
-
- 0
|
306
|
-
hash: 108146099
|
307
251
|
requirements: []
|
308
252
|
rubyforge_project:
|
309
|
-
rubygems_version: 1.8.
|
253
|
+
rubygems_version: 1.8.10
|
310
254
|
signing_key:
|
311
255
|
specification_version: 3
|
312
256
|
summary: Avatar manager for rails apps.
|