polisher 0.4 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +20 -661
  3. data/README.md +39 -0
  4. data/Rakefile +11 -88
  5. data/bin/binary_gem_resolver.rb +95 -0
  6. data/bin/gem_dependency_checker.rb +165 -0
  7. data/bin/git_gem_updater.rb +86 -0
  8. data/bin/ruby_rpm_spec_updater.rb +29 -0
  9. data/lib/polisher.rb +19 -0
  10. data/lib/polisher/apt.rb +12 -0
  11. data/lib/polisher/bodhi.rb +21 -0
  12. data/lib/polisher/bugzilla.rb +9 -0
  13. data/lib/polisher/core.rb +33 -0
  14. data/lib/polisher/errata.rb +43 -0
  15. data/lib/polisher/fedora.rb +43 -0
  16. data/lib/polisher/gem.rb +155 -0
  17. data/lib/polisher/gemfile.rb +72 -0
  18. data/lib/polisher/gemspec.rb +32 -0
  19. data/lib/polisher/git.rb +135 -0
  20. data/lib/polisher/koji.rb +54 -0
  21. data/lib/polisher/rhn.rb +14 -0
  22. data/lib/polisher/rpmspec.rb +254 -0
  23. data/lib/polisher/upstream.rb +29 -0
  24. data/lib/polisher/vendor.rb +9 -0
  25. data/lib/polisher/version_checker.rb +100 -0
  26. data/lib/polisher/yum.rb +28 -0
  27. data/spec/core_spec.rb +64 -0
  28. data/spec/fedora_spec.rb +14 -0
  29. data/spec/gem_spec.rb +82 -0
  30. data/spec/gemfile_spec.rb +45 -0
  31. data/spec/git_spec.rb +74 -0
  32. data/spec/rpmspec_spec.rb +105 -0
  33. data/spec/spec_helper.rb +50 -37
  34. data/spec/upstream_spec.rb +39 -0
  35. metadata +173 -179
  36. data/COPYING +0 -8
  37. data/README.rdoc +0 -105
  38. data/TODO +0 -7
  39. data/bin/server +0 -4
  40. data/config.ru +0 -25
  41. data/config/database.yml +0 -13
  42. data/config/polisher.yml +0 -5
  43. data/db/connection.rb +0 -52
  44. data/db/migrations/001_create_projects.rb +0 -23
  45. data/db/migrations/002_create_sources.rb +0 -25
  46. data/db/migrations/003_create_project_source_versions.rb +0 -28
  47. data/db/migrations/004_create_events.rb +0 -27
  48. data/db/migrations/005_create_project_dependencies.rb +0 -28
  49. data/db/models/event.rb +0 -87
  50. data/db/models/project.rb +0 -110
  51. data/db/models/project_dependency.rb +0 -27
  52. data/db/models/project_source_version.rb +0 -31
  53. data/db/models/source.rb +0 -101
  54. data/lib/common.rb +0 -71
  55. data/lib/dsl.rb +0 -292
  56. data/lib/event_handlers.rb +0 -166
  57. data/lib/gem_adapter.rb +0 -94
  58. data/lib/sinatra/url_for.rb +0 -40
  59. data/polisher.rb +0 -372
  60. data/public/stylesheets/style.css +0 -67
  61. data/spec/common_spec.rb +0 -28
  62. data/spec/dsl_spec.rb +0 -357
  63. data/spec/event_handlers_spec.rb +0 -300
  64. data/spec/gem_adapter_spec.rb +0 -89
  65. data/spec/models_spec.rb +0 -721
  66. data/spec/polisher_spec.rb +0 -573
  67. data/views/layout.haml +0 -22
  68. data/views/projects/index.haml +0 -42
  69. data/views/projects/index.html.haml +0 -38
  70. data/views/result.haml +0 -9
  71. data/views/sources/index.haml +0 -24
  72. data/views/sources/index.html.haml +0 -26
@@ -1,22 +0,0 @@
1
- !!!
2
- !!! XML
3
-
4
- %html
5
- %head
6
- %link{:rel => "stylesheet", :type => "text/css", :href => '/stylesheets/style.css', :media => 'all'}
7
- %body
8
- #header
9
- %h3
10
- Polisher
11
-
12
- %ul{:id => "primary_nav"}
13
- %li
14
- %a{:href => url_for("/projects.html")}projects
15
- %li
16
- %a{:href => url_for("/sources.html")}sources
17
-
18
- %div{:style => "clear: both;"}
19
-
20
- #main
21
- = yield
22
- #footer/
@@ -1,42 +0,0 @@
1
- - haml_tag(:projects) do
2
- - @projects.each do |project|
3
- - haml_tag(:project) do
4
- - haml_tag(:id) do
5
- = project.id
6
- - haml_tag(:name) do
7
- = project.name
8
- - haml_tag(:versions) do
9
- - project.versions.each do |version|
10
- - haml_tag(:version) do
11
- - haml_tag(:id) do
12
- = version
13
- - psources = project.project_source_versions_for_version(version)
14
- - haml_tag(:sources) do
15
- - psources.each do |ps|
16
- - haml_tag(:source) do
17
- - haml_tag(:uri) do
18
- = ps.source.uri
19
- - haml_tag(:version) do
20
- = ps.source_version
21
- - pevents = project.events_for_version(version)
22
- - haml_tag(:events) do
23
- - pevents.each do |event|
24
- - haml_tag(:event) do
25
- - haml_tag(:process) do
26
- = event.process
27
- - haml_tag(:process_options) do
28
- = event.process_options
29
- - haml_tag(:version_qualifier) do
30
- = event.version_qualifier
31
- - haml_tag(:version) do
32
- = event.version
33
- - pdependencies = project.dependencies_for_version(version)
34
- - haml_tag(:dependencies) do
35
- - pdependencies.each do |dep|
36
- - haml_tag(:dependency) do
37
- - haml_tag(:project_id) do
38
- = dep.depends_on_project.id
39
- - haml_tag(:project_name) do
40
- = dep.depends_on_project.name
41
- - haml_tag(:project_version) do
42
- = dep.depends_on_project_version
@@ -1,38 +0,0 @@
1
- %h1
2
- Projects
3
-
4
- %ul
5
- - @projects.sort { |x,y| x.name <=> y.name }.each do |project|
6
- %li
7
- %h2
8
- = project.name
9
- %br/
10
- %h3
11
- sources
12
- %ul
13
- - project.versions.each do |version|
14
- - pevents = project.events_for_version(version)
15
- - psources = project.project_source_versions_for_version(version)
16
- %li
17
- %h4
18
- = "version " + version
19
- %br/
20
- %ul
21
- - psources.each do |ps|
22
- %li
23
- = ps.source.uri
24
- = ps.source_version
25
- %h3
26
- events
27
- %ul
28
- - project.events.each do |event|
29
- %li
30
- = event.process.humanize
31
- = (event.version != "" ? " on version #{event.version_qualifier} #{event.version}" : "")
32
- = (event.process_options != "" ? " with options #{event.process_options}" : "")
33
- %h3
34
- dependencies
35
- %ul
36
- - project.project_dependencies.each do |dep|
37
- %li
38
- = "version " + dep.project_version.to_s + " depens on " + dep.depends_on_project.name + "(" + dep.depends_on_project_version.to_s + ")"
@@ -1,9 +0,0 @@
1
- - haml_tag(:result) do
2
- - haml_tag(:success) do
3
- = @result[:success]
4
- - haml_tag(:message) do
5
- = @result[:message]
6
- - haml_tag(:errors) do
7
- - @result[:errors].each do |err|
8
- - haml_tag(:error) do
9
- = err
@@ -1,24 +0,0 @@
1
- - haml_tag(:sources) do
2
- - @sources.each do |source|
3
- - haml_tag(:source) do
4
- - haml_tag(:id) do
5
- = source.id
6
- - haml_tag(:name) do
7
- = source.name
8
- - haml_tag(:source_type) do
9
- = source.source_type
10
- - haml_tag(:uri) do
11
- = source.uri
12
- - haml_tag(:versions) do
13
- - source.versions.each do |version|
14
- - haml_tag(:version) do
15
- - haml_tag(:id) do
16
- = version
17
- - sprojects = source.project_source_versions_for_version(version)
18
- - haml_tag(:projects) do
19
- - sprojects.each do |ps|
20
- - haml_tag(:project) do
21
- - haml_tag(:name) do
22
- = ps.project.name
23
- - haml_tag(:version) do
24
- = ps.project_version
@@ -1,26 +0,0 @@
1
- %h1
2
- Sources
3
-
4
- %ul
5
- - @sources.sort { |x,y| x.name <=> y.name }.each do |source|
6
- %li
7
- %h2
8
- = source.name
9
- %br/
10
- %h3
11
- versions
12
- %ul
13
- - source.versions.each do |version|
14
- - sprojects = source.project_source_versions_for_version(version)
15
- %li
16
- %h4
17
- = version
18
- %br/
19
- %h5
20
- projects
21
- %ul
22
- - sprojects.each do |ps|
23
- %h6
24
- = ps.project.name
25
- = ps.project_version
26
- %br/