rest-terminal 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +13 -0
- data/Gemfile.lock +36 -0
- data/Rakefile +8 -0
- data/lib/rest/version.rb +1 -1
- data/lib/service_base.rb +1 -1
- data/rest-terminal.gemspec +24 -0
- metadata +6 -2
data/Gemfile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
group :test do
|
4
|
+
gem "minitest"
|
5
|
+
gem 'vcr', '~>2.0.0'
|
6
|
+
gem 'webmock', '~>1.8.3'
|
7
|
+
gem 'simplecov', :require => false
|
8
|
+
gem 'turn', :require => false
|
9
|
+
end
|
10
|
+
|
11
|
+
gem "json", '~>1.7.5'
|
12
|
+
gem "term-ansicolor", '~>1.0.7'
|
13
|
+
gem "faraday", '~>0.8.4'
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.3.2)
|
5
|
+
ansi (1.4.3)
|
6
|
+
crack (0.3.1)
|
7
|
+
faraday (0.8.4)
|
8
|
+
multipart-post (~> 1.1)
|
9
|
+
json (1.7.5)
|
10
|
+
minitest (4.1.0)
|
11
|
+
multi_json (1.3.6)
|
12
|
+
multipart-post (1.1.5)
|
13
|
+
simplecov (0.7.1)
|
14
|
+
multi_json (~> 1.0)
|
15
|
+
simplecov-html (~> 0.7.1)
|
16
|
+
simplecov-html (0.7.1)
|
17
|
+
term-ansicolor (1.0.7)
|
18
|
+
turn (0.9.6)
|
19
|
+
ansi
|
20
|
+
vcr (2.0.1)
|
21
|
+
webmock (1.8.11)
|
22
|
+
addressable (>= 2.2.7)
|
23
|
+
crack (>= 0.1.7)
|
24
|
+
|
25
|
+
PLATFORMS
|
26
|
+
ruby
|
27
|
+
|
28
|
+
DEPENDENCIES
|
29
|
+
faraday (~> 0.8.4)
|
30
|
+
json (~> 1.7.5)
|
31
|
+
minitest
|
32
|
+
simplecov
|
33
|
+
term-ansicolor (~> 1.0.7)
|
34
|
+
turn
|
35
|
+
vcr (~> 2.0.0)
|
36
|
+
webmock (~> 1.8.3)
|
data/Rakefile
ADDED
data/lib/rest/version.rb
CHANGED
data/lib/service_base.rb
CHANGED
@@ -89,7 +89,7 @@ class ServiceBase
|
|
89
89
|
Rest::Terminal.instance_variable_set("@response",@response)
|
90
90
|
puts line.red
|
91
91
|
puts "response".intense_green
|
92
|
-
puts @response
|
92
|
+
puts @response.pj #[:response_headers].inspect
|
93
93
|
save_vars
|
94
94
|
""
|
95
95
|
rescue Faraday::Error::ConnectionFailed => e
|
@@ -0,0 +1,24 @@
|
|
1
|
+
$:.push File.expand_path("../lib",__FILE__)
|
2
|
+
require 'rest/version'
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "rest-terminal"
|
6
|
+
s.version = Rest::Version
|
7
|
+
s.author = ["WHarsojo"]
|
8
|
+
s.email = ["wharsojo@gmail.com"]
|
9
|
+
s.homepage = "http://github.com/rest-terminal"
|
10
|
+
s.summary = %q{Rest API Test on Terminal}
|
11
|
+
|
12
|
+
s.rubyforge_project = "rest-terminal"
|
13
|
+
|
14
|
+
s.files = %w[Gemfile Gemfile.lock Rakefile rest-terminal.gemspec bin/rest bin/rt lib/rest.rb lib/service_base.rb lib/rest/terminal.rb lib/rest/terminal/commands.rb lib/rest/terminal/commands_info.rb lib/rest/terminal/persistent.rb lib/rest/terminal/persistent_rc.rb lib/rest/service.rb lib/rest/version.rb]
|
15
|
+
|
16
|
+
s.test_files = []
|
17
|
+
|
18
|
+
s.require_paths = ["lib"]
|
19
|
+
s.executables = ["rest","rt"]
|
20
|
+
s.add_runtime_dependency "json", '~>1.7.5'
|
21
|
+
s.add_runtime_dependency "term-ansicolor", '~>1.0.7'
|
22
|
+
s.add_runtime_dependency "faraday", '~>0.8.4'
|
23
|
+
s.post_install_message = ">>In your console, type 'rest' or 'rt' to run this program<<"
|
24
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rest-terminal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -68,6 +68,10 @@ executables:
|
|
68
68
|
extensions: []
|
69
69
|
extra_rdoc_files: []
|
70
70
|
files:
|
71
|
+
- Gemfile
|
72
|
+
- Gemfile.lock
|
73
|
+
- Rakefile
|
74
|
+
- rest-terminal.gemspec
|
71
75
|
- bin/rest
|
72
76
|
- bin/rt
|
73
77
|
- lib/rest.rb
|
@@ -79,7 +83,7 @@ files:
|
|
79
83
|
- lib/rest/terminal/persistent_rc.rb
|
80
84
|
- lib/rest/service.rb
|
81
85
|
- lib/rest/version.rb
|
82
|
-
homepage: http://github.com/
|
86
|
+
homepage: http://github.com/rest-terminal
|
83
87
|
licenses: []
|
84
88
|
post_install_message: ! '>>In your console, type ''rest'' or ''rt'' to run this program<<'
|
85
89
|
rdoc_options: []
|