haveapi 0.4.2 → 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/CHANGELOG +11 -0
- data/Rakefile +1 -0
- data/haveapi.gemspec +1 -1
- data/lib/haveapi/authentication/chain.rb +4 -0
- data/lib/haveapi/hooks.rb +68 -11
- data/lib/haveapi/model_adapters/active_record.rb +1 -1
- data/lib/haveapi/{params/param.rb → parameters/typed.rb} +4 -1
- data/lib/haveapi/params.rb +2 -2
- data/lib/haveapi/spec/api_builder.rb +75 -0
- data/lib/haveapi/spec/api_response.rb +41 -0
- data/lib/haveapi/spec/helpers.rb +5 -99
- data/lib/haveapi/spec/mock_action.rb +32 -0
- data/lib/haveapi/spec/spec_methods.rb +121 -0
- data/lib/haveapi/version.rb +1 -1
- data/lib/haveapi/views/main_layout.erb +3 -1
- data/lib/haveapi.rb +1 -1
- data/spec/action/dsl_spec.rb +199 -0
- data/spec/authorization_spec.rb +113 -0
- data/spec/common_spec.rb +47 -0
- data/spec/documentation_spec.rb +29 -0
- data/spec/envelope_spec.rb +33 -0
- data/spec/hooks_spec.rb +146 -0
- data/spec/parameters/typed_spec.rb +93 -0
- data/spec/params_spec.rb +190 -0
- data/spec/resource_spec.rb +63 -0
- data/spec/spec_helper.rb +21 -0
- data/spec/validators/acceptance_spec.rb +29 -0
- data/spec/validators/confirmation_spec.rb +46 -0
- data/spec/validators/custom_spec.rb +6 -0
- data/spec/validators/exclusion_spec.rb +32 -0
- data/spec/validators/format_spec.rb +54 -0
- data/spec/validators/inclusion_spec.rb +43 -0
- data/spec/validators/length_spec.rb +45 -0
- data/spec/validators/numericality_spec.rb +70 -0
- data/spec/validators/presence_spec.rb +47 -0
- metadata +27 -4
- /data/lib/haveapi/{params → parameters}/resource.rb +0 -0
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haveapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Skokan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: require_all
|
@@ -166,9 +166,9 @@ files:
|
|
166
166
|
- lib/haveapi/output_formatter.rb
|
167
167
|
- lib/haveapi/output_formatters/base.rb
|
168
168
|
- lib/haveapi/output_formatters/json.rb
|
169
|
+
- lib/haveapi/parameters/resource.rb
|
170
|
+
- lib/haveapi/parameters/typed.rb
|
169
171
|
- lib/haveapi/params.rb
|
170
|
-
- lib/haveapi/params/param.rb
|
171
|
-
- lib/haveapi/params/resource.rb
|
172
172
|
- lib/haveapi/public/css/bootstrap-theme.min.css
|
173
173
|
- lib/haveapi/public/css/bootstrap.min.css
|
174
174
|
- lib/haveapi/public/doc/protocol.png
|
@@ -177,7 +177,11 @@ files:
|
|
177
177
|
- lib/haveapi/resource.rb
|
178
178
|
- lib/haveapi/route.rb
|
179
179
|
- lib/haveapi/server.rb
|
180
|
+
- lib/haveapi/spec/api_builder.rb
|
181
|
+
- lib/haveapi/spec/api_response.rb
|
180
182
|
- lib/haveapi/spec/helpers.rb
|
183
|
+
- lib/haveapi/spec/mock_action.rb
|
184
|
+
- lib/haveapi/spec/spec_methods.rb
|
181
185
|
- lib/haveapi/tasks/hooks.rb
|
182
186
|
- lib/haveapi/tasks/yard.rb
|
183
187
|
- lib/haveapi/types.rb
|
@@ -201,6 +205,25 @@ files:
|
|
201
205
|
- lib/haveapi/views/main_layout.erb
|
202
206
|
- lib/haveapi/views/version_page.erb
|
203
207
|
- lib/haveapi/views/version_sidebar.erb
|
208
|
+
- spec/action/dsl_spec.rb
|
209
|
+
- spec/authorization_spec.rb
|
210
|
+
- spec/common_spec.rb
|
211
|
+
- spec/documentation_spec.rb
|
212
|
+
- spec/envelope_spec.rb
|
213
|
+
- spec/hooks_spec.rb
|
214
|
+
- spec/parameters/typed_spec.rb
|
215
|
+
- spec/params_spec.rb
|
216
|
+
- spec/resource_spec.rb
|
217
|
+
- spec/spec_helper.rb
|
218
|
+
- spec/validators/acceptance_spec.rb
|
219
|
+
- spec/validators/confirmation_spec.rb
|
220
|
+
- spec/validators/custom_spec.rb
|
221
|
+
- spec/validators/exclusion_spec.rb
|
222
|
+
- spec/validators/format_spec.rb
|
223
|
+
- spec/validators/inclusion_spec.rb
|
224
|
+
- spec/validators/length_spec.rb
|
225
|
+
- spec/validators/numericality_spec.rb
|
226
|
+
- spec/validators/presence_spec.rb
|
204
227
|
homepage:
|
205
228
|
licenses:
|
206
229
|
- MIT
|
File without changes
|