fbrails 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fbrails/version.rb +1 -1
- data/lib/fbrails.rb +2 -2
- metadata +1 -1
data/lib/fbrails/version.rb
CHANGED
data/lib/fbrails.rb
CHANGED
@@ -3,11 +3,11 @@ require 'net/https'
|
|
3
3
|
require 'json'
|
4
4
|
|
5
5
|
module Fbrails
|
6
|
-
|
7
6
|
class FailedToGet < StandardError
|
8
7
|
end
|
9
8
|
|
10
|
-
|
9
|
+
|
10
|
+
def self.get (url,raw = false)
|
11
11
|
uri = URI.parse(url)
|
12
12
|
http = Net::HTTP.new(uri.host,uri.port)
|
13
13
|
http.use_ssl = true if url =~ /^https/
|