fbrails 0.0.9 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/fbrails/auth.rb CHANGED
@@ -49,4 +49,4 @@ module Fbrails
49
49
 
50
50
  end
51
51
  end
52
- end
52
+ end
@@ -1,3 +1,3 @@
1
1
  module Fbrails
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
data/lib/fbrails.rb CHANGED
@@ -10,8 +10,8 @@ end
10
10
  def get (url,raw = false)
11
11
  uri = URI.parse(url)
12
12
  http = Net::HTTP.new(uri.host,uri.port)
13
- http.use_ssl = true
14
- http.verify_mode = OpenSSL::SSL::VERIFY_NONE
13
+ http.use_ssl = true if url =~ /^https/
14
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE if url =~ /^https/
15
15
  request = Net::HTTP::Get.new(uri.request_uri)
16
16
  resp = http.request(request)
17
17
  if raw
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.9
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2011-10-12 00:00:00.000000000Z
14
+ date: 2011-10-24 00:00:00.000000000Z
15
15
  dependencies: []
16
16
  description: Small gem for auth & getting info from facebook
17
17
  email: