deployments-app 0.0.1 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/.gitignore +2 -1
  2. data/Gemfile +21 -4
  3. data/Gemfile.lock +266 -0
  4. data/Guardfile +3 -0
  5. data/Rakefile +2 -0
  6. data/config.ru +5 -0
  7. data/config/deployments.yml.example +6 -0
  8. data/deployments-app.gemspec +3 -0
  9. data/features/deployments/view_deployments.feature +3 -0
  10. data/features/home/view_home.feature +22 -0
  11. data/features/pivotal_tracker/view_pivotal_tracker_story.feature +14 -0
  12. data/features/projects/new_project.feature +20 -0
  13. data/features/projects/view_deployments_by_project.feature +15 -0
  14. data/features/projects/view_projects.feature +12 -0
  15. data/features/step_definitions/common_steps.rb +4 -0
  16. data/features/step_definitions/deployments/view_deployments_by_project_steps.rb +11 -0
  17. data/features/step_definitions/deployments/view_deployments_steps.rb +17 -8
  18. data/features/step_definitions/home/view_home_steps.rb +16 -0
  19. data/features/step_definitions/pivotal_tracker/view_pivotal_tracker_steps.rb +16 -0
  20. data/features/step_definitions/projects/new_project_steps.rb +35 -0
  21. data/features/step_definitions/projects/view_projects_steps.rb +18 -0
  22. data/features/support/env.rb +8 -0
  23. data/lib/deployments-app.rb +19 -6
  24. data/lib/deployments-app/models/commit.rb +14 -16
  25. data/lib/deployments-app/models/deployment.rb +18 -21
  26. data/lib/deployments-app/models/project.rb +9 -13
  27. data/lib/deployments-app/routes/authentication.rb +1 -3
  28. data/lib/deployments-app/routes/extensions.rb +1 -3
  29. data/lib/deployments-app/routes/projects.rb +28 -0
  30. data/lib/deployments-app/routes/root.rb +7 -2
  31. data/lib/deployments-app/server.rb +13 -0
  32. data/lib/deployments-app/version.rb +1 -1
  33. data/lib/deployments-app/views/deployments/index.haml +13 -5
  34. data/lib/deployments-app/views/layouts/application.haml +39 -0
  35. data/lib/deployments-app/views/projects/index.haml +10 -0
  36. data/lib/deployments-app/views/projects/new.haml +7 -0
  37. data/public/css/bootstrap-responsive.min.css +9 -0
  38. data/public/css/bootstrap.min.css +622 -0
  39. data/public/img/glyphicons-halflings-white.png +0 -0
  40. data/public/img/glyphicons-halflings.png +0 -0
  41. data/public/js/bootstrap.min.js +6 -0
  42. data/public/js/jquery.min.js +4 -0
  43. data/spec/factories/commits.rb +1 -1
  44. data/spec/factories/deployments.rb +14 -2
  45. data/spec/factories/projects.rb +3 -2
  46. data/spec/models/commit_spec.rb +1 -3
  47. data/spec/models/deployment_spec.rb +13 -27
  48. data/spec/models/project_spec.rb +16 -7
  49. data/spec/routes/projects_spec.rb +31 -0
  50. data/spec/routes/root_spec.rb +50 -0
  51. data/spec/spec_helper.rb +15 -2
  52. data/spec/support/data_mapper.rb +1 -4
  53. data/spec/support/factory_girl.rb +18 -0
  54. metadata +91 -5
  55. data/config/database.yml.example +0 -6
  56. data/spec/routes/deployments_spec.rb +0 -20
@@ -1,6 +0,0 @@
1
- test:
2
- username: root
3
- password:
4
- database: deployments-app-test
5
- host: localhost
6
-
@@ -1,20 +0,0 @@
1
- require 'spec_helper'
2
-
3
- include Deployments::App
4
-
5
- describe Server do
6
- let!(:project) { create(:project) }
7
-
8
- context "viewing deployments page without api key" do
9
- before { get '/deployments' }
10
-
11
- it { last_response.status.should == 401 }
12
- end
13
-
14
- context "viewing deployments page with api key" do
15
- before { get "/deployments?api_key=#{project.api_key}" }
16
-
17
- it { last_response.should be_ok }
18
- end
19
- end
20
-