david 0.4.5 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +10 -6
- data/Gemfile +7 -3
- data/Gemfile.lock +180 -145
- data/README.md +17 -5
- data/david.gemspec +5 -5
- data/lib/david.rb +2 -1
- data/lib/david/etsi/mandatory/roda.rb +36 -0
- data/lib/david/observe.rb +21 -14
- data/lib/david/railties/middleware.rb +1 -0
- data/lib/david/registry.rb +1 -1
- data/lib/david/resource_discovery_proxy.rb +1 -1
- data/lib/david/server/multicast.rb +1 -1
- data/lib/david/server/utility.rb +2 -1
- data/lib/david/version.rb +2 -2
- data/lib/rack/handler/david.rb +4 -4
- data/spec/app_config_spec.rb +2 -1
- data/spec/dummy/app/controllers/etsis_controller.rb +1 -2
- data/spec/dummy/app/controllers/tests_controller.rb +2 -2
- data/spec/interop/mandatory_spec.rb +1 -0
- data/spec/interop/optional_spec.rb +1 -1
- data/spec/mapping_spec.rb +1 -1
- data/spec/observe_spec.rb +15 -15
- data/spec/perf/server_perf_spec.rb +1 -1
- data/spec/resource_discovery_spec.rb +3 -3
- data/spec/server_spec.rb +16 -16
- data/spec/spec_helper.rb +17 -6
- metadata +18 -31
- data/spec/dummy/config/initializers/assets.rb +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60eca3094e36e83be884b12601f670a1a57d53ec
|
4
|
+
data.tar.gz: daeda080f874f2db12467a1336ae7179b4711c2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f631ae75463fd0b685aedc6e10d445c6dff605a63f4d76c23892aafcedcdd81e96dd2d98ec6ce6dca5b346b39dbe817803a2fef8fb0d0954ac0a0cb01b3251c
|
7
|
+
data.tar.gz: 761ba7dfa1bc716bbdc1742ba0732f1ee708a5eb985473d35781fc0e9ab4ea4953f847ea14c8f2bec3c2f03911fe2e913c18227b21fdced6810bb790aa38f1bd
|
data/.travis.yml
CHANGED
@@ -4,21 +4,25 @@ os:
|
|
4
4
|
- linux
|
5
5
|
- osx
|
6
6
|
|
7
|
+
sudo: required
|
8
|
+
|
7
9
|
rvm:
|
8
|
-
- 2.
|
9
|
-
-
|
10
|
-
-
|
10
|
+
- 2.3.1
|
11
|
+
- 2.2.5
|
12
|
+
- jruby-9.1.2.0
|
11
13
|
|
12
14
|
matrix:
|
13
15
|
fast_finish: true
|
14
16
|
allow_failures:
|
15
17
|
- os: osx
|
16
|
-
- rvm: jruby
|
17
|
-
- rvm: rbx
|
18
|
+
- rvm: jruby-9.1.2.0
|
18
19
|
|
19
20
|
notifications:
|
20
21
|
email: false
|
21
22
|
|
23
|
+
env:
|
24
|
+
- DEBUG=1 IPV4=1
|
25
|
+
|
22
26
|
script:
|
23
27
|
- bundle exec rake build
|
24
|
-
-
|
28
|
+
- bundle exec rspec -t ~multicast:ipv6 -t ~performance
|
data/Gemfile
CHANGED
@@ -16,7 +16,11 @@ group :test do
|
|
16
16
|
gem 'grape'
|
17
17
|
gem 'hobbit'
|
18
18
|
gem 'nyny'
|
19
|
-
gem '
|
20
|
-
|
21
|
-
gem '
|
19
|
+
gem 'roda'
|
20
|
+
|
21
|
+
gem 'rails', '~> 5.0.0'
|
22
|
+
gem 'rspec-rails', '~> 3.5.0'
|
23
|
+
|
24
|
+
gem 'sinatra', github: 'sinatra'
|
25
|
+
gem 'rack-protection', github: 'sinatra/rack-protection'
|
22
26
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,218 +1,251 @@
|
|
1
|
+
GIT
|
2
|
+
remote: git://github.com/sinatra/rack-protection.git
|
3
|
+
revision: 7e723a74763bb83989d1249cdceb9cceb2ee6f01
|
4
|
+
specs:
|
5
|
+
rack-protection (2.0.0)
|
6
|
+
rack
|
7
|
+
|
8
|
+
GIT
|
9
|
+
remote: git://github.com/sinatra/sinatra.git
|
10
|
+
revision: a7483f48b0a18ba792e642a356e3b25cf30a354b
|
11
|
+
specs:
|
12
|
+
sinatra (2.0.0.pre.alpha)
|
13
|
+
mustermann (~> 0.4)
|
14
|
+
rack (~> 2.0)
|
15
|
+
rack-protection (~> 2.0)
|
16
|
+
tilt (~> 2.0)
|
17
|
+
|
1
18
|
PATH
|
2
19
|
remote: .
|
3
20
|
specs:
|
4
|
-
david (0.
|
5
|
-
celluloid (
|
6
|
-
celluloid-io (
|
7
|
-
coap (
|
8
|
-
rack (~>
|
21
|
+
david (0.5.0.pre)
|
22
|
+
celluloid (~> 0.17.3)
|
23
|
+
celluloid-io (~> 0.17.3)
|
24
|
+
coap (~> 0.1)
|
25
|
+
rack (~> 2.0)
|
9
26
|
|
10
27
|
GEM
|
11
28
|
remote: https://rubygems.org/
|
12
29
|
specs:
|
13
|
-
|
14
|
-
actionpack (=
|
15
|
-
|
16
|
-
|
30
|
+
actioncable (5.0.0)
|
31
|
+
actionpack (= 5.0.0)
|
32
|
+
nio4r (~> 1.2)
|
33
|
+
websocket-driver (~> 0.6.1)
|
34
|
+
actionmailer (5.0.0)
|
35
|
+
actionpack (= 5.0.0)
|
36
|
+
actionview (= 5.0.0)
|
37
|
+
activejob (= 5.0.0)
|
17
38
|
mail (~> 2.5, >= 2.5.4)
|
18
|
-
rails-dom-testing (~>
|
19
|
-
actionpack (
|
20
|
-
actionview (=
|
21
|
-
activesupport (=
|
22
|
-
rack (~>
|
23
|
-
rack-test (~> 0.6.
|
24
|
-
rails-dom-testing (~>
|
39
|
+
rails-dom-testing (~> 2.0)
|
40
|
+
actionpack (5.0.0)
|
41
|
+
actionview (= 5.0.0)
|
42
|
+
activesupport (= 5.0.0)
|
43
|
+
rack (~> 2.0)
|
44
|
+
rack-test (~> 0.6.3)
|
45
|
+
rails-dom-testing (~> 2.0)
|
25
46
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
26
|
-
actionview (
|
27
|
-
activesupport (=
|
47
|
+
actionview (5.0.0)
|
48
|
+
activesupport (= 5.0.0)
|
28
49
|
builder (~> 3.1)
|
29
50
|
erubis (~> 2.7.0)
|
30
|
-
rails-dom-testing (~>
|
51
|
+
rails-dom-testing (~> 2.0)
|
31
52
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
32
|
-
activejob (
|
33
|
-
activesupport (=
|
34
|
-
globalid (>= 0.3.
|
35
|
-
activemodel (
|
36
|
-
activesupport (=
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
53
|
+
activejob (5.0.0)
|
54
|
+
activesupport (= 5.0.0)
|
55
|
+
globalid (>= 0.3.6)
|
56
|
+
activemodel (5.0.0)
|
57
|
+
activesupport (= 5.0.0)
|
58
|
+
activerecord (5.0.0)
|
59
|
+
activemodel (= 5.0.0)
|
60
|
+
activesupport (= 5.0.0)
|
61
|
+
arel (~> 7.0)
|
62
|
+
activesupport (5.0.0)
|
63
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
43
64
|
i18n (~> 0.7)
|
44
|
-
json (~> 1.7, >= 1.7.7)
|
45
65
|
minitest (~> 5.1)
|
46
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
47
66
|
tzinfo (~> 1.1)
|
48
|
-
arel (
|
67
|
+
arel (7.1.1)
|
49
68
|
axiom-types (0.1.1)
|
50
69
|
descendants_tracker (~> 0.0.4)
|
51
70
|
ice_nine (~> 0.11.0)
|
52
71
|
thread_safe (~> 0.3, >= 0.3.1)
|
53
72
|
builder (3.2.2)
|
54
|
-
cbor (0.5.9.
|
55
|
-
celluloid (0.
|
56
|
-
|
57
|
-
|
58
|
-
celluloid
|
59
|
-
|
60
|
-
|
61
|
-
|
73
|
+
cbor (0.5.9.1)
|
74
|
+
celluloid (0.17.3)
|
75
|
+
celluloid-essentials
|
76
|
+
celluloid-extras
|
77
|
+
celluloid-fsm
|
78
|
+
celluloid-pool
|
79
|
+
celluloid-supervision
|
80
|
+
timers (>= 4.1.1)
|
81
|
+
celluloid-essentials (0.20.5)
|
82
|
+
timers (>= 4.1.1)
|
83
|
+
celluloid-extras (0.20.5)
|
84
|
+
timers (>= 4.1.1)
|
85
|
+
celluloid-fsm (0.20.5)
|
86
|
+
timers (>= 4.1.1)
|
87
|
+
celluloid-io (0.17.3)
|
88
|
+
celluloid (>= 0.17.2)
|
89
|
+
nio4r (>= 1.1)
|
90
|
+
timers (>= 4.1.1)
|
91
|
+
celluloid-pool (0.20.5)
|
92
|
+
timers (>= 4.1.1)
|
93
|
+
celluloid-supervision (0.20.6)
|
94
|
+
timers (>= 4.1.1)
|
95
|
+
coap (0.1.4)
|
96
|
+
celluloid-io (~> 0.17.3)
|
62
97
|
resolv-ipv6favor (~> 0)
|
63
98
|
coercible (1.0.0)
|
64
99
|
descendants_tracker (~> 0.0.1)
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
100
|
+
concurrent-ruby (1.0.2)
|
101
|
+
concurrent-ruby (1.0.2-java)
|
102
|
+
coveralls (0.8.15)
|
103
|
+
json (>= 1.8, < 3)
|
104
|
+
simplecov (~> 0.12.0)
|
69
105
|
term-ansicolor (~> 1.3)
|
70
106
|
thor (~> 0.19.1)
|
107
|
+
tins (>= 1.6.0, < 2)
|
71
108
|
descendants_tracker (0.0.4)
|
72
109
|
thread_safe (~> 0.3, >= 0.3.1)
|
73
110
|
diff-lcs (1.2.5)
|
74
111
|
docile (1.1.5)
|
75
|
-
|
76
|
-
unf (>= 0.0.5, < 1.0.0)
|
112
|
+
enumerable-lazy (0.0.1)
|
77
113
|
equalizer (0.0.11)
|
78
114
|
erubis (2.7.0)
|
79
|
-
globalid (0.3.
|
115
|
+
globalid (0.3.7)
|
80
116
|
activesupport (>= 4.1.0)
|
81
|
-
grape (0.
|
117
|
+
grape (0.17.0)
|
82
118
|
activesupport
|
83
119
|
builder
|
84
120
|
hashie (>= 2.1.0)
|
85
121
|
multi_json (>= 1.3.2)
|
86
122
|
multi_xml (>= 0.5.2)
|
123
|
+
mustermann19 (~> 0.4.3)
|
87
124
|
rack (>= 1.3.0)
|
88
125
|
rack-accept
|
89
|
-
rack-mount
|
90
126
|
virtus (>= 1.0.0)
|
91
|
-
hashie (3.4.
|
92
|
-
hitimes (1.2.
|
93
|
-
|
94
|
-
hobbit (0.6.0)
|
127
|
+
hashie (3.4.4)
|
128
|
+
hitimes (1.2.4)
|
129
|
+
hobbit (0.6.1)
|
95
130
|
rack
|
96
|
-
http-cookie (1.0.2)
|
97
|
-
domain_name (~> 0.5)
|
98
131
|
i18n (0.7.0)
|
99
|
-
ice_nine (0.11.
|
100
|
-
json (
|
101
|
-
json (
|
102
|
-
loofah (2.0.
|
132
|
+
ice_nine (0.11.2)
|
133
|
+
json (2.0.2)
|
134
|
+
json (2.0.2-java)
|
135
|
+
loofah (2.0.3)
|
103
136
|
nokogiri (>= 1.5.9)
|
104
|
-
mail (2.6.
|
105
|
-
mime-types (>= 1.16, <
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
137
|
+
mail (2.6.4)
|
138
|
+
mime-types (>= 1.16, < 4)
|
139
|
+
method_source (0.8.2)
|
140
|
+
mime-types (3.1)
|
141
|
+
mime-types-data (~> 3.2015)
|
142
|
+
mime-types-data (3.2016.0521)
|
143
|
+
mini_portile2 (2.1.0)
|
144
|
+
minitest (5.9.0)
|
145
|
+
multi_json (1.12.1)
|
110
146
|
multi_xml (0.5.5)
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
147
|
+
mustermann (0.4.0)
|
148
|
+
tool (~> 0.2)
|
149
|
+
mustermann19 (0.4.4)
|
150
|
+
enumerable-lazy
|
151
|
+
nio4r (1.2.1)
|
152
|
+
nio4r (1.2.1-java)
|
153
|
+
nokogiri (1.6.8)
|
154
|
+
mini_portile2 (~> 2.1.0)
|
155
|
+
pkg-config (~> 1.1.7)
|
156
|
+
nokogiri (1.6.8-java)
|
117
157
|
nyny (2.2.1)
|
118
158
|
rack
|
119
159
|
tilt
|
120
|
-
|
160
|
+
pkg-config (1.1.7)
|
161
|
+
rack (2.0.1)
|
121
162
|
rack-accept (0.4.5)
|
122
163
|
rack (>= 0.4)
|
123
|
-
rack-mount (0.8.3)
|
124
|
-
rack (>= 1.0.0)
|
125
|
-
rack-protection (1.5.3)
|
126
|
-
rack
|
127
164
|
rack-test (0.6.3)
|
128
165
|
rack (>= 1.0)
|
129
|
-
rails (
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
166
|
+
rails (5.0.0)
|
167
|
+
actioncable (= 5.0.0)
|
168
|
+
actionmailer (= 5.0.0)
|
169
|
+
actionpack (= 5.0.0)
|
170
|
+
actionview (= 5.0.0)
|
171
|
+
activejob (= 5.0.0)
|
172
|
+
activemodel (= 5.0.0)
|
173
|
+
activerecord (= 5.0.0)
|
174
|
+
activesupport (= 5.0.0)
|
137
175
|
bundler (>= 1.3.0, < 2.0)
|
138
|
-
railties (=
|
139
|
-
sprockets-rails
|
140
|
-
rails-
|
141
|
-
activesupport (>= 4.2.0.
|
142
|
-
rails-dom-testing (1.0.6)
|
143
|
-
activesupport (>= 4.2.0.beta, < 5.0)
|
176
|
+
railties (= 5.0.0)
|
177
|
+
sprockets-rails (>= 2.0.0)
|
178
|
+
rails-dom-testing (2.0.1)
|
179
|
+
activesupport (>= 4.2.0, < 6.0)
|
144
180
|
nokogiri (~> 1.6.0)
|
145
|
-
|
146
|
-
rails-html-sanitizer (1.0.2)
|
181
|
+
rails-html-sanitizer (1.0.3)
|
147
182
|
loofah (~> 2.0)
|
148
|
-
railties (
|
149
|
-
actionpack (=
|
150
|
-
activesupport (=
|
183
|
+
railties (5.0.0)
|
184
|
+
actionpack (= 5.0.0)
|
185
|
+
activesupport (= 5.0.0)
|
186
|
+
method_source
|
151
187
|
rake (>= 0.8.7)
|
152
188
|
thor (>= 0.18.1, < 2.0)
|
153
|
-
rake (
|
189
|
+
rake (0.9.6)
|
154
190
|
resolv-ipv6favor (0.0.0)
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
rspec-
|
161
|
-
|
162
|
-
rspec-
|
163
|
-
rspec-
|
164
|
-
rspec-support (~> 3.2.0)
|
165
|
-
rspec-expectations (3.2.1)
|
191
|
+
roda (2.16.0)
|
192
|
+
rack
|
193
|
+
rspec (3.5.0)
|
194
|
+
rspec-core (~> 3.5.0)
|
195
|
+
rspec-expectations (~> 3.5.0)
|
196
|
+
rspec-mocks (~> 3.5.0)
|
197
|
+
rspec-core (3.5.2)
|
198
|
+
rspec-support (~> 3.5.0)
|
199
|
+
rspec-expectations (3.5.0)
|
166
200
|
diff-lcs (>= 1.2.0, < 2.0)
|
167
|
-
rspec-support (~> 3.
|
168
|
-
rspec-mocks (3.
|
201
|
+
rspec-support (~> 3.5.0)
|
202
|
+
rspec-mocks (3.5.0)
|
169
203
|
diff-lcs (>= 1.2.0, < 2.0)
|
170
|
-
rspec-support (~> 3.
|
171
|
-
rspec-rails (3.
|
172
|
-
actionpack (>= 3.0
|
173
|
-
activesupport (>= 3.0
|
174
|
-
railties (>= 3.0
|
175
|
-
rspec-core (~> 3.
|
176
|
-
rspec-expectations (~> 3.
|
177
|
-
rspec-mocks (~> 3.
|
178
|
-
rspec-support (~> 3.
|
179
|
-
rspec-support (3.
|
180
|
-
ruby-prof (0.15.
|
181
|
-
simplecov (0.
|
204
|
+
rspec-support (~> 3.5.0)
|
205
|
+
rspec-rails (3.5.1)
|
206
|
+
actionpack (>= 3.0)
|
207
|
+
activesupport (>= 3.0)
|
208
|
+
railties (>= 3.0)
|
209
|
+
rspec-core (~> 3.5.0)
|
210
|
+
rspec-expectations (~> 3.5.0)
|
211
|
+
rspec-mocks (~> 3.5.0)
|
212
|
+
rspec-support (~> 3.5.0)
|
213
|
+
rspec-support (3.5.0)
|
214
|
+
ruby-prof (0.15.9)
|
215
|
+
simplecov (0.12.0)
|
182
216
|
docile (~> 1.1.0)
|
183
|
-
json (
|
217
|
+
json (>= 1.8, < 3)
|
184
218
|
simplecov-html (~> 0.10.0)
|
185
219
|
simplecov-html (0.10.0)
|
186
|
-
|
187
|
-
|
188
|
-
rack
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
actionpack (>= 3.0)
|
194
|
-
activesupport (>= 3.0)
|
195
|
-
sprockets (>= 2.8, < 4.0)
|
220
|
+
sprockets (3.7.0)
|
221
|
+
concurrent-ruby (~> 1.0)
|
222
|
+
rack (> 1, < 3)
|
223
|
+
sprockets-rails (3.1.1)
|
224
|
+
actionpack (>= 4.0)
|
225
|
+
activesupport (>= 4.0)
|
226
|
+
sprockets (>= 3.0.0)
|
196
227
|
term-ansicolor (1.3.2)
|
197
228
|
tins (~> 1.0)
|
198
229
|
thor (0.19.1)
|
199
230
|
thread_safe (0.3.5)
|
200
231
|
thread_safe (0.3.5-java)
|
201
|
-
tilt (2.0.
|
202
|
-
timers (4.
|
232
|
+
tilt (2.0.5)
|
233
|
+
timers (4.1.1)
|
203
234
|
hitimes
|
204
|
-
tins (1.
|
235
|
+
tins (1.12.0)
|
236
|
+
tool (0.2.3)
|
205
237
|
tzinfo (1.2.2)
|
206
238
|
thread_safe (~> 0.1)
|
207
|
-
unf (0.1.4)
|
208
|
-
unf_ext
|
209
|
-
unf (0.1.4-java)
|
210
|
-
unf_ext (0.0.7.1)
|
211
239
|
virtus (1.0.5)
|
212
240
|
axiom-types (~> 0.1)
|
213
241
|
coercible (~> 1.0)
|
214
242
|
descendants_tracker (~> 0.0, >= 0.0.3)
|
215
243
|
equalizer (~> 0.0, >= 0.0.9)
|
244
|
+
websocket-driver (0.6.4)
|
245
|
+
websocket-extensions (>= 0.1.0)
|
246
|
+
websocket-driver (0.6.4-java)
|
247
|
+
websocket-extensions (>= 0.1.0)
|
248
|
+
websocket-extensions (0.1.2)
|
216
249
|
|
217
250
|
PLATFORMS
|
218
251
|
java
|
@@ -225,12 +258,14 @@ DEPENDENCIES
|
|
225
258
|
grape
|
226
259
|
hobbit
|
227
260
|
nyny
|
228
|
-
|
229
|
-
|
261
|
+
rack-protection!
|
262
|
+
rails (~> 5.0.0)
|
263
|
+
rake (~> 0)
|
264
|
+
roda
|
230
265
|
rspec (~> 3.2)
|
231
|
-
rspec-rails (~> 3.
|
266
|
+
rspec-rails (~> 3.5.0)
|
232
267
|
ruby-prof
|
233
|
-
sinatra
|
268
|
+
sinatra!
|
234
269
|
|
235
270
|
BUNDLED WITH
|
236
|
-
1.
|
271
|
+
1.12.5
|