rest_debug 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +26 -0
- data/VERSION +1 -1
- data/lib/rest_debug/client.rb +7 -2
- data/rest_debug.gemspec +3 -3
- data/vol/client_test.rb +2 -2
- metadata +3 -3
- data/README.rdoc +0 -19
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjEyOTlmMmRhNWQxM2FlZDU1MGUxYTg1ZTg0NmNlNDY1ODA5NDRkOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Zjc0OWM0ZjdjZjczODljMTE1NjZlNGVhNjM0N2M4MGVhNzI1OTEyOQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTIxOWFmOTg2OTM5NzQzYjI3NDRjNTUyZjA2YjhlYzQ1NzFmODY2OWVmMGM1
|
10
|
+
NDk4MjM4ZTNhYTZlMjdiNjA1YjgzOGM0YzQ2MjRjMDFkMjdmNWI0OGE4ZmY1
|
11
|
+
ZmU3NzgyZTA3MGNkOTEwMjBlMjhmYWE5MzkzM2Q0NWJjMzgyMzc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWZkMTBjMmUwZjgxYTczNzEwY2YxZjIwZWIzYTI5YWY1ZDVlMDc0M2JlNDQ1
|
14
|
+
NmQ3NDk1ZmI0OTFmMmQ3MGI4N2I3NDcxNTcxOTY5NzkxYThhMjhhYmY1NzA3
|
15
|
+
NTA5YTNhODQ2NDIyNjljZWVhMDc1MjU3MTYzZGYxY2VkNDFiZWI=
|
data/README.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# RestDebug
|
2
|
+
|
3
|
+
To start a server and client:
|
4
|
+
|
5
|
+
Install rest_debug
|
6
|
+
|
7
|
+
```
|
8
|
+
gem install rest_debug
|
9
|
+
```
|
10
|
+
|
11
|
+
Start the server
|
12
|
+
|
13
|
+
```
|
14
|
+
rest_debug -p 7000
|
15
|
+
```
|
16
|
+
|
17
|
+
Start the client
|
18
|
+
|
19
|
+
```
|
20
|
+
require 'rest_debug'
|
21
|
+
client = RestDebug::Client.new(:base_url => "http://localhost:7000")
|
22
|
+
client.start "puts :abc"
|
23
|
+
client.status
|
24
|
+
client.command :continue
|
25
|
+
client.status
|
26
|
+
```
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/lib/rest_debug/client.rb
CHANGED
@@ -15,7 +15,6 @@ module RestDebug
|
|
15
15
|
puts url
|
16
16
|
raw = open(url).read
|
17
17
|
res = JSON.parse(raw)
|
18
|
-
puts res.inspect
|
19
18
|
sleep(0.05)
|
20
19
|
res
|
21
20
|
end
|
@@ -25,7 +24,13 @@ module RestDebug
|
|
25
24
|
end
|
26
25
|
|
27
26
|
def status
|
28
|
-
get :status
|
27
|
+
res = get :status
|
28
|
+
res.each do |type,data|
|
29
|
+
puts "#{type.to_s.upcase} (#{data['open'] ? 'Open' : 'Closed'}):"
|
30
|
+
puts data['output']
|
31
|
+
puts "\n\n"
|
32
|
+
end
|
33
|
+
res
|
29
34
|
end
|
30
35
|
|
31
36
|
def start(code)
|
data/rest_debug.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "rest_debug"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Mike Harris"]
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.executables = ["rest_debug"]
|
16
16
|
s.extra_rdoc_files = [
|
17
17
|
"LICENSE.txt",
|
18
|
-
"README.
|
18
|
+
"README.md"
|
19
19
|
]
|
20
20
|
s.files = [
|
21
21
|
".document",
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
"Gemfile",
|
24
24
|
"Gemfile.lock",
|
25
25
|
"LICENSE.txt",
|
26
|
-
"README.
|
26
|
+
"README.md",
|
27
27
|
"Rakefile",
|
28
28
|
"VERSION",
|
29
29
|
"bin/rest_debug",
|
data/vol/client_test.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rest_debug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Harris
|
@@ -115,14 +115,14 @@ executables:
|
|
115
115
|
extensions: []
|
116
116
|
extra_rdoc_files:
|
117
117
|
- LICENSE.txt
|
118
|
-
- README.
|
118
|
+
- README.md
|
119
119
|
files:
|
120
120
|
- .document
|
121
121
|
- .rspec
|
122
122
|
- Gemfile
|
123
123
|
- Gemfile.lock
|
124
124
|
- LICENSE.txt
|
125
|
-
- README.
|
125
|
+
- README.md
|
126
126
|
- Rakefile
|
127
127
|
- VERSION
|
128
128
|
- bin/rest_debug
|
data/README.rdoc
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
= rest_debug
|
2
|
-
|
3
|
-
Description goes here.
|
4
|
-
|
5
|
-
== Contributing to rest_debug
|
6
|
-
|
7
|
-
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
8
|
-
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
9
|
-
* Fork the project.
|
10
|
-
* Start a feature/bugfix branch.
|
11
|
-
* Commit and push until you are happy with your contribution.
|
12
|
-
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
-
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
-
|
15
|
-
== Copyright
|
16
|
-
|
17
|
-
Copyright (c) 2014 Mike Harris. See LICENSE.txt for
|
18
|
-
further details.
|
19
|
-
|