alf-rest 0.14.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +5 -2
- data/Gemfile.lock +40 -23
- data/README.md +1 -9
- data/lib/alf-rest.rb +1 -1
- data/lib/alf/rest/version.rb +2 -2
- data/spec/fixtures/sap.db +0 -0
- data/spec/integration/sinatra/rest_get/test_accept.rb +4 -4
- data/spec/unit/ext/renderer/test_from_http_accept.rb +2 -2
- data/spec/unit/ext/renderer/test_supported_media_types.rb +1 -1
- metadata +19 -16
data/Gemfile
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
source 'http://rubygems.org'
|
2
2
|
|
3
3
|
group :runtime do
|
4
|
-
gem "alf-core", "~> 0.14.0"
|
5
4
|
gem "sinatra", "~> 1.3", ">= 1.3.2"
|
6
5
|
gem "rack-accept", "~> 0.4.5"
|
6
|
+
|
7
|
+
gem "alf-core", path: "../alf-core"
|
7
8
|
end
|
8
9
|
|
9
10
|
group :development do
|
@@ -15,7 +16,9 @@ group :test do
|
|
15
16
|
gem "cucumber", "~> 1.2"
|
16
17
|
#gem "rack-test", "~> 0.6.1"
|
17
18
|
gem "rack-test", :git => "git://github.com/brynary/rack-test.git"
|
18
|
-
gem "alf-sequel", "~> 0.14.0"
|
19
19
|
gem "sqlite3", "~> 1.3", :platforms => ['mri', 'rbx']
|
20
20
|
gem "jdbc-sqlite3", "~> 3.7", :platforms => ['jruby']
|
21
|
+
|
22
|
+
gem "alf-sql", path: "../alf-sql"
|
23
|
+
gem "alf-sequel", path: "../alf-sequel"
|
21
24
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,33 +1,49 @@
|
|
1
1
|
GIT
|
2
2
|
remote: git://github.com/brynary/rack-test.git
|
3
|
-
revision:
|
3
|
+
revision: 8cdb86e1d710194ce45f439915707db7fb2b27e5
|
4
4
|
specs:
|
5
5
|
rack-test (0.6.2)
|
6
6
|
rack (>= 1.0)
|
7
7
|
|
8
|
-
|
9
|
-
remote:
|
8
|
+
PATH
|
9
|
+
remote: ../alf-core
|
10
10
|
specs:
|
11
|
-
alf-core (0.
|
11
|
+
alf-core (0.16.0)
|
12
12
|
domain (~> 1.0)
|
13
13
|
myrrha (~> 3.0)
|
14
14
|
path (~> 1.3)
|
15
|
-
sexpr (~> 0.
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
sexpr (~> 0.6.0)
|
16
|
+
|
17
|
+
PATH
|
18
|
+
remote: ../alf-sequel
|
19
|
+
specs:
|
20
|
+
alf-sequel (0.16.0)
|
21
|
+
alf-core (= 0.16.0)
|
22
|
+
alf-sql (= 0.16.0)
|
23
|
+
sequel (~> 4.2)
|
24
|
+
|
25
|
+
PATH
|
26
|
+
remote: ../alf-sql
|
27
|
+
specs:
|
28
|
+
alf-sql (0.16.0)
|
29
|
+
alf-core (= 0.16.0)
|
30
|
+
sexpr (~> 0.6.0)
|
31
|
+
|
32
|
+
GEM
|
33
|
+
remote: http://rubygems.org/
|
34
|
+
specs:
|
19
35
|
builder (3.2.2)
|
20
|
-
cucumber (1.3.
|
36
|
+
cucumber (1.3.8)
|
21
37
|
builder (>= 2.1.2)
|
22
38
|
diff-lcs (>= 1.1.3)
|
23
|
-
gherkin (~> 2.12.
|
24
|
-
multi_json (
|
39
|
+
gherkin (~> 2.12.1)
|
40
|
+
multi_json (>= 1.7.5, < 2.0)
|
25
41
|
multi_test (>= 0.0.2)
|
26
42
|
diff-lcs (1.2.4)
|
27
43
|
domain (1.0.0)
|
28
|
-
gherkin (2.12.
|
44
|
+
gherkin (2.12.2)
|
29
45
|
multi_json (~> 1.3)
|
30
|
-
multi_json (1.
|
46
|
+
multi_json (1.8.2)
|
31
47
|
multi_test (0.0.2)
|
32
48
|
myrrha (3.0.0)
|
33
49
|
domain (~> 1.0)
|
@@ -35,32 +51,33 @@ GEM
|
|
35
51
|
rack (1.5.2)
|
36
52
|
rack-accept (0.4.5)
|
37
53
|
rack (>= 0.4)
|
38
|
-
rack-protection (1.5.
|
54
|
+
rack-protection (1.5.1)
|
39
55
|
rack
|
40
56
|
rake (10.1.0)
|
41
57
|
rspec (2.14.1)
|
42
58
|
rspec-core (~> 2.14.0)
|
43
59
|
rspec-expectations (~> 2.14.0)
|
44
60
|
rspec-mocks (~> 2.14.0)
|
45
|
-
rspec-core (2.14.
|
46
|
-
rspec-expectations (2.14.
|
61
|
+
rspec-core (2.14.7)
|
62
|
+
rspec-expectations (2.14.3)
|
47
63
|
diff-lcs (>= 1.1.3, < 2.0)
|
48
|
-
rspec-mocks (2.14.
|
49
|
-
sequel (
|
50
|
-
sexpr (0.
|
51
|
-
sinatra (1.4.
|
64
|
+
rspec-mocks (2.14.4)
|
65
|
+
sequel (4.4.0)
|
66
|
+
sexpr (0.6.0)
|
67
|
+
sinatra (1.4.4)
|
52
68
|
rack (~> 1.4)
|
53
69
|
rack-protection (~> 1.4)
|
54
70
|
tilt (~> 1.3, >= 1.3.4)
|
55
|
-
sqlite3 (1.3.
|
71
|
+
sqlite3 (1.3.8)
|
56
72
|
tilt (1.4.1)
|
57
73
|
|
58
74
|
PLATFORMS
|
59
75
|
ruby
|
60
76
|
|
61
77
|
DEPENDENCIES
|
62
|
-
alf-core
|
63
|
-
alf-sequel
|
78
|
+
alf-core!
|
79
|
+
alf-sequel!
|
80
|
+
alf-sql!
|
64
81
|
cucumber (~> 1.2)
|
65
82
|
jdbc-sqlite3 (~> 3.7)
|
66
83
|
rack-accept (~> 0.4.5)
|
data/README.md
CHANGED
@@ -1,11 +1,3 @@
|
|
1
1
|
# Alf::Rest
|
2
2
|
|
3
|
-
[
|
4
|
-
[![Dependency Status](https://gemnasium.com/alf-tool/alf-rest.png)](https://gemnasium.com/alf-tool/alf-rest)
|
5
|
-
|
6
|
-
Put your alf relational database on the web quickly, simply, safely.
|
7
|
-
|
8
|
-
## Links
|
9
|
-
|
10
|
-
http://github.com/alf-tool/alf
|
11
|
-
http://github.com/alf-tool/alf-rest
|
3
|
+
DEPRECATED, use [alf-rack](http://github.com/alf-tool/alf-rack) instead.
|
data/lib/alf-rest.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require_relative "alf/rest"
|
1
|
+
require_relative "alf/rest"
|
data/lib/alf/rest/version.rb
CHANGED
data/spec/fixtures/sap.db
CHANGED
Binary file
|
@@ -68,17 +68,17 @@ module Alf
|
|
68
68
|
#
|
69
69
|
last_meta.should eq([200, "text/plain"])
|
70
70
|
#
|
71
|
-
last_response.body.should =~ /\|\s+
|
71
|
+
last_response.body.should =~ /\|\s+S1\s+\|\s+Smith\s+\|/
|
72
72
|
end
|
73
73
|
|
74
74
|
it 'supports text/x-yaml' do
|
75
75
|
#
|
76
|
-
header "Accept", "text/
|
76
|
+
header "Accept", "text/yaml"
|
77
77
|
get '/suppliers'
|
78
78
|
#
|
79
|
-
last_meta.should eq([200, "text/
|
79
|
+
last_meta.should eq([200, "text/yaml"])
|
80
80
|
#
|
81
|
-
last_response.body.should =~ /- :sid:
|
81
|
+
last_response.body.should =~ /- :sid: S1/
|
82
82
|
end
|
83
83
|
|
84
84
|
it 'supports a complex specification' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alf-rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-02-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -82,7 +82,7 @@ dependencies:
|
|
82
82
|
requirements:
|
83
83
|
- - ~>
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version: 0.
|
85
|
+
version: 0.15.0
|
86
86
|
type: :development
|
87
87
|
prerelease: false
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -90,7 +90,7 @@ dependencies:
|
|
90
90
|
requirements:
|
91
91
|
- - ~>
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version: 0.
|
93
|
+
version: 0.15.0
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
95
|
name: sqlite3
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -124,13 +124,13 @@ dependencies:
|
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '3.7'
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
|
-
name:
|
127
|
+
name: sinatra
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
none: false
|
130
130
|
requirements:
|
131
131
|
- - ~>
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version:
|
133
|
+
version: '1.3'
|
134
134
|
type: :runtime
|
135
135
|
prerelease: false
|
136
136
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -138,15 +138,15 @@ dependencies:
|
|
138
138
|
requirements:
|
139
139
|
- - ~>
|
140
140
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
141
|
+
version: '1.3'
|
142
142
|
- !ruby/object:Gem::Dependency
|
143
|
-
name:
|
143
|
+
name: rack-accept
|
144
144
|
requirement: !ruby/object:Gem::Requirement
|
145
145
|
none: false
|
146
146
|
requirements:
|
147
147
|
- - ~>
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
version:
|
149
|
+
version: 0.4.5
|
150
150
|
type: :runtime
|
151
151
|
prerelease: false
|
152
152
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -154,23 +154,23 @@ dependencies:
|
|
154
154
|
requirements:
|
155
155
|
- - ~>
|
156
156
|
- !ruby/object:Gem::Version
|
157
|
-
version:
|
157
|
+
version: 0.4.5
|
158
158
|
- !ruby/object:Gem::Dependency
|
159
|
-
name:
|
159
|
+
name: alf-core
|
160
160
|
requirement: !ruby/object:Gem::Requirement
|
161
161
|
none: false
|
162
162
|
requirements:
|
163
|
-
- -
|
163
|
+
- - '='
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version: 0.
|
165
|
+
version: 0.16.0
|
166
166
|
type: :runtime
|
167
167
|
prerelease: false
|
168
168
|
version_requirements: !ruby/object:Gem::Requirement
|
169
169
|
none: false
|
170
170
|
requirements:
|
171
|
-
- -
|
171
|
+
- - '='
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0.
|
173
|
+
version: 0.16.0
|
174
174
|
description: Provides a RESTful interface for relational databases.
|
175
175
|
email:
|
176
176
|
- blambeau at gmail.com
|
@@ -235,13 +235,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
235
235
|
version: '0'
|
236
236
|
segments:
|
237
237
|
- 0
|
238
|
-
hash:
|
238
|
+
hash: -4306182451017526137
|
239
239
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
240
240
|
none: false
|
241
241
|
requirements:
|
242
242
|
- - ! '>='
|
243
243
|
- !ruby/object:Gem::Version
|
244
244
|
version: '0'
|
245
|
+
segments:
|
246
|
+
- 0
|
247
|
+
hash: -4306182451017526137
|
245
248
|
requirements: []
|
246
249
|
rubyforge_project:
|
247
250
|
rubygems_version: 1.8.25
|