introspective_grape 0.0.4 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.coveralls.yml +2 -0
  3. data/.gitignore +3 -0
  4. data/.rubocop.yml +1164 -0
  5. data/.ruby-version +1 -0
  6. data/.travis.yml +4 -2
  7. data/CHANGELOG.md +58 -0
  8. data/Gemfile +5 -3
  9. data/README.md +70 -17
  10. data/introspective_grape.gemspec +8 -8
  11. data/lib/.DS_Store +0 -0
  12. data/lib/introspective_grape/api.rb +177 -216
  13. data/lib/introspective_grape/camel_snake.rb +28 -59
  14. data/lib/introspective_grape/filters.rb +66 -0
  15. data/lib/introspective_grape/formatter/camel_json.rb +14 -0
  16. data/lib/introspective_grape/helpers.rb +63 -0
  17. data/lib/introspective_grape/traversal.rb +54 -0
  18. data/lib/introspective_grape/version.rb +1 -1
  19. data/lib/introspective_grape.rb +11 -0
  20. data/spec/.DS_Store +0 -0
  21. data/spec/dummy/Gemfile +5 -3
  22. data/spec/dummy/app/api/.DS_Store +0 -0
  23. data/spec/dummy/app/api/api_helpers.rb +5 -6
  24. data/spec/dummy/app/api/dummy/chat_api.rb +1 -2
  25. data/spec/dummy/app/api/dummy/company_api.rb +16 -1
  26. data/spec/dummy/app/api/dummy/location_api.rb +3 -3
  27. data/spec/dummy/app/api/dummy/project_api.rb +1 -0
  28. data/spec/dummy/app/api/dummy/sessions.rb +4 -8
  29. data/spec/dummy/app/api/dummy/user_api.rb +3 -1
  30. data/spec/dummy/app/api/dummy_api.rb +6 -6
  31. data/spec/dummy/app/api/error_handlers.rb +2 -2
  32. data/spec/dummy/app/models/chat_user.rb +1 -1
  33. data/spec/dummy/app/models/image.rb +2 -2
  34. data/spec/dummy/app/models/role.rb +1 -1
  35. data/spec/dummy/app/models/user/chatter.rb +6 -6
  36. data/spec/dummy/app/models/user_project_job.rb +3 -3
  37. data/spec/dummy/config/application.rb +1 -1
  38. data/spec/dummy/db/migrate/20150824215701_create_images.rb +3 -3
  39. data/spec/dummy/db/schema.rb +1 -1
  40. data/spec/models/image_spec.rb +1 -1
  41. data/spec/models/role_spec.rb +5 -5
  42. data/spec/models/user_location_spec.rb +2 -2
  43. data/spec/models/user_project_job_spec.rb +1 -1
  44. data/spec/rails_helper.rb +3 -1
  45. data/spec/requests/company_api_spec.rb +28 -0
  46. data/spec/requests/location_api_spec.rb +19 -2
  47. data/spec/requests/project_api_spec.rb +34 -3
  48. data/spec/requests/sessions_api_spec.rb +1 -1
  49. data/spec/requests/user_api_spec.rb +24 -3
  50. data/spec/support/blueprints.rb +3 -3
  51. data/spec/support/location_helper.rb +26 -21
  52. data/spec/support/request_helpers.rb +1 -3
  53. metadata +58 -28
  54. data/spec/dummy/app/api/active_record_helpers.rb +0 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aaba5f38023f5950dbb62b4b64211d28a95a829d
4
- data.tar.gz: 50294b7009026abfb133ffd26da1a1ccff4f4487
3
+ metadata.gz: b9618a1c95e98590a625b563d4abd19954fd07fb
4
+ data.tar.gz: c8482ddba2d3dcacc302aee77420520c62823921
5
5
  SHA512:
6
- metadata.gz: 98e14dd55fcb67fa8bb16fc2aae68b78627e976fb74bac745917591de43d9fca85ac5f8aba289e731b21a0e8fcdea8a36a94ea164a3aa52cc90e92a38b872d75
7
- data.tar.gz: ae6a260e0dd1f5e0e017a8dfad9ecdb60488e38164cac5bcd455ae920acae68786af92ce43a3b947607d98cbe702b6c54596cb23dcdfdd5111cd9c2f44583a3d
6
+ metadata.gz: 2522acc99b5c1a713ba0a254b00f586cac962c5ab777a6d11ac36b551700b9f3c8b7802f9dfbc23b20eddedfc05eafd53f4d6435a7a6fdbd58e266daa7f1582a
7
+ data.tar.gz: be83fbdf2ac3d282ab542915f8b1202223e4895b75d166cbf1ee46c3ff4a848e86b109ab2e26e8897e75b9e674b8b6c4cbf875f2d97cc962789f24bb948881f5
data/.coveralls.yml ADDED
@@ -0,0 +1,2 @@
1
+ service_name: travis-ci
2
+
data/.gitignore CHANGED
@@ -1,4 +1,6 @@
1
1
  .bundle/
2
+ .DS_Store
3
+ .byebug_history
2
4
  log/*.log
3
5
  Gemfile.lock
4
6
  pkg/
@@ -8,3 +10,4 @@ spec/dummy/log/*.log
8
10
  spec/dummy/tmp/
9
11
  spec/dummy/public/system/
10
12
  spec/dummy/.sass-cache
13
+ coverage/*