paprite 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,7 @@ class PaprsController < ApplicationController
22
22
  #-- twitter
23
23
  #/twitter/authenticate
24
24
  def authenticate
25
- response = Paprite::Proxy.authenticate(params[:domain])
25
+ response = Paprite::Proxy.authenticate(params[:domain], request.remote_ip)
26
26
  respond_to do |format|
27
27
  format.text { render :text => response }
28
28
  end
@@ -30,7 +30,7 @@ class PaprsController < ApplicationController
30
30
 
31
31
  #/twitter/ping_loop
32
32
  def ping_loop
33
- response = Paprite::Proxy.ping_loop
33
+ response = Paprite::Proxy.ping_loop(request.remote_ip)
34
34
  respond_to do |format|
35
35
  format.text { render :text => response }
36
36
  end
@@ -38,7 +38,7 @@ class PaprsController < ApplicationController
38
38
 
39
39
  #/twitter/callback
40
40
  def callback
41
- name = Paprite::Proxy.callback(params[:oauth_verifier])
41
+ name = Paprite::Proxy.callback(params[:oauth_verifier], request.remote_ip)
42
42
  end
43
43
 
44
44
  #-- papr
@@ -9,7 +9,7 @@ $.ajax(ajax_hash).success( function (data)
9
9
  {
10
10
  if (data == 'true')
11
11
  {
12
- window.close();
12
+ self.close();
13
13
  }
14
14
  });
15
15
  </script>
@@ -8,8 +8,8 @@ module Paprite
8
8
 
9
9
  #Tells papr to request first OAuth token, as well as provides the domain for the
10
10
  #callback url to be constructed off of.
11
- def authenticate(domain)
12
- url = "http://papr.heroku.com/twitter/authenticate?domain=#{domain.to_s}"
11
+ def authenticate(domain, ip)
12
+ url = "http://papr.heroku.com/twitter/authenticate?domain=#{domain.to_s}&ip=#{ip.to_s}"
13
13
  res = Net::HTTP.get_response(URI.parse(url))
14
14
  response = res.body
15
15
  return response
@@ -1,3 +1,3 @@
1
1
  module Paprite
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
3
3
  end
data/paprite.gemspec CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
8
8
  s.authors = ["Gideon Providence"]
9
9
  s.email = ["jprovidence@live.ca"]
10
10
  s.homepage = ""
11
- s.summary = %q{Powerful Ruby on Rails commenting engine.}
12
- s.description = %q{A powerful commenting engine that greatly boosts the community aspect of your site and drives users to follow along}
11
+ s.summary = %q{Don't download this. Its just a test thing}
12
+ s.description = %q{Just a test, doesn't do anything}
13
13
 
14
14
  s.rubyforge_project = "paprite"
15
15
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: paprite
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Gideon Providence
@@ -10,10 +10,10 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-08-15 00:00:00 Z
13
+ date: 2011-08-17 00:00:00 Z
14
14
  dependencies: []
15
15
 
16
- description: A powerful commenting engine that greatly boosts the community aspect of your site and drives users to follow along
16
+ description: Just a test, doesn't do anything
17
17
  email:
18
18
  - jprovidence@live.ca
19
19
  executables: []
@@ -66,6 +66,6 @@ rubyforge_project: paprite
66
66
  rubygems_version: 1.8.7
67
67
  signing_key:
68
68
  specification_version: 3
69
- summary: Powerful Ruby on Rails commenting engine.
69
+ summary: Don't download this. Its just a test thing
70
70
  test_files: []
71
71