rapid_api 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.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +120 -0
  3. data/lib/rapid_api/action_controller/errors.rb +75 -0
  4. data/lib/rapid_api/action_controller/filterable_params.rb +29 -0
  5. data/lib/rapid_api/action_controller/macros.rb +28 -0
  6. data/lib/rapid_api/action_controller/permitted_params.rb +38 -0
  7. data/lib/rapid_api/action_controller/rest_actions.rb +158 -0
  8. data/lib/rapid_api/action_controller/scope.rb +44 -0
  9. data/lib/rapid_api/action_controller.rb +11 -0
  10. data/lib/rapid_api/auth/concerns/authenticated_controller.rb +54 -0
  11. data/lib/rapid_api/auth/concerns/jwt_helpers.rb +33 -0
  12. data/lib/rapid_api/auth/concerns/sessions_controller.rb +49 -0
  13. data/lib/rapid_api/auth/concerns.rb +11 -0
  14. data/lib/rapid_api/auth/support/jwt.rb +28 -0
  15. data/lib/rapid_api/auth/support.rb +9 -0
  16. data/lib/rapid_api/auth.rb +8 -0
  17. data/lib/rapid_api/configuration.rb +11 -0
  18. data/lib/rapid_api/model_adapters/abstract.rb +33 -0
  19. data/lib/rapid_api/model_adapters/active_record_adapter.rb +49 -0
  20. data/lib/rapid_api/model_adapters/query_result.rb +22 -0
  21. data/lib/rapid_api/model_adapters.rb +9 -0
  22. data/lib/rapid_api/serializer_adapters/abstract.rb +22 -0
  23. data/lib/rapid_api/serializer_adapters/ams_adapter.rb +20 -0
  24. data/lib/rapid_api/serializer_adapters.rb +8 -0
  25. data/lib/rapid_api/version.rb +3 -0
  26. data/lib/rapid_api.rb +36 -0
  27. data/test/integration/ams_ar_test.rb +44 -0
  28. data/test/support/code_climate.rb +2 -0
  29. data/test/support/models.rb +24 -0
  30. data/test/support/schema.rb +14 -0
  31. data/test/support/serializers.rb +7 -0
  32. data/test/support/test_model_adapter.rb +23 -0
  33. data/test/support/test_module/test_model_adapter.rb +25 -0
  34. data/test/support/test_serializer_adapter.rb +10 -0
  35. data/test/test_helper.rb +28 -0
  36. data/test/unit/rapid_api/action_controller/errors_test.rb +53 -0
  37. data/test/unit/rapid_api/action_controller/filterable_params_test.rb +32 -0
  38. data/test/unit/rapid_api/action_controller/permitted_params_test.rb +30 -0
  39. data/test/unit/rapid_api/action_controller/rest_actions_test.rb +160 -0
  40. data/test/unit/rapid_api/action_controller/scope_test.rb +29 -0
  41. data/test/unit/rapid_api/auth/concerns/authenticated_controller_test.rb +56 -0
  42. data/test/unit/rapid_api/auth/concerns/sessions_controller_test.rb +55 -0
  43. data/test/unit/rapid_api/auth/support/jwt_test.rb +28 -0
  44. data/test/unit/rapid_api/model_adapters/abstract_test.rb +45 -0
  45. data/test/unit/rapid_api/model_adapters/active_record_adapter_test.rb +121 -0
  46. data/test/unit/rapid_api/serializer_adapters/abstract_test.rb +27 -0
  47. data/test/unit/rapid_api/serializer_adapters/ams_adapter_test.rb +31 -0
  48. data/test/unit/rapid_api/test_configuration.rb +17 -0
  49. metadata +197 -0
metadata ADDED
@@ -0,0 +1,197 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rapid_api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - briandavidwetzel
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-11-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: actionpack
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '4.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '4.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: jwt
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.5'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.5'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.7'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.7'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '4.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '4.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: active_model_serializers
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.9'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.9'
97
+ description:
98
+ email:
99
+ - briandavidwetzel@gmail.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - README.md
105
+ - lib/rapid_api.rb
106
+ - lib/rapid_api/action_controller.rb
107
+ - lib/rapid_api/action_controller/errors.rb
108
+ - lib/rapid_api/action_controller/filterable_params.rb
109
+ - lib/rapid_api/action_controller/macros.rb
110
+ - lib/rapid_api/action_controller/permitted_params.rb
111
+ - lib/rapid_api/action_controller/rest_actions.rb
112
+ - lib/rapid_api/action_controller/scope.rb
113
+ - lib/rapid_api/auth.rb
114
+ - lib/rapid_api/auth/concerns.rb
115
+ - lib/rapid_api/auth/concerns/authenticated_controller.rb
116
+ - lib/rapid_api/auth/concerns/jwt_helpers.rb
117
+ - lib/rapid_api/auth/concerns/sessions_controller.rb
118
+ - lib/rapid_api/auth/support.rb
119
+ - lib/rapid_api/auth/support/jwt.rb
120
+ - lib/rapid_api/configuration.rb
121
+ - lib/rapid_api/model_adapters.rb
122
+ - lib/rapid_api/model_adapters/abstract.rb
123
+ - lib/rapid_api/model_adapters/active_record_adapter.rb
124
+ - lib/rapid_api/model_adapters/query_result.rb
125
+ - lib/rapid_api/serializer_adapters.rb
126
+ - lib/rapid_api/serializer_adapters/abstract.rb
127
+ - lib/rapid_api/serializer_adapters/ams_adapter.rb
128
+ - lib/rapid_api/version.rb
129
+ - test/integration/ams_ar_test.rb
130
+ - test/support/code_climate.rb
131
+ - test/support/models.rb
132
+ - test/support/schema.rb
133
+ - test/support/serializers.rb
134
+ - test/support/test_model_adapter.rb
135
+ - test/support/test_module/test_model_adapter.rb
136
+ - test/support/test_serializer_adapter.rb
137
+ - test/test_helper.rb
138
+ - test/unit/rapid_api/action_controller/errors_test.rb
139
+ - test/unit/rapid_api/action_controller/filterable_params_test.rb
140
+ - test/unit/rapid_api/action_controller/permitted_params_test.rb
141
+ - test/unit/rapid_api/action_controller/rest_actions_test.rb
142
+ - test/unit/rapid_api/action_controller/scope_test.rb
143
+ - test/unit/rapid_api/auth/concerns/authenticated_controller_test.rb
144
+ - test/unit/rapid_api/auth/concerns/sessions_controller_test.rb
145
+ - test/unit/rapid_api/auth/support/jwt_test.rb
146
+ - test/unit/rapid_api/model_adapters/abstract_test.rb
147
+ - test/unit/rapid_api/model_adapters/active_record_adapter_test.rb
148
+ - test/unit/rapid_api/serializer_adapters/abstract_test.rb
149
+ - test/unit/rapid_api/serializer_adapters/ams_adapter_test.rb
150
+ - test/unit/rapid_api/test_configuration.rb
151
+ homepage: ''
152
+ licenses:
153
+ - MIT
154
+ metadata: {}
155
+ post_install_message:
156
+ rdoc_options: []
157
+ require_paths:
158
+ - lib
159
+ required_ruby_version: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - ">="
162
+ - !ruby/object:Gem::Version
163
+ version: '0'
164
+ required_rubygems_version: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - ">="
167
+ - !ruby/object:Gem::Version
168
+ version: '0'
169
+ requirements: []
170
+ rubyforge_project:
171
+ rubygems_version: 2.2.2
172
+ signing_key:
173
+ specification_version: 4
174
+ summary: A framework for rapid development of Rails APIs.
175
+ test_files:
176
+ - test/integration/ams_ar_test.rb
177
+ - test/support/code_climate.rb
178
+ - test/support/models.rb
179
+ - test/support/schema.rb
180
+ - test/support/serializers.rb
181
+ - test/support/test_model_adapter.rb
182
+ - test/support/test_module/test_model_adapter.rb
183
+ - test/support/test_serializer_adapter.rb
184
+ - test/test_helper.rb
185
+ - test/unit/rapid_api/action_controller/errors_test.rb
186
+ - test/unit/rapid_api/action_controller/filterable_params_test.rb
187
+ - test/unit/rapid_api/action_controller/permitted_params_test.rb
188
+ - test/unit/rapid_api/action_controller/rest_actions_test.rb
189
+ - test/unit/rapid_api/action_controller/scope_test.rb
190
+ - test/unit/rapid_api/auth/concerns/authenticated_controller_test.rb
191
+ - test/unit/rapid_api/auth/concerns/sessions_controller_test.rb
192
+ - test/unit/rapid_api/auth/support/jwt_test.rb
193
+ - test/unit/rapid_api/model_adapters/abstract_test.rb
194
+ - test/unit/rapid_api/model_adapters/active_record_adapter_test.rb
195
+ - test/unit/rapid_api/serializer_adapters/abstract_test.rb
196
+ - test/unit/rapid_api/serializer_adapters/ams_adapter_test.rb
197
+ - test/unit/rapid_api/test_configuration.rb