vrome 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/server.rb +5 -3
- data/lib/vrome.rb +1 -1
- metadata +28 -30
data/lib/server.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
+
require 'rubygems'
|
1
2
|
require 'webrick'
|
2
3
|
require 'tempfile'
|
3
4
|
require 'json'
|
4
5
|
|
5
|
-
class
|
6
|
+
class VromeServer < WEBrick::HTTPServlet::AbstractServlet
|
6
7
|
|
7
8
|
def do_POST(request, response)
|
8
9
|
request = JSON.parse(request.body)
|
@@ -52,7 +53,8 @@ class EditorServer < WEBrick::HTTPServlet::AbstractServlet
|
|
52
53
|
end
|
53
54
|
end
|
54
55
|
|
55
|
-
server = WEBrick::HTTPServer.new
|
56
|
-
server.
|
56
|
+
server = WEBrick::HTTPServer.new
|
57
|
+
server.listen('127.0.0.1', 20000)
|
58
|
+
server.mount "/", VromeServer
|
57
59
|
trap(:INT) { server.shutdown }
|
58
60
|
server.start
|
data/lib/vrome.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vrome
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 21
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Jinzhu
|
@@ -9,39 +15,25 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
18
|
+
date: 2011-09-21 00:00:00 +08:00
|
13
19
|
default_executable:
|
14
20
|
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
16
|
-
name: rubyforge
|
17
|
-
type: :development
|
18
|
-
version_requirement:
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 2.0.3
|
24
|
-
version:
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: gemcutter
|
27
|
-
type: :development
|
28
|
-
version_requirement:
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.3.0
|
34
|
-
version:
|
35
21
|
- !ruby/object:Gem::Dependency
|
36
22
|
name: hoe
|
37
|
-
|
38
|
-
|
39
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
40
26
|
requirements:
|
41
27
|
- - ">="
|
42
28
|
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
|
29
|
+
hash: 35
|
30
|
+
segments:
|
31
|
+
- 2
|
32
|
+
- 9
|
33
|
+
- 4
|
34
|
+
version: 2.9.4
|
35
|
+
type: :development
|
36
|
+
version_requirements: *id001
|
45
37
|
description: ""
|
46
38
|
email:
|
47
39
|
- wosmvp+vrome@gmail.com
|
@@ -72,21 +64,27 @@ rdoc_options:
|
|
72
64
|
require_paths:
|
73
65
|
- lib
|
74
66
|
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
75
68
|
requirements:
|
76
69
|
- - ">="
|
77
70
|
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
72
|
+
segments:
|
73
|
+
- 0
|
78
74
|
version: "0"
|
79
|
-
version:
|
80
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
81
77
|
requirements:
|
82
78
|
- - ">="
|
83
79
|
- !ruby/object:Gem::Version
|
80
|
+
hash: 3
|
81
|
+
segments:
|
82
|
+
- 0
|
84
83
|
version: "0"
|
85
|
-
version:
|
86
84
|
requirements: []
|
87
85
|
|
88
86
|
rubyforge_project: vrome
|
89
|
-
rubygems_version: 1.
|
87
|
+
rubygems_version: 1.6.2
|
90
88
|
signing_key:
|
91
89
|
specification_version: 3
|
92
90
|
summary: ""
|