fbrails 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/lib/fbrails/graph.rb CHANGED
@@ -12,11 +12,11 @@ module Fbrails
12
12
 
13
13
  #graph.get_picture(ID,TYPE)
14
14
  #TYPE can be square (50x50), small (50 pixels wide, variable height), normal (100 pixels wide, variable height), large (about 200 pixels wide, variable height)
15
- def get_picture(id,type=nil)
15
+ def self.get_picture(id,type=nil)
16
16
  first = "http://graph.facebook.com/#{id}/picture"
17
17
  if type.blank?
18
18
  return first
19
- elsif type == 'square' || type = 'small' || type == 'normal' || type == 'large'
19
+ elsif type == 'square' || type == 'small' || type == 'normal' || type == 'large'
20
20
  return first + "?type=#{type}"
21
21
  end
22
22
  end
@@ -1,3 +1,3 @@
1
1
  module Fbrails
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fbrails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: