rest_debug 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.document +5 -0
- data/.rspec +1 -0
- data/Gemfile +18 -0
- data/Gemfile.lock +85 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +19 -0
- data/Rakefile +53 -0
- data/VERSION +1 -0
- data/lib/rest_debug/client.rb +35 -0
- data/lib/rest_debug/ext.rb +9 -0
- data/lib/rest_debug/manager.rb +42 -0
- data/lib/rest_debug/pipes.rb +59 -0
- data/lib/rest_debug/web/views/index.haml +3 -0
- data/lib/rest_debug/web/web.rb +44 -0
- data/lib/rest_debug.rb +9 -0
- data/rest_debug.gemspec +77 -0
- data/spec/rest_debug_spec.rb +7 -0
- data/spec/spec_helper.rb +12 -0
- data/tmp/.gitkeep +0 -0
- data/vol/client_test.rb +10 -0
- metadata +163 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YTQ2ZWQ5MjdlZDczYjkyNjA4NDk5NmU0YWIyNGZlYWE4ZTk3YTI3OQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
OGIyZDY3MTM2MmE4OTEwYjQzODg0NmE4OTlmNDljZTM2YjA0YzQ2MA==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
Mjc4MGUzZmQ0MjY4NWE1NjQ4ODJhOGFiNTNiNzBlZDM1MmRhNmFkMzJkYWM4
|
10
|
+
MmNhMmY3NmJmMTdlZWY4MWZlZDgzZTA5ZTMxY2M1MTYzZGQyNjQ3NDA2ZDdh
|
11
|
+
YTI1N2E4N2U4YTRiODM4MzliYjEwMzJlMmYwMGFhYTNmNjk5YWE=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZjA5YjM3MDk1NjU1MWMyOTMyZDc4NmI0MTJjMGQ3ZGFkYWM1ZGI0NjllY2Vk
|
14
|
+
ZWQ0NGNiNjNjODM2ZmNjZTBlNTI1NTYwZWQ4YjcxOTNkYzhjYmYxMDk4NjQz
|
15
|
+
OWU5OWEyMjk1ZTYwZDY1ZTExYjI4ZTQ2MWVkYTQ4NzgxMzY5MjI=
|
data/.document
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/Gemfile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "rspec", "~> 2.8.0"
|
10
|
+
gem "rdoc", "~> 3.12"
|
11
|
+
gem "bundler", ">= 1.0"
|
12
|
+
gem "jeweler", "~> 1.8.7"
|
13
|
+
# gem "rcov", ">= 0"
|
14
|
+
end
|
15
|
+
|
16
|
+
gem 'sinatra'
|
17
|
+
gem 'mharris_ext'
|
18
|
+
gem 'debugger'
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.3.5)
|
5
|
+
builder (3.2.2)
|
6
|
+
columnize (0.3.6)
|
7
|
+
debugger (1.6.5)
|
8
|
+
columnize (>= 0.3.1)
|
9
|
+
debugger-linecache (~> 1.2.0)
|
10
|
+
debugger-ruby_core_source (~> 1.3.1)
|
11
|
+
debugger-linecache (1.2.0)
|
12
|
+
debugger-ruby_core_source (1.3.1)
|
13
|
+
diff-lcs (1.1.3)
|
14
|
+
facets (2.9.3)
|
15
|
+
faraday (0.8.8)
|
16
|
+
multipart-post (~> 1.2.0)
|
17
|
+
fattr (2.2.1)
|
18
|
+
git (1.2.6)
|
19
|
+
github_api (0.10.1)
|
20
|
+
addressable
|
21
|
+
faraday (~> 0.8.1)
|
22
|
+
hashie (>= 1.2)
|
23
|
+
multi_json (~> 1.4)
|
24
|
+
nokogiri (~> 1.5.2)
|
25
|
+
oauth2
|
26
|
+
hashie (2.0.5)
|
27
|
+
highline (1.6.19)
|
28
|
+
httpauth (0.2.0)
|
29
|
+
jeweler (1.8.7)
|
30
|
+
builder
|
31
|
+
bundler (~> 1.0)
|
32
|
+
git (>= 1.2.5)
|
33
|
+
github_api (= 0.10.1)
|
34
|
+
highline (>= 1.6.15)
|
35
|
+
nokogiri (= 1.5.10)
|
36
|
+
rake
|
37
|
+
rdoc
|
38
|
+
json (1.8.1)
|
39
|
+
jwt (0.1.8)
|
40
|
+
multi_json (>= 1.5)
|
41
|
+
mharris_ext (1.7.1)
|
42
|
+
facets
|
43
|
+
fattr
|
44
|
+
multi_json (1.8.2)
|
45
|
+
multi_xml (0.5.5)
|
46
|
+
multipart-post (1.2.0)
|
47
|
+
nokogiri (1.5.10)
|
48
|
+
oauth2 (0.9.2)
|
49
|
+
faraday (~> 0.8)
|
50
|
+
httpauth (~> 0.2)
|
51
|
+
jwt (~> 0.1.4)
|
52
|
+
multi_json (~> 1.0)
|
53
|
+
multi_xml (~> 0.5)
|
54
|
+
rack (~> 1.2)
|
55
|
+
rack (1.5.2)
|
56
|
+
rack-protection (1.5.0)
|
57
|
+
rack
|
58
|
+
rake (10.1.0)
|
59
|
+
rdoc (3.12.2)
|
60
|
+
json (~> 1.4)
|
61
|
+
rspec (2.8.0)
|
62
|
+
rspec-core (~> 2.8.0)
|
63
|
+
rspec-expectations (~> 2.8.0)
|
64
|
+
rspec-mocks (~> 2.8.0)
|
65
|
+
rspec-core (2.8.0)
|
66
|
+
rspec-expectations (2.8.0)
|
67
|
+
diff-lcs (~> 1.1.2)
|
68
|
+
rspec-mocks (2.8.0)
|
69
|
+
sinatra (1.4.3)
|
70
|
+
rack (~> 1.4)
|
71
|
+
rack-protection (~> 1.4)
|
72
|
+
tilt (~> 1.3, >= 1.3.4)
|
73
|
+
tilt (1.4.1)
|
74
|
+
|
75
|
+
PLATFORMS
|
76
|
+
ruby
|
77
|
+
|
78
|
+
DEPENDENCIES
|
79
|
+
bundler (>= 1.0)
|
80
|
+
debugger
|
81
|
+
jeweler (~> 1.8.7)
|
82
|
+
mharris_ext
|
83
|
+
rdoc (~> 3.12)
|
84
|
+
rspec (~> 2.8.0)
|
85
|
+
sinatra
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2014 Mike Harris
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,19 @@
|
|
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
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "rest_debug"
|
18
|
+
gem.homepage = "http://github.com/mharris717/rest_debug"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{rest_debug}
|
21
|
+
gem.description = %Q{rest_debug}
|
22
|
+
gem.email = "mharris717@gmail.com"
|
23
|
+
gem.authors = ["Mike Harris"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'rspec/core'
|
29
|
+
require 'rspec/core/rake_task'
|
30
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
31
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
32
|
+
end
|
33
|
+
|
34
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
35
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
36
|
+
spec.rcov = true
|
37
|
+
end
|
38
|
+
|
39
|
+
task :default => :spec
|
40
|
+
|
41
|
+
require 'rdoc/task'
|
42
|
+
Rake::RDocTask.new do |rdoc|
|
43
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
44
|
+
|
45
|
+
rdoc.rdoc_dir = 'rdoc'
|
46
|
+
rdoc.title = "rest_debug #{version}"
|
47
|
+
rdoc.rdoc_files.include('README*')
|
48
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
49
|
+
end
|
50
|
+
|
51
|
+
task :web do
|
52
|
+
exec "bundle exec ruby lib/rest_debug/web/web.rb -p 7000"
|
53
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.1
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module RestDebug
|
2
|
+
class Client
|
3
|
+
include FromHash
|
4
|
+
attr_accessor :base_url
|
5
|
+
|
6
|
+
def get(sub,params={})
|
7
|
+
url = "#{base_url}/#{sub}"
|
8
|
+
if params.size > 0
|
9
|
+
url += "?"
|
10
|
+
params.each do |k,v|
|
11
|
+
url << "#{k}=#{CGI::escape(v.to_s)}&"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
puts url
|
16
|
+
raw = open(url).read
|
17
|
+
res = JSON.parse(raw)
|
18
|
+
puts res.inspect
|
19
|
+
sleep(0.05)
|
20
|
+
res
|
21
|
+
end
|
22
|
+
|
23
|
+
def command(cmd)
|
24
|
+
get("command",:command => cmd)
|
25
|
+
end
|
26
|
+
|
27
|
+
def status
|
28
|
+
get :status
|
29
|
+
end
|
30
|
+
|
31
|
+
def start(code)
|
32
|
+
get :start, :code => code
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module RestDebug
|
2
|
+
class Manager
|
3
|
+
include FromHash
|
4
|
+
attr_accessor :code
|
5
|
+
fattr(:port) { 9595 }
|
6
|
+
|
7
|
+
def debug_code
|
8
|
+
str = <<EOF
|
9
|
+
require 'debugger'
|
10
|
+
Debugger.wait_connection = true
|
11
|
+
Debugger.start_remote nil, #{port}
|
12
|
+
debugger
|
13
|
+
EOF
|
14
|
+
end
|
15
|
+
|
16
|
+
def full_code
|
17
|
+
[debug_code,code].join("\n")
|
18
|
+
end
|
19
|
+
|
20
|
+
fattr(:server) do
|
21
|
+
RubyPipe.new(:code => full_code).tap { |x| x.pipe }
|
22
|
+
end
|
23
|
+
|
24
|
+
fattr(:client) do
|
25
|
+
res = IO.popen("rdebug -c -p #{port} && echo 'xxDONExx'", "r+")
|
26
|
+
MyPipe.new(res).tap { |x| x.done_str = "xxDONExx" }
|
27
|
+
end
|
28
|
+
|
29
|
+
def json_output(pipe)
|
30
|
+
{:output => pipe.read_all, :open => pipe.open?}
|
31
|
+
end
|
32
|
+
|
33
|
+
def to_output
|
34
|
+
{:client => json_output(client), :server => json_output(server)}
|
35
|
+
end
|
36
|
+
|
37
|
+
def close
|
38
|
+
`kill #{server.pid}`
|
39
|
+
`kill #{client.pid}`
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
class RubyPipe
|
2
|
+
include FromHash
|
3
|
+
attr_accessor :code
|
4
|
+
def end_code
|
5
|
+
"print '<<DONE>>'"
|
6
|
+
end
|
7
|
+
def full_code
|
8
|
+
"#{code}\n#{end_code}"
|
9
|
+
end
|
10
|
+
fattr(:pipe) do
|
11
|
+
file = File.expand_path(File.dirname(__FILE__) + "/../../tmp/debug_code_#{rand(1000000000)}.rb")
|
12
|
+
File.create file,full_code
|
13
|
+
res = IO.popen("ruby #{file}", "r+")
|
14
|
+
MyPipe.new(res)
|
15
|
+
end
|
16
|
+
|
17
|
+
["read","closed?","open?","read_all","write","close","pid"].each do |method|
|
18
|
+
define_method(method) { pipe.send(method) }
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
class MyPipe
|
23
|
+
attr_accessor :pipe
|
24
|
+
def initialize(pipe)
|
25
|
+
@pipe = pipe
|
26
|
+
end
|
27
|
+
fattr(:done_str) { "<<DONE>>" }
|
28
|
+
|
29
|
+
fattr(:read_cache) { "" }
|
30
|
+
def read
|
31
|
+
res = pipe.read_available
|
32
|
+
self.read_cache << res
|
33
|
+
res.gsub(done_str,"")
|
34
|
+
end
|
35
|
+
def closed?
|
36
|
+
read_cache =~ /#{done_str}/
|
37
|
+
end
|
38
|
+
def open?
|
39
|
+
!closed?
|
40
|
+
end
|
41
|
+
|
42
|
+
def read_all
|
43
|
+
read
|
44
|
+
res = read_cache
|
45
|
+
res << "\n(CLOSED)" if closed?
|
46
|
+
res
|
47
|
+
end
|
48
|
+
|
49
|
+
def write(*args)
|
50
|
+
pipe.write(*args)
|
51
|
+
end
|
52
|
+
def close
|
53
|
+
read
|
54
|
+
pipe.close
|
55
|
+
end
|
56
|
+
def pid
|
57
|
+
pipe.pid
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'sinatra'
|
2
|
+
load File.dirname(__FILE__) + "/../../rest_debug.rb"
|
3
|
+
|
4
|
+
def set_code(code)
|
5
|
+
$manager.close if $manager
|
6
|
+
$manager = RestDebug::Manager.new(:code => code)
|
7
|
+
$manager.server
|
8
|
+
$manager.client
|
9
|
+
20.times do
|
10
|
+
sleep 0.1
|
11
|
+
if $manager.client.read_all.present?
|
12
|
+
puts "Server: #{$manager.server.pid}"
|
13
|
+
puts "Client: #{$manager.client.pid}"
|
14
|
+
return
|
15
|
+
end
|
16
|
+
end
|
17
|
+
raise 'no output'
|
18
|
+
end
|
19
|
+
def manager
|
20
|
+
$manager
|
21
|
+
end
|
22
|
+
|
23
|
+
get "/status" do
|
24
|
+
@output = manager.to_output
|
25
|
+
@output.to_json
|
26
|
+
end
|
27
|
+
|
28
|
+
get "/command" do
|
29
|
+
command = params[:command].strip + "\n"
|
30
|
+
manager.client.write command
|
31
|
+
10.times { sleep(0.05) }
|
32
|
+
{:output => manager.client.read}.to_json
|
33
|
+
end
|
34
|
+
|
35
|
+
get "/start" do
|
36
|
+
code = params[:code].strip
|
37
|
+
set_code code
|
38
|
+
{:started => Time.now.to_s}.to_json
|
39
|
+
end
|
40
|
+
|
41
|
+
get "/close" do
|
42
|
+
manager.close
|
43
|
+
"done"
|
44
|
+
end
|
data/lib/rest_debug.rb
ADDED
data/rest_debug.gemspec
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "rest_debug"
|
8
|
+
s.version = "0.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Mike Harris"]
|
12
|
+
s.date = "2014-02-12"
|
13
|
+
s.description = "rest_debug"
|
14
|
+
s.email = "mharris717@gmail.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".rspec",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"LICENSE.txt",
|
25
|
+
"README.rdoc",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"lib/rest_debug.rb",
|
29
|
+
"lib/rest_debug/client.rb",
|
30
|
+
"lib/rest_debug/ext.rb",
|
31
|
+
"lib/rest_debug/manager.rb",
|
32
|
+
"lib/rest_debug/pipes.rb",
|
33
|
+
"lib/rest_debug/web/views/index.haml",
|
34
|
+
"lib/rest_debug/web/web.rb",
|
35
|
+
"rest_debug.gemspec",
|
36
|
+
"spec/rest_debug_spec.rb",
|
37
|
+
"spec/spec_helper.rb",
|
38
|
+
"tmp/.gitkeep",
|
39
|
+
"vol/client_test.rb"
|
40
|
+
]
|
41
|
+
s.homepage = "http://github.com/mharris717/rest_debug"
|
42
|
+
s.licenses = ["MIT"]
|
43
|
+
s.require_paths = ["lib"]
|
44
|
+
s.rubygems_version = "2.0.7"
|
45
|
+
s.summary = "rest_debug"
|
46
|
+
|
47
|
+
if s.respond_to? :specification_version then
|
48
|
+
s.specification_version = 4
|
49
|
+
|
50
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
51
|
+
s.add_runtime_dependency(%q<sinatra>, [">= 0"])
|
52
|
+
s.add_runtime_dependency(%q<mharris_ext>, [">= 0"])
|
53
|
+
s.add_runtime_dependency(%q<debugger>, [">= 0"])
|
54
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
|
55
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
56
|
+
s.add_development_dependency(%q<bundler>, [">= 1.0"])
|
57
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.7"])
|
58
|
+
else
|
59
|
+
s.add_dependency(%q<sinatra>, [">= 0"])
|
60
|
+
s.add_dependency(%q<mharris_ext>, [">= 0"])
|
61
|
+
s.add_dependency(%q<debugger>, [">= 0"])
|
62
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
63
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
64
|
+
s.add_dependency(%q<bundler>, [">= 1.0"])
|
65
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
|
66
|
+
end
|
67
|
+
else
|
68
|
+
s.add_dependency(%q<sinatra>, [">= 0"])
|
69
|
+
s.add_dependency(%q<mharris_ext>, [">= 0"])
|
70
|
+
s.add_dependency(%q<debugger>, [">= 0"])
|
71
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
72
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
73
|
+
s.add_dependency(%q<bundler>, [">= 1.0"])
|
74
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
require 'rspec'
|
4
|
+
require 'rest_debug'
|
5
|
+
|
6
|
+
# Requires supporting files with custom matchers and macros, etc,
|
7
|
+
# in ./support/ and its subdirectories.
|
8
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
|
12
|
+
end
|
data/tmp/.gitkeep
ADDED
File without changes
|
data/vol/client_test.rb
ADDED
metadata
ADDED
@@ -0,0 +1,163 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rest_debug
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mike Harris
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-02-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: sinatra
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ! '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: mharris_ext
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: debugger
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.8.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.8.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rdoc
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.12'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.12'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: jeweler
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 1.8.7
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.8.7
|
111
|
+
description: rest_debug
|
112
|
+
email: mharris717@gmail.com
|
113
|
+
executables: []
|
114
|
+
extensions: []
|
115
|
+
extra_rdoc_files:
|
116
|
+
- LICENSE.txt
|
117
|
+
- README.rdoc
|
118
|
+
files:
|
119
|
+
- .document
|
120
|
+
- .rspec
|
121
|
+
- Gemfile
|
122
|
+
- Gemfile.lock
|
123
|
+
- LICENSE.txt
|
124
|
+
- README.rdoc
|
125
|
+
- Rakefile
|
126
|
+
- VERSION
|
127
|
+
- lib/rest_debug.rb
|
128
|
+
- lib/rest_debug/client.rb
|
129
|
+
- lib/rest_debug/ext.rb
|
130
|
+
- lib/rest_debug/manager.rb
|
131
|
+
- lib/rest_debug/pipes.rb
|
132
|
+
- lib/rest_debug/web/views/index.haml
|
133
|
+
- lib/rest_debug/web/web.rb
|
134
|
+
- rest_debug.gemspec
|
135
|
+
- spec/rest_debug_spec.rb
|
136
|
+
- spec/spec_helper.rb
|
137
|
+
- tmp/.gitkeep
|
138
|
+
- vol/client_test.rb
|
139
|
+
homepage: http://github.com/mharris717/rest_debug
|
140
|
+
licenses:
|
141
|
+
- MIT
|
142
|
+
metadata: {}
|
143
|
+
post_install_message:
|
144
|
+
rdoc_options: []
|
145
|
+
require_paths:
|
146
|
+
- lib
|
147
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ! '>='
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
|
+
requirements:
|
154
|
+
- - ! '>='
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: '0'
|
157
|
+
requirements: []
|
158
|
+
rubyforge_project:
|
159
|
+
rubygems_version: 2.0.7
|
160
|
+
signing_key:
|
161
|
+
specification_version: 4
|
162
|
+
summary: rest_debug
|
163
|
+
test_files: []
|