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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48488e5e700d96431a1f1c963ba820bbf5e5377c
4
- data.tar.gz: f65241be79369c26998a9a14a399c33c9874cd69
3
+ metadata.gz: ad9edbe6c8046b3fff1f59f5dba663769df0dcfa
4
+ data.tar.gz: 1b71f9761cf29eb47a8f23cc292b491b2817d1c7
5
5
  SHA512:
6
- metadata.gz: 9278315dcc461af3a2bb6ab93aa8d1518723d3602d1f77b096badbad117e20712bef78359fbc52afc2af1e3d82d165f8022abec839b6a97e535e9e8d14e35cc7
7
- data.tar.gz: 87ae8fcdc210dc41a062f368d050550a436c80ef8fedaa988d02755bc402fe7650df0b0f2395a51e104f01e4ff81a938407c6c2e5776405f1a98a47211f481cc
6
+ metadata.gz: 94176b2f5df5d80de193e43b3c84589f7b34c33466f92b8cd7cfc2170ad4a1817b6f9c93547e74198077b2d4837a927af8e04dbf5e48f2b657ce377cba4432eb
7
+ data.tar.gz: 948a28e13fcd2999d88f8b98f2d6eacf452ba712629909b5b22032f36a04ae122015fb56de08b8f32f7165ff0b8cbda60952f3d95f5929b900aea788a2c807d6
@@ -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='700x467#', protocol='http')
17
- "#{protocol}://#{MLS.image_host}/#{digest}.jpg?s=#{URI.escape(style)}"
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
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "mls"
6
- s.version = '0.5.6'
6
+ s.version = '0.5.7'
7
7
  s.authors = ["James R. Bracy", "Jon Bracy"]
8
8
  s.email = ["james@42floors.com"]
9
9
  s.homepage = "http://mls.42floors.com"
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.6
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-06-26 00:00:00.000000000 Z
12
+ date: 2013-07-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake