grapethor 0.2.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 (92) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/.travis.yml +22 -0
  4. data/CHANGELOG.md +13 -0
  5. data/CODE_OF_CONDUCT.md +76 -0
  6. data/Gemfile +3 -0
  7. data/Gemfile.lock +53 -0
  8. data/LICENSE +19 -0
  9. data/README.md +165 -0
  10. data/Rakefile +9 -0
  11. data/_config.yml +1 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +8 -0
  14. data/exe/grapethor +5 -0
  15. data/grapethor.gemspec +47 -0
  16. data/lib/grapethor.rb +10 -0
  17. data/lib/grapethor/generators/api.rb +78 -0
  18. data/lib/grapethor/generators/cli.rb +35 -0
  19. data/lib/grapethor/generators/endpoint.rb +168 -0
  20. data/lib/grapethor/generators/new.rb +161 -0
  21. data/lib/grapethor/generators/resource.rb +89 -0
  22. data/lib/grapethor/templates/api/api/%api_version%/base.rb.tt +19 -0
  23. data/lib/grapethor/templates/api_minitest/test/support/api_%api_version%_test_case.rb.tt +12 -0
  24. data/lib/grapethor/templates/api_rspec/.gitkeep +0 -0
  25. data/lib/grapethor/templates/docker/Dockerfile.tt +18 -0
  26. data/lib/grapethor/templates/docker/docker-compose.yml.tt +43 -0
  27. data/lib/grapethor/templates/endpoint.rb.erb +14 -0
  28. data/lib/grapethor/templates/endpoint/api/%api_version%/%end_resource_plural%.rb.tt +14 -0
  29. data/lib/grapethor/templates/endpoint_minitest.rb.erb +13 -0
  30. data/lib/grapethor/templates/endpoint_minitest/test/api/%api_version%/%end_resource_plural%_test.rb.tt +14 -0
  31. data/lib/grapethor/templates/endpoint_rspec.rb.erb +11 -0
  32. data/lib/grapethor/templates/endpoint_rspec/spec/api/%api_version%/%end_resource_plural%_spec.rb.tt +12 -0
  33. data/lib/grapethor/templates/license/apache2/LICENSE.tt +13 -0
  34. data/lib/grapethor/templates/license/cddl1/LICENSE.tt +316 -0
  35. data/lib/grapethor/templates/license/epl1/LICENSE.tt +200 -0
  36. data/lib/grapethor/templates/license/freebsd/LICENSE.tt +22 -0
  37. data/lib/grapethor/templates/license/gpl2/LICENSE.tt +17 -0
  38. data/lib/grapethor/templates/license/gpl3/LICENSE.tt +16 -0
  39. data/lib/grapethor/templates/license/mit/LICENSE.tt +19 -0
  40. data/lib/grapethor/templates/license/mpl2/LICENSE.tt +5 -0
  41. data/lib/grapethor/templates/license/newbsd/LICENSE.tt +26 -0
  42. data/lib/grapethor/templates/minitest/lib/tasks/test.rake +14 -0
  43. data/lib/grapethor/templates/minitest/test/support/reporters.rb +11 -0
  44. data/lib/grapethor/templates/minitest/test/support/test_case.rb +18 -0
  45. data/lib/grapethor/templates/minitest/test/test_helper.rb +12 -0
  46. data/lib/grapethor/templates/mysql/config/database.yml.tt +33 -0
  47. data/lib/grapethor/templates/new/.gitignore +7 -0
  48. data/lib/grapethor/templates/new/.grapethor.yml.tt +13 -0
  49. data/lib/grapethor/templates/new/Gemfile.tt +44 -0
  50. data/lib/grapethor/templates/new/README.md.tt +138 -0
  51. data/lib/grapethor/templates/new/Rakefile.tt +30 -0
  52. data/lib/grapethor/templates/new/api/base.rb.tt +19 -0
  53. data/lib/grapethor/templates/new/app/exceptions/not_found_error.rb +1 -0
  54. data/lib/grapethor/templates/new/bin/console +13 -0
  55. data/lib/grapethor/templates/new/bin/server.tt +14 -0
  56. data/lib/grapethor/templates/new/bin/setup.tt +8 -0
  57. data/lib/grapethor/templates/new/config.ru.tt +19 -0
  58. data/lib/grapethor/templates/new/config/application.rb.tt +18 -0
  59. data/lib/grapethor/templates/new/config/boot.rb +2 -0
  60. data/lib/grapethor/templates/new/config/environment.rb +3 -0
  61. data/lib/grapethor/templates/new/db/seeds.rb +7 -0
  62. data/lib/grapethor/templates/new/lib/tasks/routes.rake +8 -0
  63. data/lib/grapethor/templates/postgresql/config/database.yml.tt +38 -0
  64. data/lib/grapethor/templates/resource/api/%api_version%/%res_name_plural%.rb.tt +95 -0
  65. data/lib/grapethor/templates/resource/api/entities/%res_name%.rb.tt +10 -0
  66. data/lib/grapethor/templates/resource/app/models/%res_name%.rb.tt +6 -0
  67. data/lib/grapethor/templates/resource/db/migrations/%res_migration%.rb.tt +10 -0
  68. data/lib/grapethor/templates/resource_minitest/test/api/%api_version%/%res_name_plural%_test.rb.tt +82 -0
  69. data/lib/grapethor/templates/resource_minitest/test/fixtures/%res_name_plural%.yml.tt +9 -0
  70. data/lib/grapethor/templates/resource_minitest/test/models/%res_name%_test.rb.tt +17 -0
  71. data/lib/grapethor/templates/resource_rspec/spec/api/%api_version%/%res_name_plural%_spec.rb.tt +91 -0
  72. data/lib/grapethor/templates/resource_rspec/spec/factories/%res_name_plural%.rb.tt +7 -0
  73. data/lib/grapethor/templates/resource_rspec/spec/models/%res_name%_spec.rb.tt +9 -0
  74. data/lib/grapethor/templates/rspec/.rspec +1 -0
  75. data/lib/grapethor/templates/rspec/lib/tasks/spec.rake +4 -0
  76. data/lib/grapethor/templates/rspec/spec/spec_helper.rb +24 -0
  77. data/lib/grapethor/templates/sqlite/config/database.yml.tt +22 -0
  78. data/lib/grapethor/templates/swagger/swagger-ui/favicon-16x16.png +0 -0
  79. data/lib/grapethor/templates/swagger/swagger-ui/favicon-32x32.png +0 -0
  80. data/lib/grapethor/templates/swagger/swagger-ui/index.html.tt +60 -0
  81. data/lib/grapethor/templates/swagger/swagger-ui/oauth2-redirect.html +67 -0
  82. data/lib/grapethor/templates/swagger/swagger-ui/swagger-ui-bundle.js +93 -0
  83. data/lib/grapethor/templates/swagger/swagger-ui/swagger-ui-bundle.js.map +1 -0
  84. data/lib/grapethor/templates/swagger/swagger-ui/swagger-ui-standalone-preset.js +14 -0
  85. data/lib/grapethor/templates/swagger/swagger-ui/swagger-ui-standalone-preset.js.map +1 -0
  86. data/lib/grapethor/templates/swagger/swagger-ui/swagger-ui.css +3 -0
  87. data/lib/grapethor/templates/swagger/swagger-ui/swagger-ui.css.map +1 -0
  88. data/lib/grapethor/templates/swagger/swagger-ui/swagger-ui.js +9 -0
  89. data/lib/grapethor/templates/swagger/swagger-ui/swagger-ui.js.map +1 -0
  90. data/lib/grapethor/utils/utils.rb +116 -0
  91. data/lib/grapethor/version.rb +3 -0
  92. metadata +235 -0

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.