facebookcl 0.2.4 → 0.3.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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/facebookcl.gemspec +1 -1
  3. data/lib/facebookcl.rb +9 -5
  4. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.3.0
data/facebookcl.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{facebookcl}
8
- s.version = "0.2.4"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Justin Bishop"]
data/lib/facebookcl.rb CHANGED
@@ -38,16 +38,20 @@ Welcome New User! You need to auth this application. So please visit here in y
38
38
  session = server.accept
39
39
  session.print "HTTP/1.1 200/OK\r\nContent-type:text/html\r\n\r\n"
40
40
  session.gets
41
- session.print "<script>
42
- window.location.replace(window.location.toString().replace('#', '?'))
43
- </script>"
41
+ session.print "
42
+ <script>
43
+ window.location.replace(window.location.toString().replace('#', '?'));
44
+ </script>"
44
45
  session.close
45
46
 
46
47
  session = server.accept
47
48
  session.print "HTTP/1.1 200/OK\r\nContent-type:text/html\r\n\r\n"
48
49
  request = session.gets.strip
49
- session.print "Success! " +
50
- "You can now close this window and return to FacebookCL."
50
+ session.print "Success!
51
+ You can now close this window and return to FacebookCL.
52
+ <script>
53
+ window.close();
54
+ </script>"
51
55
  session.close
52
56
  server.close
53
57
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facebookcl
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
9
- - 4
10
- version: 0.2.4
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Bishop