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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGUxYzhiZTE0NDU2MWYyM2RhOGZjOWNkZWIxZTljZmM0NWFmOWIxMg==
4
+ MjEyOTlmMmRhNWQxM2FlZDU1MGUxYTg1ZTg0NmNlNDY1ODA5NDRkOQ==
5
5
  data.tar.gz: !binary |-
6
- ZjA5OGQ1MTdiOTE1ZWQxNjg4YzI1OGM3OGI4Y2QwYzNiMDIxZDg3NA==
6
+ Zjc0OWM0ZjdjZjczODljMTE1NjZlNGVhNjM0N2M4MGVhNzI1OTEyOQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OGM4NThmM2I5YjQ3MjYyOGNkOWM3MzAzNmZiOWNlNzViNGJjMDViM2M3MWJl
10
- OTI4ODBmYmMyNjBkZDkyMjQ1YTBhNDMwZTBlOGVhZDU2ZmVkNjAxNWJhZmJj
11
- MmVkOWRiNGU1ZGY2Y2ViYmQ4ZTA4ZDFlM2Q3NzdjNjVlODEwMTg=
9
+ OTIxOWFmOTg2OTM5NzQzYjI3NDRjNTUyZjA2YjhlYzQ1NzFmODY2OWVmMGM1
10
+ NDk4MjM4ZTNhYTZlMjdiNjA1YjgzOGM0YzQ2MjRjMDFkMjdmNWI0OGE4ZmY1
11
+ ZmU3NzgyZTA3MGNkOTEwMjBlMjhmYWE5MzkzM2Q0NWJjMzgyMzc=
12
12
  data.tar.gz: !binary |-
13
- YjEzMDQ4ZTgzZjkzMWZkYzUwN2Y5MjJiZmI4MjI5MTAxNDFlZGU2NDU4YjA0
14
- NDliNzQ5M2E5MTYxYzM4NDExNjdhZjNlMWMxZDY1MjFlMDI0YjJjMGRkMGRm
15
- NzU1MmI3OTBlMmU5NTVhZTVjNzgzODk2MjVlNGNiOThkNjk2YmU=
13
+ OWZkMTBjMmUwZjgxYTczNzEwY2YxZjIwZWIzYTI5YWY1ZDVlMDc0M2JlNDQ1
14
+ NmQ3NDk1ZmI0OTFmMmQ3MGI4N2I3NDcxNTcxOTY5NzkxYThhMjhhYmY1NzA3
15
+ NTA5YTNhODQ2NDIyNjljZWVhMDc1MjU3MTYzZGYxY2VkNDFiZWI=
@@ -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.2
1
+ 0.0.3
@@ -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)
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "rest_debug"
8
- s.version = "0.0.2"
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.rdoc"
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.rdoc",
26
+ "README.md",
27
27
  "Rakefile",
28
28
  "VERSION",
29
29
  "bin/rest_debug",
@@ -5,6 +5,6 @@ url = "http://localhost:7000"
5
5
  client = RestDebug::Client.new(:base_url => url)
6
6
 
7
7
  client.start "puts :abc"
8
- client.status
8
+ client.status; 4
9
9
  client.command :continue
10
- pp client.status
10
+ client.status; 4
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.2
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.rdoc
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.rdoc
125
+ - README.md
126
126
  - Rakefile
127
127
  - VERSION
128
128
  - bin/rest_debug
@@ -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
-