napa 0.4.1 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/README.md +11 -12
- data/Rakefile +4 -0
- data/docs/quickstart.md +2 -2
- data/lib/napa/authentication.rb +5 -2
- data/lib/napa/cli/base/console.rb +32 -0
- data/lib/napa/cli/base/deploy.rb +22 -0
- data/lib/napa/cli/base/new.rb +49 -0
- data/lib/napa/cli/base/server.rb +29 -0
- data/lib/napa/cli/base/version.rb +14 -0
- data/lib/napa/cli/base.rb +17 -0
- data/lib/napa/cli/generate/api.rb +42 -0
- data/lib/napa/cli/generate/readme.rb +50 -0
- data/lib/napa/cli/generate.rb +18 -0
- data/lib/napa/{generators/migration_generator.rb → cli/migration.rb} +3 -3
- data/lib/napa/{generators → cli}/templates/api/app/apis/%name_tableize%_api.rb.tt +0 -0
- data/lib/napa/{generators → cli}/templates/api/app/models/%name_underscore%.rb.tt +0 -0
- data/lib/napa/{generators → cli}/templates/api/app/representers/%name_underscore%_representer.rb.tt +0 -0
- data/lib/napa/{generators → cli}/templates/api/spec/apis/%name_tableize%_api_spec.rb.tt +0 -0
- data/lib/napa/{generators → cli}/templates/api/spec/models/%name_underscore%_spec.rb.tt +0 -0
- data/lib/napa/{generators → cli}/templates/create_table_migration/%migration_filename%.rb.tt +0 -0
- data/lib/napa/{generators → cli}/templates/migration/%migration_filename%.rb.tt +0 -0
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/.env.test.tt +1 -1
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/.env.tt +1 -1
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/.gitignore.tt +0 -0
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/.rubocop.yml +0 -0
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/.ruby-gemset.tt +0 -0
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/.ruby-version.tt +0 -0
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/Gemfile.tt +2 -2
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/README.md +0 -0
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/Rakefile +0 -0
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/app/apis/application_api.rb +0 -0
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/app/apis/hello_api.rb.tt +0 -0
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/app.rb +0 -0
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/config/database.yml.tt +0 -0
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/config/initializers/active_record.rb +0 -0
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/config/middleware/honeybadger.rb +0 -0
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/config.ru.tt +1 -2
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/db/schema.rb +0 -0
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/lib/.keep +0 -0
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/log/.keep +0 -0
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/spec/apis/hello_api_spec.rb.tt +0 -0
- data/lib/napa/{generators/templates/readme → cli/templates/new}/spec/docs/readme_spec.rb +0 -0
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/spec/factories/.gitkeep +0 -0
- data/lib/napa/{generators/templates/scaffold → cli/templates/new}/spec/spec_helper.rb +0 -0
- data/lib/napa/{generators → cli}/templates/readme/README.md.tt +0 -0
- data/lib/napa/cli/templates/readme/spec/docs/readme_spec.rb +7 -0
- data/lib/napa/cli.rb +3 -89
- data/lib/napa/middleware/authentication.rb +16 -4
- data/lib/napa/param_sanitizer.rb +1 -1
- data/lib/napa/version.rb +1 -1
- data/spec/{generators/scaffold_generator_spec.rb → cli/base/new_spec.rb} +4 -3
- data/spec/{generators/api_generator_spec.rb → cli/generate/api_spec.rb} +5 -4
- data/spec/{generators/readme_generator_spec.rb → cli/generate/readme_spec.rb} +5 -4
- data/spec/{generators/migration_generator_spec.rb → cli/migration_spec.rb} +9 -9
- data/spec/middleware/authentication_spec.rb +95 -34
- data/spec/spec_helper.rb +14 -23
- data/tasks/spec.rake +9 -0
- metadata +54 -48
- data/lib/napa/generators/api_generator.rb +0 -30
- data/lib/napa/generators/readme_generator.rb +0 -47
- data/lib/napa/generators/scaffold_generator.rb +0 -29
- data/lib/napa/generators.rb +0 -4
data/lib/napa/generators.rb
DELETED