better_rest 0.0.11 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -6
- data/better_rest-0.0.11.gem +0 -0
- data/better_rest.gemspec +7 -4
- data/bin/better_rest +1 -1
- data/lib/better_rest.rb +8 -1
- data/views/index.erb +0 -0
- metadata +66 -6
- data/logs/.DS_Store +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ae32fec3199b120a02f3aeb8516fbf0b20bf0f0
|
4
|
+
data.tar.gz: e6f83ccfc53e4bab8352d8ca475d9dc796d43fd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 724c77c7b7aa06c20e936ad58b93153f3f11d6e1719c8984ced94147c9f3b06bccd821c7b12771c7a2330db7df28aa7b2cd39bf8a2d9dc95b018596f5b1688f5
|
7
|
+
data.tar.gz: 1b1c5192205df953ea1c67f4bc949d03f752ee5a42b21839fd77c257812f95f45ca0e283d826fdd1506d06a4d989a0309e76fec4c958db4330f33dafefb2f0bb
|
data/README.md
CHANGED
@@ -6,10 +6,15 @@ BetteR emphasises both a clean and easy to use interface, as well as allowing us
|
|
6
6
|
|
7
7
|
## Usage
|
8
8
|
|
9
|
-
|
10
|
-
|
9
|
+
The easiest way to use BetteR is to install it using the gem:
|
10
|
+
|
11
|
+
$gem install better_rest
|
12
|
+
|
13
|
+
Or download the reposity here and launch BetteR via
|
14
|
+
|
15
|
+
$./bin/better_rest
|
11
16
|
|
12
|
-
|
17
|
+
## Logs
|
13
18
|
|
14
19
|
Logs (if enabled from the Settings menu in the UI) will be stored in the following location
|
15
20
|
|
@@ -17,13 +22,11 @@ Logs (if enabled from the Settings menu in the UI) will be stored in the followi
|
|
17
22
|
|
18
23
|
## Dependencies
|
19
24
|
|
20
|
-
Requires a ruby installation with the following Gems:
|
25
|
+
Requires a ruby installation with the following Gems (installation via the gem should take care of these dependencies):
|
21
26
|
- 'sinatra' (sudo gem install sinatra)
|
22
27
|
- 'typhoeus' (sudo gem install typhoeus)
|
23
28
|
- 'vegas' (sudo gem install vegas)
|
24
29
|
|
25
|
-
Note that the vegas gem is only necessary in order to use ./BetteR to call rest.rb. Launching rest.rb (via 'ruby rest.rb') will avoid the need for this gem.
|
26
|
-
|
27
30
|
## TODO
|
28
31
|
|
29
32
|
* Add OAuth/OAuth2 support
|
Binary file
|
data/better_rest.gemspec
CHANGED
@@ -1,13 +1,16 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "better_rest"
|
3
|
-
s.version = "0.0
|
3
|
+
s.version = "0.1.0"
|
4
|
+
s.add_runtime_dependency "sinatra", '~> 1.4', ">= 1.4.4"
|
5
|
+
s.add_runtime_dependency "vegas", '~> 0.1', ">= 0.1.11"
|
6
|
+
s.add_runtime_dependency "typhoeus", '~> 0.6', '>= 0.6.7'
|
4
7
|
s.licenses = ['MIT']
|
5
8
|
s.summary = "REST test Client"
|
6
|
-
s.date = "2014-
|
7
|
-
s.description = "
|
9
|
+
s.date = "2014-05-01"
|
10
|
+
s.description = "A REST testing client delivered via Sinatra to any web browser."
|
8
11
|
s.authors = ["Jason Willems"]
|
9
12
|
s.email = ["hello@jasonwillems.com"]
|
10
|
-
s.homepage = "
|
13
|
+
s.homepage = "https://github.com/at1as/BetteR"
|
11
14
|
s.files = `git ls-files`.split("\n")
|
12
15
|
s.executables << 'better_rest'
|
13
16
|
end
|
data/bin/better_rest
CHANGED
data/lib/better_rest.rb
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
require 'sinatra'
|
4
4
|
require 'typhoeus'
|
5
5
|
|
6
|
+
set :public_dir, File.expand_path('../../public', __FILE__)
|
7
|
+
set :views, File.expand_path('../../views', __FILE__)
|
8
|
+
|
6
9
|
helpers do
|
7
10
|
include Rack::Utils
|
8
11
|
alias_method :h, :escape_html
|
@@ -104,4 +107,8 @@ post '/' do
|
|
104
107
|
@requests = ["#{params[:requestType]}", "GET","POST","PUT","DELETE","HEAD","OPTIONS","PATCH"].uniq
|
105
108
|
@timeout = ["1","2","5","10","60"]
|
106
109
|
erb :index
|
107
|
-
end
|
110
|
+
end
|
111
|
+
|
112
|
+
not_found do
|
113
|
+
redirect '/'
|
114
|
+
end
|
data/views/index.erb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,16 +1,76 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: better_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Willems
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
12
|
-
dependencies:
|
13
|
-
|
11
|
+
date: 2014-05-01 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: '1.4'
|
20
|
+
- - '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.4.4
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.4'
|
30
|
+
- - '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.4.4
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: vegas
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ~>
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0.1'
|
40
|
+
- - '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 0.1.11
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ~>
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0.1'
|
50
|
+
- - '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 0.1.11
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: typhoeus
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ~>
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0.6'
|
60
|
+
- - '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 0.6.7
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0.6'
|
70
|
+
- - '>='
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 0.6.7
|
73
|
+
description: A REST testing client delivered via Sinatra to any web browser.
|
14
74
|
email:
|
15
75
|
- hello@jasonwillems.com
|
16
76
|
executables:
|
@@ -20,14 +80,14 @@ extra_rdoc_files: []
|
|
20
80
|
files:
|
21
81
|
- LICENSE
|
22
82
|
- README.md
|
83
|
+
- better_rest-0.0.11.gem
|
23
84
|
- better_rest.gemspec
|
24
85
|
- bin/better_rest
|
25
86
|
- lib/better_rest.rb
|
26
|
-
- logs/.DS_Store
|
27
87
|
- public/favicon.ico
|
28
88
|
- public/mainCSS.css
|
29
89
|
- views/index.erb
|
30
|
-
homepage:
|
90
|
+
homepage: https://github.com/at1as/BetteR
|
31
91
|
licenses:
|
32
92
|
- MIT
|
33
93
|
metadata: {}
|
data/logs/.DS_Store
DELETED
Binary file
|