mogli 0.0.35 → 0.0.36
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mogli/profile.rb +12 -3
- metadata +4 -4
data/lib/mogli/profile.rb
CHANGED
@@ -24,17 +24,26 @@ module Mogli
|
|
24
24
|
|
25
25
|
# 50x50 pixel image url
|
26
26
|
def square_image_url
|
27
|
-
"
|
27
|
+
sized_image_url("square")
|
28
28
|
end
|
29
29
|
|
30
30
|
# 50 pixels wide, variable height image url
|
31
31
|
def small_image_url
|
32
|
-
"
|
32
|
+
sized_image_url("small")
|
33
|
+
end
|
34
|
+
|
35
|
+
# 64.64 pixel image url
|
36
|
+
def normal_image_url
|
37
|
+
sized_image_url("normal")
|
33
38
|
end
|
34
39
|
|
35
40
|
# About 200 pixels wide, variable height image url
|
36
41
|
def large_image_url
|
37
|
-
"
|
42
|
+
sized_image_url("large")
|
43
|
+
end
|
44
|
+
|
45
|
+
def sized_image_url(size)
|
46
|
+
"#{image_url}?type=#{size}"
|
38
47
|
end
|
39
48
|
|
40
49
|
def to_s
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mogli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 87
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 36
|
10
|
+
version: 0.0.36
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Mike Mangino
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-10-
|
18
|
+
date: 2011-10-17 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|