mls 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mls/models/photo.rb +7 -2
- data/mls.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad9edbe6c8046b3fff1f59f5dba663769df0dcfa
|
4
|
+
data.tar.gz: 1b71f9761cf29eb47a8f23cc292b491b2817d1c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94176b2f5df5d80de193e43b3c84589f7b34c33466f92b8cd7cfc2170ad4a1817b6f9c93547e74198077b2d4837a927af8e04dbf5e48f2b657ce377cba4432eb
|
7
|
+
data.tar.gz: 948a28e13fcd2999d88f8b98f2d6eacf452ba712629909b5b22032f36a04ae122015fb56de08b8f32f7165ff0b8cbda60952f3d95f5929b900aea788a2c807d6
|
data/lib/mls/models/photo.rb
CHANGED
@@ -13,8 +13,13 @@ class MLS::Photo < MLS::Resource
|
|
13
13
|
property :caption, String
|
14
14
|
property :similar_subject_id, Fixnum, :serialize => false
|
15
15
|
|
16
|
-
def url(style=
|
17
|
-
"#{protocol}://#{MLS.image_host}/#{digest}.jpg
|
16
|
+
def url(style=nil, protocol='http')
|
17
|
+
result = "#{protocol}://#{MLS.image_host}/#{digest}.jpg"
|
18
|
+
if style
|
19
|
+
result = result + "?s=#{URI.escape(style)}"
|
20
|
+
end
|
21
|
+
|
22
|
+
result
|
18
23
|
end
|
19
24
|
|
20
25
|
def self.create(attrs)
|
data/mls.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James R. Bracy
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|