napa 0.4.1 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/README.md +11 -12
  4. data/Rakefile +4 -0
  5. data/docs/quickstart.md +2 -2
  6. data/lib/napa/authentication.rb +5 -2
  7. data/lib/napa/cli/base/console.rb +32 -0
  8. data/lib/napa/cli/base/deploy.rb +22 -0
  9. data/lib/napa/cli/base/new.rb +49 -0
  10. data/lib/napa/cli/base/server.rb +29 -0
  11. data/lib/napa/cli/base/version.rb +14 -0
  12. data/lib/napa/cli/base.rb +17 -0
  13. data/lib/napa/cli/generate/api.rb +42 -0
  14. data/lib/napa/cli/generate/readme.rb +50 -0
  15. data/lib/napa/cli/generate.rb +18 -0
  16. data/lib/napa/{generators/migration_generator.rb → cli/migration.rb} +3 -3
  17. data/lib/napa/{generators → cli}/templates/api/app/apis/%name_tableize%_api.rb.tt +0 -0
  18. data/lib/napa/{generators → cli}/templates/api/app/models/%name_underscore%.rb.tt +0 -0
  19. data/lib/napa/{generators → cli}/templates/api/app/representers/%name_underscore%_representer.rb.tt +0 -0
  20. data/lib/napa/{generators → cli}/templates/api/spec/apis/%name_tableize%_api_spec.rb.tt +0 -0
  21. data/lib/napa/{generators → cli}/templates/api/spec/models/%name_underscore%_spec.rb.tt +0 -0
  22. data/lib/napa/{generators → cli}/templates/create_table_migration/%migration_filename%.rb.tt +0 -0
  23. data/lib/napa/{generators → cli}/templates/migration/%migration_filename%.rb.tt +0 -0
  24. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/.env.test.tt +1 -1
  25. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/.env.tt +1 -1
  26. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/.gitignore.tt +0 -0
  27. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/.rubocop.yml +0 -0
  28. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/.ruby-gemset.tt +0 -0
  29. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/.ruby-version.tt +0 -0
  30. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/Gemfile.tt +2 -2
  31. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/README.md +0 -0
  32. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/Rakefile +0 -0
  33. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/app/apis/application_api.rb +0 -0
  34. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/app/apis/hello_api.rb.tt +0 -0
  35. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/app.rb +0 -0
  36. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/config/database.yml.tt +0 -0
  37. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/config/initializers/active_record.rb +0 -0
  38. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/config/middleware/honeybadger.rb +0 -0
  39. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/config.ru.tt +1 -2
  40. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/db/schema.rb +0 -0
  41. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/lib/.keep +0 -0
  42. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/log/.keep +0 -0
  43. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/spec/apis/hello_api_spec.rb.tt +0 -0
  44. data/lib/napa/{generators/templates/readme → cli/templates/new}/spec/docs/readme_spec.rb +0 -0
  45. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/spec/factories/.gitkeep +0 -0
  46. data/lib/napa/{generators/templates/scaffold → cli/templates/new}/spec/spec_helper.rb +0 -0
  47. data/lib/napa/{generators → cli}/templates/readme/README.md.tt +0 -0
  48. data/lib/napa/cli/templates/readme/spec/docs/readme_spec.rb +7 -0
  49. data/lib/napa/cli.rb +3 -89
  50. data/lib/napa/middleware/authentication.rb +16 -4
  51. data/lib/napa/param_sanitizer.rb +1 -1
  52. data/lib/napa/version.rb +1 -1
  53. data/spec/{generators/scaffold_generator_spec.rb → cli/base/new_spec.rb} +4 -3
  54. data/spec/{generators/api_generator_spec.rb → cli/generate/api_spec.rb} +5 -4
  55. data/spec/{generators/readme_generator_spec.rb → cli/generate/readme_spec.rb} +5 -4
  56. data/spec/{generators/migration_generator_spec.rb → cli/migration_spec.rb} +9 -9
  57. data/spec/middleware/authentication_spec.rb +95 -34
  58. data/spec/spec_helper.rb +14 -23
  59. data/tasks/spec.rake +9 -0
  60. metadata +54 -48
  61. data/lib/napa/generators/api_generator.rb +0 -30
  62. data/lib/napa/generators/readme_generator.rb +0 -47
  63. data/lib/napa/generators/scaffold_generator.rb +0 -29
  64. data/lib/napa/generators.rb +0 -4
@@ -1,4 +0,0 @@
1
- require 'napa/generators/scaffold_generator'
2
- require 'napa/generators/api_generator'
3
- require 'napa/generators/migration_generator'
4
- require 'napa/generators/readme_generator'